[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:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]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:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]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:48]accept exits with 9 [03:50:48]New connection [03:50:48]New thread 3066871140 created [03:50:48]Thread 3067014500 joined [03:50:48]Waiting for new connection... [03:50:48] Sock 9.Parse request [03:50:48]Sock 9.Check first char [03:50:48]Sock 9.First char is OK [03:50:48]request: POST /json_proto HTTP/1.0 [03:50:48]Method: POST [03:50:48]URL: /json_proto [03:50:48]Method is POST - this is cgi request [03:50:48]url: /json_proto [03:50:48]query_string will be loaded in cgi processing [03:50:48]execute_cgi json_proto POST (null) [03:50:48]execute_cgi path=json_proto method=POST [03:50:48]POST find Content-Length [03:50:48]Host: 172.17.62.67:8080 [03:50:48]Content-Length: 682 [03:50:48]Content-Type: application/json [03:50:48] [03:50:48]POST finish read [03:50:48]Found Content-Length = 682 [03:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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" ] } } [03:50:48]execute_script... [03:50:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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" ] } } [03:50:48]POST & json_proto [03:50:48]process_json_proto [03:50:48]json parsed OK: [03:50:48]protocol is kg_v1.0 [03:50:48]action value=close_receipt [03:50:48]process_action close_receipt [03:50:48]cmd_close_receipt [03:50:48]MH_GetDate [03:50:48]Write to MH i2c: F0 00 00 0D 79 75 [03:50:48]Write i2c OK [03:50:48]MH_I2C_Read... [03:50:48]Read from MH i2c: F0 [03:50:48]MH_I2C_Read... [03:50:48]Read from MH i2c: F0 05 00 [03:50:48]MH_I2C_Read... [03:50:48]Read from MH i2c: F0 05 00 0D 79 00 A5 7F EE 65 F1 [03:50:48]GetLastDocTimeStamp 1710123759 [03:50:48]current date 1710129061 [03:50:48]FM_GetShiftState [03:50:48]SAM_PROTO_GetShiftState [03:50:48]wFMCommunicate request_size=4 [03:50:48]MH_SAM_APDU [03:50:48]CAPDU: 80 13 01 00 [03:50:48]Write to MH i2c: E2 08 00 0E 79 80 13 01 00 00 00 00 00 04 [03:50:48]Write i2c OK [03:50:48]MH_I2C_Read... [03:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:48]Read from MH i2c: E2 [03:50:48]MH_I2C_Read... [03:50:48]Read from MH i2c: E2 0E 00 [03:50:48]MH_I2C_Read... [03:50:48]Read from MH i2c: E2 0E 00 0E 79 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A0 [03:50:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [03:50:48]wFMCommunicate OK [03:50:48]SAM_PROTO_GetShiftState done [03:50:48]FM_GetShiftState done [03:50:48]opened in 1710115571 [03:50:48]opened+sec_in_day 1710201971 [03:50:48]quantity*price = 100010 [03:50:48]sum+1 = 100012 [03:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 11 11.03.2024 03:51 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94836 ФПД: 105769406127705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T035101&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94836&fm=105769406127705&tin=02508201610067®Number=0000000000090555&sum=100000 [03:50:50]StoreToDocumentArchive [03:50:50]shift 326 fd 94836 [03:50:50]save to /storage/0326/doc_00094836 [03:50:50]save last doc name /storage/0326/doc_00094836 to /storage/kkm_last_doc_name [03:50:50]save OK [03:50:50]Clear old archive folders... [03:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:50:50]tlvbuf is 00248A70 [03:50:50]SAM_PROTO_ClearQueue [03:50:50]wFMCommunicate request_size=4 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 09 00 00 [03:50:50]Write to MH i2c: E2 08 00 1B 79 80 09 00 00 00 00 00 00 06 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 1B 79 00 90 00 08 [03:50:50]RAPDU: 90 00 [03:50:50]wFMCommunicate OK [03:50:50]SAM_PROTO_ClearQueue done [03:50:50]KKMCreateOFDPacket [03:50:50]OFDProtocolAddRootSTLVToBuf [03:50:50]FM_MakeSignedData [03:50:50]FM_MakeSignedData [03:50:50]SAM_PROTO_SignData [03:50:50]wFMCommunicate request_size=4 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 0D 01 02 [03:50:50]Write to MH i2c: E2 08 00 1C 79 80 0D 01 02 00 00 00 00 0E [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 1C 79 00 90 00 09 [03:50:50]RAPDU: 90 00 [03:50:50]wFMCommunicate OK [03:50:50]wFMCommunicate request_size=255 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A5 7F EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 72 01 00 35 04 06 00 60 [03:50:50]Write to MH i2c: E2 02 01 1D 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A5 7F EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 72 01 00 35 04 06 00 60 00 00 75 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 1D 79 00 90 00 0A [03:50:50]RAPDU: 90 00 [03:50:50]wFMCommunicate OK [03:50:50]wFMCommunicate request_size=10 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 0D 02 02 05 32 5B E1 5E 59 [03:50:50]Write to MH i2c: E2 0D 00 1E 79 80 0D 02 02 05 00 32 5B E1 5E 59 00 00 40 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 03 00 1E 79 00 90 00 0B [03:50:50]RAPDU: 90 00 [03:50:50]wFMCommunicate OK [03:50:50]wFMCommunicate request_size=4 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 0D 03 02 [03:50:50]Write to MH i2c: E2 08 00 1F 79 80 0D 03 02 00 00 00 00 13 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 0B 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 0B 00 1F 79 00 31 17 77 D7 72 D2 74 DC 90 00 3E [03:50:50]RAPDU: 31 17 77 D7 72 D2 74 DC 90 00 [03:50:50]wFMCommunicate OK [03:50:50]SAM_PROTO_SignData done [03:50:50]FM_MakeSignedData done [03:50:50]CreateOFDProtocolMessage [03:50:50]wFMCommunicate request_size=4 [03:50:50]MH_SAM_APDU [03:50:50]CAPDU: 80 11 00 00 [03:50:50]Write to MH i2c: E2 08 00 20 79 80 11 00 00 00 00 00 00 13 [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:50]Read from MH i2c: E2 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 17 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: E2 17 00 20 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 63 [03:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [03:50:50]wFMCommunicate OK [03:50:50]CreateOFDProtocolMessage done [03:50:50]OFDSenderStorePacket 94836 [03:50:50]StoreOFDPacket docnum=94836 [03:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 9A 69 07 01 4A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A5 7F EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 72 01 00 35 04 06 00 60 32 5B E1 5E 59 31 17 77 D7 72 D2 74 DC [03:50:50]CheckFolder [03:50:50]dirname=/storage/ofd_packets [03:50:50]CheckFolder done [03:50:50]ProducePacketName [03:50:50]name=ofd_packets/00094836 [03:50:50]NVStorageSaveData ofd_packets/00094836 [03:50:50]File name is /storage/ofd_packets/00094836 [03:50:50]Write 301 bytes [03:50:50]NVStorageSaveData done [03:50:50]OFDSenderStorePacket done [03:50:50]KKMCreateOFDPacket done [03:50:50]NVStorageSaveData kkm_last_timestamp [03:50:50]File name is /storage/kkm_last_timestamp [03:50:50]Write 4 bytes [03:50:50]NVStorageSaveData done [03:50:50]ExternCall_PrintAddStr [03:50:50]wPrintStart [03:50:50]Write to MH i2c: 01 00 00 21 79 9A [03:50:50]Write i2c OK [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: 01 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: 01 07 00 [03:50:50]MH_I2C_Read... [03:50:50]Read from MH i2c: 01 07 00 21 79 00 80 00 00 00 FF 0F 2F [03:50:50]RasterBufferAndPrint [03:50:50]line Счет N : (1)195772 [03:50:50]line ИНН: 02508201610067 [03:50:50]line Контрольно-Кассовый Чек [03:50:50]line ПРОДАЖА [03:50:50]line ТРК (МРК, ГНК) : 31 [03:50:50]line Товар: 2710124500 [03:50:50]line Аи-95-К-5 [03:50:50]line 14.390 * 69.50 [03:50:50]line = 1000.11 [03:50:50]line НДС 12% НСП 1% [03:50:50]line > о реализуемом товаре [03:50:50]line ОКРУГЛЕНИЕ: -0.11 [03:50:50]line ИТОГО: 1000.00 [03:50:50]line Внесено: 1000.00 [03:50:50]line СДАЧА: 0.00 [03:50:50]line НСП 1% : 8.85 [03:50:50]line НДС 12% : 106.21 [03:50:50]line Наличными: 1000.00 [03:50:50]line Безнал.: 0.00 [03:50:50]line Место: АЗС № 6 "Партнер Нефть" [03:50:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [03:50:50]line СНО: Общий режим [03:50:50]line Чек 11 11.03.2024 03:51 [03:50:50]line Смена: 326 ФФД: 1.0 [03:50:50]line ЗНМ: 0300000009 [03:50:50]line РНМ: 0000000000090555 [03:50:50]line Версия ККМ: 001 [03:50:50]line ФМ: 0000000000874811 [03:50:50]line ФД: 94836 [03:50:50]line ФПД: 105769406127705 [03:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T035101&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94836&fm=105769406127705&tin=02508201610067®Number=0000000000090555&sum=100000 [03:50:50]OFD Sender: Processing packet 94836 [packets to send 30, broken 29] [03:50:50]ProducePacketName [03:50:50]name=ofd_packets/00094836 [03:50:50]OFD Sender: To server: pG, [03:50:50]CommunicateWithHost lk.salyk.kg:30040 [03:50:50]ConnectInit lk.salyk.kg [03:50:50]written 0, free lines is 4095 [03:50:51]Connected sock=11 [03:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 9A 69 07 01 4A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 A5 7F EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 72 01 00 35 04 06 00 60 32 5B E1 5E 59 31 17 77 D7 72 D2 74 DC [03:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CF 95 47 00 60 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 72 01 00 F4 03 04 00 FF 2A EE 65 B6 04 01 00 00 A8 FD B9 07 69 8E 8B 9D [03:50:51]CommunicateWithHost err = 0 [03:50:51]CheckOFDResponse [03:50:51]1017 (14) - 77093643461234 [03:50:51]1041 (16) - 0000000000874811 [03:50:51]1040 (4) - 94836 [03:50:51]1012 (4) - 10.03.2024 21:49 [03:50:51]1206 (1) - 0 [03:50:51]OFD Sender: Remove packet 94836 [03:50:51]ProducePacketName [03:50:51]name=ofd_packets/00094836 [03:50:51]NVStorageDeleteData [03:50:51]Write to MH i2c: 01 00 00 4C 79 C5 [03:50:51]Write i2c OK [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: 01 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: 01 07 00 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: 01 07 00 4C 79 00 80 00 00 00 56 0D AF [03:50:51]RasterBufferAndPrint [03:50:51]line [03:50:51]line [03:50:51]line [03:50:51]line [03:50:51]line [03:50:51]written 0, free lines is 3418 [03:50:51]process_action close_receipt done [03:50:51]requested_data is exist [03:50:51]produce_requested_data [03:50:51]requested_item fm.sn is exist - process it [03:50:51]wFMCommunicate request_size=4 [03:50:51]MH_SAM_APDU [03:50:51]CAPDU: 80 11 00 00 [03:50:51]Write to MH i2c: E2 08 00 53 79 80 11 00 00 00 00 00 00 46 [03:50:51]Write i2c OK [03:50:51]MH_I2C_Read... [03:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:50:51]Read from MH i2c: E2 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: E2 17 00 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: E2 17 00 53 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 96 [03:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [03:50:51]wFMCommunicate OK [03:50:51]requested_item fd.num is exist - process it [03:50:51]SAM_PROTO_GetFieldsCounters [03:50:51]wFMCommunicate request_size=4 [03:50:51]MH_SAM_APDU [03:50:51]CAPDU: 80 13 00 00 [03:50:51]Write to MH i2c: E2 08 00 54 79 80 13 00 00 00 00 00 00 49 [03:50:51]Write i2c OK [03:50:51]MH_I2C_Read... [03:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:50:51]Read from MH i2c: E2 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: E2 62 00 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: E2 62 00 54 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 74 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [03:50: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 74 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:50:51]wFMCommunicate OK [03:50:51]SAM_PROTO_GetFieldsCounters done [03:50:51]requested_item shift.num is exist - process it [03:50:51]requested_item shift.opened is exist - process it [03:50:51]req_shift_opened [03:50:51]FM_GetShiftState [03:50:51]SAM_PROTO_GetShiftState [03:50:51]wFMCommunicate request_size=4 [03:50:51]MH_SAM_APDU [03:50:51]CAPDU: 80 13 01 00 [03:50:51]Write to MH i2c: E2 08 00 55 79 80 13 01 00 00 00 00 00 4B [03:50:51]Write i2c OK [03:50:51]MH_I2C_Read... [03:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:50:51]Read from MH i2c: E2 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: E2 0E 00 [03:50:51]MH_I2C_Read... [03:50:51]Read from MH i2c: E2 0E 00 55 79 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E7 [03:50:51]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [03:50:51]wFMCommunicate OK [03:50:51]SAM_PROTO_GetShiftState done [03:50:51]FM_GetShiftState done [03:50:51]req_shift_opened done [03:50:51]requested_item shift.open_date is exist - process it [03:50:51]req_shift_open_date [03:50:51]req_shift_open_date done [03:50:51]produce_requested_data done [03:50:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94836,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [03:50:51]process_action_free close_receipt [03:50:51]json_value_free [03:50:51]json_value_free done [03:50:51]process_json_proto returns [03:50:51]Send response to host [03:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94836,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [03:50:51]free response buf [03:50:51]execute_script done [03:50:51]execute_script returns [03:50:51]free content buf [03:50:51]Sock 9.Close socket [03:50:51]Sock 9.Thread stoped [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:46]accept exits with 7 [05:57:46]New connection [05:57:46]New thread 3067014500 created [05:57:46]Thread 3066871140 joined [05:57:46]Waiting for new connection... [05:57:46] Sock 7.Parse request [05:57:46]Sock 7.Check first char [05:57:46]Sock 7.First char is OK [05:57:46]request: POST /json_proto HTTP/1.0 [05:57:46]Method: POST [05:57:46]URL: /json_proto [05:57:46]Method is POST - this is cgi request [05:57:46]url: /json_proto [05:57:46]query_string will be loaded in cgi processing [05:57:46]execute_cgi json_proto POST (null) [05:57:46]execute_cgi path=json_proto method=POST [05:57:46]POST find Content-Length [05:57:46]Host: 172.17.62.67:8080 [05:57:46]Content-Length: 677 [05:57:46]Content-Type: application/json [05:57:46] [05:57:46]POST finish read [05:57:46]Found Content-Length = 677 [05:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [05:57:46]execute_script... [05:57:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [05:57:46]POST & json_proto [05:57:46]process_json_proto [05:57:46]json parsed OK: [05:57:46]protocol is kg_v1.0 [05:57:46]action value=close_receipt [05:57:46]process_action close_receipt [05:57:46]cmd_close_receipt [05:57:46]MH_GetDate [05:57:46]Write to MH i2c: F0 00 00 56 79 BE [05:57:46]Write i2c OK [05:57:46]MH_I2C_Read... [05:57:46]Read from MH i2c: F0 [05:57:46]MH_I2C_Read... [05:57:46]Read from MH i2c: F0 05 00 [05:57:46]MH_I2C_Read... [05:57:46]Read from MH i2c: F0 05 00 56 79 00 66 9D EE 65 19 [05:57:46]GetLastDocTimeStamp 1710129061 [05:57:46]current date 1710136678 [05:57:46]FM_GetShiftState [05:57:46]SAM_PROTO_GetShiftState [05:57:46]wFMCommunicate request_size=4 [05:57:46]MH_SAM_APDU [05:57:46]CAPDU: 80 13 01 00 [05:57:46]Write to MH i2c: E2 08 00 57 79 80 13 01 00 00 00 00 00 4D [05:57:46]Write i2c OK [05:57:46]MH_I2C_Read... [05:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:46]Read from MH i2c: E2 [05:57:46]MH_I2C_Read... [05:57:46]Read from MH i2c: E2 0E 00 [05:57:46]MH_I2C_Read... [05:57:46]Read from MH i2c: E2 0E 00 57 79 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E9 [05:57:46]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [05:57:46]wFMCommunicate OK [05:57:46]SAM_PROTO_GetShiftState done [05:57:46]FM_GetShiftState done [05:57:46]opened in 1710115571 [05:57:46]opened+sec_in_day 1710201971 [05:57:46]quantity*price = 50005 [05:57:46]sum+1 = 50007 [05:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 12 11.03.2024 05:57 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94837 ФПД: 65666985142129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T055758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94837&fm=65666985142129&tin=02508201610067®Number=0000000000090555&sum=50000 [05:57:47]StoreToDocumentArchive [05:57:47]shift 326 fd 94837 [05:57:47]save to /storage/0326/doc_00094837 [05:57:47]save last doc name /storage/0326/doc_00094837 to /storage/kkm_last_doc_name [05:57:47]save OK [05:57:47]Clear old archive folders... [05:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:57:47]tlvbuf is 0041CA00 [05:57:47]SAM_PROTO_ClearQueue [05:57:47]wFMCommunicate request_size=4 [05:57:47]MH_SAM_APDU [05:57:47]CAPDU: 80 09 00 00 [05:57:47]Write to MH i2c: E2 08 00 64 79 80 09 00 00 00 00 00 00 4F [05:57:47]Write i2c OK [05:57:47]MH_I2C_Read... [05:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:57:47]Read from MH i2c: E2 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 03 00 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 03 00 64 79 00 90 00 51 [05:57:47]RAPDU: 90 00 [05:57:47]wFMCommunicate OK [05:57:47]SAM_PROTO_ClearQueue done [05:57:47]KKMCreateOFDPacket [05:57:47]OFDProtocolAddRootSTLVToBuf [05:57:47]FM_MakeSignedData [05:57:47]FM_MakeSignedData [05:57:47]SAM_PROTO_SignData [05:57:47]wFMCommunicate request_size=4 [05:57:47]MH_SAM_APDU [05:57:47]CAPDU: 80 0D 01 02 [05:57:47]Write to MH i2c: E2 08 00 65 79 80 0D 01 02 00 00 00 00 57 [05:57:47]Write i2c OK [05:57:47]MH_I2C_Read... [05:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:57:47]Read from MH i2c: E2 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 03 00 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 03 00 65 79 00 90 00 52 [05:57:47]RAPDU: 90 00 [05:57:47]wFMCommunicate OK [05:57:47]wFMCommunicate request_size=255 [05:57:47]MH_SAM_APDU [05:57:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 66 9D EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 72 01 00 35 04 06 00 3B [05:57:47]Write to MH i2c: E2 02 01 66 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 66 9D EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 72 01 00 35 04 06 00 3B 00 00 CC [05:57:47]Write i2c OK [05:57:47]MH_I2C_Read... [05:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:47]Read from MH i2c: E2 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 03 00 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 03 00 66 79 00 90 00 53 [05:57:47]RAPDU: 90 00 [05:57:47]wFMCommunicate OK [05:57:47]wFMCommunicate request_size=10 [05:57:47]MH_SAM_APDU [05:57:47]CAPDU: 80 0D 02 02 05 B9 49 52 A7 71 [05:57:47]Write to MH i2c: E2 0D 00 67 79 80 0D 02 02 05 00 B9 49 52 A7 71 00 00 D0 [05:57:47]Write i2c OK [05:57:47]MH_I2C_Read... [05:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:47]Read from MH i2c: E2 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 03 00 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 03 00 67 79 00 90 00 54 [05:57:47]RAPDU: 90 00 [05:57:47]wFMCommunicate OK [05:57:47]wFMCommunicate request_size=4 [05:57:47]MH_SAM_APDU [05:57:47]CAPDU: 80 0D 03 02 [05:57:47]Write to MH i2c: E2 08 00 68 79 80 0D 03 02 00 00 00 00 5C [05:57:47]Write i2c OK [05:57:47]MH_I2C_Read... [05:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:57:47]Read from MH i2c: E2 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 0B 00 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 0B 00 68 79 00 F0 2B F6 22 D0 45 9F D4 90 00 18 [05:57:47]RAPDU: F0 2B F6 22 D0 45 9F D4 90 00 [05:57:47]wFMCommunicate OK [05:57:47]SAM_PROTO_SignData done [05:57:47]FM_MakeSignedData done [05:57:47]CreateOFDProtocolMessage [05:57:47]wFMCommunicate request_size=4 [05:57:47]MH_SAM_APDU [05:57:47]CAPDU: 80 11 00 00 [05:57:47]Write to MH i2c: E2 08 00 69 79 80 11 00 00 00 00 00 00 5C [05:57:47]Write i2c OK [05:57:47]MH_I2C_Read... [05:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:47]Read from MH i2c: E2 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 17 00 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: E2 17 00 69 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AC [05:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [05:57:47]wFMCommunicate OK [05:57:47]CreateOFDProtocolMessage done [05:57:47]OFDSenderStorePacket 94837 [05:57:47]StoreOFDPacket docnum=94837 [05:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0F 6A 07 01 EA 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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 66 9D EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 72 01 00 35 04 06 00 3B B9 49 52 A7 71 F0 2B F6 22 D0 45 9F D4 [05:57:47]CheckFolder [05:57:47]dirname=/storage/ofd_packets [05:57:47]CheckFolder done [05:57:47]ProducePacketName [05:57:47]name=ofd_packets/00094837 [05:57:47]NVStorageSaveData ofd_packets/00094837 [05:57:47]File name is /storage/ofd_packets/00094837 [05:57:47]Write 301 bytes [05:57:47]NVStorageSaveData done [05:57:47]OFDSenderStorePacket done [05:57:47]KKMCreateOFDPacket done [05:57:47]NVStorageSaveData kkm_last_timestamp [05:57:47]File name is /storage/kkm_last_timestamp [05:57:47]Write 4 bytes [05:57:47]NVStorageSaveData done [05:57:47]ExternCall_PrintAddStr [05:57:47]wPrintStart [05:57:47]Write to MH i2c: 01 00 00 6A 79 E3 [05:57:47]Write i2c OK [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: 01 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: 01 07 00 [05:57:47]MH_I2C_Read... [05:57:47]Read from MH i2c: 01 07 00 6A 79 00 80 00 00 00 FF 0F 78 [05:57:47]RasterBufferAndPrint [05:57:47]line Счет N : (1)195773 [05:57:47]line ИНН: 02508201610067 [05:57:47]line Контрольно-Кассовый Чек [05:57:47]line ПРОДАЖА [05:57:47]line ТРК (МРК, ГНК) : 12 [05:57:47]line Товар: 2710124130 [05:57:47]line Аи-92-К-5 [05:57:47]line 7.950 * 62.90 [05:57:47]line = 500.06 [05:57:47]line НДС 12% НСП 1% [05:57:47]line > о реализуемом товаре [05:57:47]line ОКРУГЛЕНИЕ: -0.06 [05:57:47]line ИТОГО: 500.00 [05:57:47]line Внесено: 500.00 [05:57:47]line СДАЧА: 0.00 [05:57:47]line НСП 1% : 4.42 [05:57:47]line НДС 12% : 53.10 [05:57:47]line Наличными: 500.00 [05:57:47]line Безнал.: 0.00 [05:57:47]line Место: АЗС № 6 "Партнер Нефть" [05:57:47]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [05:57:47]line СНО: Общий режим [05:57:47]line Чек 12 11.03.2024 05:57 [05:57:47]line Смена: 326 ФФД: 1.0 [05:57:47]line ЗНМ: 0300000009 [05:57:47]line РНМ: 0000000000090555 [05:57:47]line Версия ККМ: 001 [05:57:47]line ФМ: 0000000000874811 [05:57:47]line ФД: 94837 [05:57:47]line ФПД: 65666985142129 [05:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T055758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94837&fm=65666985142129&tin=02508201610067®Number=0000000000090555&sum=50000 [05:57:48]OFD Sender: Processing packet 94837 [packets to send 30, broken 29] [05:57:48]ProducePacketName [05:57:48]name=ofd_packets/00094837 [05:57:48]OFD Sender: To server: pG, [05:57:48]CommunicateWithHost lk.salyk.kg:30040 [05:57:48]ConnectInit lk.salyk.kg [05:57:48]written 0, free lines is 4095 [05:57:48]Connected sock=10 [05:57:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0F 6A 07 01 EA 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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 66 9D EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 72 01 00 35 04 06 00 3B B9 49 52 A7 71 F0 2B F6 22 D0 45 9F D4 [05:57: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 31 31 4F 00 00 00 05 A6 47 00 79 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 72 01 00 F4 03 04 00 C1 48 EE 65 B6 04 01 00 00 FB 64 65 16 A6 57 2A BB [05:57:48]CommunicateWithHost err = 0 [05:57:48]CheckOFDResponse [05:57:48]1017 (14) - 77093643461234 [05:57:48]1041 (16) - 0000000000874811 [05:57:48]1040 (4) - 94837 [05:57:48]1012 (4) - 10.03.2024 23:56 [05:57:48]1206 (1) - 0 [05:57:48]OFD Sender: Remove packet 94837 [05:57:48]ProducePacketName [05:57:48]name=ofd_packets/00094837 [05:57:48]NVStorageDeleteData [05:57:48]Write to MH i2c: 01 00 00 95 79 0E [05:57:48]Write i2c OK [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: 01 [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: 01 07 00 [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: 01 07 00 95 79 00 80 00 00 00 49 0D EB [05:57:48]RasterBufferAndPrint [05:57:48]line [05:57:48]line [05:57:48]line [05:57:48]line [05:57:48]line [05:57:48]written 0, free lines is 3407 [05:57:48]process_action close_receipt done [05:57:48]requested_data is exist [05:57:48]produce_requested_data [05:57:48]requested_item fm.sn is exist - process it [05:57:48]wFMCommunicate request_size=4 [05:57:48]MH_SAM_APDU [05:57:48]CAPDU: 80 11 00 00 [05:57:48]Write to MH i2c: E2 08 00 9C 79 80 11 00 00 00 00 00 00 8F [05:57:48]Write i2c OK [05:57:48]MH_I2C_Read... [05:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:48]Read from MH i2c: E2 [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: E2 17 00 [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: E2 17 00 9C 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [05:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [05:57:48]wFMCommunicate OK [05:57:48]requested_item fd.num is exist - process it [05:57:48]SAM_PROTO_GetFieldsCounters [05:57:48]wFMCommunicate request_size=4 [05:57:48]MH_SAM_APDU [05:57:48]CAPDU: 80 13 00 00 [05:57:48]Write to MH i2c: E2 08 00 9D 79 80 13 00 00 00 00 00 00 92 [05:57:48]Write i2c OK [05:57:48]MH_I2C_Read... [05:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:57:48]Read from MH i2c: E2 [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: E2 62 00 [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: E2 62 00 9D 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 75 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [05:57: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 75 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:57:48]wFMCommunicate OK [05:57:48]SAM_PROTO_GetFieldsCounters done [05:57:48]requested_item shift.num is exist - process it [05:57:48]requested_item shift.opened is exist - process it [05:57:48]req_shift_opened [05:57:48]FM_GetShiftState [05:57:48]SAM_PROTO_GetShiftState [05:57:48]wFMCommunicate request_size=4 [05:57:48]MH_SAM_APDU [05:57:48]CAPDU: 80 13 01 00 [05:57:48]Write to MH i2c: E2 08 00 9E 79 80 13 01 00 00 00 00 00 94 [05:57:48]Write i2c OK [05:57:48]MH_I2C_Read... [05:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:48]Read from MH i2c: E2 [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: E2 0E 00 [05:57:48]MH_I2C_Read... [05:57:48]Read from MH i2c: E2 0E 00 9E 79 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 30 [05:57:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [05:57:48]wFMCommunicate OK [05:57:48]SAM_PROTO_GetShiftState done [05:57:48]FM_GetShiftState done [05:57:48]req_shift_opened done [05:57:48]requested_item shift.open_date is exist - process it [05:57:48]req_shift_open_date [05:57:48]req_shift_open_date done [05:57:48]produce_requested_data done [05:57:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94837,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [05:57:48]process_action_free close_receipt [05:57:48]json_value_free [05:57:48]json_value_free done [05:57:48]process_json_proto returns [05:57:48]Send response to host [05:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94837,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [05:57:48]free response buf [05:57:48]execute_script done [05:57:48]execute_script returns [05:57:48]free content buf [05:57:48]Sock 7.Close socket [05:57:48]Sock 7.Thread stoped [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]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:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19: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:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]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:48]accept exits with 9 [06:48:48]New connection [06:48:48]New thread 3066871140 created [06:48:48]Thread 3067014500 joined [06:48:48]Waiting for new connection... [06:48:48] Sock 9.Parse request [06:48:48]Sock 9.Check first char [06:48:48]Sock 9.First char is OK [06:48:48]request: POST /json_proto HTTP/1.0 [06:48:48]Method: POST [06:48:48]URL: /json_proto [06:48:48]Method is POST - this is cgi request [06:48:48]url: /json_proto [06:48:48]query_string will be loaded in cgi processing [06:48:48]execute_cgi json_proto POST (null) [06:48:48]execute_cgi path=json_proto method=POST [06:48:48]POST find Content-Length [06:48:48]Host: 172.17.62.67:8080 [06:48:48]Content-Length: 678 [06:48:48]Content-Type: application/json [06:48:48] [06:48:48]POST finish read [06:48:48]Found Content-Length = 678 [06:48:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.720, "sum" : 800.09, "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" ] } } [06:48:48]execute_script... [06:48:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.720, "sum" : 800.09, "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" ] } } [06:48:48]POST & json_proto [06:48:48]process_json_proto [06:48:48]json parsed OK: [06:48:48]protocol is kg_v1.0 [06:48:48]action value=close_receipt [06:48:48]process_action close_receipt [06:48:48]cmd_close_receipt [06:48:48]MH_GetDate [06:48:48]Write to MH i2c: F0 00 00 9F 79 07 [06:48:48]Write i2c OK [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: F0 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: F0 05 00 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: F0 05 00 9F 79 00 5D A9 EE 65 65 [06:48:48]GetLastDocTimeStamp 1710136678 [06:48:48]current date 1710139741 [06:48:48]FM_GetShiftState [06:48:48]SAM_PROTO_GetShiftState [06:48:48]wFMCommunicate request_size=4 [06:48:48]MH_SAM_APDU [06:48:48]CAPDU: 80 13 01 00 [06:48:48]Write to MH i2c: E2 08 00 A0 79 80 13 01 00 00 00 00 00 96 [06:48:48]Write i2c OK [06:48:48]MH_I2C_Read... [06:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:48]Read from MH i2c: E2 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: E2 0E 00 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: E2 0E 00 A0 79 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 32 [06:48:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [06:48:48]wFMCommunicate OK [06:48:48]SAM_PROTO_GetShiftState done [06:48:48]FM_GetShiftState done [06:48:48]opened in 1710115571 [06:48:48]opened+sec_in_day 1710201971 [06:48:48]quantity*price = 80008 [06:48:48]sum+1 = 80010 [06:48:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 13 11.03.2024 06:49 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94838 ФПД: 178435864367254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T064901&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94838&fm=178435864367254&tin=02508201610067®Number=0000000000090555&sum=80000 [06:48:49]StoreToDocumentArchive [06:48:49]shift 326 fd 94838 [06:48:49]save to /storage/0326/doc_00094838 [06:48:49]save last doc name /storage/0326/doc_00094838 to /storage/kkm_last_doc_name [06:48:49]save OK [06:48:49]Clear old archive folders... [06:48:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:49]tlvbuf is 00469680 [06:48:49]SAM_PROTO_ClearQueue [06:48:49]wFMCommunicate request_size=4 [06:48:49]MH_SAM_APDU [06:48:49]CAPDU: 80 09 00 00 [06:48:49]Write to MH i2c: E2 08 00 AD 79 80 09 00 00 00 00 00 00 98 [06:48:49]Write i2c OK [06:48:49]MH_I2C_Read... [06:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:49]Read from MH i2c: E2 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 03 00 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 03 00 AD 79 00 90 00 9A [06:48:49]RAPDU: 90 00 [06:48:49]wFMCommunicate OK [06:48:49]SAM_PROTO_ClearQueue done [06:48:49]KKMCreateOFDPacket [06:48:49]OFDProtocolAddRootSTLVToBuf [06:48:49]FM_MakeSignedData [06:48:49]FM_MakeSignedData [06:48:49]SAM_PROTO_SignData [06:48:49]wFMCommunicate request_size=4 [06:48:49]MH_SAM_APDU [06:48:49]CAPDU: 80 0D 01 02 [06:48:49]Write to MH i2c: E2 08 00 AE 79 80 0D 01 02 00 00 00 00 A0 [06:48:49]Write i2c OK [06:48:49]MH_I2C_Read... [06:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:49]Read from MH i2c: E2 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 03 00 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 03 00 AE 79 00 90 00 9B [06:48:49]RAPDU: 90 00 [06:48:49]wFMCommunicate OK [06:48:49]wFMCommunicate request_size=255 [06:48:49]MH_SAM_APDU [06:48:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 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 5D A9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 72 01 00 35 04 06 00 A2 [06:48:49]Write to MH i2c: E2 02 01 AF 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 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 5D A9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 72 01 00 35 04 06 00 A2 00 00 B4 [06:48:49]Write i2c OK [06:48:49]MH_I2C_Read... [06:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:49]Read from MH i2c: E2 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 03 00 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 03 00 AF 79 00 90 00 9C [06:48:49]RAPDU: 90 00 [06:48:49]wFMCommunicate OK [06:48:49]wFMCommunicate request_size=10 [06:48:49]MH_SAM_APDU [06:48:49]CAPDU: 80 0D 02 02 05 49 56 4F 90 96 [06:48:49]Write to MH i2c: E2 0D 00 B0 79 80 0D 02 02 05 00 49 56 4F 90 96 00 00 C1 [06:48:49]Write i2c OK [06:48:49]MH_I2C_Read... [06:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:49]Read from MH i2c: E2 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 03 00 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 03 00 B0 79 00 90 00 9D [06:48:49]RAPDU: 90 00 [06:48:49]wFMCommunicate OK [06:48:49]wFMCommunicate request_size=4 [06:48:49]MH_SAM_APDU [06:48:49]CAPDU: 80 0D 03 02 [06:48:49]Write to MH i2c: E2 08 00 B1 79 80 0D 03 02 00 00 00 00 A5 [06:48:49]Write i2c OK [06:48:49]MH_I2C_Read... [06:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:49]Read from MH i2c: E2 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 0B 00 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 0B 00 B1 79 00 3F 42 CD D2 BB A6 3C 03 90 00 66 [06:48:49]RAPDU: 3F 42 CD D2 BB A6 3C 03 90 00 [06:48:49]wFMCommunicate OK [06:48:49]SAM_PROTO_SignData done [06:48:49]FM_MakeSignedData done [06:48:49]CreateOFDProtocolMessage [06:48:49]wFMCommunicate request_size=4 [06:48:49]MH_SAM_APDU [06:48:49]CAPDU: 80 11 00 00 [06:48:49]Write to MH i2c: E2 08 00 B2 79 80 11 00 00 00 00 00 00 A5 [06:48:49]Write i2c OK [06:48:49]MH_I2C_Read... [06:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:49]Read from MH i2c: E2 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 17 00 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: E2 17 00 B2 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F5 [06:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [06:48:49]wFMCommunicate OK [06:48:49]CreateOFDProtocolMessage done [06:48:49]OFDSenderStorePacket 94838 [06:48:49]StoreOFDPacket docnum=94838 [06:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 14 A5 07 01 9C FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 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 5D A9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 72 01 00 35 04 06 00 A2 49 56 4F 90 96 3F 42 CD D2 BB A6 3C 03 [06:48:49]CheckFolder [06:48:49]dirname=/storage/ofd_packets [06:48:49]CheckFolder done [06:48:49]ProducePacketName [06:48:49]name=ofd_packets/00094838 [06:48:49]NVStorageSaveData ofd_packets/00094838 [06:48:49]File name is /storage/ofd_packets/00094838 [06:48:49]Write 301 bytes [06:48:49]NVStorageSaveData done [06:48:49]OFDSenderStorePacket done [06:48:49]KKMCreateOFDPacket done [06:48:49]NVStorageSaveData kkm_last_timestamp [06:48:49]File name is /storage/kkm_last_timestamp [06:48:49]Write 4 bytes [06:48:49]NVStorageSaveData done [06:48:49]ExternCall_PrintAddStr [06:48:49]wPrintStart [06:48:49]Write to MH i2c: 01 00 00 B3 79 2C [06:48:49]Write i2c OK [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: 01 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: 01 07 00 [06:48:49]MH_I2C_Read... [06:48:49]Read from MH i2c: 01 07 00 B3 79 00 80 00 00 00 FF 0F C1 [06:48:49]RasterBufferAndPrint [06:48:49]line Счет N : (1)195774 [06:48:49]line ИНН: 02508201610067 [06:48:49]line Контрольно-Кассовый Чек [06:48:49]line ПРОДАЖА [06:48:49]line ТРК (МРК, ГНК) : 12 [06:48:49]line Товар: 2710124130 [06:48:49]line Аи-92-К-5 [06:48:49]line 12.720 * 62.90 [06:48:49]line = 800.09 [06:48:49]line НДС 12% НСП 1% [06:48:49]line > о реализуемом товаре [06:48:49]line ОКРУГЛЕНИЕ: -0.09 [06:48:49]line ИТОГО: 800.00 [06:48:49]line Внесено: 800.00 [06:48:49]line СДАЧА: 0.00 [06:48:49]line НСП 1% : 7.08 [06:48:49]line НДС 12% : 84.96 [06:48:49]line Наличными: 800.00 [06:48:49]line Безнал.: 0.00 [06:48:49]line Место: АЗС № 6 "Партнер Нефть" [06:48:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [06:48:49]line СНО: Общий режим [06:48:49]line Чек 13 11.03.2024 06:49 [06:48:49]line Смена: 326 ФФД: 1.0 [06:48:49]line ЗНМ: 0300000009 [06:48:49]line РНМ: 0000000000090555 [06:48:49]line Версия ККМ: 001 [06:48:49]line ФМ: 0000000000874811 [06:48:49]line ФД: 94838 [06:48:49]line ФПД: 178435864367254 [06:48:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T064901&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94838&fm=178435864367254&tin=02508201610067®Number=0000000000090555&sum=80000 [06:48:50]OFD Sender: Processing packet 94838 [packets to send 30, broken 29] [06:48:50]ProducePacketName [06:48:50]name=ofd_packets/00094838 [06:48:50]OFD Sender: To server: pG, [06:48:50]CommunicateWithHost lk.salyk.kg:30040 [06:48:50]ConnectInit lk.salyk.kg [06:48:50]written 0, free lines is 4095 [06:48:50]Connected sock=10 [06:48:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 14 A5 07 01 9C FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 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 5D A9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 72 01 00 35 04 06 00 A2 49 56 4F 90 96 3F 42 CD D2 BB A6 3C 03 [06:48:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 0C 03 47 00 53 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 72 01 00 F4 03 04 00 B7 54 EE 65 B6 04 01 00 00 A1 4B 9A E2 32 32 9C 24 [06:48:50]CommunicateWithHost err = 0 [06:48:50]CheckOFDResponse [06:48:50]1017 (14) - 77093643461234 [06:48:50]1041 (16) - 0000000000874811 [06:48:50]1040 (4) - 94838 [06:48:50]1012 (4) - 11.03.2024 00:47 [06:48:50]1206 (1) - 0 [06:48:50]OFD Sender: Remove packet 94838 [06:48:50]ProducePacketName [06:48:50]name=ofd_packets/00094838 [06:48:50]NVStorageDeleteData [06:48:50]Write to MH i2c: 01 00 00 DE 79 57 [06:48:50]Write i2c OK [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: 01 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: 01 07 00 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: 01 07 00 DE 79 00 80 00 00 00 57 0D 42 [06:48:50]RasterBufferAndPrint [06:48:50]line [06:48:50]line [06:48:50]line [06:48:50]line [06:48:50]line [06:48:50]written 0, free lines is 3421 [06:48:50]process_action close_receipt done [06:48:50]requested_data is exist [06:48:50]produce_requested_data [06:48:50]requested_item fm.sn is exist - process it [06:48:50]wFMCommunicate request_size=4 [06:48:50]MH_SAM_APDU [06:48:50]CAPDU: 80 11 00 00 [06:48:50]Write to MH i2c: E2 08 00 E5 79 80 11 00 00 00 00 00 00 D8 [06:48:50]Write i2c OK [06:48:50]MH_I2C_Read... [06:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:50]Read from MH i2c: E2 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: E2 17 00 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: E2 17 00 E5 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [06:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [06:48:50]wFMCommunicate OK [06:48:50]requested_item fd.num is exist - process it [06:48:50]SAM_PROTO_GetFieldsCounters [06:48:50]wFMCommunicate request_size=4 [06:48:50]MH_SAM_APDU [06:48:50]CAPDU: 80 13 00 00 [06:48:50]Write to MH i2c: E2 08 00 E6 79 80 13 00 00 00 00 00 00 DB [06:48:50]Write i2c OK [06:48:50]MH_I2C_Read... [06:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:50]Read from MH i2c: E2 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: E2 62 00 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: E2 62 00 E6 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [06:48: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:48:50]wFMCommunicate OK [06:48:50]SAM_PROTO_GetFieldsCounters done [06:48:50]requested_item shift.num is exist - process it [06:48:50]requested_item shift.opened is exist - process it [06:48:50]req_shift_opened [06:48:50]FM_GetShiftState [06:48:50]SAM_PROTO_GetShiftState [06:48:50]wFMCommunicate request_size=4 [06:48:50]MH_SAM_APDU [06:48:50]CAPDU: 80 13 01 00 [06:48:50]Write to MH i2c: E2 08 00 E7 79 80 13 01 00 00 00 00 00 DD [06:48:50]Write i2c OK [06:48:50]MH_I2C_Read... [06:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:50]OFD Sender: No OFD packet to send [06:48:50]Read from MH i2c: E2 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: E2 0E 00 [06:48:50]MH_I2C_Read... [06:48:50]Read from MH i2c: E2 0E 00 E7 79 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 79 [06:48:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [06:48:50]wFMCommunicate OK [06:48:50]SAM_PROTO_GetShiftState done [06:48:50]FM_GetShiftState done [06:48:50]req_shift_opened done [06:48:50]requested_item shift.open_date is exist - process it [06:48:50]req_shift_open_date [06:48:50]req_shift_open_date done [06:48:50]produce_requested_data done [06:48:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94838,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [06:48:50]process_action_free close_receipt [06:48:50]json_value_free [06:48:50]json_value_free done [06:48:50]process_json_proto returns [06:48:50]Send response to host [06:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94838,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [06:48:50]free response buf [06:48:50]execute_script done [06:48:50]execute_script returns [06:48:50]free content buf [06:48:50]Sock 9.Close socket [06:48:50]Sock 9.Thread stoped [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51: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:41]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:21:57]accept exits with 7 [07:21:57]New connection [07:21:57]New thread 3067014500 created [07:21:57]Thread 3066871140 joined [07:21:57]Waiting for new connection... [07:21:57] Sock 7.Parse request [07:21:57]Sock 7.Check first char [07:21:57]Sock 7.First char is OK [07:21:57]request: POST /json_proto HTTP/1.0 [07:21:57]Method: POST [07:21:57]URL: /json_proto [07:21:57]Method is POST - this is cgi request [07:21:57]url: /json_proto [07:21:57]query_string will be loaded in cgi processing [07:21:57]execute_cgi json_proto POST (null) [07:21:57]execute_cgi path=json_proto method=POST [07:21:57]POST find Content-Length [07:21:57]Host: 172.17.62.67:8080 [07:21:57]Content-Length: 677 [07:21:57]Content-Type: application/json [07:21:57] [07:21:57]POST finish read [07:21:57]Found Content-Length = 677 [07:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:21:57]execute_script... [07:21:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:21:57]POST & json_proto [07:21:57]process_json_proto [07:21:57]json parsed OK: [07:21:57]protocol is kg_v1.0 [07:21:57]action value=close_receipt [07:21:57]process_action close_receipt [07:21:57]cmd_close_receipt [07:21:57]MH_GetDate [07:21:57]Write to MH i2c: F0 00 00 E8 79 50 [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: F0 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: F0 05 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: F0 05 00 E8 79 00 23 B1 EE 65 7C [07:21:57]GetLastDocTimeStamp 1710139741 [07:21:57]current date 1710141731 [07:21:57]FM_GetShiftState [07:21:57]SAM_PROTO_GetShiftState [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 13 01 00 [07:21:57]Write to MH i2c: E2 08 00 E9 79 80 13 01 00 00 00 00 00 DF [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:58]Read from MH i2c: E2 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: E2 0E 00 [07:21:58]MH_I2C_Read... [07:21:58]Read from MH i2c: E2 0E 00 E9 79 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7B [07:21:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [07:21:58]wFMCommunicate OK [07:21:58]SAM_PROTO_GetShiftState done [07:21:58]FM_GetShiftState done [07:21:58]opened in 1710115571 [07:21:58]opened+sec_in_day 1710201971 [07:21:58]quantity*price = 50005 [07:21:58]sum+1 = 50007 [07:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 14 11.03.2024 07:22 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94839 ФПД: 2634164559285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T072211&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94839&fm=2634164559285&tin=02508201610067®Number=0000000000090555&sum=50000 [07:21:59]StoreToDocumentArchive [07:21:59]shift 326 fd 94839 [07:21:59]save to /storage/0326/doc_00094839 [07:21:59]save last doc name /storage/0326/doc_00094839 to /storage/kkm_last_doc_name [07:21:59]save OK [07:21:59]Clear old archive folders... [07:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:59]tlvbuf is 001D3D10 [07:21:59]SAM_PROTO_ClearQueue [07:21:59]wFMCommunicate request_size=4 [07:21:59]MH_SAM_APDU [07:21:59]CAPDU: 80 09 00 00 [07:21:59]Write to MH i2c: E2 08 00 F6 79 80 09 00 00 00 00 00 00 E1 [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:59]Read from MH i2c: E2 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 03 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 03 00 F6 79 00 90 00 E3 [07:21:59]RAPDU: 90 00 [07:21:59]wFMCommunicate OK [07:21:59]SAM_PROTO_ClearQueue done [07:21:59]KKMCreateOFDPacket [07:21:59]OFDProtocolAddRootSTLVToBuf [07:21:59]FM_MakeSignedData [07:21:59]FM_MakeSignedData [07:21:59]SAM_PROTO_SignData [07:21:59]wFMCommunicate request_size=4 [07:21:59]MH_SAM_APDU [07:21:59]CAPDU: 80 0D 01 02 [07:21:59]Write to MH i2c: E2 08 00 F7 79 80 0D 01 02 00 00 00 00 E9 [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 [07:21:59]MH_I2C_Read... [07:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:59]Read from MH i2c: E2 03 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 03 00 F7 79 00 90 00 E4 [07:21:59]RAPDU: 90 00 [07:21:59]wFMCommunicate OK [07:21:59]wFMCommunicate request_size=255 [07:21:59]MH_SAM_APDU [07:21:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 23 B1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 72 01 00 35 04 06 00 02 [07:21:59]Write to MH i2c: E2 02 01 F8 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 23 B1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 72 01 00 35 04 06 00 02 00 00 FA [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:59]Read from MH i2c: E2 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 03 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 03 00 F8 79 00 90 00 E5 [07:21:59]RAPDU: 90 00 [07:21:59]wFMCommunicate OK [07:21:59]wFMCommunicate request_size=10 [07:21:59]MH_SAM_APDU [07:21:59]CAPDU: 80 0D 02 02 05 65 50 71 5D B5 [07:21:59]Write to MH i2c: E2 0D 00 F9 79 80 0D 02 02 05 00 65 50 71 5D B5 00 00 2E [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:59]Read from MH i2c: E2 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 03 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 03 00 F9 79 00 90 00 E6 [07:21:59]RAPDU: 90 00 [07:21:59]wFMCommunicate OK [07:21:59]wFMCommunicate request_size=4 [07:21:59]MH_SAM_APDU [07:21:59]CAPDU: 80 0D 03 02 [07:21:59]Write to MH i2c: E2 08 00 FA 79 80 0D 03 02 00 00 00 00 EE [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:59]Read from MH i2c: E2 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 0B 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 0B 00 FA 79 00 84 03 34 DF D9 7C EC 46 90 00 10 [07:21:59]RAPDU: 84 03 34 DF D9 7C EC 46 90 00 [07:21:59]wFMCommunicate OK [07:21:59]SAM_PROTO_SignData done [07:21:59]FM_MakeSignedData done [07:21:59]CreateOFDProtocolMessage [07:21:59]wFMCommunicate request_size=4 [07:21:59]MH_SAM_APDU [07:21:59]CAPDU: 80 11 00 00 [07:21:59]Write to MH i2c: E2 08 00 FB 79 80 11 00 00 00 00 00 00 EE [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:59]Read from MH i2c: E2 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 17 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: E2 17 00 FB 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3E [07:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:21:59]wFMCommunicate OK [07:21:59]CreateOFDProtocolMessage done [07:21:59]OFDSenderStorePacket 94839 [07:21:59]StoreOFDPacket docnum=94839 [07:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 00 90 07 01 C0 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 23 B1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 72 01 00 35 04 06 00 02 65 50 71 5D B5 84 03 34 DF D9 7C EC 46 [07:21:59]CheckFolder [07:21:59]dirname=/storage/ofd_packets [07:21:59]CheckFolder done [07:21:59]ProducePacketName [07:21:59]name=ofd_packets/00094839 [07:21:59]NVStorageSaveData ofd_packets/00094839 [07:21:59]File name is /storage/ofd_packets/00094839 [07:21:59]Write 301 bytes [07:21:59]NVStorageSaveData done [07:21:59]OFDSenderStorePacket done [07:21:59]KKMCreateOFDPacket done [07:21:59]NVStorageSaveData kkm_last_timestamp [07:21:59]File name is /storage/kkm_last_timestamp [07:21:59]Write 4 bytes [07:21:59]NVStorageSaveData done [07:21:59]ExternCall_PrintAddStr [07:21:59]wPrintStart [07:21:59]Write to MH i2c: 01 00 00 FC 79 75 [07:21:59]Write i2c OK [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: 01 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: 01 07 00 [07:21:59]MH_I2C_Read... [07:21:59]Read from MH i2c: 01 07 00 FC 79 00 80 00 00 00 FF 0F 0A [07:21:59]RasterBufferAndPrint [07:21:59]line Счет N : (1)195775 [07:21:59]line ИНН: 02508201610067 [07:21:59]line Контрольно-Кассовый Чек [07:21:59]line ПРОДАЖА [07:21:59]line ТРК (МРК, ГНК) : 22 [07:21:59]line Товар: 2710124130 [07:21:59]line Аи-92-К-5 [07:21:59]line 7.950 * 62.90 [07:21:59]line = 500.06 [07:21:59]line НДС 12% НСП 1% [07:21:59]line > о реализуемом товаре [07:21:59]line ОКРУГЛЕНИЕ: -0.06 [07:21:59]line ИТОГО: 500.00 [07:21:59]line Внесено: 500.00 [07:21:59]line СДАЧА: 0.00 [07:21:59]line НСП 1% : 4.42 [07:21:59]line НДС 12% : 53.10 [07:21:59]line Наличными: 500.00 [07:21:59]line Безнал.: 0.00 [07:21:59]line Место: АЗС № 6 "Партнер Нефть" [07:21:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:21:59]line СНО: Общий режим [07:21:59]line Чек 14 11.03.2024 07:22 [07:21:59]line Смена: 326 ФФД: 1.0 [07:21:59]line ЗНМ: 0300000009 [07:21:59]line РНМ: 0000000000090555 [07:21:59]line Версия ККМ: 001 [07:21:59]line ФМ: 0000000000874811 [07:21:59]line ФД: 94839 [07:21:59]line ФПД: 2634164559285 [07:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T072211&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94839&fm=2634164559285&tin=02508201610067®Number=0000000000090555&sum=50000 [07:21:59]OFD Sender: Processing packet 94839 [packets to send 30, broken 29] [07:21:59]ProducePacketName [07:21:59]name=ofd_packets/00094839 [07:21:59]OFD Sender: To server: pG, [07:21:59]CommunicateWithHost lk.salyk.kg:30040 [07:21:59]ConnectInit lk.salyk.kg [07:21:59]written 0, free lines is 4095 [07:22:00]Connected sock=10 [07:22: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 31 31 0F 01 00 00 00 90 07 01 C0 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 23 B1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 72 01 00 35 04 06 00 02 65 50 71 5D B5 84 03 34 DF D9 7C EC 46 [07:22: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 31 31 4F 00 00 00 38 29 47 00 7F 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 31 31 10 04 04 00 77 72 01 00 F4 03 04 00 7D 5C EE 65 B6 04 01 00 00 89 DC 5C 4E 35 69 3A 65 [07:22:00]CommunicateWithHost err = 0 [07:22:00]CheckOFDResponse [07:22:00]1017 (14) - 77093643461234 [07:22:00]1041 (16) - 0000000000874811 [07:22:00]1040 (4) - 94839 [07:22:00]1012 (4) - 11.03.2024 01:21 [07:22:00]1206 (1) - 0 [07:22:00]OFD Sender: Remove packet 94839 [07:22:00]ProducePacketName [07:22:00]name=ofd_packets/00094839 [07:22:00]NVStorageDeleteData [07:22:00]Write to MH i2c: 01 00 00 27 7A A1 [07:22:00]Write i2c OK [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: 01 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: 01 07 00 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: 01 07 00 27 7A 00 80 00 00 00 4E 0D 83 [07:22:00]RasterBufferAndPrint [07:22:00]line [07:22:00]line [07:22:00]line [07:22:00]line [07:22:00]line [07:22:00]written 0, free lines is 3410 [07:22:00]process_action close_receipt done [07:22:00]requested_data is exist [07:22:00]produce_requested_data [07:22:00]requested_item fm.sn is exist - process it [07:22:00]wFMCommunicate request_size=4 [07:22:00]MH_SAM_APDU [07:22:00]CAPDU: 80 11 00 00 [07:22:00]Write to MH i2c: E2 08 00 2E 7A 80 11 00 00 00 00 00 00 22 [07:22:00]Write i2c OK [07:22:00]MH_I2C_Read... [07:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:00]Read from MH i2c: E2 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 17 00 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 17 00 2E 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 72 [07:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:22:00]wFMCommunicate OK [07:22:00]requested_item fd.num is exist - process it [07:22:00]SAM_PROTO_GetFieldsCounters [07:22:00]wFMCommunicate request_size=4 [07:22:00]MH_SAM_APDU [07:22:00]CAPDU: 80 13 00 00 [07:22:00]Write to MH i2c: E2 08 00 2F 7A 80 13 00 00 00 00 00 00 25 [07:22:00]Write i2c OK [07:22:00]MH_I2C_Read... [07:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:00]Read from MH i2c: E2 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 62 00 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 62 00 2F 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 77 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [07:22: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 77 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:00]wFMCommunicate OK [07:22:00]SAM_PROTO_GetFieldsCounters done [07:22:00]requested_item shift.num is exist - process it [07:22:00]requested_item shift.opened is exist - process it [07:22:00]req_shift_opened [07:22:00]FM_GetShiftState [07:22:00]SAM_PROTO_GetShiftState [07:22:00]wFMCommunicate request_size=4 [07:22:00]MH_SAM_APDU [07:22:00]CAPDU: 80 13 01 00 [07:22:00]Write to MH i2c: E2 08 00 30 7A 80 13 01 00 00 00 00 00 27 [07:22:00]Write i2c OK [07:22:00]MH_I2C_Read... [07:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:00]Read from MH i2c: E2 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 0E 00 [07:22:00]MH_I2C_Read... [07:22:00]Read from MH i2c: E2 0E 00 30 7A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C3 [07:22:00]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [07:22:00]wFMCommunicate OK [07:22:00]SAM_PROTO_GetShiftState done [07:22:00]FM_GetShiftState done [07:22:00]req_shift_opened done [07:22:00]requested_item shift.open_date is exist - process it [07:22:00]req_shift_open_date [07:22:00]req_shift_open_date done [07:22:00]produce_requested_data done [07:22:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94839,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [07:22:00]process_action_free close_receipt [07:22:00]json_value_free [07:22:00]json_value_free done [07:22:00]process_json_proto returns [07:22:00]Send response to host [07:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94839,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [07:22:00]free response buf [07:22:00]execute_script done [07:22:00]execute_script returns [07:22:00]free content buf [07:22:00]Sock 7.Close socket [07:22:00]Sock 7.Thread stoped [07:22:00]OFD Sender: No OFD packet to send [07:22:05]OFD Sender: No OFD packet to send [07:22:10]OFD Sender: No OFD packet to send [07:22:15]OFD Sender: No OFD packet to send [07:22:20]OFD Sender: No OFD packet to send [07:22:25]OFD Sender: No OFD packet to send [07:22:30]OFD Sender: No OFD packet to send [07:22:35]OFD Sender: No OFD packet to send [07:22:40]OFD Sender: No OFD packet to send [07:22:45]OFD Sender: No OFD packet to send [07:22:50]OFD Sender: No OFD packet to send [07:22:55]OFD Sender: No OFD packet to send [07:23:00]OFD Sender: No OFD packet to send [07:23:05]OFD Sender: No OFD packet to send [07:23:10]OFD Sender: No OFD packet to send [07:23:15]OFD Sender: No OFD packet to send [07:23:20]OFD Sender: No OFD packet to send [07:23:25]OFD Sender: No OFD packet to send [07:23:30]OFD Sender: No OFD packet to send [07:23:35]OFD Sender: No OFD packet to send [07:23:40]OFD Sender: No OFD packet to send [07:23:45]OFD Sender: No OFD packet to send [07:23:50]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]accept exits with 9 [07:41:51]New connection [07:41:51]New thread 3066871140 created [07:41:51]Thread 3067014500 joined [07:41:51]Waiting for new connection... [07:41:51] Sock 9.Parse request [07:41:51]Sock 9.Check first char [07:41:51]Sock 9.First char is OK [07:41:51]request: POST /json_proto HTTP/1.0 [07:41:51]Method: POST [07:41:51]URL: /json_proto [07:41:51]Method is POST - this is cgi request [07:41:51]url: /json_proto [07:41:51]query_string will be loaded in cgi processing [07:41:51]execute_cgi json_proto POST (null) [07:41:51]execute_cgi path=json_proto method=POST [07:41:51]POST find Content-Length [07:41:51]Host: 172.17.62.67:8080 [07:41:51]Content-Length: 1191 [07:41:51]Content-Type: application/json [07:41:51] [07:41:51]POST finish read [07:41:51]Found Content-Length = 1191 [07:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195776\u000A11.03.2024 07:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 7090.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:51]execute_script... [07:41:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195776\u000A11.03.2024 07:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 7090.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:51]POST & json_proto [07:41:51]process_json_proto [07:41:51]json parsed OK: [07:41:51]protocol is kg_v1.0 [07:41:51]action value=print_text [07:41:51]process_action print_text [07:41:51]cmd_print_text [07:41:51]ExternCall_PrintAddStr [07:41:51]wPrintStart [07:41:51]Write to MH i2c: 01 00 00 31 7A AB [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: 01 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: 01 07 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: 01 07 00 31 7A 00 80 00 00 00 FF 0F 40 [07:41:51]RasterBufferAndPrint [07:41:51]line *****ТОВАРНЫЙ ЧЕК***** [07:41:51]line АЗС 6 [07:41:51]line Партнер нефть [07:41:51]line 02508201610067 [07:41:51]line Кассир : Карыбаев Б. [07:41:51]line Счет N : (1)195776 [07:41:51]line 11.03.2024 07:36 [07:41:51]line ПРОДАЖА [07:41:51]line ТРК (МРК, ГНК): 51 [07:41:51]line Вид ГСМ : 2710194210 [07:41:51]line ДТ-К-5 [07:41:51]line 100.000 x 70.90 [07:41:51]line ИТОГ: 7090.00 [07:41:51]line Тип оплаты: Талоны: Топливная Карта [07:41:51]line 74820 [07:41:51]line ______________________ [07:41:51]line (подпись) [07:41:51]written 0, free lines is 4095 [07:41:51]Write to MH i2c: 01 00 00 45 7A BF [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: 01 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: 01 07 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: 01 07 00 45 7A 00 80 00 00 00 60 0E B4 [07:41:51]RasterBufferAndPrint [07:41:51]line [07:41:51]line [07:41:51]line [07:41:51]line [07:41:51]line [07:41:51]written 0, free lines is 3684 [07:41:51]process_action print_text done [07:41:51]requested_data is exist [07:41:51]produce_requested_data [07:41:51]requested_item fm.sn is exist - process it [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 11 00 00 [07:41:51]Write to MH i2c: E2 08 00 4C 7A 80 11 00 00 00 00 00 00 40 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 17 00 [07:41:51]MH_I2C_Read... [07:41:51]OFD Sender: No OFD packet to send [07:41:51]Read from MH i2c: E2 17 00 4C 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 90 [07:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:41:51]wFMCommunicate OK [07:41:51]requested_item fd.num is exist - process it [07:41:51]SAM_PROTO_GetFieldsCounters [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 13 00 00 [07:41:51]Write to MH i2c: E2 08 00 4D 7A 80 13 00 00 00 00 00 00 43 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 62 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 62 00 4D 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 77 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [07:41: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 77 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:51]wFMCommunicate OK [07:41:51]SAM_PROTO_GetFieldsCounters done [07:41:51]requested_item shift.num is exist - process it [07:41:51]requested_item shift.opened is exist - process it [07:41:51]req_shift_opened [07:41:51]FM_GetShiftState [07:41:51]SAM_PROTO_GetShiftState [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 13 01 00 [07:41:51]Write to MH i2c: E2 08 00 4E 7A 80 13 01 00 00 00 00 00 45 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 0E 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 0E 00 4E 7A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E1 [07:41:51]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [07:41:51]wFMCommunicate OK [07:41:51]SAM_PROTO_GetShiftState done [07:41:51]FM_GetShiftState done [07:41:51]req_shift_opened done [07:41:51]requested_item shift.open_date is exist - process it [07:41:51]req_shift_open_date [07:41:51]req_shift_open_date done [07:41:51]produce_requested_data done [07:41:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94839,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [07:41:51]process_action_free print_text [07:41:51]json_value_free [07:41:51]json_value_free done [07:41:51]process_json_proto returns [07:41:51]Send response to host [07:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94839,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [07:41:51]free response buf [07:41:51]execute_script done [07:41:51]execute_script returns [07:41:51]free content buf [07:41:51]Sock 9.Close socket [07:41:51]Sock 9.Thread stoped [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:18]accept exits with 7 [08:01:18]New connection [08:01:18]New thread 3067014500 created [08:01:18]Thread 3066871140 joined [08:01:18]Waiting for new connection... [08:01:18] Sock 7.Parse request [08:01:18]Sock 7.Check first char [08:01:18]Sock 7.First char is OK [08:01:18]request: POST /json_proto HTTP/1.0 [08:01:18]Method: POST [08:01:18]URL: /json_proto [08:01:18]Method is POST - this is cgi request [08:01:18]url: /json_proto [08:01:18]query_string will be loaded in cgi processing [08:01:18]execute_cgi json_proto POST (null) [08:01:18]execute_cgi path=json_proto method=POST [08:01:18]POST find Content-Length [08:01:18]Host: 172.17.62.67:8080 [08:01:18]Content-Length: 819 [08:01:18]Content-Type: application/json [08:01:18] [08:01:18]POST finish read [08:01:18]Found Content-Length = 819 [08:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.17, "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" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:18]execute_script... [08:01:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.17, "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" : 1500.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:18]POST & json_proto [08:01:18]process_json_proto [08:01:18]json parsed OK: [08:01:18]protocol is kg_v1.0 [08:01:18]action value=close_receipt [08:01:18]process_action close_receipt [08:01:18]cmd_close_receipt [08:01:18]MH_GetDate [08:01:18]Write to MH i2c: F0 00 00 4F 7A B8 [08:01:18]Write i2c OK [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: F0 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: F0 05 00 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: F0 05 00 4F 7A 00 5B BA EE 65 25 [08:01:18]GetLastDocTimeStamp 1710141731 [08:01:18]current date 1710144091 [08:01:18]FM_GetShiftState [08:01:18]SAM_PROTO_GetShiftState [08:01:18]wFMCommunicate request_size=4 [08:01:18]MH_SAM_APDU [08:01:18]CAPDU: 80 13 01 00 [08:01:18]Write to MH i2c: E2 08 00 50 7A 80 13 01 00 00 00 00 00 47 [08:01:18]Write i2c OK [08:01:18]MH_I2C_Read... [08:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:18]Read from MH i2c: E2 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: E2 0E 00 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: E2 0E 00 50 7A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E3 [08:01:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:01:18]wFMCommunicate OK [08:01:18]SAM_PROTO_GetShiftState done [08:01:18]FM_GetShiftState done [08:01:18]opened in 1710115571 [08:01:18]opened+sec_in_day 1710201971 [08:01:18]quantity*price = 150016 [08:01:18]sum+1 = 150018 [08:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.17 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 0.00 Безнал.: 1500.17 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 15 11.03.2024 08:01 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94840 ФПД: 176465184305559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T080131&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94840&fm=176465184305559&tin=02508201610067®Number=0000000000090555&sum=150017 [08:01:19]StoreToDocumentArchive [08:01:19]shift 326 fd 94840 [08:01:19]save to /storage/0326/doc_00094840 [08:01:19]save last doc name /storage/0326/doc_00094840 to /storage/kkm_last_doc_name [08:01:19]save OK [08:01:19]Clear old archive folders... [08:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:19]tlvbuf is 0020C850 [08:01:19]SAM_PROTO_ClearQueue [08:01:19]wFMCommunicate request_size=4 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 09 00 00 [08:01:19]Write to MH i2c: E2 08 00 5D 7A 80 09 00 00 00 00 00 00 49 [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:19]Read from MH i2c: E2 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 5D 7A 00 90 00 4B [08:01:19]RAPDU: 90 00 [08:01:19]wFMCommunicate OK [08:01:19]SAM_PROTO_ClearQueue done [08:01:19]KKMCreateOFDPacket [08:01:19]OFDProtocolAddRootSTLVToBuf [08:01:19]FM_MakeSignedData [08:01:19]FM_MakeSignedData [08:01:19]SAM_PROTO_SignData [08:01:19]wFMCommunicate request_size=4 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 0D 01 02 [08:01:19]Write to MH i2c: E2 08 00 5E 7A 80 0D 01 02 00 00 00 00 51 [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:19]Read from MH i2c: E2 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 5E 7A 00 90 00 4C [08:01:19]RAPDU: 90 00 [08:01:19]wFMCommunicate OK [08:01:19]wFMCommunicate request_size=255 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5B BA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 72 01 00 35 04 06 00 A0 [08:01:19]Write to MH i2c: E2 02 01 5F 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5B BA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 72 01 00 35 04 06 00 A0 00 00 66 [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:19]Read from MH i2c: E2 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 5F 7A 00 90 00 4D [08:01:19]RAPDU: 90 00 [08:01:19]wFMCommunicate OK [08:01:19]wFMCommunicate request_size=10 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 0D 02 02 05 7E 80 A0 31 97 [08:01:19]Write to MH i2c: E2 0D 00 60 7A 80 0D 02 02 05 00 7E 80 A0 31 97 00 00 C4 [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:19]Read from MH i2c: E2 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 03 00 60 7A 00 90 00 4E [08:01:19]RAPDU: 90 00 [08:01:19]wFMCommunicate OK [08:01:19]wFMCommunicate request_size=4 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 0D 03 02 [08:01:19]Write to MH i2c: E2 08 00 61 7A 80 0D 03 02 00 00 00 00 56 [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:19]Read from MH i2c: E2 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 0B 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 0B 00 61 7A 00 C0 4A 5A 45 64 BE 8B 72 90 00 1F [08:01:19]RAPDU: C0 4A 5A 45 64 BE 8B 72 90 00 [08:01:19]wFMCommunicate OK [08:01:19]SAM_PROTO_SignData done [08:01:19]FM_MakeSignedData done [08:01:19]CreateOFDProtocolMessage [08:01:19]wFMCommunicate request_size=4 [08:01:19]MH_SAM_APDU [08:01:19]CAPDU: 80 11 00 00 [08:01:19]Write to MH i2c: E2 08 00 62 7A 80 11 00 00 00 00 00 00 56 [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:19]Read from MH i2c: E2 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 17 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: E2 17 00 62 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A6 [08:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:01:19]wFMCommunicate OK [08:01:19]CreateOFDProtocolMessage done [08:01:19]OFDSenderStorePacket 94840 [08:01:19]StoreOFDPacket docnum=94840 [08:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3F 93 07 01 9A CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5B BA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 72 01 00 35 04 06 00 A0 7E 80 A0 31 97 C0 4A 5A 45 64 BE 8B 72 [08:01:19]CheckFolder [08:01:19]dirname=/storage/ofd_packets [08:01:19]CheckFolder done [08:01:19]ProducePacketName [08:01:19]name=ofd_packets/00094840 [08:01:19]NVStorageSaveData ofd_packets/00094840 [08:01:19]File name is /storage/ofd_packets/00094840 [08:01:19]Write 301 bytes [08:01:19]NVStorageSaveData done [08:01:19]OFDSenderStorePacket done [08:01:19]KKMCreateOFDPacket done [08:01:19]NVStorageSaveData kkm_last_timestamp [08:01:19]File name is /storage/kkm_last_timestamp [08:01:19]Write 4 bytes [08:01:19]NVStorageSaveData done [08:01:19]ExternCall_PrintAddStr [08:01:19]wPrintStart [08:01:19]Write to MH i2c: 01 00 00 63 7A DD [08:01:19]OFD Sender: Processing packet 94840 [packets to send 30, broken 29] [08:01:19]ProducePacketName [08:01:19]name=ofd_packets/00094840 [08:01:19]OFD Sender: To server: pG, [08:01:19]CommunicateWithHost lk.salyk.kg:30040 [08:01:19]ConnectInit lk.salyk.kg [08:01:19]Write i2c OK [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: 01 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: 01 07 00 [08:01:19]MH_I2C_Read... [08:01:19]Read from MH i2c: 01 07 00 63 7A 00 80 00 00 00 FF 0F 72 [08:01:19]RasterBufferAndPrint [08:01:19]line Счет N : (1)195777 [08:01:19]line ИНН: 02508201610067 [08:01:19]line Контрольно-Кассовый Чек [08:01:19]line ПРОДАЖА [08:01:19]line ТРК (МРК, ГНК) : 12 [08:01:19]line Товар: 2710124130 [08:01:19]line Аи-92-К-5 [08:01:19]line 23.850 * 62.90 [08:01:19]line = 1500.17 [08:01:19]line НДС 12% НСП 1% [08:01:19]line > о реализуемом товаре [08:01:19]line ИТОГО: 1500.17 [08:01:19]line НСП 1% : 13.28 [08:01:19]line НДС 12% : 159.31 [08:01:19]line Наличными: 0.00 [08:01:19]line Безнал.: 1500.17 [08:01:19]line Место: АЗС № 6 "Партнер Нефть" [08:01:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:01:19]line СНО: Общий режим [08:01:19]line Чек 15 11.03.2024 08:01 [08:01:19]line Смена: 326 ФФД: 1.0 [08:01:19]line ЗНМ: 0300000009 [08:01:19]line РНМ: 0000000000090555 [08:01:19]line Версия ККМ: 001 [08:01:19]line Платежная система: Бакай Банк [08:01:19]line ФМ: 0000000000874811 [08:01:19]line ФД: 94840 [08:01:19]line ФПД: 176465184305559 [08:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T080131&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94840&fm=176465184305559&tin=02508201610067®Number=0000000000090555&sum=150017 [08:01:20]Connected sock=10 [08:01: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 31 31 0F 01 00 00 3F 93 07 01 9A CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 5B BA EE 65 0E 04 04 00 46 written 0, free lines is 4095 [08:01:20]01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 72 01 00 35 04 06 00 A0 7E 80 A0 31 97 C0 4A 5A 45 64 BE 8B 72 [08:01: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 31 31 4F 00 00 00 8F B3 47 00 D4 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 31 31 10 04 04 00 78 72 01 00 F4 03 04 00 B5 65 EE 65 B6 04 01 00 00 46 3B D3 17 7D F2 8D 99 [08:01:20]CommunicateWithHost err = 0 [08:01:20]CheckOFDResponse [08:01:20]1017 (14) - 77093643461234 [08:01:20]1041 (16) - 0000000000874811 [08:01:20]1040 (4) - 94840 [08:01:20]1012 (4) - 11.03.2024 02:00 [08:01:20]1206 (1) - 0 [08:01:20]OFD Sender: Remove packet 94840 [08:01:20]ProducePacketName [08:01:20]name=ofd_packets/00094840 [08:01:20]NVStorageDeleteData [08:01:20]Write to MH i2c: 01 00 00 8D 7A 07 [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: 01 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: 01 07 00 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: 01 07 00 8D 7A 00 80 00 00 00 57 0D F2 [08:01:20]RasterBufferAndPrint [08:01:20]line [08:01:20]line [08:01:20]line [08:01:20]line [08:01:20]line [08:01:20]written 0, free lines is 3421 [08:01:20]process_action close_receipt done [08:01:20]requested_data is exist [08:01:20]produce_requested_data [08:01:20]requested_item fm.sn is exist - process it [08:01:20]wFMCommunicate request_size=4 [08:01:20]MH_SAM_APDU [08:01:20]CAPDU: 80 11 00 00 [08:01:20]Write to MH i2c: E2 08 00 94 7A 80 11 00 00 00 00 00 00 88 [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:20]Read from MH i2c: E2 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 17 00 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 17 00 94 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D8 [08:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:01:20]wFMCommunicate OK [08:01:20]requested_item fd.num is exist - process it [08:01:20]SAM_PROTO_GetFieldsCounters [08:01:20]wFMCommunicate request_size=4 [08:01:20]MH_SAM_APDU [08:01:20]CAPDU: 80 13 00 00 [08:01:20]Write to MH i2c: E2 08 00 95 7A 80 13 00 00 00 00 00 00 8B [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:20]OFD Sender: No OFD packet to send [08:01:20]Read from MH i2c: E2 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 62 00 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 62 00 95 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [08:01:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:20]wFMCommunicate OK [08:01:20]SAM_PROTO_GetFieldsCounters done [08:01:20]requested_item shift.num is exist - process it [08:01:20]requested_item shift.opened is exist - process it [08:01:20]req_shift_opened [08:01:20]FM_GetShiftState [08:01:20]SAM_PROTO_GetShiftState [08:01:20]wFMCommunicate request_size=4 [08:01:20]MH_SAM_APDU [08:01:20]CAPDU: 80 13 01 00 [08:01:20]Write to MH i2c: E2 08 00 96 7A 80 13 01 00 00 00 00 00 8D [08:01:20]Write i2c OK [08:01:20]MH_I2C_Read... [08:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:20]Read from MH i2c: E2 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 0E 00 [08:01:20]MH_I2C_Read... [08:01:20]Read from MH i2c: E2 0E 00 96 7A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 29 [08:01:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:01:20]wFMCommunicate OK [08:01:20]SAM_PROTO_GetShiftState done [08:01:20]FM_GetShiftState done [08:01:20]req_shift_opened done [08:01:20]requested_item shift.open_date is exist - process it [08:01:20]req_shift_open_date [08:01:20]req_shift_open_date done [08:01:20]produce_requested_data done [08:01:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94840,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:01:20]process_action_free close_receipt [08:01:20]json_value_free [08:01:20]json_value_free done [08:01:20]process_json_proto returns [08:01:20]Send response to host [08:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94840,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:01:20]free response buf [08:01:20]execute_script done [08:01:20]execute_script returns [08:01:20]free content buf [08:01:20]Sock 7.Close socket [08:01:20]Sock 7.Thread stoped [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:05]accept exits with 9 [08:06:05]New connection [08:06:05]New thread 3066871140 created [08:06:05]Thread 3067014500 joined [08:06:05]Waiting for new connection... [08:06:05] Sock 9.Parse request [08:06:05]Sock 9.Check first char [08:06:05]Sock 9.First char is OK [08:06:05]request: POST /json_proto HTTP/1.0 [08:06:05]Method: POST [08:06:05]URL: /json_proto [08:06:05]Method is POST - this is cgi request [08:06:05]url: /json_proto [08:06:05]query_string will be loaded in cgi processing [08:06:05]execute_cgi json_proto POST (null) [08:06:05]execute_cgi path=json_proto method=POST [08:06:05]POST find Content-Length [08:06:05]Host: 172.17.62.67:8080 [08:06:05]Content-Length: 682 [08:06:05]Content-Type: application/json [08:06:05] [08:06:05]POST finish read [08:06:05]Found Content-Length = 682 [08:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:06:05]execute_script... [08:06: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)195778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:06:05]POST & json_proto [08:06:05]process_json_proto [08:06:05]json parsed OK: [08:06:05]protocol is kg_v1.0 [08:06:05]action value=close_receipt [08:06:05]process_action close_receipt [08:06:05]cmd_close_receipt [08:06:05]MH_GetDate [08:06:05]Write to MH i2c: F0 00 00 97 7A 00 [08:06:05]Write i2c OK [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: F0 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: F0 05 00 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: F0 05 00 97 7A 00 7A BB EE 65 8D [08:06:05]GetLastDocTimeStamp 1710144091 [08:06:05]current date 1710144378 [08:06:05]FM_GetShiftState [08:06:05]SAM_PROTO_GetShiftState [08:06:05]wFMCommunicate request_size=4 [08:06:05]MH_SAM_APDU [08:06:05]CAPDU: 80 13 01 00 [08:06:05]Write to MH i2c: E2 08 00 98 7A 80 13 01 00 00 00 00 00 8F [08:06:05]Write i2c OK [08:06:05]MH_I2C_Read... [08:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:05]Read from MH i2c: E2 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: E2 0E 00 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: E2 0E 00 98 7A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2B [08:06:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:06:05]wFMCommunicate OK [08:06:05]SAM_PROTO_GetShiftState done [08:06:05]FM_GetShiftState done [08:06:05]opened in 1710115571 [08:06:05]opened+sec_in_day 1710201971 [08:06:05]quantity*price = 100011 [08:06:05]sum+1 = 100012 [08:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 16 11.03.2024 08:06 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94841 ФПД: 5038302639075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T080619&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94841&fm=5038302639075&tin=02508201610067®Number=0000000000090555&sum=100000 [08:06:06]StoreToDocumentArchive [08:06:06]shift 326 fd 94841 [08:06:06]save to /storage/0326/doc_00094841 [08:06:06]save last doc name /storage/0326/doc_00094841 to /storage/kkm_last_doc_name [08:06:06]save OK [08:06:06]Clear old archive folders... [08:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:06]tlvbuf is 0021F500 [08:06:06]SAM_PROTO_ClearQueue [08:06:06]wFMCommunicate request_size=4 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 09 00 00 [08:06:06]Write to MH i2c: E2 08 00 A5 7A 80 09 00 00 00 00 00 00 91 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:06]Read from MH i2c: E2 03 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 A5 7A 00 90 00 93 [08:06:06]RAPDU: 90 00 [08:06:06]wFMCommunicate OK [08:06:06]SAM_PROTO_ClearQueue done [08:06:06]KKMCreateOFDPacket [08:06:06]OFDProtocolAddRootSTLVToBuf [08:06:06]FM_MakeSignedData [08:06:06]FM_MakeSignedData [08:06:06]SAM_PROTO_SignData [08:06:06]wFMCommunicate request_size=4 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 0D 01 02 [08:06:06]Write to MH i2c: E2 08 00 A6 7A 80 0D 01 02 00 00 00 00 99 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:06]Read from MH i2c: E2 03 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 A6 7A 00 90 00 94 [08:06:06]RAPDU: 90 00 [08:06:06]wFMCommunicate OK [08:06:06]wFMCommunicate request_size=255 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7B BB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 72 01 00 35 04 06 00 04 [08:06:06]Write to MH i2c: E2 02 01 A7 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7B BB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 72 01 00 35 04 06 00 04 00 00 11 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 [08:06:07]MH_I2C_Read... [08:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:07]Read from MH i2c: E2 03 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 03 00 A7 7A 00 90 00 95 [08:06:07]RAPDU: 90 00 [08:06:07]wFMCommunicate OK [08:06:07]wFMCommunicate request_size=10 [08:06:07]MH_SAM_APDU [08:06:07]CAPDU: 80 0D 02 02 05 95 12 3D 33 E3 [08:06:07]Write to MH i2c: E2 0D 00 A8 7A 80 0D 02 02 05 00 95 12 3D 33 E3 00 00 A0 [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:07]Read from MH i2c: E2 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 03 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 03 00 A8 7A 00 90 00 96 [08:06:07]RAPDU: 90 00 [08:06:07]wFMCommunicate OK [08:06:07]wFMCommunicate request_size=4 [08:06:07]MH_SAM_APDU [08:06:07]CAPDU: 80 0D 03 02 [08:06:07]Write to MH i2c: E2 08 00 A9 7A 80 0D 03 02 00 00 00 00 9E [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:07]Read from MH i2c: E2 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 0B 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 0B 00 A9 7A 00 3C 21 50 47 C7 05 1C 11 90 00 8C [08:06:07]RAPDU: 3C 21 50 47 C7 05 1C 11 90 00 [08:06:07]wFMCommunicate OK [08:06:07]SAM_PROTO_SignData done [08:06:07]FM_MakeSignedData done [08:06:07]CreateOFDProtocolMessage [08:06:07]wFMCommunicate request_size=4 [08:06:07]MH_SAM_APDU [08:06:07]CAPDU: 80 11 00 00 [08:06:07]Write to MH i2c: E2 08 00 AA 7A 80 11 00 00 00 00 00 00 9E [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:07]Read from MH i2c: E2 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 17 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 17 00 AA 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [08:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:06:07]wFMCommunicate OK [08:06:07]CreateOFDProtocolMessage done [08:06:07]OFDSenderStorePacket 94841 [08:06:07]StoreOFDPacket docnum=94841 [08:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F5 65 07 01 32 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7B BB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 72 01 00 35 04 06 00 04 95 12 3D 33 E3 3C 21 50 47 C7 05 1C 11 [08:06:07]CheckFolder [08:06:07]dirname=/storage/ofd_packets [08:06:07]CheckFolder done [08:06:07]ProducePacketName [08:06:07]name=ofd_packets/00094841 [08:06:07]NVStorageSaveData ofd_packets/00094841 [08:06:07]File name is /storage/ofd_packets/00094841 [08:06:07]Write 301 bytes [08:06:07]NVStorageSaveData done [08:06:07]OFDSenderStorePacket done [08:06:07]KKMCreateOFDPacket done [08:06:07]NVStorageSaveData kkm_last_timestamp [08:06:07]File name is /storage/kkm_last_timestamp [08:06:07]Write 4 bytes [08:06:07]NVStorageSaveData done [08:06:07]ExternCall_PrintAddStr [08:06:07]wPrintStart [08:06:07]Write to MH i2c: 01 00 00 AB 7A 25 [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 07 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 07 00 AB 7A 00 80 00 00 00 FF 0F BA [08:06:07]RasterBufferAndPrint [08:06:07]line Счет N : (1)195778 [08:06:07]line ИНН: 02508201610067 [08:06:07]line Контрольно-Кассовый Чек [08:06:07]line ПРОДАЖА [08:06:07]line ТРК (МРК, ГНК) : 22 [08:06:07]line Товар: 2710124130 [08:06:07]line Аи-92-К-5 [08:06:07]line 15.900 * 62.90 [08:06:07]line = 1000.11 [08:06:07]line НДС 12% НСП 1% [08:06:07]line > о реализуемом товаре [08:06:07]line ОКРУГЛЕНИЕ: -0.11 [08:06:07]line ИТОГО: 1000.00 [08:06:07]line Внесено: 1000.00 [08:06:07]line СДАЧА: 0.00 [08:06:07]line НСП 1% : 8.85 [08:06:07]line НДС 12% : 106.21 [08:06:07]line Наличными: 1000.00 [08:06:07]line Безнал.: 0.00 [08:06:07]line Место: АЗС № 6 "Партнер Нефть" [08:06:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:06:07]line СНО: Общий режим [08:06:07]line Чек 16 11.03.2024 08:06 [08:06:07]line Смена: 326 ФФД: 1.0 [08:06:07]line ЗНМ: 0300000009 [08:06:07]line РНМ: 0000000000090555 [08:06:07]line Версия ККМ: 001 [08:06:07]line ФМ: 0000000000874811 [08:06:07]line ФД: 94841 [08:06:07]line ФПД: 5038302639075 [08:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T080619&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94841&fm=5038302639075&tin=02508201610067®Number=0000000000090555&sum=100000 [08:06:07]OFD Sender: Processing packet 94841 [packets to send 30, broken 29] [08:06:07]ProducePacketName [08:06:07]name=ofd_packets/00094841 [08:06:07]OFD Sender: To server: pG, [08:06:07]CommunicateWithHost lk.salyk.kg:30040 [08:06:07]ConnectInit lk.salyk.kg [08:06:07]written 0, free lines is 4095 [08:06:07]Connected sock=10 [08:06: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 31 31 0F 01 00 00 F5 65 07 01 32 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7B BB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 72 01 00 35 04 06 00 04 95 12 3D 33 E3 3C 21 50 47 C7 05 1C 11 [08:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 97 0E 47 00 1A 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 31 31 10 04 04 00 79 72 01 00 F4 03 04 00 D5 66 EE 65 B6 04 01 00 00 4F 40 52 42 AF DD C0 E1 [08:06:08]CommunicateWithHost err = 0 [08:06:08]CheckOFDResponse [08:06:08]1017 (14) - 77093643461234 [08:06:08]1041 (16) - 0000000000874811 [08:06:08]1040 (4) - 94841 [08:06:08]1012 (4) - 11.03.2024 02:05 [08:06:08]1206 (1) - 0 [08:06:08]OFD Sender: Remove packet 94841 [08:06:08]ProducePacketName [08:06:08]name=ofd_packets/00094841 [08:06:08]NVStorageDeleteData [08:06:08]Write to MH i2c: 01 00 00 D6 7A 50 [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: 01 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: 01 07 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: 01 07 00 D6 7A 00 80 00 00 00 4C 0D 30 [08:06:08]RasterBufferAndPrint [08:06:08]line [08:06:08]line [08:06:08]line [08:06:08]line [08:06:08]line [08:06:08]written 0, free lines is 3410 [08:06:08]process_action close_receipt done [08:06:08]requested_data is exist [08:06:08]produce_requested_data [08:06:08]requested_item fm.sn is exist - process it [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 11 00 00 [08:06:08]Write to MH i2c: E2 08 00 DD 7A 80 11 00 00 00 00 00 00 D1 [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:08]Read from MH i2c: E2 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 17 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 17 00 DD 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 21 [08:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:06:08]wFMCommunicate OK [08:06:08]requested_item fd.num is exist - process it [08:06:08]SAM_PROTO_GetFieldsCounters [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 13 00 00 [08:06:08]Write to MH i2c: E2 08 00 DE 7A 80 13 00 00 00 00 00 00 D4 [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:08]Read from MH i2c: E2 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 62 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 62 00 DE 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 79 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [08:06: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 79 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:08]wFMCommunicate OK [08:06:08]SAM_PROTO_GetFieldsCounters done [08:06:08]requested_item shift.num is exist - process it [08:06:08]requested_item shift.opened is exist - process it [08:06:08]req_shift_opened [08:06:08]FM_GetShiftState [08:06:08]SAM_PROTO_GetShiftState [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 13 01 00 [08:06:08]Write to MH i2c: E2 08 00 DF 7A 80 13 01 00 00 00 00 00 D6 [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:08]Read from MH i2c: E2 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 0E 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 0E 00 DF 7A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 72 [08:06:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:06:08]wFMCommunicate OK [08:06:08]SAM_PROTO_GetShiftState done [08:06:08]FM_GetShiftState done [08:06:08]req_shift_opened done [08:06:08]requested_item shift.open_date is exist - process it [08:06:08]req_shift_open_date [08:06:08]req_shift_open_date done [08:06:08]produce_requested_data done [08:06:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94841,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:06:08]process_action_free close_receipt [08:06:08]json_value_free [08:06:08]json_value_free done [08:06:08]process_json_proto returns [08:06:08]Send response to host [08:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94841,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:06:08]free response buf [08:06:08]execute_script done [08:06:08]execute_script returns [08:06:08]free content buf [08:06:08]Sock 9.Close socket [08:06:08]Sock 9.Thread stoped [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:40]accept exits with 7 [08:07:40]New connection [08:07:40]New thread 3067014500 created [08:07:40]Thread 3066871140 joined [08:07:40]Waiting for new connection... [08:07:40] Sock 7.Parse request [08:07:40]Sock 7.Check first char [08:07:40]Sock 7.First char is OK [08:07:40]request: POST /json_proto HTTP/1.0 [08:07:40]Method: POST [08:07:40]URL: /json_proto [08:07:40]Method is POST - this is cgi request [08:07:40]url: /json_proto [08:07:40]query_string will be loaded in cgi processing [08:07:40]execute_cgi json_proto POST (null) [08:07:40]execute_cgi path=json_proto method=POST [08:07:40]POST find Content-Length [08:07:40]Host: 172.17.62.67:8080 [08:07:40]Content-Length: 677 [08:07:40]Content-Type: application/json [08:07:40] [08:07:40]POST finish read [08:07:40]Found Content-Length = 677 [08:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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" ] } } [08:07:40]execute_script... [08:07: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)195779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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" ] } } [08:07:40]POST & json_proto [08:07:40]process_json_proto [08:07:40]json parsed OK: [08:07:40]protocol is kg_v1.0 [08:07:40]action value=close_receipt [08:07:40]process_action close_receipt [08:07:40]cmd_close_receipt [08:07:40]MH_GetDate [08:07:40]Write to MH i2c: F0 00 00 E0 7A 49 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: F0 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: F0 05 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: F0 05 00 E0 7A 00 DA BB EE 65 36 [08:07:40]GetLastDocTimeStamp 1710144379 [08:07:40]current date 1710144474 [08:07:40]FM_GetShiftState [08:07:40]SAM_PROTO_GetShiftState [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 13 01 00 [08:07:40]Write to MH i2c: E2 08 00 E1 7A 80 13 01 00 00 00 00 00 D8 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:40]Read from MH i2c: E2 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 0E 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 0E 00 E1 7A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 74 [08:07:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:07:40]wFMCommunicate OK [08:07:40]SAM_PROTO_GetShiftState done [08:07:40]FM_GetShiftState done [08:07:40]opened in 1710115571 [08:07:40]opened+sec_in_day 1710201971 [08:07:40]quantity*price = 40004 [08:07:40]sum+1 = 40005 [08:07:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 17 11.03.2024 08:07 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94842 ФПД: 125212561542936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T080754&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94842&fm=125212561542936&tin=02508201610067®Number=0000000000090555&sum=40000 [08:07:42]StoreToDocumentArchive [08:07:42]shift 326 fd 94842 [08:07:42]save to /storage/0326/doc_00094842 [08:07:42]save last doc name /storage/0326/doc_00094842 to /storage/kkm_last_doc_name [08:07:42]save OK [08:07:42]Clear old archive folders... [08:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:42]tlvbuf is 00197880 [08:07:42]SAM_PROTO_ClearQueue [08:07:42]wFMCommunicate request_size=4 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 09 00 00 [08:07:42]Write to MH i2c: E2 08 00 EE 7A 80 09 00 00 00 00 00 00 DA [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 EE 7A 00 90 00 DC [08:07:42]RAPDU: 90 00 [08:07:42]wFMCommunicate OK [08:07:42]SAM_PROTO_ClearQueue done [08:07:42]KKMCreateOFDPacket [08:07:42]OFDProtocolAddRootSTLVToBuf [08:07:42]FM_MakeSignedData [08:07:42]FM_MakeSignedData [08:07:42]SAM_PROTO_SignData [08:07:42]wFMCommunicate request_size=4 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 0D 01 02 [08:07:42]Write to MH i2c: E2 08 00 EF 7A 80 0D 01 02 00 00 00 00 E2 [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 EF 7A 00 90 00 DD [08:07:42]RAPDU: 90 00 [08:07:42]wFMCommunicate OK [08:07:42]wFMCommunicate request_size=255 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 11 00 00 00 F4 03 04 00 DA BB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 72 01 00 35 04 06 00 71 [08:07:42]Write to MH i2c: E2 02 01 F0 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 11 00 00 00 F4 03 04 00 DA BB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 72 01 00 35 04 06 00 71 00 00 C3 [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 F0 7A 00 90 00 DE [08:07:42]RAPDU: 90 00 [08:07:42]wFMCommunicate OK [08:07:42]wFMCommunicate request_size=10 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 0D 02 02 05 E1 52 40 8F 18 [08:07:42]Write to MH i2c: E2 0D 00 F1 7A 80 0D 02 02 05 00 E1 52 40 8F 18 00 00 09 [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 03 00 F1 7A 00 90 00 DF [08:07:42]RAPDU: 90 00 [08:07:42]wFMCommunicate OK [08:07:42]wFMCommunicate request_size=4 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 0D 03 02 [08:07:42]Write to MH i2c: E2 08 00 F2 7A 80 0D 03 02 00 00 00 00 E7 [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 0B 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 0B 00 F2 7A 00 B5 EE A6 8B F8 50 2A 76 90 00 A4 [08:07:42]RAPDU: B5 EE A6 8B F8 50 2A 76 90 00 [08:07:42]wFMCommunicate OK [08:07:42]SAM_PROTO_SignData done [08:07:42]FM_MakeSignedData done [08:07:42]CreateOFDProtocolMessage [08:07:42]wFMCommunicate request_size=4 [08:07:42]MH_SAM_APDU [08:07:42]CAPDU: 80 11 00 00 [08:07:42]Write to MH i2c: E2 08 00 F3 7A 80 11 00 00 00 00 00 00 E7 [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:42]Read from MH i2c: E2 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 17 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: E2 17 00 F3 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [08:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:07:42]wFMCommunicate OK [08:07:42]CreateOFDProtocolMessage done [08:07:42]OFDSenderStorePacket 94842 [08:07:42]StoreOFDPacket docnum=94842 [08:07:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6B 0E 07 01 97 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 11 00 00 00 F4 03 04 00 DA BB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 72 01 00 35 04 06 00 71 E1 52 40 8F 18 B5 EE A6 8B F8 50 2A 76 [08:07:42]CheckFolder [08:07:42]dirname=/storage/ofd_packets [08:07:42]CheckFolder done [08:07:42]ProducePacketName [08:07:42]name=ofd_packets/00094842 [08:07:42]NVStorageSaveData ofd_packets/00094842 [08:07:42]File name is /storage/ofd_packets/00094842 [08:07:42]Write 301 bytes [08:07:42]NVStorageSaveData done [08:07:42]OFDSenderStorePacket done [08:07:42]KKMCreateOFDPacket done [08:07:42]NVStorageSaveData kkm_last_timestamp [08:07:42]File name is /storage/kkm_last_timestamp [08:07:42]Write 4 bytes [08:07:42]NVStorageSaveData done [08:07:42]ExternCall_PrintAddStr [08:07:42]wPrintStart [08:07:42]Write to MH i2c: 01 00 00 F4 7A 6E [08:07:42]Write i2c OK [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: 01 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: 01 07 00 [08:07:42]MH_I2C_Read... [08:07:42]Read from MH i2c: 01 07 00 F4 7A 00 80 00 00 00 FF 0F 03 [08:07:42]RasterBufferAndPrint [08:07:42]line Счет N : (1)195779 [08:07:42]line ИНН: 02508201610067 [08:07:42]line Контрольно-Кассовый Чек [08:07:42]line ПРОДАЖА [08:07:42]line ТРК (МРК, ГНК) : 12 [08:07:42]line Товар: 2710124130 [08:07:42]line Аи-92-К-5 [08:07:42]line 6.360 * 62.90 [08:07:42]line = 400.04 [08:07:42]line НДС 12% НСП 1% [08:07:42]line > о реализуемом товаре [08:07:42]line ОКРУГЛЕНИЕ: -0.04 [08:07:42]line ИТОГО: 400.00 [08:07:42]line Внесено: 400.00 [08:07:42]line СДАЧА: 0.00 [08:07:42]line НСП 1% : 3.54 [08:07:42]line НДС 12% : 42.48 [08:07:42]line Наличными: 400.00 [08:07:42]line Безнал.: 0.00 [08:07:42]line Место: АЗС № 6 "Партнер Нефть" [08:07:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:07:42]line СНО: Общий режим [08:07:42]line Чек 17 11.03.2024 08:07 [08:07:42]line Смена: 326 ФФД: 1.0 [08:07:42]line ЗНМ: 0300000009 [08:07:42]line РНМ: 0000000000090555 [08:07:42]line Версия ККМ: 001 [08:07:42]line ФМ: 0000000000874811 [08:07:42]line ФД: 94842 [08:07:42]line ФПД: 125212561542936 [08:07:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T080754&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94842&fm=125212561542936&tin=02508201610067®Number=0000000000090555&sum=40000 [08:07:42]OFD Sender: Processing packet 94842 [packets to send 30, broken 29] [08:07:42]ProducePacketName [08:07:42]name=ofd_packets/00094842 [08:07:42]OFD Sender: To server: pG, [08:07:42]CommunicateWithHost lk.salyk.kg:30040 [08:07:42]ConnectInit lk.salyk.kg [08:07:42]written 0, free lines is 4095 [08:07:42]Connected sock=10 [08:07: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 31 31 0F 01 00 00 6B 0E 07 01 97 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 11 00 00 00 F4 03 04 00 DA BB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 72 01 00 35 04 06 00 71 E1 52 40 8F 18 B5 EE A6 8B F8 50 2A 76 [08:07: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 31 31 4F 00 00 00 6D E6 47 00 4A 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 72 01 00 F4 03 04 00 34 67 EE 65 B6 04 01 00 00 2F AF E8 F7 0F 97 3B F0 [08:07:43]CommunicateWithHost err = 0 [08:07:43]CheckOFDResponse [08:07:43]1017 (14) - 77093643461234 [08:07:43]1041 (16) - 0000000000874811 [08:07:43]1040 (4) - 94842 [08:07:43]1012 (4) - 11.03.2024 02:06 [08:07:43]1206 (1) - 0 [08:07:43]OFD Sender: Remove packet 94842 [08:07:43]ProducePacketName [08:07:43]name=ofd_packets/00094842 [08:07:43]NVStorageDeleteData [08:07:43]Write to MH i2c: 01 00 00 1F 7B 9A [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: 01 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: 01 07 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: 01 07 00 1F 7B 00 80 00 00 00 4C 0D 7A [08:07:43]RasterBufferAndPrint [08:07:43]line [08:07:43]line [08:07:43]line [08:07:43]line [08:07:43]line [08:07:43]written 0, free lines is 3410 [08:07:43]process_action close_receipt done [08:07:43]requested_data is exist [08:07:43]produce_requested_data [08:07:43]requested_item fm.sn is exist - process it [08:07:43]wFMCommunicate request_size=4 [08:07:43]MH_SAM_APDU [08:07:43]CAPDU: 80 11 00 00 [08:07:43]Write to MH i2c: E2 08 00 26 7B 80 11 00 00 00 00 00 00 1B [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 [08:07:43]MH_I2C_Read... [08:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:43]Read from MH i2c: E2 17 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 17 00 26 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6B [08:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:07:43]wFMCommunicate OK [08:07:43]requested_item fd.num is exist - process it [08:07:43]SAM_PROTO_GetFieldsCounters [08:07:43]wFMCommunicate request_size=4 [08:07:43]MH_SAM_APDU [08:07:43]CAPDU: 80 13 00 00 [08:07:43]Write to MH i2c: E2 08 00 27 7B 80 13 00 00 00 00 00 00 1E [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:43]Read from MH i2c: E2 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 62 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 62 00 27 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7A 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [08:07:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7A 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:43]wFMCommunicate OK [08:07:43]SAM_PROTO_GetFieldsCounters done [08:07:43]requested_item shift.num is exist - process it [08:07:43]requested_item shift.opened is exist - process it [08:07:43]req_shift_opened [08:07:43]FM_GetShiftState [08:07:43]SAM_PROTO_GetShiftState [08:07:43]wFMCommunicate request_size=4 [08:07:43]MH_SAM_APDU [08:07:43]CAPDU: 80 13 01 00 [08:07:43]Write to MH i2c: E2 08 00 28 7B 80 13 01 00 00 00 00 00 20 [08:07:43]Write i2c OK [08:07:43]MH_I2C_Read... [08:07:43]OFD Sender: No OFD packet to send [08:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:43]Read from MH i2c: E2 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 0E 00 [08:07:43]MH_I2C_Read... [08:07:43]Read from MH i2c: E2 0E 00 28 7B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BC [08:07:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:07:43]wFMCommunicate OK [08:07:43]SAM_PROTO_GetShiftState done [08:07:43]FM_GetShiftState done [08:07:43]req_shift_opened done [08:07:43]requested_item shift.open_date is exist - process it [08:07:43]req_shift_open_date [08:07:43]req_shift_open_date done [08:07:43]produce_requested_data done [08:07:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94842,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:07:43]process_action_free close_receipt [08:07:43]json_value_free [08:07:43]json_value_free done [08:07:43]process_json_proto returns [08:07:43]Send response to host [08:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94842,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:07:43]free response buf [08:07:43]execute_script done [08:07:43]execute_script returns [08:07:43]free content buf [08:07:43]Sock 7.Close socket [08:07:43]Sock 7.Thread stoped [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]accept exits with 9 [08:09:58]New connection [08:09:58]New thread 3066871140 created [08:09:58]Thread 3067014500 joined [08:09:58]Waiting for new connection... [08:09:58] Sock 9.Parse request [08:09:58]Sock 9.Check first char [08:09:58]Sock 9.First char is OK [08:09:58]request: POST /json_proto HTTP/1.0 [08:09:58]Method: POST [08:09:58]URL: /json_proto [08:09:58]Method is POST - this is cgi request [08:09:58]url: /json_proto [08:09:58]query_string will be loaded in cgi processing [08:09:58]execute_cgi json_proto POST (null) [08:09:58]execute_cgi path=json_proto method=POST [08:09:58]POST find Content-Length [08:09:58]Host: 172.17.62.67:8080 [08:09:58]Content-Length: 671 [08:09:58]Content-Type: application/json [08:09:58] [08:09:58]POST finish read [08:09:58]Found Content-Length = 671 [08:09:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 14.090, "sum" : 900.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:58]execute_script... [08:09: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)195780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 14.090, "sum" : 900.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:58]POST & json_proto [08:09:58]process_json_proto [08:09:58]json parsed OK: [08:09:58]protocol is kg_v1.0 [08:09:58]action value=close_receipt [08:09:58]process_action close_receipt [08:09:58]cmd_close_receipt [08:09:58]MH_GetDate [08:09:58]Write to MH i2c: F0 00 00 29 7B 93 [08:09:58]Write i2c OK [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: F0 [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: F0 05 00 [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: F0 05 00 29 7B 00 63 BC EE 65 0A [08:09:58]GetLastDocTimeStamp 1710144474 [08:09:58]current date 1710144611 [08:09:58]FM_GetShiftState [08:09:58]SAM_PROTO_GetShiftState [08:09:58]wFMCommunicate request_size=4 [08:09:58]MH_SAM_APDU [08:09:58]CAPDU: 80 13 01 00 [08:09:58]Write to MH i2c: E2 08 00 2A 7B 80 13 01 00 00 00 00 00 22 [08:09:58]Write i2c OK [08:09:58]MH_I2C_Read... [08:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:58]Read from MH i2c: E2 [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: E2 0E 00 [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: E2 0E 00 2A 7B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BE [08:09:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:09:58]wFMCommunicate OK [08:09:58]SAM_PROTO_GetShiftState done [08:09:58]FM_GetShiftState done [08:09:58]opened in 1710115571 [08:09:58]opened+sec_in_day 1710201971 [08:09:58]quantity*price = 90035 [08:09:58]sum+1 = 90036 [08:09:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.61 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 18 11.03.2024 08:10 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94843 ФПД: 107464941924932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T081011&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94843&fm=107464941924932&tin=02508201610067®Number=0000000000090555&sum=90000 [08:09:59]StoreToDocumentArchive [08:09:59]shift 326 fd 94843 [08:09:59]save to /storage/0326/doc_00094843 [08:09:59]save last doc name /storage/0326/doc_00094843 to /storage/kkm_last_doc_name [08:09:59]save OK [08:09:59]Clear old archive folders... [08:09:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:09:59]tlvbuf is 0032CBA0 [08:09:59]SAM_PROTO_ClearQueue [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 09 00 00 [08:09:59]Write to MH i2c: E2 08 00 37 7B 80 09 00 00 00 00 00 00 24 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 37 7B 00 90 00 26 [08:09:59]RAPDU: 90 00 [08:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_ClearQueue done [08:09:59]KKMCreateOFDPacket [08:09:59]OFDProtocolAddRootSTLVToBuf [08:09:59]FM_MakeSignedData [08:09:59]FM_MakeSignedData [08:09:59]SAM_PROTO_SignData [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 0D 01 02 [08:09:59]Write to MH i2c: E2 08 00 38 7B 80 0D 01 02 00 00 00 00 2C [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 38 7B 00 90 00 27 [08:09:59]RAPDU: 90 00 [08:09:59]wFMCommunicate OK [08:09:59]wFMCommunicate request_size=255 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 37 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 B3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 63 BC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 72 01 00 35 04 06 00 [08:09:59]Write to MH i2c: E2 02 01 39 7B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 37 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 B3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 63 BC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 72 01 00 35 04 06 00 00 00 68 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 39 7B 00 90 00 28 [08:09:59]RAPDU: 90 00 [08:09:59]wFMCommunicate OK [08:09:59]wFMCommunicate request_size=11 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 0D 02 02 06 61 BD 21 B0 72 44 [08:09:59]Write to MH i2c: E2 0E 00 3A 7B 80 0D 02 02 06 00 61 BD 21 B0 72 44 00 00 E0 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 3A 7B 00 90 00 29 [08:09:59]RAPDU: 90 00 [08:09:59]wFMCommunicate OK [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 0D 03 02 [08:09:59]Write to MH i2c: E2 08 00 3B 7B 80 0D 03 02 00 00 00 00 31 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 0B 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 0B 00 3B 7B 00 C1 EC C7 B7 84 E9 3F EB 90 00 F4 [08:09:59]RAPDU: C1 EC C7 B7 84 E9 3F EB 90 00 [08:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_SignData done [08:09:59]FM_MakeSignedData done [08:09:59]CreateOFDProtocolMessage [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 11 00 00 [08:09:59]Write to MH i2c: E2 08 00 3C 7B 80 11 00 00 00 00 00 00 31 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 17 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 17 00 3C 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 81 [08:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:09:59]wFMCommunicate OK [08:09:59]CreateOFDProtocolMessage done [08:09:59]OFDSenderStorePacket 94843 [08:09:59]StoreOFDPacket docnum=94843 [08:09:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 96 57 08 01 53 9D 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 37 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 B3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 63 BC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 72 01 00 35 04 06 00 61 BD 21 B0 72 44 C1 EC C7 B7 84 E9 3F EB [08:09:59]CheckFolder [08:09:59]dirname=/storage/ofd_packets [08:09:59]CheckFolder done [08:09:59]ProducePacketName [08:09:59]name=ofd_packets/00094843 [08:09:59]NVStorageSaveData ofd_packets/00094843 [08:09:59]File name is /storage/ofd_packets/00094843 [08:09:59]Write 302 bytes [08:09:59]NVStorageSaveData done [08:09:59]OFDSenderStorePacket done [08:09:59]KKMCreateOFDPacket done [08:09:59]NVStorageSaveData kkm_last_timestamp [08:09:59]File name is /storage/kkm_last_timestamp [08:09:59]Write 4 bytes [08:09:59]NVStorageSaveData done [08:09:59]ExternCall_PrintAddStr [08:09:59]wPrintStart [08:09:59]Write to MH i2c: 01 00 00 3D 7B B8 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: 01 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: 01 07 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: 01 07 00 3D 7B 00 80 00 00 00 FF 0F 4D [08:09:59]RasterBufferAndPrint [08:09:59]line Счет N : (1)195780 [08:09:59]line ИНН: 02508201610067 [08:09:59]line Контрольно-Кассовый Чек [08:09:59]line ПРОДАЖА [08:09:59]line ТРК (МРК, ГНК) : 13 [08:09:59]line Товар: 2710124130 [08:09:59]line SUPER 92-К-5 [08:09:59]line 14.090 * 63.90 [08:09:59]line = 900.35 [08:09:59]line НДС 12% НСП 1% [08:09:59]line > о реализуемом товаре [08:09:59]line ОКРУГЛЕНИЕ: -0.35 [08:09:59]line ИТОГО: 900.00 [08:09:59]line Внесено: 900.00 [08:09:59]line СДАЧА: 0.00 [08:09:59]line НСП 1% : 7.97 [08:09:59]line НДС 12% : 95.61 [08:09:59]line Наличными: 900.00 [08:09:59]line Безнал.: 0.00 [08:09:59]line Место: АЗС № 6 "Партнер Нефть" [08:09:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:09:59]line СНО: Общий режим [08:09:59]line Чек 18 11.03.2024 08:10 [08:09:59]line Смена: 326 ФФД: 1.0 [08:09:59]line ЗНМ: 0300000009 [08:09:59]line РНМ: 0000000000090555 [08:09:59]line Версия ККМ: 001 [08:09:59]line ФМ: 0000000000874811 [08:09:59]line ФД: 94843 [08:09:59]line ФПД: 107464941924932 [08:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T081011&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94843&fm=107464941924932&tin=02508201610067®Number=0000000000090555&sum=90000 [08:10:00]OFD Sender: Processing packet 94843 [packets to send 30, broken 29] [08:10:00]ProducePacketName [08:10:00]name=ofd_packets/00094843 [08:10:00]OFD Sender: To server: pG, [08:10:00]CommunicateWithHost lk.salyk.kg:30040 [08:10:00]ConnectInit lk.salyk.kg [08:10:00]written 0, free lines is 4095 [08:10:00]Connected sock=10 [08:10: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 31 31 10 01 00 00 96 57 08 01 53 9D 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 37 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 B3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 63 BC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 72 01 00 35 04 06 00 61 BD 21 B0 72 44 C1 EC C7 B7 84 E9 3F EB [08:10: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 31 31 4F 00 00 00 9F 0C 47 00 A3 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 72 01 00 F4 03 04 00 BD 67 EE 65 B6 04 01 00 00 57 63 76 ED A5 A9 9B 62 [08:10:00]CommunicateWithHost err = 0 [08:10:00]CheckOFDResponse [08:10:00]1017 (14) - 77093643461234 [08:10:00]1041 (16) - 0000000000874811 [08:10:00]1040 (4) - 94843 [08:10:00]1012 (4) - 11.03.2024 02:09 [08:10:00]1206 (1) - 0 [08:10:00]OFD Sender: Remove packet 94843 [08:10:00]ProducePacketName [08:10:00]name=ofd_packets/00094843 [08:10:00]NVStorageDeleteData [08:10:00]Write to MH i2c: 01 00 00 68 7B E3 [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 07 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 07 00 68 7B 00 80 00 00 00 49 0D C0 [08:10:00]RasterBufferAndPrint [08:10:00]line [08:10:00]line [08:10:00]line [08:10:00]line [08:10:00]line [08:10:00]written 0, free lines is 3407 [08:10:00]process_action close_receipt done [08:10:00]requested_data is exist [08:10:00]produce_requested_data [08:10:00]requested_item fm.sn is exist - process it [08:10:00]wFMCommunicate request_size=4 [08:10:00]MH_SAM_APDU [08:10:00]CAPDU: 80 11 00 00 [08:10:00]Write to MH i2c: E2 08 00 6F 7B 80 11 00 00 00 00 00 00 64 [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 [08:10:00]MH_I2C_Read... [08:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:00]Read from MH i2c: E2 17 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 17 00 6F 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [08:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:10:00]wFMCommunicate OK [08:10:00]requested_item fd.num is exist - process it [08:10:00]SAM_PROTO_GetFieldsCounters [08:10:00]wFMCommunicate request_size=4 [08:10:00]MH_SAM_APDU [08:10:00]CAPDU: 80 13 00 00 [08:10:00]Write to MH i2c: E2 08 00 70 7B 80 13 00 00 00 00 00 00 67 [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:00]Read from MH i2c: E2 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 62 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 62 00 70 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7B 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [08:10:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7B 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:00]wFMCommunicate OK [08:10:00]SAM_PROTO_GetFieldsCounters done [08:10:00]requested_item shift.num is exist - process it [08:10:00]requested_item shift.opened is exist - process it [08:10:00]req_shift_opened [08:10:00]FM_GetShiftState [08:10:00]SAM_PROTO_GetShiftState [08:10:00]wFMCommunicate request_size=4 [08:10:00]MH_SAM_APDU [08:10:00]CAPDU: 80 13 01 00 [08:10:00]Write to MH i2c: E2 08 00 71 7B 80 13 01 00 00 00 00 00 69 [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]OFD Sender: No OFD packet to send [08:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:00]Read from MH i2c: E2 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 0E 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 0E 00 71 7B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 05 [08:10:00]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:10:00]wFMCommunicate OK [08:10:00]SAM_PROTO_GetShiftState done [08:10:00]FM_GetShiftState done [08:10:00]req_shift_opened done [08:10:00]requested_item shift.open_date is exist - process it [08:10:00]req_shift_open_date [08:10:00]req_shift_open_date done [08:10:00]produce_requested_data done [08:10:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94843,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:10:00]process_action_free close_receipt [08:10:00]json_value_free [08:10:00]json_value_free done [08:10:00]process_json_proto returns [08:10:00]Send response to host [08:10:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94843,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:10:00]free response buf [08:10:00]execute_script done [08:10:00]execute_script returns [08:10:00]free content buf [08:10:00]Sock 9.Close socket [08:10:00]Sock 9.Thread stoped [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:38]accept exits with 7 [08:13:38]New connection [08:13:38]New thread 3067014500 created [08:13:38]Thread 3066871140 joined [08:13:38]Waiting for new connection... [08:13:38] Sock 7.Parse request [08:13:38]Sock 7.Check first char [08:13:38]Sock 7.First char is OK [08:13:38]request: POST /json_proto HTTP/1.0 [08:13:38]Method: POST [08:13:38]URL: /json_proto [08:13:38]Method is POST - this is cgi request [08:13:38]url: /json_proto [08:13:38]query_string will be loaded in cgi processing [08:13:38]execute_cgi json_proto POST (null) [08:13:38]execute_cgi path=json_proto method=POST [08:13:38]POST find Content-Length [08:13:38]Host: 172.17.62.67:8080 [08:13:38]Content-Length: 675 [08:13:38]Content-Type: application/json [08:13:38] [08:13:38]POST finish read [08:13:38]Found Content-Length = 675 [08:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "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:13:38]execute_script... [08:13: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)195781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "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:13:38]POST & json_proto [08:13:38]process_json_proto [08:13:38]json parsed OK: [08:13:38]protocol is kg_v1.0 [08:13:38]action value=close_receipt [08:13:38]process_action close_receipt [08:13:38]cmd_close_receipt [08:13:38]MH_GetDate [08:13:38]Write to MH i2c: F0 00 00 72 7B DC [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: F0 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: F0 05 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: F0 05 00 72 7B 00 3F BD EE 65 30 [08:13:38]GetLastDocTimeStamp 1710144611 [08:13:38]current date 1710144831 [08:13:38]FM_GetShiftState [08:13:38]SAM_PROTO_GetShiftState [08:13:38]wFMCommunicate request_size=4 [08:13:38]MH_SAM_APDU [08:13:38]CAPDU: 80 13 01 00 [08:13:38]Write to MH i2c: E2 08 00 73 7B 80 13 01 00 00 00 00 00 6B [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:38]Read from MH i2c: E2 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 0E 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: E2 0E 00 73 7B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 07 [08:13:38]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:13:38]wFMCommunicate OK [08:13:38]SAM_PROTO_GetShiftState done [08:13:38]FM_GetShiftState done [08:13:38]opened in 1710115571 [08:13:38]opened+sec_in_day 1710201971 [08:13:38]quantity*price = 100003 [08:13:38]sum+1 = 100005 [08:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 19 11.03.2024 08:13 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94844 ФПД: 76562298408345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T081351&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94844&fm=76562298408345&tin=02508201610067®Number=0000000000090555&sum=100000 [08:13:39]StoreToDocumentArchive [08:13:39]shift 326 fd 94844 [08:13:39]save to /storage/0326/doc_00094844 [08:13:39]save last doc name /storage/0326/doc_00094844 to /storage/kkm_last_doc_name [08:13:39]save OK [08:13:39]Clear old archive folders... [08:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:13:39]tlvbuf is 001B3D40 [08:13:39]SAM_PROTO_ClearQueue [08:13:39]wFMCommunicate request_size=4 [08:13:39]MH_SAM_APDU [08:13:39]CAPDU: 80 09 00 00 [08:13:39]Write to MH i2c: E2 08 00 80 7B 80 09 00 00 00 00 00 00 6D [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:39]Read from MH i2c: E2 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 03 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 03 00 80 7B 00 90 00 6F [08:13:39]RAPDU: 90 00 [08:13:39]wFMCommunicate OK [08:13:39]SAM_PROTO_ClearQueue done [08:13:39]KKMCreateOFDPacket [08:13:39]OFDProtocolAddRootSTLVToBuf [08:13:39]FM_MakeSignedData [08:13:39]FM_MakeSignedData [08:13:39]SAM_PROTO_SignData [08:13:39]wFMCommunicate request_size=4 [08:13:39]MH_SAM_APDU [08:13:39]CAPDU: 80 0D 01 02 [08:13:39]Write to MH i2c: E2 08 00 81 7B 80 0D 01 02 00 00 00 00 75 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:39]Read from MH i2c: E2 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 03 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 03 00 81 7B 00 90 00 70 [08:13:39]RAPDU: 90 00 [08:13:39]wFMCommunicate OK [08:13:39]wFMCommunicate request_size=255 [08:13:39]MH_SAM_APDU [08:13: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 3F BD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 72 01 00 35 04 06 00 [08:13:39]Write to MH i2c: E2 02 01 82 7B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 3F BD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 72 01 00 35 04 06 00 00 00 B3 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:39]Read from MH i2c: E2 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 03 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 03 00 82 7B 00 90 00 71 [08:13:39]RAPDU: 90 00 [08:13:39]wFMCommunicate OK [08:13:39]wFMCommunicate request_size=11 [08:13:39]MH_SAM_APDU [08:13:39]CAPDU: 80 0D 02 02 06 45 A2 0C 99 8D 99 [08:13:39]Write to MH i2c: E2 0E 00 83 7B 80 0D 02 02 06 00 45 A2 0C 99 8D 99 00 00 36 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:39]Read from MH i2c: E2 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 03 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 03 00 83 7B 00 90 00 72 [08:13:39]RAPDU: 90 00 [08:13:39]wFMCommunicate OK [08:13:39]wFMCommunicate request_size=4 [08:13:39]MH_SAM_APDU [08:13:39]CAPDU: 80 0D 03 02 [08:13:39]Write to MH i2c: E2 08 00 84 7B 80 0D 03 02 00 00 00 00 7A [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:39]Read from MH i2c: E2 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 0B 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 0B 00 84 7B 00 F3 51 B6 B1 96 65 9B 4B 90 00 07 [08:13:39]RAPDU: F3 51 B6 B1 96 65 9B 4B 90 00 [08:13:39]wFMCommunicate OK [08:13:39]SAM_PROTO_SignData done [08:13:39]FM_MakeSignedData done [08:13:39]CreateOFDProtocolMessage [08:13:39]wFMCommunicate request_size=4 [08:13:39]MH_SAM_APDU [08:13:39]CAPDU: 80 11 00 00 [08:13:39]Write to MH i2c: E2 08 00 85 7B 80 11 00 00 00 00 00 00 7A [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:39]Read from MH i2c: E2 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 17 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: E2 17 00 85 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CA [08:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:13:39]wFMCommunicate OK [08:13:39]CreateOFDProtocolMessage done [08:13:39]OFDSenderStorePacket 94844 [08:13:39]StoreOFDPacket docnum=94844 [08:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 47 23 08 01 0C 03 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 3F BD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 72 01 00 35 04 06 00 45 A2 0C 99 8D 99 F3 51 B6 B1 96 65 9B 4B [08:13:39]CheckFolder [08:13:39]dirname=/storage/ofd_packets [08:13:39]CheckFolder done [08:13:39]ProducePacketName [08:13:39]name=ofd_packets/00094844 [08:13:39]NVStorageSaveData ofd_packets/00094844 [08:13:39]File name is /storage/ofd_packets/00094844 [08:13:39]Write 302 bytes [08:13:39]NVStorageSaveData done [08:13:39]OFDSenderStorePacket done [08:13:39]KKMCreateOFDPacket done [08:13:39]NVStorageSaveData kkm_last_timestamp [08:13:39]File name is /storage/kkm_last_timestamp [08:13:39]Write 4 bytes [08:13:39]NVStorageSaveData done [08:13:39]ExternCall_PrintAddStr [08:13:39]wPrintStart [08:13:39]Write to MH i2c: 01 00 00 86 7B 01 [08:13:39]Write i2c OK [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: 01 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: 01 07 00 [08:13:39]MH_I2C_Read... [08:13:39]Read from MH i2c: 01 07 00 86 7B 00 80 00 00 00 FF 0F 96 [08:13:39]RasterBufferAndPrint [08:13:39]line Счет N : (1)195781 [08:13:39]line ИНН: 02508201610067 [08:13:39]line Контрольно-Кассовый Чек [08:13:39]line ПРОДАЖА [08:13:39]line ТРК (МРК, ГНК) : 33 [08:13:39]line Товар: 2710124130 [08:13:39]line SUPER 92-К-5 [08:13:39]line 15.650 * 63.90 [08:13:39]line = 1000.04 [08:13:39]line НДС 12% НСП 1% [08:13:39]line > о реализуемом товаре [08:13:39]line ОКРУГЛЕНИЕ: -0.04 [08:13:39]line ИТОГО: 1000.00 [08:13:39]line Внесено: 1000.00 [08:13:39]line СДАЧА: 0.00 [08:13:39]line НСП 1% : 8.85 [08:13:39]line НДС 12% : 106.20 [08:13:39]line Наличными: 1000.00 [08:13:39]line Безнал.: 0.00 [08:13:39]line Место: АЗС № 6 "Партнер Нефть" [08:13:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:13:39]line СНО: Общий режим [08:13:39]line Чек 19 11.03.2024 08:13 [08:13:39]line Смена: 326 ФФД: 1.0 [08:13:39]line ЗНМ: 0300000009 [08:13:39]line РНМ: 0000000000090555 [08:13:39]line Версия ККМ: 001 [08:13:39]line ФМ: 0000000000874811 [08:13:39]line ФД: 94844 [08:13:39]line ФПД: 76562298408345 [08:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T081351&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94844&fm=76562298408345&tin=02508201610067®Number=0000000000090555&sum=100000 [08:13:40]OFD Sender: Processing packet 94844 [packets to send 30, broken 29] [08:13:40]ProducePacketName [08:13:40]name=ofd_packets/00094844 [08:13:40]OFD Sender: To server: pG, [08:13:40]CommunicateWithHost lk.salyk.kg:30040 [08:13:40]ConnectInit lk.salyk.kg [08:13:40]written 0, free lines is 4095 [08:13:40]Connected sock=10 [08:13: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 31 31 10 01 00 00 47 23 08 01 0C 03 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 3F BD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 72 01 00 35 04 06 00 45 A2 0C 99 8D 99 F3 51 B6 B1 96 65 9B 4B [08:13: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 31 31 4F 00 00 00 B3 B0 47 00 A9 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 72 01 00 F4 03 04 00 99 68 EE 65 B6 04 01 00 00 64 50 34 C0 E2 D7 59 41 [08:13:40]CommunicateWithHost err = 0 [08:13:40]CheckOFDResponse [08:13:40]1017 (14) - 77093643461234 [08:13:40]1041 (16) - 0000000000874811 [08:13:40]1040 (4) - 94844 [08:13:40]1012 (4) - 11.03.2024 02:12 [08:13:40]1206 (1) - 0 [08:13:40]OFD Sender: Remove packet 94844 [08:13:40]ProducePacketName [08:13:40]name=ofd_packets/00094844 [08:13:40]NVStorageDeleteData [08:13:40]Write to MH i2c: 01 00 00 B1 7B 2C [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: 01 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: 01 07 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: 01 07 00 B1 7B 00 80 00 00 00 4C 0D 0C [08:13:40]RasterBufferAndPrint [08:13:40]line [08:13:40]line [08:13:40]line [08:13:40]line [08:13:40]line [08:13:40]written 0, free lines is 3410 [08:13:40]process_action close_receipt done [08:13:40]requested_data is exist [08:13:40]produce_requested_data [08:13:40]requested_item fm.sn is exist - process it [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 11 00 00 [08:13:40]Write to MH i2c: E2 08 00 B8 7B 80 11 00 00 00 00 00 00 AD [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 17 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 17 00 B8 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FD [08:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:13:40]wFMCommunicate OK [08:13:40]requested_item fd.num is exist - process it [08:13:40]SAM_PROTO_GetFieldsCounters [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 13 00 00 [08:13:40]Write to MH i2c: E2 08 00 B9 7B 80 13 00 00 00 00 00 00 B0 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 62 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 62 00 B9 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7C 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [08:13: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7C 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_GetFieldsCounters done [08:13:40]requested_item shift.num is exist - process it [08:13:40]requested_item shift.opened is exist - process it [08:13:40]req_shift_opened [08:13:40]FM_GetShiftState [08:13:40]SAM_PROTO_GetShiftState [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 13 01 00 [08:13:40]Write to MH i2c: E2 08 00 BA 7B 80 13 01 00 00 00 00 00 B2 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 BA 7B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4E [08:13:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_GetShiftState done [08:13:40]FM_GetShiftState done [08:13:40]req_shift_opened done [08:13:40]requested_item shift.open_date is exist - process it [08:13:40]req_shift_open_date [08:13:40]req_shift_open_date done [08:13:40]produce_requested_data done [08:13:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94844,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:13:40]process_action_free close_receipt [08:13:40]json_value_free [08:13:40]json_value_free done [08:13:40]process_json_proto returns [08:13:40]Send response to host [08:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94844,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:13:40]free response buf [08:13:40]execute_script done [08:13:40]execute_script returns [08:13:40]free content buf [08:13:40]Sock 7.Close socket [08:13:40]Sock 7.Thread stoped [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:23]accept exits with 9 [08:16:23]New connection [08:16:23]New thread 3066871140 created [08:16:23]Thread 3067014500 joined [08:16:23]Waiting for new connection... [08:16:23] Sock 9.Parse request [08:16:23]Sock 9.Check first char [08:16:23]Sock 9.First char is OK [08:16:23]request: POST /json_proto HTTP/1.0 [08:16:23]Method: POST [08:16:23]URL: /json_proto [08:16:23]Method is POST - this is cgi request [08:16:23]url: /json_proto [08:16:23]query_string will be loaded in cgi processing [08:16:23]execute_cgi json_proto POST (null) [08:16:23]execute_cgi path=json_proto method=POST [08:16:23]POST find Content-Length [08:16:23]Host: 172.17.62.67:8080 [08:16:23]Content-Length: 670 [08:16:23]Content-Type: application/json [08:16:23] [08:16:23]POST finish read [08:16:23]Found Content-Length = 670 [08:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.710, "sum" : 620.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:23]execute_script... [08: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)195782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.710, "sum" : 620.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:23]POST & json_proto [08:16:23]process_json_proto [08:16:23]json parsed OK: [08:16:23]protocol is kg_v1.0 [08:16:23]action value=close_receipt [08:16:23]process_action close_receipt [08:16:23]cmd_close_receipt [08:16:23]MH_GetDate [08:16:23]Write to MH i2c: F0 00 00 BB 7B 25 [08:16:23]Write i2c OK [08:16:23]MH_I2C_Read... [08:16:23]Read from MH i2c: F0 [08:16:23]MH_I2C_Read... [08:16:23]Read from MH i2c: F0 05 00 [08:16:23]MH_I2C_Read... [08:16:23]Read from MH i2c: F0 05 00 BB 7B 00 E5 BD EE 65 1F [08:16:23]GetLastDocTimeStamp 1710144831 [08:16:23]current date 1710144997 [08:16:23]FM_GetShiftState [08:16:23]SAM_PROTO_GetShiftState [08:16:23]wFMCommunicate request_size=4 [08:16:23]MH_SAM_APDU [08:16:23]CAPDU: 80 13 01 00 [08:16:23]Write to MH i2c: E2 08 00 BC 7B 80 13 01 00 00 00 00 00 B4 [08:16:23]Write i2c OK [08:16:23]MH_I2C_Read... [08:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:23]Read from MH i2c: E2 [08:16:23]MH_I2C_Read... [08:16:23]Read from MH i2c: E2 0E 00 [08:16:23]MH_I2C_Read... [08:16:23]Read from MH i2c: E2 0E 00 BC 7B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 50 [08:16:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:16:23]wFMCommunicate OK [08:16:23]SAM_PROTO_GetShiftState done [08:16:23]FM_GetShiftState done [08:16:23]opened in 1710115571 [08:16:23]opened+sec_in_day 1710201971 [08:16:23]quantity*price = 62046 [08:16:23]sum+1 = 62048 [08:16:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 20 11.03.2024 08:16 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94845 ФПД: 83620024427409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T081637&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94845&fm=83620024427409&tin=02508201610067®Number=0000000000090555&sum=62000 [08:16:25]StoreToDocumentArchive [08:16:25]shift 326 fd 94845 [08:16:25]save to /storage/0326/doc_00094845 [08:16:25]save last doc name /storage/0326/doc_00094845 to /storage/kkm_last_doc_name [08:16:25]save OK [08:16:25]Clear old archive folders... [08:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:16:25]tlvbuf is 001D3A90 [08:16:25]SAM_PROTO_ClearQueue [08:16:25]wFMCommunicate request_size=4 [08:16:25]MH_SAM_APDU [08:16:25]CAPDU: 80 09 00 00 [08:16:25]Write to MH i2c: E2 08 00 C9 7B 80 09 00 00 00 00 00 00 B6 [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 [08:16:25]MH_I2C_Read... [08:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:25]Read from MH i2c: E2 03 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 03 00 C9 7B 00 90 00 B8 [08:16:25]RAPDU: 90 00 [08:16:25]wFMCommunicate OK [08:16:25]SAM_PROTO_ClearQueue done [08:16:25]KKMCreateOFDPacket [08:16:25]OFDProtocolAddRootSTLVToBuf [08:16:25]FM_MakeSignedData [08:16:25]FM_MakeSignedData [08:16:25]SAM_PROTO_SignData [08:16:25]wFMCommunicate request_size=4 [08:16:25]MH_SAM_APDU [08:16:25]CAPDU: 80 0D 01 02 [08:16:25]Write to MH i2c: E2 08 00 CA 7B 80 0D 01 02 00 00 00 00 BE [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:25]Read from MH i2c: E2 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 03 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 03 00 CA 7B 00 90 00 B9 [08:16:25]RAPDU: 90 00 [08:16:25]wFMCommunicate OK [08:16:25]wFMCommunicate request_size=255 [08:16:25]MH_SAM_APDU [08:16:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 5F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E5 BD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 72 01 00 35 04 06 00 [08:16:25]Write to MH i2c: E2 02 01 CB 7B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 5F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E5 BD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 72 01 00 35 04 06 00 00 00 54 [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:25]Read from MH i2c: E2 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 03 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 03 00 CB 7B 00 90 00 BA [08:16:25]RAPDU: 90 00 [08:16:25]wFMCommunicate OK [08:16:25]wFMCommunicate request_size=11 [08:16:25]MH_SAM_APDU [08:16:25]CAPDU: 80 0D 02 02 06 4C 0D 4D DA 23 91 [08:16:25]Write to MH i2c: E2 0E 00 CC 7B 80 0D 02 02 06 00 4C 0D 4D DA 23 91 00 00 01 [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:25]Read from MH i2c: E2 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 03 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 03 00 CC 7B 00 90 00 BB [08:16:25]RAPDU: 90 00 [08:16:25]wFMCommunicate OK [08:16:25]wFMCommunicate request_size=4 [08:16:25]MH_SAM_APDU [08:16:25]CAPDU: 80 0D 03 02 [08:16:25]Write to MH i2c: E2 08 00 CD 7B 80 0D 03 02 00 00 00 00 C3 [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:25]Read from MH i2c: E2 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 0B 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 0B 00 CD 7B 00 C8 04 B5 70 99 A8 06 34 90 00 30 [08:16:25]RAPDU: C8 04 B5 70 99 A8 06 34 90 00 [08:16:25]wFMCommunicate OK [08:16:25]SAM_PROTO_SignData done [08:16:25]FM_MakeSignedData done [08:16:25]CreateOFDProtocolMessage [08:16:25]wFMCommunicate request_size=4 [08:16:25]MH_SAM_APDU [08:16:25]CAPDU: 80 11 00 00 [08:16:25]Write to MH i2c: E2 08 00 CE 7B 80 11 00 00 00 00 00 00 C3 [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:25]Read from MH i2c: E2 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 17 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: E2 17 00 CE 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 13 [08:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:16:25]wFMCommunicate OK [08:16:25]CreateOFDProtocolMessage done [08:16:25]OFDSenderStorePacket 94845 [08:16:25]StoreOFDPacket docnum=94845 [08:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 23 D7 08 01 9B F5 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 5F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E5 BD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 72 01 00 35 04 06 00 4C 0D 4D DA 23 91 C8 04 B5 70 99 A8 06 34 [08:16:25]CheckFolder [08:16:25]dirname=/storage/ofd_packets [08:16:25]CheckFolder done [08:16:25]ProducePacketName [08:16:25]name=ofd_packets/00094845 [08:16:25]NVStorageSaveData ofd_packets/00094845 [08:16:25]File name is /storage/ofd_packets/00094845 [08:16:25]Write 302 bytes [08:16:25]NVStorageSaveData done [08:16:25]OFDSenderStorePacket done [08:16:25]KKMCreateOFDPacket done [08:16:25]NVStorageSaveData kkm_last_timestamp [08:16:25]File name is /storage/kkm_last_timestamp [08:16:25]Write 4 bytes [08:16:25]NVStorageSaveData done [08:16:25]ExternCall_PrintAddStr [08:16:25]wPrintStart [08:16:25]Write to MH i2c: 01 00 00 CF 7B 4A [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: 01 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: 01 07 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: 01 07 00 CF 7B 00 80 00 00 00 FF 0F DF [08:16:25]RasterBufferAndPrint [08:16:25]line Счет N : (1)195782 [08:16:25]line ИНН: 02508201610067 [08:16:25]line Контрольно-Кассовый Чек [08:16:25]line ПРОДАЖА [08:16:25]line ТРК (МРК, ГНК) : 23 [08:16:25]line Товар: 2710124130 [08:16:25]line SUPER 92-К-5 [08:16:25]line 9.710 * 63.90 [08:16:25]line = 620.47 [08:16:25]line НДС 12% НСП 1% [08:16:25]line > о реализуемом товаре [08:16:25]line ОКРУГЛЕНИЕ: -0.47 [08:16:25]line ИТОГО: 620.00 [08:16:25]line Внесено: 620.00 [08:16:25]line СДАЧА: 0.00 [08:16:25]line НСП 1% : 5.49 [08:16:25]line НДС 12% : 65.89 [08:16:25]line Наличными: 620.00 [08:16:25]line Безнал.: 0.00 [08:16:25]line Место: АЗС № 6 "Партнер Нефть" [08:16:25]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:16:25]line СНО: Общий режим [08:16:25]line Чек 20 11.03.2024 08:16 [08:16:25]line Смена: 326 ФФД: 1.0 [08:16:25]line ЗНМ: 0300000009 [08:16:25]line РНМ: 0000000000090555 [08:16:25]line Версия ККМ: 001 [08:16:25]line ФМ: 0000000000874811 [08:16:25]line ФД: 94845 [08:16:25]line ФПД: 83620024427409 [08:16:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T081637&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94845&fm=83620024427409&tin=02508201610067®Number=0000000000090555&sum=62000 [08:16:25]written 0, free lines is 4095 [08:16:25]OFD Sender: Processing packet 94845 [packets to send 30, broken 29] [08:16:25]ProducePacketName [08:16:25]name=ofd_packets/00094845 [08:16:25]OFD Sender: To server: pG, [08:16:25]CommunicateWithHost lk.salyk.kg:30040 [08:16:25]ConnectInit lk.salyk.kg [08:16:25]Connected sock=10 [08: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 31 31 10 01 00 00 23 D7 08 01 9B F5 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 25 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 5F F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E5 BD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 72 01 00 35 04 06 00 4C 0D 4D DA 23 91 C8 04 B5 70 99 A8 06 34 [08:16: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 31 31 4F 00 00 00 B1 B2 47 00 8F 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 72 01 00 F4 03 04 00 3F 69 EE 65 B6 04 01 00 00 82 03 83 16 D4 E7 5E 7D [08:16:26]CommunicateWithHost err = 0 [08:16:26]CheckOFDResponse [08:16:26]1017 (14) - 77093643461234 [08:16:26]1041 (16) - 0000000000874811 [08:16:26]1040 (4) - 94845 [08:16:26]1012 (4) - 11.03.2024 02:15 [08:16:26]1206 (1) - 0 [08:16:26]OFD Sender: Remove packet 94845 [08:16:26]ProducePacketName [08:16:26]name=ofd_packets/00094845 [08:16:26]NVStorageDeleteData [08:16:26]Write to MH i2c: 01 00 00 FA 7B 75 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 07 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 07 00 FA 7B 00 80 00 00 00 4C 0D 55 [08:16:26]RasterBufferAndPrint [08:16:26]line [08:16:26]line [08:16:26]line [08:16:26]line [08:16:26]line [08:16:26]written 0, free lines is 3410 [08:16:26]process_action close_receipt done [08:16:26]requested_data is exist [08:16:26]produce_requested_data [08:16:26]requested_item fm.sn is exist - process it [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 11 00 00 [08:16:26]Write to MH i2c: E2 08 00 01 7C 80 11 00 00 00 00 00 00 F7 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:26]Read from MH i2c: E2 17 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 17 00 01 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 47 [08:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:16:26]wFMCommunicate OK [08:16:26]requested_item fd.num is exist - process it [08:16:26]SAM_PROTO_GetFieldsCounters [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 13 00 00 [08:16:26]Write to MH i2c: E2 08 00 02 7C 80 13 00 00 00 00 00 00 FA [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 62 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 62 00 02 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [08:16: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:26]wFMCommunicate OK [08:16:26]SAM_PROTO_GetFieldsCounters done [08:16:26]requested_item shift.num is exist - process it [08:16:26]requested_item shift.opened is exist - process it [08:16:26]req_shift_opened [08:16:26]FM_GetShiftState [08:16:26]SAM_PROTO_GetShiftState [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 13 01 00 [08:16:26]Write to MH i2c: E2 08 00 03 7C 80 13 01 00 00 00 00 00 FC [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]OFD Sender: No OFD packet to send [08:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 0E 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 0E 00 03 7C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 98 [08:16:26]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:16:26]wFMCommunicate OK [08:16:26]SAM_PROTO_GetShiftState done [08:16:26]FM_GetShiftState done [08:16:26]req_shift_opened done [08:16:26]requested_item shift.open_date is exist - process it [08:16:26]req_shift_open_date [08:16:26]req_shift_open_date done [08:16:26]produce_requested_data done [08:16:26]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94845,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:16:26]process_action_free close_receipt [08:16:26]json_value_free [08:16:26]json_value_free done [08:16:26]process_json_proto returns [08:16:26]Send response to host [08:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94845,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:16:26]free response buf [08:16:26]execute_script done [08:16:26]execute_script returns [08:16:26]free content buf [08:16:26]Sock 9.Close socket [08:16:26]Sock 9.Thread stoped [08:16:26]int [08:16:26]Write to MH i2c: 01 00 00 04 7C 80 [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 07 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 07 00 04 7C 00 82 00 00 00 FF 0F 17 [08:16:26]state=0 [08:16:26]Cover opened [08:16:31]OFD Sender: No OFD packet to send [08:16:31]Write to MH i2c: 01 00 00 05 7C 81 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: 01 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: 01 07 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: 01 07 00 05 7C 00 82 00 00 00 FF 0F 18 [08:16:31]state=3 [08:16:31]Cover opened [08:16:36]OFD Sender: No OFD packet to send [08:16:36]Write to MH i2c: 01 00 00 06 7C 82 [08:16:36]Write i2c OK [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 07 00 [08:16:36]MH_I2C_Read... [08:16:36]Read from MH i2c: 01 07 00 06 7C 00 82 00 00 00 FF 0F 19 [08:16:36]state=3 [08:16:36]Cover opened [08:16:41]OFD Sender: No OFD packet to send [08:16:41]Write to MH i2c: 01 00 00 07 7C 83 [08:16:41]Write i2c OK [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: 01 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: 01 07 00 [08:16:41]MH_I2C_Read... [08:16:41]Read from MH i2c: 01 07 00 07 7C 00 82 00 00 00 FF 0F 1A [08:16:41]state=3 [08:16:41]Cover opened [08:16:46]OFD Sender: No OFD packet to send [08:16:46]Write to MH i2c: 01 00 00 08 7C 84 [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 08 7C 00 82 00 00 00 FF 0F 1B [08:16:46]state=3 [08:16:46]Cover opened [08:16:51]OFD Sender: No OFD packet to send [08:16:51]Write to MH i2c: 01 00 00 09 7C 85 [08:16:51]Write i2c OK [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 07 00 [08:16:51]MH_I2C_Read... [08:16:51]Read from MH i2c: 01 07 00 09 7C 00 82 00 00 00 FF 0F 1C [08:16:51]state=3 [08:16:51]Cover opened [08:16:53]int [08:16:53]Write to MH i2c: 01 00 00 0A 7C 86 [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: 01 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: 01 07 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: 01 07 00 0A 7C 00 83 00 00 00 FF 0F 1E [08:16:53]state=3 [08:16:53]No paper [08:16:53]Cover opened [08:16:56]OFD Sender: No OFD packet to send [08:16:58]Write to MH i2c: 01 00 00 0B 7C 87 [08:16:58]Write i2c OK [08:16:58]MH_I2C_Read... [08:16:58]Read from MH i2c: 01 [08:16:58]MH_I2C_Read... [08:16:58]Read from MH i2c: 01 07 00 [08:16:58]MH_I2C_Read... [08:16:58]Read from MH i2c: 01 07 00 0B 7C 00 83 00 00 00 FF 0F 1F [08:16:58]state=3 [08:16:58]No paper [08:16:58]Cover opened [08:17:01]OFD Sender: No OFD packet to send [08:17:03]Write to MH i2c: 01 00 00 0C 7C 88 [08:17:03]Write i2c OK [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 07 00 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 07 00 0C 7C 00 83 00 00 00 FF 0F 20 [08:17:03]state=3 [08:17:03]No paper [08:17:03]Cover opened [08:17:06]OFD Sender: No OFD packet to send [08:17:08]Write to MH i2c: 01 00 00 0D 7C 89 [08:17:08]Write i2c OK [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 07 00 [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 07 00 0D 7C 00 83 00 00 00 FF 0F 21 [08:17:08]state=3 [08:17:08]No paper [08:17:08]Cover opened [08:17:08]int [08:17:08]Write to MH i2c: 01 00 00 0E 7C 8A [08:17:08]Write i2c OK [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 07 00 [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 07 00 0E 7C 00 81 00 00 00 FF 0F 20 [08:17:08]state=3 [08:17:08]No paper [08:17:08]Cover closed [08:17:08]int line is 0 - check status [08:17:08]Write to MH i2c: 01 00 00 0F 7C 8B [08:17:08]Write i2c OK [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 07 00 [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 07 00 0F 7C 00 80 00 00 00 FF 0F 20 [08:17:08]state=0 [08:17:08]int [08:17:08]Write to MH i2c: 01 00 00 10 7C 8C [08:17:08]Write i2c OK [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 07 00 [08:17:08]MH_I2C_Read... [08:17:08]Read from MH i2c: 01 07 00 10 7C 00 80 00 00 00 FF 0F 21 [08:17:08]state=0 [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:16]accept exits with 7 [08:23:16]New connection [08:23:16]New thread 3067014500 created [08:23:16]Thread 3066871140 joined [08:23:16]Waiting for new connection... [08:23:16] Sock 7.Parse request [08:23:16]Sock 7.Check first char [08:23:16]Sock 7.First char is OK [08:23:16]request: POST /json_proto HTTP/1.0 [08:23:16]Method: POST [08:23:16]URL: /json_proto [08:23:16]Method is POST - this is cgi request [08:23:16]url: /json_proto [08:23:16]query_string will be loaded in cgi processing [08:23:16]execute_cgi json_proto POST (null) [08:23:16]execute_cgi path=json_proto method=POST [08:23:16]POST find Content-Length [08:23:16]Host: 172.17.62.67:8080 [08:23:16]Content-Length: 1179 [08:23:16]Content-Type: application/json [08:23:16] [08:23:16]POST finish read [08:23:16]Found Content-Length = 1179 [08:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195783\u000A11.03.2024 08:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689389\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:16]execute_script... [08:23:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195783\u000A11.03.2024 08:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3689389\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:16]POST & json_proto [08:23:16]process_json_proto [08:23:16]json parsed OK: [08:23:16]protocol is kg_v1.0 [08:23:16]action value=print_text [08:23:16]process_action print_text [08:23:16]cmd_print_text [08:23:16]ExternCall_PrintAddStr [08:23:16]wPrintStart [08:23:16]Write to MH i2c: 01 00 00 11 7C 8D [08:23:16]Write i2c OK [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: 01 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: 01 07 00 [08:23:16]MH_I2C_Read... [08:23:16]Read from MH i2c: 01 07 00 11 7C 00 80 00 00 00 FF 0F 22 [08:23:16]RasterBufferAndPrint [08:23:16]line *****ТОВАРНЫЙ ЧЕК***** [08:23:16]line АЗС 6 [08:23:16]line Партнер нефть [08:23:16]line 02508201610067 [08:23:16]line Кассир : Карыбаев Б. [08:23:16]line Счет N : (1)195783 [08:23:16]line 11.03.2024 08:17 [08:23:16]line ПРОДАЖА [08:23:16]line ТРК (МРК, ГНК): 61 [08:23:16]line Вид ГСМ : 2710194210 [08:23:16]line ДТ-К-5 [08:23:16]line 10.000 x 70.90 [08:23:16]line ИТОГ: 709.00 [08:23:16]line Тип оплаты: Талоны: Партнер нефть [08:23:16]line 3689389 [08:23:16]line ______________________ [08:23:16]line (подпись) [08:23:16]written 0, free lines is 4095 [08:23:17]OFD Sender: No OFD packet to send [08:23:17]Write to MH i2c: 01 00 00 25 7C A1 [08:23:17]Write i2c OK [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: 01 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: 01 07 00 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: 01 07 00 25 7C 00 80 00 00 00 5F 0E 95 [08:23:17]RasterBufferAndPrint [08:23:17]line [08:23:17]line [08:23:17]line [08:23:17]line [08:23:17]line [08:23:17]written 0, free lines is 3683 [08:23:17]process_action print_text done [08:23:17]requested_data is exist [08:23:17]produce_requested_data [08:23:17]requested_item fm.sn is exist - process it [08:23:17]wFMCommunicate request_size=4 [08:23:17]MH_SAM_APDU [08:23:17]CAPDU: 80 11 00 00 [08:23:17]Write to MH i2c: E2 08 00 2C 7C 80 11 00 00 00 00 00 00 22 [08:23:17]Write i2c OK [08:23:17]MH_I2C_Read... [08:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:17]Read from MH i2c: E2 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: E2 17 00 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: E2 17 00 2C 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 72 [08:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:23:17]wFMCommunicate OK [08:23:17]requested_item fd.num is exist - process it [08:23:17]SAM_PROTO_GetFieldsCounters [08:23:17]wFMCommunicate request_size=4 [08:23:17]MH_SAM_APDU [08:23:17]CAPDU: 80 13 00 00 [08:23:17]Write to MH i2c: E2 08 00 2D 7C 80 13 00 00 00 00 00 00 25 [08:23:17]Write i2c OK [08:23:17]MH_I2C_Read... [08:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:17]Read from MH i2c: E2 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: E2 62 00 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: E2 62 00 2D 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [08:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:17]wFMCommunicate OK [08:23:17]SAM_PROTO_GetFieldsCounters done [08:23:17]requested_item shift.num is exist - process it [08:23:17]requested_item shift.opened is exist - process it [08:23:17]req_shift_opened [08:23:17]FM_GetShiftState [08:23:17]SAM_PROTO_GetShiftState [08:23:17]wFMCommunicate request_size=4 [08:23:17]MH_SAM_APDU [08:23:17]CAPDU: 80 13 01 00 [08:23:17]Write to MH i2c: E2 08 00 2E 7C 80 13 01 00 00 00 00 00 27 [08:23:17]Write i2c OK [08:23:17]MH_I2C_Read... [08:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:17]Read from MH i2c: E2 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: E2 0E 00 [08:23:17]MH_I2C_Read... [08:23:17]Read from MH i2c: E2 0E 00 2E 7C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C3 [08:23:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:23:17]wFMCommunicate OK [08:23:17]SAM_PROTO_GetShiftState done [08:23:17]FM_GetShiftState done [08:23:17]req_shift_opened done [08:23:17]requested_item shift.open_date is exist - process it [08:23:17]req_shift_open_date [08:23:17]req_shift_open_date done [08:23:17]produce_requested_data done [08:23:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94845,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:23:17]process_action_free print_text [08:23:17]json_value_free [08:23:17]json_value_free done [08:23:17]process_json_proto returns [08:23:17]Send response to host [08:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94845,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:23:17]free response buf [08:23:17]execute_script done [08:23:17]execute_script returns [08:23:17]free content buf [08:23:17]Sock 7.Close socket [08:23:17]Sock 7.Thread stoped [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:35]accept exits with 9 [08:25:35]New connection [08:25:35]New thread 3066871140 created [08:25:35]Thread 3067014500 joined [08:25:35]Waiting for new connection... [08:25:35] Sock 9.Parse request [08:25:35]Sock 9.Check first char [08:25:35]Sock 9.First char is OK [08:25:35]request: POST /json_proto HTTP/1.0 [08:25:35]Method: POST [08:25:35]URL: /json_proto [08:25:35]Method is POST - this is cgi request [08:25:35]url: /json_proto [08:25:35]query_string will be loaded in cgi processing [08:25:35]execute_cgi json_proto POST (null) [08:25:35]execute_cgi path=json_proto method=POST [08:25:35]POST find Content-Length [08:25:35]Host: 172.17.62.67:8080 [08:25:35]Content-Length: 1180 [08:25:35]Content-Type: application/json [08:25:35] [08:25:35]POST finish read [08:25:35]Found Content-Length = 1180 [08:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195784\u000A11.03.2024 08:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3430917\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:35]execute_script... [08:25:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195784\u000A11.03.2024 08:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3430917\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:35]POST & json_proto [08:25:35]process_json_proto [08:25:35]json parsed OK: [08:25:35]protocol is kg_v1.0 [08:25:35]action value=print_text [08:25:35]process_action print_text [08:25:35]cmd_print_text [08:25:35]ExternCall_PrintAddStr [08:25:35]wPrintStart [08:25:35]Write to MH i2c: 01 00 00 2F 7C AB [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 2F 7C 00 80 00 00 00 FF 0F 40 [08:25:35]RasterBufferAndPrint [08:25:35]line *****ТОВАРНЫЙ ЧЕК***** [08:25:35]line АЗС 6 [08:25:35]line Партнер нефть [08:25:35]line 02508201610067 [08:25:35]line Кассир : Карыбаев Б. [08:25:35]line Счет N : (1)195784 [08:25:35]line 11.03.2024 08:19 [08:25:35]line ПРОДАЖА [08:25:35]line ТРК (МРК, ГНК): 61 [08:25:35]line Вид ГСМ : 2710194210 [08:25:35]line ДТ-К-5 [08:25:35]line 20.000 x 70.90 [08:25:35]line ИТОГ: 1418.00 [08:25:35]line Тип оплаты: Талоны: Партнер нефть [08:25:35]line 3430917 [08:25:35]line ______________________ [08:25:35]line (подпись) [08:25:35]written 0, free lines is 4095 [08:25:35]Write to MH i2c: 01 00 00 43 7C BF [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 43 7C 00 80 00 00 00 5F 0E B3 [08:25:35]RasterBufferAndPrint [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]written 0, free lines is 3683 [08:25:35]process_action print_text done [08:25:35]requested_data is exist [08:25:35]produce_requested_data [08:25:35]requested_item fm.sn is exist - process it [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 11 00 00 [08:25:35]Write to MH i2c: E2 08 00 4A 7C 80 11 00 00 00 00 00 00 40 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 17 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 17 00 4A 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 90 [08:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:25:35]wFMCommunicate OK [08:25:35]requested_item fd.num is exist - process it [08:25:35]SAM_PROTO_GetFieldsCounters [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 13 00 00 [08:25:35]Write to MH i2c: E2 08 00 4B 7C 80 13 00 00 00 00 00 00 43 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 62 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 62 00 4B 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [08:25: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:35]wFMCommunicate OK [08:25:35]SAM_PROTO_GetFieldsCounters done [08:25:35]requested_item shift.num is exist - process it [08:25:35]requested_item shift.opened is exist - process it [08:25:35]req_shift_opened [08:25:35]FM_GetShiftState [08:25:35]SAM_PROTO_GetShiftState [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 13 01 00 [08:25:35]Write to MH i2c: E2 08 00 4C 7C 80 13 01 00 00 00 00 00 45 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0E 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0E 00 4C 7C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E1 [08:25:35]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:25:35]wFMCommunicate OK [08:25:35]SAM_PROTO_GetShiftState done [08:25:35]FM_GetShiftState done [08:25:35]req_shift_opened done [08:25:35]requested_item shift.open_date is exist - process it [08:25:35]req_shift_open_date [08:25:35]req_shift_open_date done [08:25:35]produce_requested_data done [08:25:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94845,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:25:35]process_action_free print_text [08:25:35]json_value_free [08:25:35]json_value_free done [08:25:35]process_json_proto returns [08:25:35]Send response to host [08:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94845,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:25:35]free response buf [08:25:35]execute_script done [08:25:35]execute_script returns [08:25:35]free content buf [08:25:35]Sock 9.Close socket [08:25:35]Sock 9.Thread stoped [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]accept exits with 7 [08:34:37]New connection [08:34:37]New thread 3067014500 created [08:34:37]Thread 3066871140 joined [08:34:37]Waiting for new connection... [08:34:37] Sock 7.Parse request [08:34:37]Sock 7.Check first char [08:34:37]Sock 7.First char is OK [08:34:37]request: POST /json_proto HTTP/1.0 [08:34:37]Method: POST [08:34:37]URL: /json_proto [08:34:37]Method is POST - this is cgi request [08:34:37]url: /json_proto [08:34:37]query_string will be loaded in cgi processing [08:34:37]execute_cgi json_proto POST (null) [08:34:37]execute_cgi path=json_proto method=POST [08:34:37]POST find Content-Length [08:34:37]Host: 172.17.62.67:8080 [08:34:37]Content-Length: 677 [08:34:37]Content-Type: application/json [08:34:37] [08:34:37]POST finish read [08:34:37]Found Content-Length = 677 [08:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:34:37]execute_script... [08:34:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:34:37]POST & json_proto [08:34:37]process_json_proto [08:34:37]json parsed OK: [08:34:37]protocol is kg_v1.0 [08:34:37]action value=close_receipt [08:34:37]process_action close_receipt [08:34:37]cmd_close_receipt [08:34:37]MH_GetDate [08:34:37]Write to MH i2c: F0 00 00 4D 7C B8 [08:34:37]Write i2c OK [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: F0 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: F0 05 00 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: F0 05 00 4D 7C 00 2A C2 EE 65 FC [08:34:37]GetLastDocTimeStamp 1710144997 [08:34:37]current date 1710146090 [08:34:37]FM_GetShiftState [08:34:37]SAM_PROTO_GetShiftState [08:34:37]wFMCommunicate request_size=4 [08:34:37]MH_SAM_APDU [08:34:37]CAPDU: 80 13 01 00 [08:34:37]Write to MH i2c: E2 08 00 4E 7C 80 13 01 00 00 00 00 00 47 [08:34:37]Write i2c OK [08:34:37]MH_I2C_Read... [08:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:37]Read from MH i2c: E2 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: E2 0E 00 [08:34:37]MH_I2C_Read... [08:34:37]Read from MH i2c: E2 0E 00 4E 7C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E3 [08:34:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:34:37]wFMCommunicate OK [08:34:37]SAM_PROTO_GetShiftState done [08:34:37]FM_GetShiftState done [08:34:37]opened in 1710115571 [08:34:37]opened+sec_in_day 1710201971 [08:34:37]quantity*price = 50005 [08:34:37]sum+1 = 50007 [08:34:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 21 11.03.2024 08:34 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94846 ФПД: 274076613707863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T083450&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94846&fm=274076613707863&tin=02508201610067®Number=0000000000090555&sum=50000 [08:34:38]StoreToDocumentArchive [08:34:38]shift 326 fd 94846 [08:34:38]save to /storage/0326/doc_00094846 [08:34:38]save last doc name /storage/0326/doc_00094846 to /storage/kkm_last_doc_name [08:34:38]save OK [08:34:38]Clear old archive folders... [08:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:38]tlvbuf is 00298BD0 [08:34:38]SAM_PROTO_ClearQueue [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 09 00 00 [08:34:38]Write to MH i2c: E2 08 00 5B 7C 80 09 00 00 00 00 00 00 49 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 5B 7C 00 90 00 4B [08:34:38]RAPDU: 90 00 [08:34:38]wFMCommunicate OK [08:34:38]SAM_PROTO_ClearQueue done [08:34:38]KKMCreateOFDPacket [08:34:38]OFDProtocolAddRootSTLVToBuf [08:34:38]FM_MakeSignedData [08:34:38]FM_MakeSignedData [08:34:38]SAM_PROTO_SignData [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 0D 01 02 [08:34:38]Write to MH i2c: E2 08 00 5C 7C 80 0D 01 02 00 00 00 00 51 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 5C 7C 00 90 00 4C [08:34:38]RAPDU: 90 00 [08:34:38]wFMCommunicate OK [08:34:38]wFMCommunicate request_size=255 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 2A C2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 72 01 00 35 04 06 00 F9 [08:34:38]Write to MH i2c: E2 02 01 5D 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 2A C2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 72 01 00 35 04 06 00 F9 00 00 7F [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 5D 7C 00 90 00 4D [08:34:38]RAPDU: 90 00 [08:34:38]wFMCommunicate OK [08:34:38]wFMCommunicate request_size=10 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 0D 02 02 05 45 6F 33 88 57 [08:34:38]Write to MH i2c: E2 0D 00 5E 7C 80 0D 02 02 05 00 45 6F 33 88 57 00 00 24 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:38]Read from MH i2c: E2 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 [08:34:38]MH_I2C_Read... [08:34:38]Read from MH i2c: E2 03 00 5E 7C 00 90 00 4E [08:34:38]RAPDU: 90 00 [08:34:38]wFMCommunicate OK [08:34:38]wFMCommunicate request_size=4 [08:34:38]MH_SAM_APDU [08:34:38]CAPDU: 80 0D 03 02 [08:34:38]Write to MH i2c: E2 08 00 5F 7C 80 0D 03 02 00 00 00 00 56 [08:34:38]Write i2c OK [08:34:38]MH_I2C_Read... [08:34:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:39]Read from MH i2c: E2 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: E2 0B 00 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: E2 0B 00 5F 7C 00 CC 3F F1 E7 46 57 EE 9D 90 00 62 [08:34:39]RAPDU: CC 3F F1 E7 46 57 EE 9D 90 00 [08:34:39]wFMCommunicate OK [08:34:39]SAM_PROTO_SignData done [08:34:39]FM_MakeSignedData done [08:34:39]CreateOFDProtocolMessage [08:34:39]wFMCommunicate request_size=4 [08:34:39]MH_SAM_APDU [08:34:39]CAPDU: 80 11 00 00 [08:34:39]Write to MH i2c: E2 08 00 60 7C 80 11 00 00 00 00 00 00 56 [08:34:39]Write i2c OK [08:34:39]MH_I2C_Read... [08:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:39]Read from MH i2c: E2 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: E2 17 00 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: E2 17 00 60 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A6 [08:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:34:39]wFMCommunicate OK [08:34:39]CreateOFDProtocolMessage done [08:34:39]OFDSenderStorePacket 94846 [08:34:39]StoreOFDPacket docnum=94846 [08:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3C 1D 07 01 7A 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 2A C2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 72 01 00 35 04 06 00 F9 45 6F 33 88 57 CC 3F F1 E7 46 57 EE 9D [08:34:39]CheckFolder [08:34:39]dirname=/storage/ofd_packets [08:34:39]CheckFolder done [08:34:39]ProducePacketName [08:34:39]name=ofd_packets/00094846 [08:34:39]NVStorageSaveData ofd_packets/00094846 [08:34:39]File name is /storage/ofd_packets/00094846 [08:34:39]Write 301 bytes [08:34:39]NVStorageSaveData done [08:34:39]OFDSenderStorePacket done [08:34:39]KKMCreateOFDPacket done [08:34:39]NVStorageSaveData kkm_last_timestamp [08:34:39]File name is /storage/kkm_last_timestamp [08:34:39]Write 4 bytes [08:34:39]NVStorageSaveData done [08:34:39]ExternCall_PrintAddStr [08:34:39]wPrintStart [08:34:39]Write to MH i2c: 01 00 00 61 7C DD [08:34:39]Write i2c OK [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 07 00 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 07 00 61 7C 00 80 00 00 00 FF 0F 72 [08:34:39]RasterBufferAndPrint [08:34:39]line Счет N : (1)195785 [08:34:39]line ИНН: 02508201610067 [08:34:39]line Контрольно-Кассовый Чек [08:34:39]line ПРОДАЖА [08:34:39]line ТРК (МРК, ГНК) : 22 [08:34:39]line Товар: 2710124130 [08:34:39]line Аи-92-К-5 [08:34:39]line 7.950 * 62.90 [08:34:39]line = 500.06 [08:34:39]line НДС 12% НСП 1% [08:34:39]line > о реализуемом товаре [08:34:39]line ОКРУГЛЕНИЕ: -0.06 [08:34:39]line ИТОГО: 500.00 [08:34:39]line Внесено: 500.00 [08:34:39]line СДАЧА: 0.00 [08:34:39]line НСП 1% : 4.42 [08:34:39]line НДС 12% : 53.10 [08:34:39]line Наличными: 500.00 [08:34:39]line Безнал.: 0.00 [08:34:39]line Место: АЗС № 6 "Партнер Нефть" [08:34:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:34:39]line СНО: Общий режим [08:34:39]line Чек 21 11.03.2024 08:34 [08:34:39]line Смена: 326 ФФД: 1.0 [08:34:39]line ЗНМ: 0300000009 [08:34:39]line РНМ: 0000000000090555 [08:34:39]line Версия ККМ: 001 [08:34:39]line ФМ: 0000000000874811 [08:34:39]line ФД: 94846 [08:34:39]line ФПД: 274076613707863 [08:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T083450&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94846&fm=274076613707863&tin=02508201610067®Number=0000000000090555&sum=50000 [08:34:39]OFD Sender: Processing packet 94846 [packets to send 30, broken 29] [08:34:39]ProducePacketName [08:34:39]name=ofd_packets/00094846 [08:34:39]OFD Sender: To server: pG, [08:34:39]CommunicateWithHost lk.salyk.kg:30040 [08:34:39]ConnectInit lk.salyk.kg [08:34:39]written 0, free lines is 4095 [08:34:39]Connected sock=10 [08:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3C 1D 07 01 7A 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 2A C2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 72 01 00 35 04 06 00 F9 45 6F 33 88 57 CC 3F F1 E7 46 57 EE 9D [08:34: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 31 31 4F 00 00 00 91 64 47 00 1C 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 72 01 00 F4 03 04 00 84 6D EE 65 B6 04 01 00 00 A0 0A 0F 70 9F FA 96 86 [08:34:39]CommunicateWithHost err = 0 [08:34:39]CheckOFDResponse [08:34:39]1017 (14) - 77093643461234 [08:34:39]1041 (16) - 0000000000874811 [08:34:39]1040 (4) - 94846 [08:34:39]1012 (4) - 11.03.2024 02:33 [08:34:39]1206 (1) - 0 [08:34:39]OFD Sender: Remove packet 94846 [08:34:39]ProducePacketName [08:34:39]name=ofd_packets/00094846 [08:34:39]NVStorageDeleteData [08:34:39]Write to MH i2c: 01 00 00 8C 7C 08 [08:34:39]Write i2c OK [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 07 00 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: 01 07 00 8C 7C 00 80 00 00 00 4A 0D E6 [08:34:39]RasterBufferAndPrint [08:34:39]line [08:34:39]line [08:34:39]line [08:34:39]line [08:34:39]line [08:34:39]written 0, free lines is 3408 [08:34:39]process_action close_receipt done [08:34:39]requested_data is exist [08:34:39]produce_requested_data [08:34:39]requested_item fm.sn is exist - process it [08:34:39]wFMCommunicate request_size=4 [08:34:39]MH_SAM_APDU [08:34:39]CAPDU: 80 11 00 00 [08:34:39]Write to MH i2c: E2 08 00 93 7C 80 11 00 00 00 00 00 00 89 [08:34:39]Write i2c OK [08:34:39]MH_I2C_Read... [08:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:39]Read from MH i2c: E2 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: E2 17 00 [08:34:39]MH_I2C_Read... [08:34:39]Read from MH i2c: E2 17 00 93 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D9 [08:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:34:39]wFMCommunicate OK [08:34:39]requested_item fd.num is exist - process it [08:34:39]SAM_PROTO_GetFieldsCounters [08:34:39]wFMCommunicate request_size=4 [08:34:39]MH_SAM_APDU [08:34:39]CAPDU: 80 13 00 00 [08:34:39]Write to MH i2c: E2 08 00 94 7C 80 13 00 00 00 00 00 00 8C [08:34:39]Write i2c OK [08:34:39]MH_I2C_Read... [08:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:40]Read from MH i2c: E2 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: E2 62 00 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: E2 62 00 94 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7E 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [08:34:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7E 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:40]wFMCommunicate OK [08:34:40]SAM_PROTO_GetFieldsCounters done [08:34:40]requested_item shift.num is exist - process it [08:34:40]requested_item shift.opened is exist - process it [08:34:40]req_shift_opened [08:34:40]FM_GetShiftState [08:34:40]SAM_PROTO_GetShiftState [08:34:40]wFMCommunicate request_size=4 [08:34:40]MH_SAM_APDU [08:34:40]CAPDU: 80 13 01 00 [08:34:40]Write to MH i2c: E2 08 00 95 7C 80 13 01 00 00 00 00 00 8E [08:34:40]Write i2c OK [08:34:40]MH_I2C_Read... [08:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:40]Read from MH i2c: E2 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: E2 0E 00 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: E2 0E 00 95 7C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2A [08:34:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:34:40]wFMCommunicate OK [08:34:40]SAM_PROTO_GetShiftState done [08:34:40]FM_GetShiftState done [08:34:40]req_shift_opened done [08:34:40]requested_item shift.open_date is exist - process it [08:34:40]req_shift_open_date [08:34:40]req_shift_open_date done [08:34:40]produce_requested_data done [08:34:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94846,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:34:40]process_action_free close_receipt [08:34:40]json_value_free [08:34:40]json_value_free done [08:34:40]process_json_proto returns [08:34:40]Send response to host [08:34:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94846,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:34:40]free response buf [08:34:40]execute_script done [08:34:40]execute_script returns [08:34:40]free content buf [08:34:40]Sock 7.Close socket [08:34:40]Sock 7.Thread stoped [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:51]accept exits with 9 [08:34:51]New connection [08:34:51]New thread 3066871140 created [08:34:51]Thread 3067014500 joined [08:34:51]Waiting for new connection... [08:34:51] Sock 9.Parse request [08:34:51]Sock 9.Check first char [08:34:51]Sock 9.First char is OK [08:34:51]request: POST /json_proto HTTP/1.0 [08:34:51]Method: POST [08:34:51]URL: /json_proto [08:34:51]Method is POST - this is cgi request [08:34:51]url: /json_proto [08:34:51]query_string will be loaded in cgi processing [08:34:51]execute_cgi json_proto POST (null) [08:34:51]execute_cgi path=json_proto method=POST [08:34:51]POST find Content-Length [08:34:51]Host: 172.17.62.67:8080 [08:34:51]Content-Length: 682 [08:34:51]Content-Type: application/json [08:34:51] [08:34:51]POST finish read [08:34:51]Found Content-Length = 682 [08:34:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:34:51]execute_script... [08:34: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)195786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:34:51]POST & json_proto [08:34:51]process_json_proto [08:34:51]json parsed OK: [08:34:51]protocol is kg_v1.0 [08:34:51]action value=close_receipt [08:34:51]process_action close_receipt [08:34:51]cmd_close_receipt [08:34:51]MH_GetDate [08:34:51]Write to MH i2c: F0 00 00 96 7C 01 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: F0 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: F0 05 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: F0 05 00 96 7C 00 38 C2 EE 65 53 [08:34:51]GetLastDocTimeStamp 1710146090 [08:34:51]current date 1710146104 [08:34:51]FM_GetShiftState [08:34:51]SAM_PROTO_GetShiftState [08:34:51]wFMCommunicate request_size=4 [08:34:51]MH_SAM_APDU [08:34:51]CAPDU: 80 13 01 00 [08:34:51]Write to MH i2c: E2 08 00 97 7C 80 13 01 00 00 00 00 00 90 [08:34:51]Write i2c OK [08:34:51]MH_I2C_Read... [08:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:51]Read from MH i2c: E2 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 0E 00 [08:34:51]MH_I2C_Read... [08:34:51]Read from MH i2c: E2 0E 00 97 7C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2C [08:34:51]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:34:51]wFMCommunicate OK [08:34:51]SAM_PROTO_GetShiftState done [08:34:51]FM_GetShiftState done [08:34:51]opened in 1710115571 [08:34:51]opened+sec_in_day 1710201971 [08:34:51]quantity*price = 100011 [08:34:51]sum+1 = 100012 [08:34:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 22 11.03.2024 08:35 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94847 ФПД: 215126682046844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T083504&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94847&fm=215126682046844&tin=02508201610067®Number=0000000000090555&sum=100000 [08:34:52]StoreToDocumentArchive [08:34:52]shift 326 fd 94847 [08:34:52]save to /storage/0326/doc_00094847 [08:34:52]save last doc name /storage/0326/doc_00094847 to /storage/kkm_last_doc_name [08:34:52]save OK [08:34:52]Clear old archive folders... [08:34:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:52]tlvbuf is 00248C70 [08:34:52]SAM_PROTO_ClearQueue [08:34:52]wFMCommunicate request_size=4 [08:34:52]MH_SAM_APDU [08:34:52]CAPDU: 80 09 00 00 [08:34:52]Write to MH i2c: E2 08 00 A4 7C 80 09 00 00 00 00 00 00 92 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:52]Read from MH i2c: E2 03 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 03 00 A4 7C 00 90 00 94 [08:34:52]RAPDU: 90 00 [08:34:52]wFMCommunicate OK [08:34:52]SAM_PROTO_ClearQueue done [08:34:52]KKMCreateOFDPacket [08:34:52]OFDProtocolAddRootSTLVToBuf [08:34:52]FM_MakeSignedData [08:34:52]FM_MakeSignedData [08:34:52]SAM_PROTO_SignData [08:34:52]wFMCommunicate request_size=4 [08:34:52]MH_SAM_APDU [08:34:52]CAPDU: 80 0D 01 02 [08:34:52]Write to MH i2c: E2 08 00 A5 7C 80 0D 01 02 00 00 00 00 9A [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:52]Read from MH i2c: E2 03 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 03 00 A5 7C 00 90 00 95 [08:34:52]RAPDU: 90 00 [08:34:52]wFMCommunicate OK [08:34:52]wFMCommunicate request_size=255 [08:34:52]MH_SAM_APDU [08:34:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 38 C2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 72 01 00 35 04 06 00 C3 [08:34:52]Write to MH i2c: E2 02 01 A6 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 38 C2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 72 01 00 35 04 06 00 C3 00 00 A1 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 03 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 03 00 A6 7C 00 90 00 96 [08:34:52]RAPDU: 90 00 [08:34:52]wFMCommunicate OK [08:34:52]wFMCommunicate request_size=10 [08:34:52]MH_SAM_APDU [08:34:52]CAPDU: 80 0D 02 02 05 A8 15 77 11 7C [08:34:52]Write to MH i2c: E2 0D 00 A7 7C 80 0D 02 02 05 00 A8 15 77 11 7C 00 00 68 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 03 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 03 00 A7 7C 00 90 00 97 [08:34:52]RAPDU: 90 00 [08:34:52]wFMCommunicate OK [08:34:52]wFMCommunicate request_size=4 [08:34:52]MH_SAM_APDU [08:34:52]CAPDU: 80 0D 03 02 [08:34:52]Write to MH i2c: E2 08 00 A8 7C 80 0D 03 02 00 00 00 00 9F [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 0B 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 0B 00 A8 7C 00 15 96 19 CA B7 EF C7 4B 90 00 E6 [08:34:52]RAPDU: 15 96 19 CA B7 EF C7 4B 90 00 [08:34:52]wFMCommunicate OK [08:34:52]SAM_PROTO_SignData done [08:34:52]FM_MakeSignedData done [08:34:52]CreateOFDProtocolMessage [08:34:52]wFMCommunicate request_size=4 [08:34:52]MH_SAM_APDU [08:34:52]CAPDU: 80 11 00 00 [08:34:52]Write to MH i2c: E2 08 00 A9 7C 80 11 00 00 00 00 00 00 9F [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:52]Read from MH i2c: E2 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 17 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: E2 17 00 A9 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EF [08:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:34:52]wFMCommunicate OK [08:34:52]CreateOFDProtocolMessage done [08:34:52]OFDSenderStorePacket 94847 [08:34:52]StoreOFDPacket docnum=94847 [08:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3F B4 07 01 0A AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 38 C2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 72 01 00 35 04 06 00 C3 A8 15 77 11 7C 15 96 19 CA B7 EF C7 4B [08:34:52]CheckFolder [08:34:52]dirname=/storage/ofd_packets [08:34:52]CheckFolder done [08:34:52]ProducePacketName [08:34:52]name=ofd_packets/00094847 [08:34:52]NVStorageSaveData ofd_packets/00094847 [08:34:52]File name is /storage/ofd_packets/00094847 [08:34:52]Write 301 bytes [08:34:52]NVStorageSaveData done [08:34:52]OFDSenderStorePacket done [08:34:52]KKMCreateOFDPacket done [08:34:52]NVStorageSaveData kkm_last_timestamp [08:34:52]File name is /storage/kkm_last_timestamp [08:34:52]Write 4 bytes [08:34:52]NVStorageSaveData done [08:34:52]ExternCall_PrintAddStr [08:34:52]wPrintStart [08:34:52]Write to MH i2c: 01 00 00 AA 7C 26 [08:34:52]Write i2c OK [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: 01 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: 01 07 00 [08:34:52]MH_I2C_Read... [08:34:52]Read from MH i2c: 01 07 00 AA 7C 00 80 00 00 00 FF 0F BB [08:34:52]RasterBufferAndPrint [08:34:52]line Счет N : (1)195786 [08:34:52]line ИНН: 02508201610067 [08:34:52]line Контрольно-Кассовый Чек [08:34:52]line ПРОДАЖА [08:34:52]line ТРК (МРК, ГНК) : 42 [08:34:52]line Товар: 2710124130 [08:34:52]line Аи-92-К-5 [08:34:52]line 15.900 * 62.90 [08:34:52]line = 1000.11 [08:34:52]line НДС 12% НСП 1% [08:34:52]line > о реализуемом товаре [08:34:52]line ОКРУГЛЕНИЕ: -0.11 [08:34:52]line ИТОГО: 1000.00 [08:34:52]line Внесено: 1000.00 [08:34:52]line СДАЧА: 0.00 [08:34:52]line НСП 1% : 8.85 [08:34:52]line НДС 12% : 106.21 [08:34:52]line Наличными: 1000.00 [08:34:52]line Безнал.: 0.00 [08:34:52]line Место: АЗС № 6 "Партнер Нефть" [08:34:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:34:52]line СНО: Общий режим [08:34:52]line Чек 22 11.03.2024 08:35 [08:34:52]line Смена: 326 ФФД: 1.0 [08:34:52]line ЗНМ: 0300000009 [08:34:52]line РНМ: 0000000000090555 [08:34:52]line Версия ККМ: 001 [08:34:52]line ФМ: 0000000000874811 [08:34:52]line ФД: 94847 [08:34:52]line ФПД: 215126682046844 [08:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T083504&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94847&fm=215126682046844&tin=02508201610067®Number=0000000000090555&sum=100000 [08:34:52]written 0, free lines is 4095 [08:34:52]OFD Sender: Processing packet 94847 [packets to send 30, broken 29] [08:34:52]ProducePacketName [08:34:52]name=ofd_packets/00094847 [08:34:52]OFD Sender: To server: pG, [08:34:52]CommunicateWithHost lk.salyk.kg:30040 [08:34:52]ConnectInit lk.salyk.kg [08:34:53]Connected sock=10 [08:34:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3F B4 07 01 0A AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 38 C2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 72 01 00 35 04 06 00 C3 A8 15 77 11 7C 15 96 19 CA B7 EF C7 4B [08:34:53]Write to MH i2c: 01 00 00 D5 7C 51 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: 01 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: 01 07 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: 01 07 00 D5 7C 00 80 00 00 00 49 0D 2E [08:34:53]RasterBufferAndPrint [08:34:53]line [08:34:53]line [08:34:53]line [08:34:53]line [08:34:53]line [08:34:53]written 0, free lines is 3407 [08:34:53]process_action close_receipt done [08:34:53]requested_data is exist [08:34:53]produce_requested_data [08:34:53]requested_item fm.sn is exist - process it [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 11 00 00 [08:34:53]Write to MH i2c: E2 08 00 DC 7C 80 11 00 00 00 00 00 00 D2 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 17 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 17 00 DC 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 22 [08:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:34:53]wFMCommunicate OK [08:34:53]requested_item fd.num is exist - process it [08:34:53]SAM_PROTO_GetFieldsCounters [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 13 00 00 [08:34:53]Write to MH i2c: E2 08 00 DD 7C 80 13 00 00 00 00 00 00 D5 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 44 77 47 00 C9 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 31 31 10 04 04 00 7F 72 01 00 F4 03 04 00 92 6D EE 65 B6 04 01 00 00 99 9F F2 08 B0 D7 77 31 [08:34:53]CommunicateWithHost err = 0 [08:34:53]CheckOFDResponse [08:34:53]1017 (14) - 77093643461234 [08:34:53]1041 (16) - 0000000000874811 [08:34:53]1040 (4) - 94847 [08:34:53]1012 (4) - 11.03.2024 02:33 [08:34:53]1206 (1) - 0 [08:34:53]OFD Sender: Remove packet 94847 [08:34:53]ProducePacketName [08:34:53]name=ofd_packets/00094847 [08:34:53]NVStorageDeleteData [08:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 62 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 62 00 DD 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [08:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:53]wFMCommunicate OK [08:34:53]SAM_PROTO_GetFieldsCounters done [08:34:53]requested_item shift.num is exist - process it [08:34:53]requested_item shift.opened is exist - process it [08:34:53]req_shift_opened [08:34:53]FM_GetShiftState [08:34:53]SAM_PROTO_GetShiftState [08:34:53]wFMCommunicate request_size=4 [08:34:53]MH_SAM_APDU [08:34:53]CAPDU: 80 13 01 00 [08:34:53]Write to MH i2c: E2 08 00 DE 7C 80 13 01 00 00 00 00 00 D7 [08:34:53]Write i2c OK [08:34:53]MH_I2C_Read... [08:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:53]Read from MH i2c: E2 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 0E 00 [08:34:53]MH_I2C_Read... [08:34:53]Read from MH i2c: E2 0E 00 DE 7C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 73 [08:34:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:34:53]wFMCommunicate OK [08:34:53]SAM_PROTO_GetShiftState done [08:34:53]FM_GetShiftState done [08:34:53]req_shift_opened done [08:34:53]requested_item shift.open_date is exist - process it [08:34:53]req_shift_open_date [08:34:53]req_shift_open_date done [08:34:53]produce_requested_data done [08:34:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94847,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:34:53]process_action_free close_receipt [08:34:53]json_value_free [08:34:53]json_value_free done [08:34:53]process_json_proto returns [08:34:53]Send response to host [08:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94847,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:34:53]free response buf [08:34:53]execute_script done [08:34:53]execute_script returns [08:34:53]free content buf [08:34:53]Sock 9.Close socket [08:34:53]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]accept exits with 7 [08:46:44]New connection [08:46:44]New thread 3067014500 created [08:46:44]Thread 3066871140 joined [08:46:44]Waiting for new connection... [08:46:44] Sock 7.Parse request [08:46:44]Sock 7.Check first char [08:46:44]Sock 7.First char is OK [08:46:44]request: POST /json_proto HTTP/1.0 [08:46:44]Method: POST [08:46:44]URL: /json_proto [08:46:44]Method is POST - this is cgi request [08:46:44]url: /json_proto [08:46:44]query_string will be loaded in cgi processing [08:46:44]execute_cgi json_proto POST (null) [08:46:44]execute_cgi path=json_proto method=POST [08:46:44]POST find Content-Length [08:46:44]Host: 172.17.62.67:8080 [08:46:44]Content-Length: 1180 [08:46:44]Content-Type: application/json [08:46:44] [08:46:44]POST finish read [08:46:44]Found Content-Length = 1180 [08:46:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195787\u000A11.03.2024 08:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3776457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:44]execute_script... [08:46:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195787\u000A11.03.2024 08:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3776457\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:44]POST & json_proto [08:46:44]process_json_proto [08:46:44]json parsed OK: [08:46:44]protocol is kg_v1.0 [08:46:44]action value=print_text [08:46:44]process_action print_text [08:46:44]cmd_print_text [08:46:44]ExternCall_PrintAddStr [08:46:44]wPrintStart [08:46:44]Write to MH i2c: 01 00 00 DF 7C 5B [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 DF 7C 00 80 00 00 00 FF 0F F0 [08:46:44]RasterBufferAndPrint [08:46:44]line *****ТОВАРНЫЙ ЧЕК***** [08:46:44]line АЗС 6 [08:46:44]line Партнер нефть [08:46:44]line 02508201610067 [08:46:44]line Кассир : Карыбаев Б. [08:46:44]line Счет N : (1)195787 [08:46:44]line 11.03.2024 08:41 [08:46:44]line ПРОДАЖА [08:46:44]line ТРК (МРК, ГНК): 61 [08:46:44]line Вид ГСМ : 2710194210 [08:46:44]line ДТ-К-5 [08:46:44]line 20.000 x 70.90 [08:46:44]line ИТОГ: 1418.00 [08:46:44]line Тип оплаты: Талоны: Партнер нефть [08:46:44]line 3776457 [08:46:44]line ______________________ [08:46:44]line (подпись) [08:46:44]written 0, free lines is 4095 [08:46:44]Write to MH i2c: 01 00 00 F3 7C 6F [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 F3 7C 00 80 00 00 00 5E 0E 62 [08:46:44]RasterBufferAndPrint [08:46:44]line [08:46:44]line [08:46:44]line [08:46:44]line [08:46:44]line [08:46:44]written 0, free lines is 3682 [08:46:44]process_action print_text done [08:46:44]requested_data is exist [08:46:44]produce_requested_data [08:46:44]requested_item fm.sn is exist - process it [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 11 00 00 [08:46:44]Write to MH i2c: E2 08 00 FA 7C 80 11 00 00 00 00 00 00 F0 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 17 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 17 00 FA 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [08:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:46:44]wFMCommunicate OK [08:46:44]requested_item fd.num is exist - process it [08:46:44]SAM_PROTO_GetFieldsCounters [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 13 00 00 [08:46:44]Write to MH i2c: E2 08 00 FB 7C 80 13 00 00 00 00 00 00 F3 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]OFD Sender: No OFD packet to send [08:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 62 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 62 00 FB 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [08:46: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:44]wFMCommunicate OK [08:46:44]SAM_PROTO_GetFieldsCounters done [08:46:44]requested_item shift.num is exist - process it [08:46:44]requested_item shift.opened is exist - process it [08:46:44]req_shift_opened [08:46:44]FM_GetShiftState [08:46:44]SAM_PROTO_GetShiftState [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 13 01 00 [08:46:44]Write to MH i2c: E2 08 00 FC 7C 80 13 01 00 00 00 00 00 F5 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 0E 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 0E 00 FC 7C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 91 [08:46:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:46:44]wFMCommunicate OK [08:46:44]SAM_PROTO_GetShiftState done [08:46:44]FM_GetShiftState done [08:46:44]req_shift_opened done [08:46:44]requested_item shift.open_date is exist - process it [08:46:44]req_shift_open_date [08:46:44]req_shift_open_date done [08:46:44]produce_requested_data done [08:46:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94847,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:46:44]process_action_free print_text [08:46:44]json_value_free [08:46:44]json_value_free done [08:46:44]process_json_proto returns [08:46:44]Send response to host [08:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94847,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:46:44]free response buf [08:46:44]execute_script done [08:46:44]execute_script returns [08:46:44]free content buf [08:46:44]Sock 7.Close socket [08:46:44]Sock 7.Thread stoped [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:23]accept exits with 9 [08:53:23]New connection [08:53:23]New thread 3066871140 created [08:53:23]Thread 3067014500 joined [08:53:23]Waiting for new connection... [08:53:23] Sock 9.Parse request [08:53:23]Sock 9.Check first char [08:53:23]Sock 9.First char is OK [08:53:23]request: POST /json_proto HTTP/1.0 [08:53:23]Method: POST [08:53:23]URL: /json_proto [08:53:23]Method is POST - this is cgi request [08:53:23]url: /json_proto [08:53:23]query_string will be loaded in cgi processing [08:53:23]execute_cgi json_proto POST (null) [08:53:23]execute_cgi path=json_proto method=POST [08:53:23]POST find Content-Length [08:53:23]Host: 172.17.62.67:8080 [08:53:23]Content-Length: 1191 [08:53:23]Content-Type: application/json [08:53:23] [08:53:23]POST finish read [08:53:23]Found Content-Length = 1191 [08:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195788\u000A11.03.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 7090.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:23]execute_script... [08:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195788\u000A11.03.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 7090.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:23]POST & json_proto [08:53:23]process_json_proto [08:53:23]json parsed OK: [08:53:23]protocol is kg_v1.0 [08:53:23]action value=print_text [08:53:23]process_action print_text [08:53:23]cmd_print_text [08:53:23]ExternCall_PrintAddStr [08:53:23]wPrintStart [08:53:23]Write to MH i2c: 01 00 00 FD 7C 79 [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 07 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 07 00 FD 7C 00 80 00 00 00 FF 0F 0E [08:53:23]RasterBufferAndPrint [08:53:23]line *****ТОВАРНЫЙ ЧЕК***** [08:53:23]line АЗС 6 [08:53:23]line Партнер нефть [08:53:23]line 02508201610067 [08:53:23]line Кассир : Карыбаев Б. [08:53:23]line Счет N : (1)195788 [08:53:23]line 11.03.2024 08:47 [08:53:23]line ПРОДАЖА [08:53:23]line ТРК (МРК, ГНК): 51 [08:53:23]line Вид ГСМ : 2710194210 [08:53:23]line ДТ-К-5 [08:53:23]line 100.000 x 70.90 [08:53:23]line ИТОГ: 7090.00 [08:53:23]line Тип оплаты: Талоны: Топливная Карта [08:53:23]line 74820 [08:53:23]line ______________________ [08:53:23]line (подпись) [08:53:23]written 0, free lines is 4095 [08:53:23]Write to MH i2c: 01 00 00 11 7D 8E [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 07 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: 01 07 00 11 7D 00 80 00 00 00 60 0E 83 [08:53:23]RasterBufferAndPrint [08:53:23]line [08:53:23]line [08:53:23]line [08:53:23]line [08:53:23]line [08:53:23]written 0, free lines is 3684 [08:53:23]process_action print_text done [08:53:23]requested_data is exist [08:53:23]produce_requested_data [08:53:23]requested_item fm.sn is exist - process it [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 11 00 00 [08:53:23]Write to MH i2c: E2 08 00 18 7D 80 11 00 00 00 00 00 00 0F [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 17 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 17 00 18 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5F [08:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:53:23]wFMCommunicate OK [08:53:23]requested_item fd.num is exist - process it [08:53:23]SAM_PROTO_GetFieldsCounters [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 13 00 00 [08:53:23]Write to MH i2c: E2 08 00 19 7D 80 13 00 00 00 00 00 00 12 [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 62 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 62 00 19 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [08:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:23]wFMCommunicate OK [08:53:23]SAM_PROTO_GetFieldsCounters done [08:53:23]requested_item shift.num is exist - process it [08:53:23]requested_item shift.opened is exist - process it [08:53:23]req_shift_opened [08:53:23]FM_GetShiftState [08:53:23]SAM_PROTO_GetShiftState [08:53:23]wFMCommunicate request_size=4 [08:53:23]MH_SAM_APDU [08:53:23]CAPDU: 80 13 01 00 [08:53:23]Write to MH i2c: E2 08 00 1A 7D 80 13 01 00 00 00 00 00 14 [08:53:23]Write i2c OK [08:53:23]MH_I2C_Read... [08:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:23]Read from MH i2c: E2 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 0E 00 [08:53:23]MH_I2C_Read... [08:53:23]Read from MH i2c: E2 0E 00 1A 7D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B0 [08:53:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:53:23]wFMCommunicate OK [08:53:23]SAM_PROTO_GetShiftState done [08:53:23]FM_GetShiftState done [08:53:23]req_shift_opened done [08:53:23]requested_item shift.open_date is exist - process it [08:53:23]req_shift_open_date [08:53:23]req_shift_open_date done [08:53:23]produce_requested_data done [08:53:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94847,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:53:23]process_action_free print_text [08:53:23]json_value_free [08:53:23]json_value_free done [08:53:23]process_json_proto returns [08:53:23]Send response to host [08:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94847,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:53:23]free response buf [08:53:23]execute_script done [08:53:23]execute_script returns [08:53:23]free content buf [08:53:23]Sock 9.Close socket [08:53:23]Sock 9.Thread stoped [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:55:55]accept exits with 7 [08:55:55]New connection [08:55:55]New thread 3067014500 created [08:55:55]Thread 3066871140 joined [08:55:55]Waiting for new connection... [08:55:55] Sock 7.Parse request [08:55:55]Sock 7.Check first char [08:55:55]Sock 7.First char is OK [08:55:55]request: POST /json_proto HTTP/1.0 [08:55:55]Method: POST [08:55:55]URL: /json_proto [08:55:55]Method is POST - this is cgi request [08:55:55]url: /json_proto [08:55:55]query_string will be loaded in cgi processing [08:55:55]execute_cgi json_proto POST (null) [08:55:55]execute_cgi path=json_proto method=POST [08:55:55]POST find Content-Length [08:55:55]Host: 172.17.62.67:8080 [08:55:55]Content-Length: 677 [08:55:55]Content-Type: application/json [08:55:55] [08:55:55]POST finish read [08:55:55]Found Content-Length = 677 [08:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:55:55]execute_script... [08:55: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)195790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:55:55]POST & json_proto [08:55:55]process_json_proto [08:55:55]json parsed OK: [08:55:55]protocol is kg_v1.0 [08:55:55]action value=close_receipt [08:55:55]process_action close_receipt [08:55:55]cmd_close_receipt [08:55:55]MH_GetDate [08:55:55]Write to MH i2c: F0 00 00 1B 7D 87 [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 05 00 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: F0 05 00 1B 7D 00 29 C7 EE 65 CF [08:55:55]GetLastDocTimeStamp 1710146104 [08:55:55]current date 1710147369 [08:55:55]FM_GetShiftState [08:55:55]SAM_PROTO_GetShiftState [08:55:55]wFMCommunicate request_size=4 [08:55:55]MH_SAM_APDU [08:55:55]CAPDU: 80 13 01 00 [08:55:55]Write to MH i2c: E2 08 00 1C 7D 80 13 01 00 00 00 00 00 16 [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:55]Read from MH i2c: E2 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: E2 0E 00 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: E2 0E 00 1C 7D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B2 [08:55:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:55:55]wFMCommunicate OK [08:55:55]SAM_PROTO_GetShiftState done [08:55:55]FM_GetShiftState done [08:55:55]opened in 1710115571 [08:55:55]opened+sec_in_day 1710201971 [08:55:55]quantity*price = 50005 [08:55:55]sum+1 = 50007 [08:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 23 11.03.2024 08:56 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94848 ФПД: 29211532457549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T085609&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94848&fm=29211532457549&tin=02508201610067®Number=0000000000090555&sum=50000 [08:55:56]StoreToDocumentArchive [08:55:56]shift 326 fd 94848 [08:55:56]save to /storage/0326/doc_00094848 [08:55:56]save last doc name /storage/0326/doc_00094848 to /storage/kkm_last_doc_name [08:55:56]save OK [08:55:56]Clear old archive folders... [08:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:56]tlvbuf is 001FBB00 [08:55:56]SAM_PROTO_ClearQueue [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 09 00 00 [08:55:56]Write to MH i2c: E2 08 00 29 7D 80 09 00 00 00 00 00 00 18 [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 29 7D 00 90 00 1A [08:55:56]RAPDU: 90 00 [08:55:56]wFMCommunicate OK [08:55:56]SAM_PROTO_ClearQueue done [08:55:56]KKMCreateOFDPacket [08:55:56]OFDProtocolAddRootSTLVToBuf [08:55:56]FM_MakeSignedData [08:55:56]FM_MakeSignedData [08:55:56]SAM_PROTO_SignData [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 0D 01 02 [08:55:56]Write to MH i2c: E2 08 00 2A 7D 80 0D 01 02 00 00 00 00 20 [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 03 00 2A 7D 00 90 00 1B [08:55:56]RAPDU: 90 00 [08:55:56]wFMCommunicate OK [08:55:56]wFMCommunicate request_size=255 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 29 C7 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 72 01 00 35 04 06 00 1A [08:55:56]Write to MH i2c: E2 02 01 2B 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 29 C7 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 72 01 00 35 04 06 00 1A 00 00 77 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:57]Read from MH i2c: E2 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 03 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 03 00 2B 7D 00 90 00 1C [08:55:57]RAPDU: 90 00 [08:55:57]wFMCommunicate OK [08:55:57]wFMCommunicate request_size=10 [08:55:57]MH_SAM_APDU [08:55:57]CAPDU: 80 0D 02 02 05 91 57 03 F6 4D [08:55:57]Write to MH i2c: E2 0D 00 2C 7D 80 0D 02 02 05 00 91 57 03 F6 4D 00 00 5B [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:57]Read from MH i2c: E2 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 03 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 03 00 2C 7D 00 90 00 1D [08:55:57]RAPDU: 90 00 [08:55:57]wFMCommunicate OK [08:55:57]wFMCommunicate request_size=4 [08:55:57]MH_SAM_APDU [08:55:57]CAPDU: 80 0D 03 02 [08:55:57]Write to MH i2c: E2 08 00 2D 7D 80 0D 03 02 00 00 00 00 25 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:57]Read from MH i2c: E2 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 0B 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 0B 00 2D 7D 00 A2 7C 63 53 09 59 56 E9 90 00 9B [08:55:57]RAPDU: A2 7C 63 53 09 59 56 E9 90 00 [08:55:57]wFMCommunicate OK [08:55:57]SAM_PROTO_SignData done [08:55:57]FM_MakeSignedData done [08:55:57]CreateOFDProtocolMessage [08:55:57]wFMCommunicate request_size=4 [08:55:57]MH_SAM_APDU [08:55:57]CAPDU: 80 11 00 00 [08:55:57]Write to MH i2c: E2 08 00 2E 7D 80 11 00 00 00 00 00 00 25 [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:57]Read from MH i2c: E2 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 17 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: E2 17 00 2E 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [08:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:55:57]wFMCommunicate OK [08:55:57]CreateOFDProtocolMessage done [08:55:57]OFDSenderStorePacket 94848 [08:55:57]StoreOFDPacket docnum=94848 [08:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2D EB 07 01 89 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 29 C7 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 72 01 00 35 04 06 00 1A 91 57 03 F6 4D A2 7C 63 53 09 59 56 E9 [08:55:57]CheckFolder [08:55:57]dirname=/storage/ofd_packets [08:55:57]CheckFolder done [08:55:57]ProducePacketName [08:55:57]name=ofd_packets/00094848 [08:55:57]NVStorageSaveData ofd_packets/00094848 [08:55:57]File name is /storage/ofd_packets/00094848 [08:55:57]Write 301 bytes [08:55:57]NVStorageSaveData done [08:55:57]OFDSenderStorePacket done [08:55:57]KKMCreateOFDPacket done [08:55:57]NVStorageSaveData kkm_last_timestamp [08:55:57]File name is /storage/kkm_last_timestamp [08:55:57]Write 4 bytes [08:55:57]NVStorageSaveData done [08:55:57]ExternCall_PrintAddStr [08:55:57]wPrintStart [08:55:57]Write to MH i2c: 01 00 00 2F 7D AC [08:55:57]Write i2c OK [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 07 00 [08:55:57]MH_I2C_Read... [08:55:57]Read from MH i2c: 01 07 00 2F 7D 00 80 00 00 00 FF 0F 41 [08:55:57]RasterBufferAndPrint [08:55:57]line Счет N : (1)195790 [08:55:57]line ИНН: 02508201610067 [08:55:57]line Контрольно-Кассовый Чек [08:55:57]line ПРОДАЖА [08:55:57]line ТРК (МРК, ГНК) : 42 [08:55:57]line Товар: 2710124130 [08:55:57]line Аи-92-К-5 [08:55:57]line 7.950 * 62.90 [08:55:57]line = 500.06 [08:55:57]line НДС 12% НСП 1% [08:55:57]line > о реализуемом товаре [08:55:57]line ОКРУГЛЕНИЕ: -0.06 [08:55:57]line ИТОГО: 500.00 [08:55:57]line Внесено: 500.00 [08:55:57]line СДАЧА: 0.00 [08:55:57]line НСП 1% : 4.42 [08:55:57]line НДС 12% : 53.10 [08:55:57]line Наличными: 500.00 [08:55:57]line Безнал.: 0.00 [08:55:57]line Место: АЗС № 6 "Партнер Нефть" [08:55:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:55:57]line СНО: Общий режим [08:55:57]line Чек 23 11.03.2024 08:56 [08:55:57]line Смена: 326 ФФД: 1.0 [08:55:57]line ЗНМ: 0300000009 [08:55:57]line РНМ: 0000000000090555 [08:55:57]line Версия ККМ: 001 [08:55:57]line ФМ: 0000000000874811 [08:55:57]line ФД: 94848 [08:55:57]line ФПД: 29211532457549 [08:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T085609&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94848&fm=29211532457549&tin=02508201610067®Number=0000000000090555&sum=50000 [08:55:57]OFD Sender: Processing packet 94848 [packets to send 30, broken 29] [08:55:57]ProducePacketName [08:55:57]name=ofd_packets/00094848 [08:55:57]OFD Sender: To server: pG, [08:55:57]CommunicateWithHost lk.salyk.kg:30040 [08:55:57]ConnectInit lk.salyk.kg [08:55:57]written 0, free lines is 4095 [08:55:57]Connected sock=10 [08:55: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 31 31 0F 01 00 00 2D EB 07 01 89 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 29 C7 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 72 01 00 35 04 06 00 1A 91 57 03 F6 4D A2 7C 63 53 09 59 56 E9 [08:55: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 31 31 4F 00 00 00 23 DF 47 00 63 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 31 31 10 04 04 00 80 72 01 00 F4 03 04 00 83 72 EE 65 B6 04 01 00 00 5A B9 2E B6 44 75 9B 10 [08:55:58]CommunicateWithHost err = 0 [08:55:58]CheckOFDResponse [08:55:58]1017 (14) - 77093643461234 [08:55:58]1041 (16) - 0000000000874811 [08:55:58]1040 (4) - 94848 [08:55:58]1012 (4) - 11.03.2024 02:54 [08:55:58]1206 (1) - 0 [08:55:58]OFD Sender: Remove packet 94848 [08:55:58]ProducePacketName [08:55:58]name=ofd_packets/00094848 [08:55:58]NVStorageDeleteData [08:55:58]Write to MH i2c: 01 00 00 5A 7D D7 [08:55:58]Write i2c OK [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: 01 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: 01 07 00 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: 01 07 00 5A 7D 00 80 00 00 00 4A 0D B5 [08:55:58]RasterBufferAndPrint [08:55:58]line [08:55:58]line [08:55:58]line [08:55:58]line [08:55:58]line [08:55:58]written 0, free lines is 3408 [08:55:58]process_action close_receipt done [08:55:58]requested_data is exist [08:55:58]produce_requested_data [08:55:58]requested_item fm.sn is exist - process it [08:55:58]wFMCommunicate request_size=4 [08:55:58]MH_SAM_APDU [08:55:58]CAPDU: 80 11 00 00 [08:55:58]Write to MH i2c: E2 08 00 61 7D 80 11 00 00 00 00 00 00 58 [08:55:58]Write i2c OK [08:55:58]MH_I2C_Read... [08:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:58]Read from MH i2c: E2 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: E2 17 00 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: E2 17 00 61 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A8 [08:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:55:58]wFMCommunicate OK [08:55:58]requested_item fd.num is exist - process it [08:55:58]SAM_PROTO_GetFieldsCounters [08:55:58]wFMCommunicate request_size=4 [08:55:58]MH_SAM_APDU [08:55:58]CAPDU: 80 13 00 00 [08:55:58]Write to MH i2c: E2 08 00 62 7D 80 13 00 00 00 00 00 00 5B [08:55:58]Write i2c OK [08:55:58]MH_I2C_Read... [08:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:58]Read from MH i2c: E2 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: E2 62 00 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: E2 62 00 62 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [08: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:58]wFMCommunicate OK [08:55:58]SAM_PROTO_GetFieldsCounters done [08:55:58]requested_item shift.num is exist - process it [08:55:58]requested_item shift.opened is exist - process it [08:55:58]req_shift_opened [08:55:58]FM_GetShiftState [08:55:58]SAM_PROTO_GetShiftState [08:55:58]wFMCommunicate request_size=4 [08:55:58]MH_SAM_APDU [08:55:58]CAPDU: 80 13 01 00 [08:55:58]Write to MH i2c: E2 08 00 63 7D 80 13 01 00 00 00 00 00 5D [08:55:58]Write i2c OK [08:55:58]MH_I2C_Read... [08:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:58]Read from MH i2c: E2 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: E2 0E 00 [08:55:58]MH_I2C_Read... [08:55:58]Read from MH i2c: E2 0E 00 63 7D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F9 [08:55:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:55:58]wFMCommunicate OK [08:55:58]SAM_PROTO_GetShiftState done [08:55:58]FM_GetShiftState done [08:55:58]req_shift_opened done [08:55:58]requested_item shift.open_date is exist - process it [08:55:58]req_shift_open_date [08:55:58]req_shift_open_date done [08:55:58]produce_requested_data done [08:55:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94848,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:55:58]process_action_free close_receipt [08:55:58]json_value_free [08:55:58]json_value_free done [08:55:58]process_json_proto returns [08:55:58]Send response to host [08:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94848,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:55:58]free response buf [08:55:58]execute_script done [08:55:58]execute_script returns [08:55:58]free content buf [08:55:58]Sock 7.Close socket [08:55:58]Sock 7.Thread stoped [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:50]accept exits with 9 [08:57:50]New connection [08:57:50]New thread 3066871140 created [08:57:50]Thread 3067014500 joined [08:57:50]Waiting for new connection... [08:57:50] Sock 9.Parse request [08:57:50]Sock 9.Check first char [08:57:50]Sock 9.First char is OK [08:57:50]request: POST /json_proto HTTP/1.0 [08:57:50]Method: POST [08:57:50]URL: /json_proto [08:57:50]Method is POST - this is cgi request [08:57:50]url: /json_proto [08:57:50]query_string will be loaded in cgi processing [08:57:50]execute_cgi json_proto POST (null) [08:57:50]execute_cgi path=json_proto method=POST [08:57:50]POST find Content-Length [08:57:50]Host: 172.17.62.67:8080 [08:57:50]Content-Length: 1192 [08:57:50]Content-Type: application/json [08:57:50] [08:57:50]POST finish read [08:57:50]Found Content-Length = 1192 [08:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195789\u000A11.03.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 150.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 10635.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:50]execute_script... [08:57:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195789\u000A11.03.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 150.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 10635.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:50]POST & json_proto [08:57:50]process_json_proto [08:57:50]json parsed OK: [08:57:50]protocol is kg_v1.0 [08:57:50]action value=print_text [08:57:50]process_action print_text [08:57:50]cmd_print_text [08:57:50]ExternCall_PrintAddStr [08:57:50]wPrintStart [08:57:50]Write to MH i2c: 01 00 00 64 7D E1 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 64 7D 00 80 00 00 00 FF 0F 76 [08:57:50]RasterBufferAndPrint [08:57:50]line *****ТОВАРНЫЙ ЧЕК***** [08:57:50]line АЗС 6 [08:57:50]line Партнер нефть [08:57:50]line 02508201610067 [08:57:50]line Кассир : Карыбаев Б. [08:57:50]line Счет N : (1)195789 [08:57:50]line 11.03.2024 08:52 [08:57:50]line ПРОДАЖА [08:57:50]line ТРК (МРК, ГНК): 61 [08:57:50]line Вид ГСМ : 2710194210 [08:57:50]line ДТ-К-5 [08:57:50]line 150.000 x 70.90 [08:57:50]line ИТОГ: 10635.00 [08:57:50]line Тип оплаты: Талоны: Топливная Карта [08:57:50]line 74820 [08:57:50]line ______________________ [08:57:50]line (подпись) [08:57:50]written 0, free lines is 4095 [08:57:50]Write to MH i2c: 01 00 00 78 7D F5 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 78 7D 00 80 00 00 00 61 0E EB [08:57:50]RasterBufferAndPrint [08:57:50]line [08:57:50]line [08:57:50]line [08:57:50]line [08:57:50]line [08:57:50]written 0, free lines is 3685 [08:57:50]process_action print_text done [08:57:50]requested_data is exist [08:57:50]produce_requested_data [08:57:50]requested_item fm.sn is exist - process it [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 11 00 00 [08:57:50]Write to MH i2c: E2 08 00 7F 7D 80 11 00 00 00 00 00 00 76 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 17 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 17 00 7F 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [08:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:57:50]wFMCommunicate OK [08:57:50]requested_item fd.num is exist - process it [08:57:50]SAM_PROTO_GetFieldsCounters [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 13 00 00 [08:57:50]Write to MH i2c: E2 08 00 80 7D 80 13 00 00 00 00 00 00 79 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 62 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 62 00 80 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [08:57: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_GetFieldsCounters done [08:57:50]requested_item shift.num is exist - process it [08:57:50]requested_item shift.opened is exist - process it [08:57:50]req_shift_opened [08:57:50]FM_GetShiftState [08:57:50]SAM_PROTO_GetShiftState [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 13 01 00 [08:57:50]Write to MH i2c: E2 08 00 81 7D 80 13 01 00 00 00 00 00 7B [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 0E 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 0E 00 81 7D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 17 [08:57:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [08:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_GetShiftState done [08:57:50]FM_GetShiftState done [08:57:50]req_shift_opened done [08:57:50]requested_item shift.open_date is exist - process it [08:57:50]req_shift_open_date [08:57:50]req_shift_open_date done [08:57:50]produce_requested_data done [08:57:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94848,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [08:57:50]process_action_free print_text [08:57:50]json_value_free [08:57:50]json_value_free done [08:57:50]process_json_proto returns [08:57:50]Send response to host [08:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94848,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [08:57:50]free response buf [08:57:50]execute_script done [08:57:50]execute_script returns [08:57:50]free content buf [08:57:50]Sock 9.Close socket [08:57:50]Sock 9.Thread stoped [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:11]accept exits with 7 [09:02:11]New connection [09:02:11]New thread 3067014500 created [09:02:11]Thread 3066871140 joined [09:02:11]Waiting for new connection... [09:02:11] Sock 7.Parse request [09:02:11]Sock 7.Check first char [09:02:11]Sock 7.First char is OK [09:02:11]request: POST /json_proto HTTP/1.0 [09:02:11]Method: POST [09:02:11]URL: /json_proto [09:02:11]Method is POST - this is cgi request [09:02:11]url: /json_proto [09:02:11]query_string will be loaded in cgi processing [09:02:11]execute_cgi json_proto POST (null) [09:02:11]execute_cgi path=json_proto method=POST [09:02:11]POST find Content-Length [09:02:11]Host: 172.17.62.67:8080 [09:02:11]Content-Length: 1186 [09:02:11]Content-Type: application/json [09:02:11] [09:02:11]POST finish read [09:02:11]Found Content-Length = 1186 [09:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195791\u000A11.03.2024 08:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3821947:51\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:11]execute_script... [09:02:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195791\u000A11.03.2024 08:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3821947:51\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:11]POST & json_proto [09:02:11]process_json_proto [09:02:11]json parsed OK: [09:02:11]protocol is kg_v1.0 [09:02:11]action value=print_text [09:02:11]process_action print_text [09:02:11]cmd_print_text [09:02:11]ExternCall_PrintAddStr [09:02:11]wPrintStart [09:02:11]Write to MH i2c: 01 00 00 82 7D FF [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 82 7D 00 80 00 00 00 FF 0F 94 [09:02:11]RasterBufferAndPrint [09:02:11]line *****ТОВАРНЫЙ ЧЕК***** [09:02:11]line АЗС 6 [09:02:11]line Партнер нефть [09:02:11]line 02508201610067 [09:02:11]line Кассир : Карыбаев Б. [09:02:11]line Счет N : (1)195791 [09:02:11]line 11.03.2024 08:56 [09:02:11]line ПРОДАЖА [09:02:11]line ТРК (МРК, ГНК): 22 [09:02:11]line Вид ГСМ : 2710124130 [09:02:11]line Аи-92-К-5 [09:02:11]line 20.000 x 62.90 [09:02:11]line ИТОГ: 1258.00 [09:02:11]line Тип оплаты: Талоны: Партнер нефть [09:02:11]line 3821947:51 [09:02:11]line ______________________ [09:02:11]line (подпись) [09:02:11]written 0, free lines is 4095 [09:02:11]Write to MH i2c: 01 00 00 96 7D 13 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 96 7D 00 80 00 00 00 68 0E 10 [09:02:11]RasterBufferAndPrint [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]written 0, free lines is 3692 [09:02:11]process_action print_text done [09:02:11]requested_data is exist [09:02:11]produce_requested_data [09:02:11]requested_item fm.sn is exist - process it [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 11 00 00 [09:02:11]Write to MH i2c: E2 08 00 9D 7D 80 11 00 00 00 00 00 00 94 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 17 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 17 00 9D 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E4 [09:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:02:11]wFMCommunicate OK [09:02:11]requested_item fd.num is exist - process it [09:02:11]SAM_PROTO_GetFieldsCounters [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 13 00 00 [09:02:11]Write to MH i2c: E2 08 00 9E 7D 80 13 00 00 00 00 00 00 97 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 62 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 62 00 9E 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [09:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_GetFieldsCounters done [09:02:11]requested_item shift.num is exist - process it [09:02:11]requested_item shift.opened is exist - process it [09:02:11]req_shift_opened [09:02:11]FM_GetShiftState [09:02:11]SAM_PROTO_GetShiftState [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 13 01 00 [09:02:11]Write to MH i2c: E2 08 00 9F 7D 80 13 01 00 00 00 00 00 99 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0E 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0E 00 9F 7D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 35 [09:02:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_GetShiftState done [09:02:11]FM_GetShiftState done [09:02:11]req_shift_opened done [09:02:11]requested_item shift.open_date is exist - process it [09:02:11]req_shift_open_date [09:02:11]req_shift_open_date done [09:02:11]produce_requested_data done [09:02:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94848,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:02:11]process_action_free print_text [09:02:11]json_value_free [09:02:11]json_value_free done [09:02:11]process_json_proto returns [09:02:11]Send response to host [09:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94848,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:02:11]free response buf [09:02:11]execute_script done [09:02:11]execute_script returns [09:02:11]free content buf [09:02:11]Sock 7.Close socket [09:02:11]Sock 7.Thread stoped [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:22]accept exits with 9 [09:03:22]New connection [09:03:22]New thread 3066871140 created [09:03:22]Thread 3067014500 joined [09:03:22]Waiting for new connection... [09:03:22] Sock 9.Parse request [09:03:22]Sock 9.Check first char [09:03:22]Sock 9.First char is OK [09:03:22]request: POST /json_proto HTTP/1.0 [09:03:22]Method: POST [09:03:22]URL: /json_proto [09:03:22]Method is POST - this is cgi request [09:03:22]url: /json_proto [09:03:22]query_string will be loaded in cgi processing [09:03:22]execute_cgi json_proto POST (null) [09:03:22]execute_cgi path=json_proto method=POST [09:03:22]POST find Content-Length [09:03:22]Host: 172.17.62.67:8080 [09:03:22]Content-Length: 670 [09:03:22]Content-Type: application/json [09:03:22] [09:03:22]POST finish read [09:03:22]Found Content-Length = 670 [09:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "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:03:22]execute_script... [09:03: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)195792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "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:03:22]POST & json_proto [09:03:22]process_json_proto [09:03:22]json parsed OK: [09:03:22]protocol is kg_v1.0 [09:03:22]action value=close_receipt [09:03:22]process_action close_receipt [09:03:22]cmd_close_receipt [09:03:22]MH_GetDate [09:03:22]Write to MH i2c: F0 00 00 A0 7D 0C [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: F0 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: F0 05 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: F0 05 00 A0 7D 00 E8 C8 EE 65 14 [09:03:22]GetLastDocTimeStamp 1710147369 [09:03:22]current date 1710147816 [09:03:22]FM_GetShiftState [09:03:22]SAM_PROTO_GetShiftState [09:03:22]wFMCommunicate request_size=4 [09:03:22]MH_SAM_APDU [09:03:22]CAPDU: 80 13 01 00 [09:03:22]Write to MH i2c: E2 08 00 A1 7D 80 13 01 00 00 00 00 00 9B [09:03:22]Write i2c OK [09:03:22]MH_I2C_Read... [09:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:22]Read from MH i2c: E2 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 0E 00 [09:03:22]MH_I2C_Read... [09:03:22]Read from MH i2c: E2 0E 00 A1 7D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 37 [09:03:22]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:03:22]wFMCommunicate OK [09:03:22]SAM_PROTO_GetShiftState done [09:03:22]FM_GetShiftState done [09:03:22]opened in 1710115571 [09:03:22]opened+sec_in_day 1710201971 [09:03:22]quantity*price = 50033 [09:03:22]sum+1 = 50035 [09:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 24 11.03.2024 09:03 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94849 ФПД: 71159407760480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090336&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94849&fm=71159407760480&tin=02508201610067®Number=0000000000090555&sum=50000 [09:03:23]StoreToDocumentArchive [09:03:23]shift 326 fd 94849 [09:03:23]save to /storage/0326/doc_00094849 [09:03:23]save last doc name /storage/0326/doc_00094849 to /storage/kkm_last_doc_name [09:03:23]save OK [09:03:23]Clear old archive folders... [09:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:03:23]tlvbuf is 004698C0 [09:03:23]SAM_PROTO_ClearQueue [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 09 00 00 [09:03:23]Write to MH i2c: E2 08 00 AE 7D 80 09 00 00 00 00 00 00 9D [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 AE 7D 00 90 00 9F [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]SAM_PROTO_ClearQueue done [09:03:23]KKMCreateOFDPacket [09:03:23]OFDProtocolAddRootSTLVToBuf [09:03:23]FM_MakeSignedData [09:03:23]FM_MakeSignedData [09:03:23]SAM_PROTO_SignData [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 01 02 [09:03:23]Write to MH i2c: E2 08 00 AF 7D 80 0D 01 02 00 00 00 00 A5 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]OFD Sender: No OFD packet to send [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 03 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 03 00 AF 7D 00 90 00 A0 [09:03:24]RAPDU: 90 00 [09:03:24]wFMCommunicate OK [09:03:24]wFMCommunicate request_size=255 [09:03:24]MH_SAM_APDU [09:03:24]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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 E8 C8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 72 01 00 35 04 06 00 [09:03:24]Write to MH i2c: E2 02 01 B0 7D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 E8 C8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 72 01 00 35 04 06 00 00 00 4C [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 03 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 03 00 B0 7D 00 90 00 A1 [09:03:24]RAPDU: 90 00 [09:03:24]wFMCommunicate OK [09:03:24]wFMCommunicate request_size=11 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 0D 02 02 06 40 B8 17 38 D4 60 [09:03:24]Write to MH i2c: E2 0E 00 B1 7D 80 0D 02 02 06 00 40 B8 17 38 D4 60 00 00 2F [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 03 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 03 00 B1 7D 00 90 00 A2 [09:03:24]RAPDU: 90 00 [09:03:24]wFMCommunicate OK [09:03:24]wFMCommunicate request_size=4 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 0D 03 02 [09:03:24]Write to MH i2c: E2 08 00 B2 7D 80 0D 03 02 00 00 00 00 AA [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 0B 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 0B 00 B2 7D 00 6A 26 D0 FA A4 0D AB 99 90 00 FA [09:03:24]RAPDU: 6A 26 D0 FA A4 0D AB 99 90 00 [09:03:24]wFMCommunicate OK [09:03:24]SAM_PROTO_SignData done [09:03:24]FM_MakeSignedData done [09:03:24]CreateOFDProtocolMessage [09:03:24]wFMCommunicate request_size=4 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 11 00 00 [09:03:24]Write to MH i2c: E2 08 00 B3 7D 80 11 00 00 00 00 00 00 AA [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 17 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 17 00 B3 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FA [09:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:03:24]wFMCommunicate OK [09:03:24]CreateOFDProtocolMessage done [09:03:24]OFDSenderStorePacket 94849 [09:03:24]StoreOFDPacket docnum=94849 [09:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 A6 20 08 01 EE AF 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 E8 C8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 72 01 00 35 04 06 00 40 B8 17 38 D4 60 6A 26 D0 FA A4 0D AB 99 [09:03:24]CheckFolder [09:03:24]dirname=/storage/ofd_packets [09:03:24]CheckFolder done [09:03:24]ProducePacketName [09:03:24]name=ofd_packets/00094849 [09:03:24]NVStorageSaveData ofd_packets/00094849 [09:03:24]File name is /storage/ofd_packets/00094849 [09:03:24]Write 302 bytes [09:03:24]NVStorageSaveData done [09:03:24]OFDSenderStorePacket done [09:03:24]KKMCreateOFDPacket done [09:03:24]NVStorageSaveData kkm_last_timestamp [09:03:24]File name is /storage/kkm_last_timestamp [09:03:24]Write 4 bytes [09:03:24]NVStorageSaveData done [09:03:24]ExternCall_PrintAddStr [09:03:24]wPrintStart [09:03:24]Write to MH i2c: 01 00 00 B4 7D 31 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 07 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 07 00 B4 7D 00 80 00 00 00 FF 0F C6 [09:03:24]RasterBufferAndPrint [09:03:24]line Счет N : (1)195792 [09:03:24]line ИНН: 02508201610067 [09:03:24]line Контрольно-Кассовый Чек [09:03:24]line ПРОДАЖА [09:03:24]line ТРК (МРК, ГНК) : 43 [09:03:24]line Товар: 2710124130 [09:03:24]line SUPER 92-К-5 [09:03:24]line 7.830 * 63.90 [09:03:24]line = 500.34 [09:03:24]line НДС 12% НСП 1% [09:03:24]line > о реализуемом товаре [09:03:24]line ОКРУГЛЕНИЕ: -0.34 [09:03:24]line ИТОГО: 500.00 [09:03:24]line Внесено: 500.00 [09:03:24]line СДАЧА: 0.00 [09:03:24]line НСП 1% : 4.43 [09:03:24]line НДС 12% : 53.13 [09:03:24]line Наличными: 500.00 [09:03:24]line Безнал.: 0.00 [09:03:24]line Место: АЗС № 6 "Партнер Нефть" [09:03:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:03:24]line СНО: Общий режим [09:03:24]line Чек 24 11.03.2024 09:03 [09:03:24]line Смена: 326 ФФД: 1.0 [09:03:24]line ЗНМ: 0300000009 [09:03:24]line РНМ: 0000000000090555 [09:03:24]line Версия ККМ: 001 [09:03:24]line ФМ: 0000000000874811 [09:03:24]line ФД: 94849 [09:03:24]line ФПД: 71159407760480 [09:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090336&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94849&fm=71159407760480&tin=02508201610067®Number=0000000000090555&sum=50000 [09:03:24]OFD Sender: Processing packet 94849 [packets to send 30, broken 29] [09:03:24]ProducePacketName [09:03:24]name=ofd_packets/00094849 [09:03:24]OFD Sender: To server: pG, [09:03:24]CommunicateWithHost lk.salyk.kg:30040 [09:03:24]ConnectInit lk.salyk.kg [09:03:24]written 0, free lines is 4095 [09:03:24]Connected sock=10 [09:03: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 31 31 10 01 00 00 A6 20 08 01 EE AF 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 E8 C8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 72 01 00 35 04 06 00 40 B8 17 38 D4 60 6A 26 D0 FA A4 0D AB 99 [09:03: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 31 31 4F 00 00 00 AF B7 47 00 57 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 72 01 00 F4 03 04 00 42 74 EE 65 B6 04 01 00 00 67 BA 68 67 43 E0 77 43 [09:03:25]CommunicateWithHost err = 0 [09:03:25]CheckOFDResponse [09:03:25]1017 (14) - 77093643461234 [09:03:25]1041 (16) - 0000000000874811 [09:03:25]1040 (4) - 94849 [09:03:25]1012 (4) - 11.03.2024 03:02 [09:03:25]1206 (1) - 0 [09:03:25]OFD Sender: Remove packet 94849 [09:03:25]ProducePacketName [09:03:25]name=ofd_packets/00094849 [09:03:25]NVStorageDeleteData [09:03:25]Write to MH i2c: 01 00 00 DF 7D 5C [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: 01 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: 01 07 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: 01 07 00 DF 7D 00 80 00 00 00 49 0D 39 [09:03:25]RasterBufferAndPrint [09:03:25]line [09:03:25]line [09:03:25]line [09:03:25]line [09:03:25]line [09:03:25]written 0, free lines is 3407 [09:03:25]process_action close_receipt done [09:03:25]requested_data is exist [09:03:25]produce_requested_data [09:03:25]requested_item fm.sn is exist - process it [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 11 00 00 [09:03:25]Write to MH i2c: E2 08 00 E6 7D 80 11 00 00 00 00 00 00 DD [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 17 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 17 00 E6 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2D [09:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:03:25]wFMCommunicate OK [09:03:25]requested_item fd.num is exist - process it [09:03:25]SAM_PROTO_GetFieldsCounters [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 13 00 00 [09:03:25]Write to MH i2c: E2 08 00 E7 7D 80 13 00 00 00 00 00 00 E0 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 62 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 62 00 E7 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 81 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [09:03:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 81 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:25]wFMCommunicate OK [09:03:25]SAM_PROTO_GetFieldsCounters done [09:03:25]requested_item shift.num is exist - process it [09:03:25]requested_item shift.opened is exist - process it [09:03:25]req_shift_opened [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 E8 7D 80 13 01 00 00 00 00 00 E2 [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 E8 7D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7E [09:03:25]RAPDU: 09 00 01 F3 4A EE 65 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]req_shift_opened done [09:03:25]requested_item shift.open_date is exist - process it [09:03:25]req_shift_open_date [09:03:25]req_shift_open_date done [09:03:25]produce_requested_data done [09:03:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94849,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:03:25]process_action_free close_receipt [09:03:25]json_value_free [09:03:25]json_value_free done [09:03:25]process_json_proto returns [09:03:25]Send response to host [09:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94849,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:03:25]free response buf [09:03:25]execute_script done [09:03:25]execute_script returns [09:03:25]free content buf [09:03:25]Sock 9.Close socket [09:03:25]Sock 9.Thread stoped [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:42]accept exits with 7 [09:03:42]New connection [09:03:42]New thread 3067014500 created [09:03:42]Thread 3066871140 joined [09:03:42]Waiting for new connection... [09:03:42] Sock 7.Parse request [09:03:42]Sock 7.Check first char [09:03:42]Sock 7.First char is OK [09:03:42]request: POST /json_proto HTTP/1.0 [09:03:42]Method: POST [09:03:42]URL: /json_proto [09:03:42]Method is POST - this is cgi request [09:03:42]url: /json_proto [09:03:42]query_string will be loaded in cgi processing [09:03:42]execute_cgi json_proto POST (null) [09:03:42]execute_cgi path=json_proto method=POST [09:03:42]POST find Content-Length [09:03:42]Host: 172.17.62.67:8080 [09:03:42]Content-Length: 677 [09:03:42]Content-Type: application/json [09:03:42] [09:03:42]POST finish read [09:03:42]Found Content-Length = 677 [09:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:03:42]execute_script... [09:03:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:03:42]POST & json_proto [09:03:42]process_json_proto [09:03:42]json parsed OK: [09:03:42]protocol is kg_v1.0 [09:03:42]action value=close_receipt [09:03:42]process_action close_receipt [09:03:42]cmd_close_receipt [09:03:42]MH_GetDate [09:03:42]Write to MH i2c: F0 00 00 E9 7D 55 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: F0 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: F0 05 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: F0 05 00 E9 7D 00 FC C8 EE 65 71 [09:03:42]GetLastDocTimeStamp 1710147816 [09:03:42]current date 1710147836 [09:03:42]FM_GetShiftState [09:03:42]SAM_PROTO_GetShiftState [09:03:42]wFMCommunicate request_size=4 [09:03:42]MH_SAM_APDU [09:03:42]CAPDU: 80 13 01 00 [09:03:42]Write to MH i2c: E2 08 00 EA 7D 80 13 01 00 00 00 00 00 E4 [09:03:42]Write i2c OK [09:03:42]MH_I2C_Read... [09:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:42]Read from MH i2c: E2 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 0E 00 [09:03:42]MH_I2C_Read... [09:03:42]Read from MH i2c: E2 0E 00 EA 7D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 80 [09:03:42]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:03:42]wFMCommunicate OK [09:03:42]SAM_PROTO_GetShiftState done [09:03:42]FM_GetShiftState done [09:03:42]opened in 1710115571 [09:03:42]opened+sec_in_day 1710201971 [09:03:42]quantity*price = 50005 [09:03:42]sum+1 = 50007 [09:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 25 11.03.2024 09:03 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94850 ФПД: 62093261487066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090356&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94850&fm=62093261487066&tin=02508201610067®Number=0000000000090555&sum=50000 [09:03:43]StoreToDocumentArchive [09:03:43]shift 326 fd 94850 [09:03:43]save to /storage/0326/doc_00094850 [09:03:43]save last doc name /storage/0326/doc_00094850 to /storage/kkm_last_doc_name [09:03:43]save OK [09:03:43]Clear old archive folders... [09:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:43]tlvbuf is 0045A7C0 [09:03:43]SAM_PROTO_ClearQueue [09:03:43]wFMCommunicate request_size=4 [09:03:43]MH_SAM_APDU [09:03:43]CAPDU: 80 09 00 00 [09:03:43]Write to MH i2c: E2 08 00 F7 7D 80 09 00 00 00 00 00 00 E6 [09:03:43]Write i2c OK [09:03:43]MH_I2C_Read... [09:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:43]Read from MH i2c: E2 [09:03:43]MH_I2C_Read... [09:03:43]Read from MH i2c: E2 03 00 [09:03:43]MH_I2C_Read... [09:03:43]Read from MH i2c: E2 03 00 F7 7D 00 90 00 E8 [09:03:43]RAPDU: 90 00 [09:03:43]wFMCommunicate OK [09:03:43]SAM_PROTO_ClearQueue done [09:03:43]KKMCreateOFDPacket [09:03:43]OFDProtocolAddRootSTLVToBuf [09:03:43]FM_MakeSignedData [09:03:43]FM_MakeSignedData [09:03:43]SAM_PROTO_SignData [09:03:43]wFMCommunicate request_size=4 [09:03:43]MH_SAM_APDU [09:03:43]CAPDU: 80 0D 01 02 [09:03:43]Write to MH i2c: E2 08 00 F8 7D 80 0D 01 02 00 00 00 00 EE [09:03:43]Write i2c OK [09:03:43]MH_I2C_Read... [09:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:43]Read from MH i2c: E2 [09:03:43]MH_I2C_Read... [09:03:43]Read from MH i2c: E2 03 00 [09:03:43]MH_I2C_Read... [09:03:43]Read from MH i2c: E2 03 00 F8 7D 00 90 00 E9 [09:03:43]RAPDU: 90 00 [09:03:43]wFMCommunicate OK [09:03:43]wFMCommunicate request_size=255 [09:03:43]MH_SAM_APDU [09:03:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FC C8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 72 01 00 35 04 06 00 38 [09:03:43]Write to MH i2c: E2 02 01 F9 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FC C8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 72 01 00 35 04 06 00 38 00 00 3B [09:03:43]Write i2c OK [09:03:43]MH_I2C_Read... [09:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:44]Read from MH i2c: E2 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 03 00 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 03 00 F9 7D 00 90 00 EA [09:03:44]RAPDU: 90 00 [09:03:44]wFMCommunicate OK [09:03:44]wFMCommunicate request_size=10 [09:03:44]MH_SAM_APDU [09:03:44]CAPDU: 80 0D 02 02 05 79 36 CB 3B DA [09:03:44]Write to MH i2c: E2 0D 00 FA 7D 80 0D 02 02 05 00 79 36 CB 3B DA 00 00 8A [09:03:44]Write i2c OK [09:03:44]MH_I2C_Read... [09:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:44]Read from MH i2c: E2 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 03 00 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 03 00 FA 7D 00 90 00 EB [09:03:44]RAPDU: 90 00 [09:03:44]wFMCommunicate OK [09:03:44]wFMCommunicate request_size=4 [09:03:44]MH_SAM_APDU [09:03:44]CAPDU: 80 0D 03 02 [09:03:44]Write to MH i2c: E2 08 00 FB 7D 80 0D 03 02 00 00 00 00 F3 [09:03:44]Write i2c OK [09:03:44]MH_I2C_Read... [09:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:44]Read from MH i2c: E2 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 0B 00 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 0B 00 FB 7D 00 EB A6 54 90 03 FA 6C C0 90 00 92 [09:03:44]RAPDU: EB A6 54 90 03 FA 6C C0 90 00 [09:03:44]wFMCommunicate OK [09:03:44]SAM_PROTO_SignData done [09:03:44]FM_MakeSignedData done [09:03:44]CreateOFDProtocolMessage [09:03:44]wFMCommunicate request_size=4 [09:03:44]MH_SAM_APDU [09:03:44]CAPDU: 80 11 00 00 [09:03:44]Write to MH i2c: E2 08 00 FC 7D 80 11 00 00 00 00 00 00 F3 [09:03:44]Write i2c OK [09:03:44]MH_I2C_Read... [09:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:44]Read from MH i2c: E2 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 17 00 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 17 00 FC 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 43 [09:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:03:44]wFMCommunicate OK [09:03:44]CreateOFDProtocolMessage done [09:03:44]OFDSenderStorePacket 94850 [09:03:44]StoreOFDPacket docnum=94850 [09:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C4 68 07 01 1D 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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FC C8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 72 01 00 35 04 06 00 38 79 36 CB 3B DA EB A6 54 90 03 FA 6C C0 [09:03:44]CheckFolder [09:03:44]dirname=/storage/ofd_packets [09:03:44]CheckFolder done [09:03:44]ProducePacketName [09:03:44]name=ofd_packets/00094850 [09:03:44]NVStorageSaveData ofd_packets/00094850 [09:03:44]File name is /storage/ofd_packets/00094850 [09:03:44]Write 301 bytes [09:03:44]NVStorageSaveData done [09:03:44]OFDSenderStorePacket done [09:03:44]KKMCreateOFDPacket done [09:03:44]NVStorageSaveData kkm_last_timestamp [09:03:44]File name is /storage/kkm_last_timestamp [09:03:44]Write 4 bytes [09:03:44]NVStorageSaveData done [09:03:44]ExternCall_PrintAddStr [09:03:44]wPrintStart [09:03:44]Write to MH i2c: 01 00 00 FD 7D 7A [09:03:44]Write i2c OK [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 07 00 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 07 00 FD 7D 00 80 00 00 00 FF 0F 0F [09:03:44]RasterBufferAndPrint [09:03:44]line Счет N : (1)195793 [09:03:44]line ИНН: 02508201610067 [09:03:44]line Контрольно-Кассовый Чек [09:03:44]line ПРОДАЖА [09:03:44]line ТРК (МРК, ГНК) : 22 [09:03:44]line Товар: 2710124130 [09:03:44]line Аи-92-К-5 [09:03:44]line 7.950 * 62.90 [09:03:44]line = 500.06 [09:03:44]line НДС 12% НСП 1% [09:03:44]line > о реализуемом товаре [09:03:44]line ОКРУГЛЕНИЕ: -0.06 [09:03:44]line ИТОГО: 500.00 [09:03:44]line Внесено: 500.00 [09:03:44]line СДАЧА: 0.00 [09:03:44]line НСП 1% : 4.42 [09:03:44]line НДС 12% : 53.10 [09:03:44]line Наличными: 500.00 [09:03:44]line Безнал.: 0.00 [09:03:44]line Место: АЗС № 6 "Партнер Нефть" [09:03:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:03:44]line СНО: Общий режим [09:03:44]line Чек 25 11.03.2024 09:03 [09:03:44]line Смена: 326 ФФД: 1.0 [09:03:44]line ЗНМ: 0300000009 [09:03:44]line РНМ: 0000000000090555 [09:03:44]line Версия ККМ: 001 [09:03:44]line ФМ: 0000000000874811 [09:03:44]line ФД: 94850 [09:03:44]line ФПД: 62093261487066 [09:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090356&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94850&fm=62093261487066&tin=02508201610067®Number=0000000000090555&sum=50000 [09:03:44]written 0, free lines is 4095 [09:03:44]OFD Sender: Processing packet 94850 [packets to send 30, broken 29] [09:03:44]ProducePacketName [09:03:44]name=ofd_packets/00094850 [09:03:44]OFD Sender: To server: pG, [09:03:44]CommunicateWithHost lk.salyk.kg:30040 [09:03:44]ConnectInit lk.salyk.kg [09:03:44]Connected sock=10 [09:03:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C4 68 07 01 1D 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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FC C8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 72 01 00 35 04 06 00 38 79 36 CB 3B DA EB A6 54 90 03 FA 6C C0 [09:03:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 39 53 47 00 76 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 72 01 00 F4 03 04 00 55 74 EE 65 B6 04 01 00 00 BB 72 B5 10 2D 2E 19 CD [09:03:44]CommunicateWithHost err = 0 [09:03:44]CheckOFDResponse [09:03:44]1017 (14) - 77093643461234 [09:03:44]1041 (16) - 0000000000874811 [09:03:44]1040 (4) - 94850 [09:03:44]1012 (4) - 11.03.2024 03:02 [09:03:44]1206 (1) - 0 [09:03:44]OFD Sender: Remove packet 94850 [09:03:44]ProducePacketName [09:03:44]name=ofd_packets/00094850 [09:03:44]NVStorageDeleteData [09:03:44]Write to MH i2c: 01 00 00 28 7E A6 [09:03:44]Write i2c OK [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 07 00 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: 01 07 00 28 7E 00 80 00 00 00 57 0D 91 [09:03:44]RasterBufferAndPrint [09:03:44]line [09:03:44]line [09:03:44]line [09:03:44]line [09:03:44]line [09:03:44]written 0, free lines is 3421 [09:03:44]process_action close_receipt done [09:03:44]requested_data is exist [09:03:44]produce_requested_data [09:03:44]requested_item fm.sn is exist - process it [09:03:44]wFMCommunicate request_size=4 [09:03:44]MH_SAM_APDU [09:03:44]CAPDU: 80 11 00 00 [09:03:44]Write to MH i2c: E2 08 00 2F 7E 80 11 00 00 00 00 00 00 27 [09:03:44]Write i2c OK [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 [09:03:44]MH_I2C_Read... [09:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:44]Read from MH i2c: E2 17 00 [09:03:44]MH_I2C_Read... [09:03:44]Read from MH i2c: E2 17 00 2F 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 77 [09:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:03:44]wFMCommunicate OK [09:03:44]requested_item fd.num is exist - process it [09:03:44]SAM_PROTO_GetFieldsCounters [09:03:44]wFMCommunicate request_size=4 [09:03:44]MH_SAM_APDU [09:03:44]CAPDU: 80 13 00 00 [09:03:44]Write to MH i2c: E2 08 00 30 7E 80 13 00 00 00 00 00 00 2A [09:03:44]Write i2c OK [09:03:44]MH_I2C_Read... [09:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:45]Read from MH i2c: E2 [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: E2 62 00 [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: E2 62 00 30 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 82 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [09: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 82 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:45]wFMCommunicate OK [09:03:45]SAM_PROTO_GetFieldsCounters done [09:03:45]requested_item shift.num is exist - process it [09:03:45]requested_item shift.opened is exist - process it [09:03:45]req_shift_opened [09:03:45]FM_GetShiftState [09:03:45]SAM_PROTO_GetShiftState [09:03:45]wFMCommunicate request_size=4 [09:03:45]MH_SAM_APDU [09:03:45]CAPDU: 80 13 01 00 [09:03:45]Write to MH i2c: E2 08 00 31 7E 80 13 01 00 00 00 00 00 2C [09:03:45]Write i2c OK [09:03:45]MH_I2C_Read... [09:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:45]Read from MH i2c: E2 [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: E2 0E 00 [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: E2 0E 00 31 7E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C8 [09:03:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:03:45]wFMCommunicate OK [09:03:45]SAM_PROTO_GetShiftState done [09:03:45]FM_GetShiftState done [09:03:45]req_shift_opened done [09:03:45]requested_item shift.open_date is exist - process it [09:03:45]req_shift_open_date [09:03:45]req_shift_open_date done [09:03:45]produce_requested_data done [09:03:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94850,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:03:45]process_action_free close_receipt [09:03:45]json_value_free [09:03:45]json_value_free done [09:03:45]process_json_proto returns [09:03:45]Send response to host [09:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94850,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:03:45]free response buf [09:03:45]execute_script done [09:03:45]execute_script returns [09:03:45]free content buf [09:03:45]Sock 7.Close socket [09:03:45]Sock 7.Thread stoped [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:53]accept exits with 9 [09:03:53]New connection [09:03:53]New thread 3066871140 created [09:03:53]Thread 3067014500 joined [09:03:53]Waiting for new connection... [09:03:53] Sock 9.Parse request [09:03:53]Sock 9.Check first char [09:03:53]Sock 9.First char is OK [09:03:53]request: POST /json_proto HTTP/1.0 [09:03:53]Method: POST [09:03:53]URL: /json_proto [09:03:53]Method is POST - this is cgi request [09:03:53]url: /json_proto [09:03:53]query_string will be loaded in cgi processing [09:03:53]execute_cgi json_proto POST (null) [09:03:53]execute_cgi path=json_proto method=POST [09:03:53]POST find Content-Length [09:03:53]Host: 172.17.62.67:8080 [09:03:53]Content-Length: 674 [09:03:53]Content-Type: application/json [09:03:53] [09:03:53]POST finish read [09:03:53]Found Content-Length = 674 [09:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:03:53]execute_script... [09:03: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)195794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:03:53]POST & json_proto [09:03:53]process_json_proto [09:03:53]json parsed OK: [09:03:53]protocol is kg_v1.0 [09:03:53]action value=close_receipt [09:03:53]process_action close_receipt [09:03:53]cmd_close_receipt [09:03:53]MH_GetDate [09:03:53]Write to MH i2c: F0 00 00 32 7E 9F [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: F0 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: F0 05 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: F0 05 00 32 7E 00 07 C9 EE 65 C7 [09:03:53]GetLastDocTimeStamp 1710147836 [09:03:53]current date 1710147847 [09:03:53]FM_GetShiftState [09:03:53]SAM_PROTO_GetShiftState [09:03:53]wFMCommunicate request_size=4 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 13 01 00 [09:03:53]Write to MH i2c: E2 08 00 33 7E 80 13 01 00 00 00 00 00 2E [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:53]Read from MH i2c: E2 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 0E 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 0E 00 33 7E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CA [09:03:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:03:53]wFMCommunicate OK [09:03:53]SAM_PROTO_GetShiftState done [09:03:53]FM_GetShiftState done [09:03:53]opened in 1710115571 [09:03:53]opened+sec_in_day 1710201971 [09:03:53]quantity*price = 50055 [09:03:53]sum+1 = 50056 [09:03:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 26 11.03.2024 09:04 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94851 ФПД: 272756925335918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090407&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94851&fm=272756925335918&tin=02508201610067®Number=0000000000090555&sum=50000 [09:03:54]StoreToDocumentArchive [09:03:54]shift 326 fd 94851 [09:03:54]save to /storage/0326/doc_00094851 [09:03:54]save last doc name /storage/0326/doc_00094851 to /storage/kkm_last_doc_name [09:03:54]save OK [09:03:54]Clear old archive folders... [09:03:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:03:54]tlvbuf is 002D3E90 [09:03:54]SAM_PROTO_ClearQueue [09:03:54]wFMCommunicate request_size=4 [09:03:54]MH_SAM_APDU [09:03:54]CAPDU: 80 09 00 00 [09:03:54]Write to MH i2c: E2 08 00 40 7E 80 09 00 00 00 00 00 00 30 [09:03:54]Write i2c OK [09:03:54]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 03 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 03 00 40 7E 00 90 00 32 [09:03:55]RAPDU: 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_ClearQueue done [09:03:55]KKMCreateOFDPacket [09:03:55]OFDProtocolAddRootSTLVToBuf [09:03:55]FM_MakeSignedData [09:03:55]FM_MakeSignedData [09:03:55]SAM_PROTO_SignData [09:03:55]wFMCommunicate request_size=4 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 0D 01 02 [09:03:55]Write to MH i2c: E2 08 00 41 7E 80 0D 01 02 00 00 00 00 38 [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 03 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 03 00 41 7E 00 90 00 33 [09:03:55]RAPDU: 90 00 [09:03:55]wFMCommunicate OK [09:03:55]wFMCommunicate request_size=255 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 07 C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 72 01 00 35 04 06 00 F8 12 2B A5 [09:03:55]Write to MH i2c: E2 02 01 42 7E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 07 C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 72 01 00 35 04 06 00 F8 12 2B A5 00 00 65 [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]OFD Sender: No OFD packet to send [09:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 03 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 03 00 42 7E 00 90 00 34 [09:03:55]RAPDU: 90 00 [09:03:55]wFMCommunicate OK [09:03:55]wFMCommunicate request_size=7 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 0D 02 02 02 09 6E [09:03:55]Write to MH i2c: E2 0A 00 43 7E 80 0D 02 02 02 00 09 6E 00 00 B6 [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 03 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 03 00 43 7E 00 90 00 35 [09:03:55]RAPDU: 90 00 [09:03:55]wFMCommunicate OK [09:03:55]wFMCommunicate request_size=4 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 0D 03 02 [09:03:55]Write to MH i2c: E2 08 00 44 7E 80 0D 03 02 00 00 00 00 3D [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0B 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0B 00 44 7E 00 FA 15 96 40 4C 10 51 95 90 00 65 [09:03:55]RAPDU: FA 15 96 40 4C 10 51 95 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_SignData done [09:03:55]FM_MakeSignedData done [09:03:55]CreateOFDProtocolMessage [09:03:55]wFMCommunicate request_size=4 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 11 00 00 [09:03:55]Write to MH i2c: E2 08 00 45 7E 80 11 00 00 00 00 00 00 3D [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 17 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 17 00 45 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8D [09:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:03:55]wFMCommunicate OK [09:03:55]CreateOFDProtocolMessage done [09:03:55]OFDSenderStorePacket 94851 [09:03:55]StoreOFDPacket docnum=94851 [09:03:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 A2 FD 04 01 2F D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 07 C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 72 01 00 35 04 06 00 F8 12 2B A5 09 6E FA 15 96 40 4C 10 51 95 [09:03:55]CheckFolder [09:03:55]dirname=/storage/ofd_packets [09:03:55]CheckFolder done [09:03:55]ProducePacketName [09:03:55]name=ofd_packets/00094851 [09:03:55]NVStorageSaveData ofd_packets/00094851 [09:03:55]File name is /storage/ofd_packets/00094851 [09:03:55]Write 298 bytes [09:03:55]NVStorageSaveData done [09:03:55]OFDSenderStorePacket done [09:03:55]KKMCreateOFDPacket done [09:03:55]NVStorageSaveData kkm_last_timestamp [09:03:55]File name is /storage/kkm_last_timestamp [09:03:55]Write 4 bytes [09:03:55]NVStorageSaveData done [09:03:55]ExternCall_PrintAddStr [09:03:55]wPrintStart [09:03:55]Write to MH i2c: 01 00 00 46 7E C4 [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: 01 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: 01 07 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: 01 07 00 46 7E 00 80 00 00 00 FF 0F 59 [09:03:55]RasterBufferAndPrint [09:03:55]line Счет N : (1)195794 [09:03:55]line ИНН: 02508201610067 [09:03:55]line Контрольно-Кассовый Чек [09:03:55]line ПРОДАЖА [09:03:55]line ТРК (МРК, ГНК) : 61 [09:03:55]line Товар: 2710194210 [09:03:55]line ДТ-К-5 [09:03:55]line 7.060 * 70.90 [09:03:55]line = 500.55 [09:03:55]line НДС 12% НСП 1% [09:03:55]line > о реализуемом товаре [09:03:55]line ОКРУГЛЕНИЕ: -0.55 [09:03:55]line ИТОГО: 500.00 [09:03:55]line Внесено: 500.00 [09:03:55]line СДАЧА: 0.00 [09:03:55]line НСП 1% : 4.43 [09:03:55]line НДС 12% : 53.16 [09:03:55]line Наличными: 500.00 [09:03:55]line Безнал.: 0.00 [09:03:55]line Место: АЗС № 6 "Партнер Нефть" [09:03:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:03:55]line СНО: Общий режим [09:03:55]line Чек 26 11.03.2024 09:04 [09:03:55]line Смена: 326 ФФД: 1.0 [09:03:55]line ЗНМ: 0300000009 [09:03:55]line РНМ: 0000000000090555 [09:03:55]line Версия ККМ: 001 [09:03:55]line ФМ: 0000000000874811 [09:03:55]line ФД: 94851 [09:03:55]line ФПД: 272756925335918 [09:03:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090407&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94851&fm=272756925335918&tin=02508201610067®Number=0000000000090555&sum=50000 [09:03:55]written 0, free lines is 4095 [09:03:55]OFD Sender: Processing packet 94851 [packets to send 30, broken 29] [09:03:55]ProducePacketName [09:03:55]name=ofd_packets/00094851 [09:03:55]OFD Sender: To server: pG, [09:03:55]CommunicateWithHost lk.salyk.kg:30040 [09:03:55]ConnectInit lk.salyk.kg [09:03:55]Connected sock=10 [09:03:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 A2 FD 04 01 2F D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 07 C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 72 01 00 35 04 06 00 F8 12 2B A5 09 6E FA 15 96 40 4C 10 51 95 [09:03:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F4 A1 47 00 C2 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 31 31 10 04 04 00 83 72 01 00 F4 03 04 00 60 74 EE 65 B6 04 01 00 00 F0 62 F3 85 7A 24 8B 3D [09:03:55]CommunicateWithHost err = 0 [09:03:55]CheckOFDResponse [09:03:55]1017 (14) - 77093643461234 [09:03:55]1041 (16) - 0000000000874811 [09:03:55]1040 (4) - 94851 [09:03:55]1012 (4) - 11.03.2024 03:02 [09:03:55]1206 (1) - 0 [09:03:55]OFD Sender: Remove packet 94851 [09:03:55]ProducePacketName [09:03:55]name=ofd_packets/00094851 [09:03:55]NVStorageDeleteData [09:03:56]Write to MH i2c: 01 00 00 71 7E EF [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: 01 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: 01 07 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: 01 07 00 71 7E 00 80 00 00 00 5F 0D E2 [09:03:56]RasterBufferAndPrint [09:03:56]line [09:03:56]line [09:03:56]line [09:03:56]line [09:03:56]line [09:03:56]written 0, free lines is 3433 [09:03:56]process_action close_receipt done [09:03:56]requested_data is exist [09:03:56]produce_requested_data [09:03:56]requested_item fm.sn is exist - process it [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 11 00 00 [09:03:56]Write to MH i2c: E2 08 00 78 7E 80 11 00 00 00 00 00 00 70 [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:56]Read from MH i2c: E2 17 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 17 00 78 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C0 [09:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:03:56]wFMCommunicate OK [09:03:56]requested_item fd.num is exist - process it [09:03:56]SAM_PROTO_GetFieldsCounters [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 13 00 00 [09:03:56]Write to MH i2c: E2 08 00 79 7E 80 13 00 00 00 00 00 00 73 [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 62 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 62 00 79 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 83 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [09:03: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 83 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:56]wFMCommunicate OK [09:03:56]SAM_PROTO_GetFieldsCounters done [09:03:56]requested_item shift.num is exist - process it [09:03:56]requested_item shift.opened is exist - process it [09:03:56]req_shift_opened [09:03:56]FM_GetShiftState [09:03:56]SAM_PROTO_GetShiftState [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 13 01 00 [09:03:56]Write to MH i2c: E2 08 00 7A 7E 80 13 01 00 00 00 00 00 75 [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 0E 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 0E 00 7A 7E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 11 [09:03:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:03:56]wFMCommunicate OK [09:03:56]SAM_PROTO_GetShiftState done [09:03:56]FM_GetShiftState done [09:03:56]req_shift_opened done [09:03:56]requested_item shift.open_date is exist - process it [09:03:56]req_shift_open_date [09:03:56]req_shift_open_date done [09:03:56]produce_requested_data done [09:03:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94851,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:03:56]process_action_free close_receipt [09:03:56]json_value_free [09:03:56]json_value_free done [09:03:56]process_json_proto returns [09:03:56]Send response to host [09:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94851,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:03:56]free response buf [09:03:56]execute_script done [09:03:56]execute_script returns [09:03:56]free content buf [09:03:56]Sock 9.Close socket [09:03:56]Sock 9.Thread stoped [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:46]accept exits with 7 [09:04:46]New connection [09:04:46]New thread 3067014500 created [09:04:46]Thread 3066871140 joined [09:04:46]Waiting for new connection... [09:04:46] Sock 7.Parse request [09:04:46]Sock 7.Check first char [09:04:46]Sock 7.First char is OK [09:04:46]request: POST /json_proto HTTP/1.0 [09:04:46]Method: POST [09:04:46]URL: /json_proto [09:04:46]Method is POST - this is cgi request [09:04:46]url: /json_proto [09:04:46]query_string will be loaded in cgi processing [09:04:46]execute_cgi json_proto POST (null) [09:04:46]execute_cgi path=json_proto method=POST [09:04:46]POST find Content-Length [09:04:46]Host: 172.17.62.67:8080 [09:04:46]Content-Length: 679 [09:04:46]Content-Type: application/json [09:04:46] [09:04:46]POST finish read [09:04:46]Found Content-Length = 679 [09:04:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:04:46]execute_script... [09:04:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:04:46]POST & json_proto [09:04:46]process_json_proto [09:04:46]json parsed OK: [09:04:46]protocol is kg_v1.0 [09:04:46]action value=close_receipt [09:04:46]process_action close_receipt [09:04:46]cmd_close_receipt [09:04:46]MH_GetDate [09:04:46]Write to MH i2c: F0 00 00 7B 7E E8 [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: F0 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: F0 05 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: F0 05 00 7B 7E 00 3C C9 EE 65 45 [09:04:46]GetLastDocTimeStamp 1710147847 [09:04:46]current date 1710147900 [09:04:46]FM_GetShiftState [09:04:46]SAM_PROTO_GetShiftState [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 13 01 00 [09:04:46]Write to MH i2c: E2 08 00 7C 7E 80 13 01 00 00 00 00 00 77 [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0E 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0E 00 7C 7E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 13 [09:04:46]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:04:46]wFMCommunicate OK [09:04:46]SAM_PROTO_GetShiftState done [09:04:46]FM_GetShiftState done [09:04:46]opened in 1710115571 [09:04:46]opened+sec_in_day 1710201971 [09:04:46]quantity*price = 100039 [09:04:46]sum+1 = 100041 [09:04:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 27 11.03.2024 09:05 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94852 ФПД: 110090766648691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090500&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94852&fm=110090766648691&tin=02508201610067®Number=0000000000090555&sum=100000 [09:04:47]StoreToDocumentArchive [09:04:47]shift 326 fd 94852 [09:04:47]save to /storage/0326/doc_00094852 [09:04:47]save last doc name /storage/0326/doc_00094852 to /storage/kkm_last_doc_name [09:04:47]save OK [09:04:47]Clear old archive folders... [09:04:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:04:47]tlvbuf is 001B4430 [09:04:47]SAM_PROTO_ClearQueue [09:04:47]wFMCommunicate request_size=4 [09:04:47]MH_SAM_APDU [09:04:47]CAPDU: 80 09 00 00 [09:04:47]Write to MH i2c: E2 08 00 89 7E 80 09 00 00 00 00 00 00 79 [09:04:47]Write i2c OK [09:04:47]MH_I2C_Read... [09:04:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:47]Read from MH i2c: E2 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 03 00 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 03 00 89 7E 00 90 00 7B [09:04:47]RAPDU: 90 00 [09:04:47]wFMCommunicate OK [09:04:47]SAM_PROTO_ClearQueue done [09:04:47]KKMCreateOFDPacket [09:04:47]OFDProtocolAddRootSTLVToBuf [09:04:47]FM_MakeSignedData [09:04:47]FM_MakeSignedData [09:04:47]SAM_PROTO_SignData [09:04:47]wFMCommunicate request_size=4 [09:04:47]MH_SAM_APDU [09:04:47]CAPDU: 80 0D 01 02 [09:04:47]Write to MH i2c: E2 08 00 8A 7E 80 0D 01 02 00 00 00 00 81 [09:04:47]Write i2c OK [09:04:47]MH_I2C_Read... [09:04:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:47]Read from MH i2c: E2 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 03 00 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: E2 03 00 8A 7E 00 90 00 7C [09:04:47]RAPDU: 90 00 [09:04:47]wFMCommunicate OK [09:04:47]wFMCommunicate request_size=255 [09:04:47]MH_SAM_APDU [09:04:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 3C C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 72 01 00 35 04 06 00 64 20 81 0A [09:04:48]Write to MH i2c: E2 02 01 8B 7E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 3C C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 72 01 00 35 04 06 00 64 20 81 0A 00 00 7A [09:04:48]Write i2c OK [09:04:48]MH_I2C_Read... [09:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:48]Read from MH i2c: E2 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 03 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 03 00 8B 7E 00 90 00 7D [09:04:48]RAPDU: 90 00 [09:04:48]wFMCommunicate OK [09:04:48]wFMCommunicate request_size=7 [09:04:48]MH_SAM_APDU [09:04:48]CAPDU: 80 0D 02 02 02 05 73 [09:04:48]Write to MH i2c: E2 0A 00 8C 7E 80 0D 02 02 02 00 05 73 00 00 00 [09:04:48]Write i2c OK [09:04:48]MH_I2C_Read... [09:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:48]Read from MH i2c: E2 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 03 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 03 00 8C 7E 00 90 00 7E [09:04:48]RAPDU: 90 00 [09:04:48]wFMCommunicate OK [09:04:48]wFMCommunicate request_size=4 [09:04:48]MH_SAM_APDU [09:04:48]CAPDU: 80 0D 03 02 [09:04:48]Write to MH i2c: E2 08 00 8D 7E 80 0D 03 02 00 00 00 00 86 [09:04:48]Write i2c OK [09:04:48]MH_I2C_Read... [09:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:48]Read from MH i2c: E2 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 0B 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 0B 00 8D 7E 00 BC 52 6F E2 FC 4C EA E4 90 00 FC [09:04:48]RAPDU: BC 52 6F E2 FC 4C EA E4 90 00 [09:04:48]wFMCommunicate OK [09:04:48]SAM_PROTO_SignData done [09:04:48]FM_MakeSignedData done [09:04:48]CreateOFDProtocolMessage [09:04:48]wFMCommunicate request_size=4 [09:04:48]MH_SAM_APDU [09:04:48]CAPDU: 80 11 00 00 [09:04:48]Write to MH i2c: E2 08 00 8E 7E 80 11 00 00 00 00 00 00 86 [09:04:48]Write i2c OK [09:04:48]MH_I2C_Read... [09:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:48]Read from MH i2c: E2 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 17 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 17 00 8E 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [09:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:04:48]wFMCommunicate OK [09:04:48]CreateOFDProtocolMessage done [09:04:48]OFDSenderStorePacket 94852 [09:04:48]StoreOFDPacket docnum=94852 [09:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 11 2D 04 01 95 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 3C C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 72 01 00 35 04 06 00 64 20 81 0A 05 73 BC 52 6F E2 FC 4C EA E4 [09:04:48]CheckFolder [09:04:48]dirname=/storage/ofd_packets [09:04:48]CheckFolder done [09:04:48]ProducePacketName [09:04:48]name=ofd_packets/00094852 [09:04:48]NVStorageSaveData ofd_packets/00094852 [09:04:48]File name is /storage/ofd_packets/00094852 [09:04:48]Write 298 bytes [09:04:48]NVStorageSaveData done [09:04:48]OFDSenderStorePacket done [09:04:48]KKMCreateOFDPacket done [09:04:48]NVStorageSaveData kkm_last_timestamp [09:04:48]File name is /storage/kkm_last_timestamp [09:04:48]Write 4 bytes [09:04:48]NVStorageSaveData done [09:04:48]ExternCall_PrintAddStr [09:04:48]wPrintStart [09:04:48]Write to MH i2c: 01 00 00 8F 7E 0D [09:04:48]Write i2c OK [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: 01 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: 01 07 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: 01 07 00 8F 7E 00 80 00 00 00 FF 0F A2 [09:04:48]RasterBufferAndPrint [09:04:48]line Счет N : (1)195796 [09:04:48]line ИНН: 02508201610067 [09:04:48]line Контрольно-Кассовый Чек [09:04:48]line ПРОДАЖА [09:04:48]line ТРК (МРК, ГНК) : 51 [09:04:48]line Товар: 2710194210 [09:04:48]line ДТ-К-5 [09:04:48]line 14.110 * 70.90 [09:04:48]line = 1000.40 [09:04:48]line НДС 12% НСП 1% [09:04:48]line > о реализуемом товаре [09:04:48]line ОКРУГЛЕНИЕ: -0.40 [09:04:48]line ИТОГО: 1000.00 [09:04:48]line Внесено: 1000.00 [09:04:48]line СДАЧА: 0.00 [09:04:48]line НСП 1% : 8.85 [09:04:48]line НДС 12% : 106.24 [09:04:48]line Наличными: 1000.00 [09:04:48]line Безнал.: 0.00 [09:04:48]line Место: АЗС № 6 "Партнер Нефть" [09:04:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:04:48]line СНО: Общий режим [09:04:48]line Чек 27 11.03.2024 09:05 [09:04:48]line Смена: 326 ФФД: 1.0 [09:04:48]line ЗНМ: 0300000009 [09:04:48]line РНМ: 0000000000090555 [09:04:48]line Версия ККМ: 001 [09:04:48]line ФМ: 0000000000874811 [09:04:48]line ФД: 94852 [09:04:48]line ФПД: 110090766648691 [09:04:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090500&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94852&fm=110090766648691&tin=02508201610067®Number=0000000000090555&sum=100000 [09:04:48]OFD Sender: Processing packet 94852 [packets to send 30, broken 29] [09:04:48]ProducePacketName [09:04:48]name=ofd_packets/00094852 [09:04:48]OFD Sender: To server: pG, [09:04:48]CommunicateWithHost lk.salyk.kg:30040 [09:04:48]ConnectInit lk.salyk.kg [09:04:48]written 0, free lines is 4095 [09:04:48]Connected sock=10 [09:04:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 11 2D 04 01 95 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 3C C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 72 01 00 35 04 06 00 64 20 81 0A 05 73 BC 52 6F E2 FC 4C EA E4 [09:04: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 31 31 4F 00 00 00 70 3E 47 00 EA CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 72 01 00 F4 03 04 00 96 74 EE 65 B6 04 01 00 00 AB B1 F2 01 91 CE 94 89 [09:04:49]CommunicateWithHost err = 0 [09:04:49]CheckOFDResponse [09:04:49]1017 (14) - 77093643461234 [09:04:49]1041 (16) - 0000000000874811 [09:04:49]1040 (4) - 94852 [09:04:49]1012 (4) - 11.03.2024 03:03 [09:04:49]1206 (1) - 0 [09:04:49]OFD Sender: Remove packet 94852 [09:04:49]ProducePacketName [09:04:49]name=ofd_packets/00094852 [09:04:49]NVStorageDeleteData [09:04:49]Write to MH i2c: 01 00 00 BA 7E 38 [09:04:49]Write i2c OK [09:04:49]MH_I2C_Read... [09:04:49]Read from MH i2c: 01 [09:04:49]MH_I2C_Read... [09:04:49]Read from MH i2c: 01 07 00 [09:04:49]MH_I2C_Read... [09:04:49]Read from MH i2c: 01 07 00 BA 7E 00 80 00 00 00 55 0D 21 [09:04:49]RasterBufferAndPrint [09:04:49]line [09:04:49]line [09:04:49]line [09:04:49]line [09:04:49]line [09:04:49]written 0, free lines is 3419 [09:04:49]process_action close_receipt done [09:04:49]requested_data is exist [09:04:49]produce_requested_data [09:04:49]requested_item fm.sn is exist - process it [09:04:49]wFMCommunicate request_size=4 [09:04:49]MH_SAM_APDU [09:04:49]CAPDU: 80 11 00 00 [09:04:49]Write to MH i2c: E2 08 00 C1 7E 80 11 00 00 00 00 00 00 B9 [09:04:49]Write i2c OK [09:04:49]MH_I2C_Read... [09:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:49]Read from MH i2c: E2 [09:04:49]MH_I2C_Read... [09:04:49]Read from MH i2c: E2 17 00 [09:04:49]MH_I2C_Read... [09:04:49]Read from MH i2c: E2 17 00 C1 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 09 [09:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:04:49]wFMCommunicate OK [09:04:49]requested_item fd.num is exist - process it [09:04:49]SAM_PROTO_GetFieldsCounters [09:04:49]wFMCommunicate request_size=4 [09:04:49]MH_SAM_APDU [09:04:49]CAPDU: 80 13 00 00 [09:04:49]Write to MH i2c: E2 08 00 C2 7E 80 13 00 00 00 00 00 00 BC [09:04:49]Write i2c OK [09:04:49]MH_I2C_Read... [09:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:49]Read from MH i2c: E2 [09:04:49]MH_I2C_Read... [09:04:49]Read from MH i2c: E2 62 00 [09:04:49]MH_I2C_Read... [09:04:49]Read from MH i2c: E2 62 00 C2 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [09:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:49]wFMCommunicate OK [09:04:49]SAM_PROTO_GetFieldsCounters done [09:04:49]requested_item shift.num is exist - process it [09:04:49]requested_item shift.opened is exist - process it [09:04:49]req_shift_opened [09:04:49]FM_GetShiftState [09:04:49]SAM_PROTO_GetShiftState [09:04:49]wFMCommunicate request_size=4 [09:04:49]MH_SAM_APDU [09:04:49]CAPDU: 80 13 01 00 [09:04:49]Write to MH i2c: E2 08 00 C3 7E 80 13 01 00 00 00 00 00 BE [09:04:49]Write i2c OK [09:04:49]MH_I2C_Read... [09:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:49]Read from MH i2c: E2 [09:04:49]MH_I2C_Read... [09:04:49]Read from MH i2c: E2 0E 00 [09:04:49]MH_I2C_Read... [09:04:49]OFD Sender: No OFD packet to send [09:04:49]Read from MH i2c: E2 0E 00 C3 7E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5A [09:04:49]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:04:49]wFMCommunicate OK [09:04:49]SAM_PROTO_GetShiftState done [09:04:49]FM_GetShiftState done [09:04:49]req_shift_opened done [09:04:49]requested_item shift.open_date is exist - process it [09:04:49]req_shift_open_date [09:04:49]req_shift_open_date done [09:04:49]produce_requested_data done [09:04:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94852,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:04:49]process_action_free close_receipt [09:04:49]json_value_free [09:04:49]json_value_free done [09:04:49]process_json_proto returns [09:04:49]Send response to host [09:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94852,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:04:49]free response buf [09:04:49]execute_script done [09:04:49]execute_script returns [09:04:49]free content buf [09:04:49]Sock 7.Close socket [09:04:49]Sock 7.Thread stoped [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:33]accept exits with 9 [09:06:33]New connection [09:06:33]New thread 3066871140 created [09:06:33]Thread 3067014500 joined [09:06:33]Waiting for new connection... [09:06:33] Sock 9.Parse request [09:06:33]Sock 9.Check first char [09:06:33]Sock 9.First char is OK [09:06:33]request: POST /json_proto HTTP/1.0 [09:06:33]Method: POST [09:06:33]URL: /json_proto [09:06:33]Method is POST - this is cgi request [09:06:33]url: /json_proto [09:06:33]query_string will be loaded in cgi processing [09:06:33]execute_cgi json_proto POST (null) [09:06:33]execute_cgi path=json_proto method=POST [09:06:33]POST find Content-Length [09:06:33]Host: 172.17.62.67:8080 [09:06:33]Content-Length: 1183 [09:06:33]Content-Type: application/json [09:06:33] [09:06:33]POST finish read [09:06:33]Found Content-Length = 1183 [09:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195797\u000A11.03.2024 09:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3580741\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:33]execute_script... [09:06:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195797\u000A11.03.2024 09:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3580741\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:33]POST & json_proto [09:06:33]process_json_proto [09:06:33]json parsed OK: [09:06:33]protocol is kg_v1.0 [09:06:33]action value=print_text [09:06:33]process_action print_text [09:06:33]cmd_print_text [09:06:33]ExternCall_PrintAddStr [09:06:33]wPrintStart [09:06:33]Write to MH i2c: 01 00 00 C4 7E 42 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 C4 7E 00 80 00 00 00 FF 0F D7 [09:06:33]RasterBufferAndPrint [09:06:33]line *****ТОВАРНЫЙ ЧЕК***** [09:06:33]line АЗС 6 [09:06:33]line Партнер нефть [09:06:33]line 02508201610067 [09:06:33]line Кассир : Карыбаев Б. [09:06:33]line Счет N : (1)195797 [09:06:33]line 11.03.2024 09:00 [09:06:33]line ПРОДАЖА [09:06:33]line ТРК (МРК, ГНК): 42 [09:06:33]line Вид ГСМ : 2710124130 [09:06:33]line Аи-92-К-5 [09:06:33]line 20.000 x 62.90 [09:06:33]line ИТОГ: 1258.00 [09:06:33]line Тип оплаты: Талоны: Партнер нефть [09:06:33]line 3580741 [09:06:33]line ______________________ [09:06:33]line (подпись) [09:06:33]written 0, free lines is 4095 [09:06:33]Write to MH i2c: 01 00 00 D8 7E 56 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 D8 7E 00 80 00 00 00 64 0E 4F [09:06:33]RasterBufferAndPrint [09:06:33]line [09:06:33]line [09:06:33]line [09:06:33]line [09:06:33]line [09:06:33]written 0, free lines is 3688 [09:06:33]process_action print_text done [09:06:33]requested_data is exist [09:06:33]produce_requested_data [09:06:33]requested_item fm.sn is exist - process it [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 11 00 00 [09:06:33]Write to MH i2c: E2 08 00 DF 7E 80 11 00 00 00 00 00 00 D7 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 17 00 [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:33]Read from MH i2c: E2 17 00 DF 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 27 [09:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:06:33]wFMCommunicate OK [09:06:33]requested_item fd.num is exist - process it [09:06:33]SAM_PROTO_GetFieldsCounters [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 13 00 00 [09:06:33]Write to MH i2c: E2 08 00 E0 7E 80 13 00 00 00 00 00 00 DA [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 62 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 62 00 E0 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [09: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:33]wFMCommunicate OK [09:06:33]SAM_PROTO_GetFieldsCounters done [09:06:33]requested_item shift.num is exist - process it [09:06:33]requested_item shift.opened is exist - process it [09:06:33]req_shift_opened [09:06:33]FM_GetShiftState [09:06:33]SAM_PROTO_GetShiftState [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 13 01 00 [09:06:33]Write to MH i2c: E2 08 00 E1 7E 80 13 01 00 00 00 00 00 DC [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 0E 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 0E 00 E1 7E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 78 [09:06:33]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:06:33]wFMCommunicate OK [09:06:33]SAM_PROTO_GetShiftState done [09:06:33]FM_GetShiftState done [09:06:33]req_shift_opened done [09:06:33]requested_item shift.open_date is exist - process it [09:06:33]req_shift_open_date [09:06:33]req_shift_open_date done [09:06:33]produce_requested_data done [09:06:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94852,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:06:33]process_action_free print_text [09:06:33]json_value_free [09:06:33]json_value_free done [09:06:33]process_json_proto returns [09:06:33]Send response to host [09:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94852,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:06:33]free response buf [09:06:33]execute_script done [09:06:33]execute_script returns [09:06:33]free content buf [09:06:33]Sock 9.Close socket [09:06:33]Sock 9.Thread stoped [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:15]accept exits with 7 [09:07:15]New connection [09:07:15]New thread 3067014500 created [09:07:15]Thread 3066871140 joined [09:07:15]Waiting for new connection... [09:07:15] Sock 7.Parse request [09:07:15]Sock 7.Check first char [09:07:15]Sock 7.First char is OK [09:07:15]request: POST /json_proto HTTP/1.0 [09:07:15]Method: POST [09:07:15]URL: /json_proto [09:07:15]Method is POST - this is cgi request [09:07:15]url: /json_proto [09:07:15]query_string will be loaded in cgi processing [09:07:15]execute_cgi json_proto POST (null) [09:07:15]execute_cgi path=json_proto method=POST [09:07:15]POST find Content-Length [09:07:15]Host: 172.17.62.67:8080 [09:07:15]Content-Length: 1186 [09:07:15]Content-Type: application/json [09:07:15] [09:07:15]POST finish read [09:07:15]Found Content-Length = 1186 [09:07:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195795\u000A11.03.2024 09:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3580782:91\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:15]execute_script... [09:07:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195795\u000A11.03.2024 09:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3580782:91\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:15]POST & json_proto [09:07:15]process_json_proto [09:07:15]json parsed OK: [09:07:15]protocol is kg_v1.0 [09:07:15]action value=print_text [09:07:15]process_action print_text [09:07:15]cmd_print_text [09:07:15]ExternCall_PrintAddStr [09:07:15]wPrintStart [09:07:15]Write to MH i2c: 01 00 00 E2 7E 60 [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: 01 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: 01 07 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: 01 07 00 E2 7E 00 80 00 00 00 FF 0F F5 [09:07:15]RasterBufferAndPrint [09:07:15]line *****ТОВАРНЫЙ ЧЕК***** [09:07:15]line АЗС 6 [09:07:15]line Партнер нефть [09:07:15]line 02508201610067 [09:07:15]line Кассир : Карыбаев Б. [09:07:15]line Счет N : (1)195795 [09:07:15]line 11.03.2024 09:01 [09:07:15]line ПРОДАЖА [09:07:15]line ТРК (МРК, ГНК): 12 [09:07:15]line Вид ГСМ : 2710124130 [09:07:15]line Аи-92-К-5 [09:07:15]line 30.000 x 62.90 [09:07:15]line ИТОГ: 1887.00 [09:07:15]line Тип оплаты: Талоны: Партнер нефть [09:07:15]line 3580782:91 [09:07:15]line ______________________ [09:07:15]line (подпись) [09:07:15]written 0, free lines is 4095 [09:07:15]Write to MH i2c: 01 00 00 F6 7E 74 [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: 01 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: 01 07 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: 01 07 00 F6 7E 00 80 00 00 00 68 0E 71 [09:07:15]RasterBufferAndPrint [09:07:15]line [09:07:15]line [09:07:15]line [09:07:15]line [09:07:15]line [09:07:15]written 0, free lines is 3692 [09:07:15]process_action print_text done [09:07:15]requested_data is exist [09:07:15]produce_requested_data [09:07:15]requested_item fm.sn is exist - process it [09:07:15]wFMCommunicate request_size=4 [09:07:15]MH_SAM_APDU [09:07:15]CAPDU: 80 11 00 00 [09:07:15]Write to MH i2c: E2 08 00 FD 7E 80 11 00 00 00 00 00 00 F5 [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:15]Read from MH i2c: E2 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 17 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 17 00 FD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [09:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:07:15]wFMCommunicate OK [09:07:15]requested_item fd.num is exist - process it [09:07:15]SAM_PROTO_GetFieldsCounters [09:07:15]wFMCommunicate request_size=4 [09:07:15]MH_SAM_APDU [09:07:15]CAPDU: 80 13 00 00 [09:07:15]Write to MH i2c: E2 08 00 FE 7E 80 13 00 00 00 00 00 00 F8 [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:15]Read from MH i2c: E2 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 62 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 62 00 FE 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [09:07: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:15]wFMCommunicate OK [09:07:15]SAM_PROTO_GetFieldsCounters done [09:07:15]requested_item shift.num is exist - process it [09:07:15]requested_item shift.opened is exist - process it [09:07:15]req_shift_opened [09:07:15]FM_GetShiftState [09:07:15]SAM_PROTO_GetShiftState [09:07:15]wFMCommunicate request_size=4 [09:07:15]MH_SAM_APDU [09:07:15]CAPDU: 80 13 01 00 [09:07:15]Write to MH i2c: E2 08 00 FF 7E 80 13 01 00 00 00 00 00 FA [09:07:15]Write i2c OK [09:07:15]MH_I2C_Read... [09:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:15]Read from MH i2c: E2 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 0E 00 [09:07:15]MH_I2C_Read... [09:07:15]Read from MH i2c: E2 0E 00 FF 7E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 96 [09:07:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:07:15]wFMCommunicate OK [09:07:15]SAM_PROTO_GetShiftState done [09:07:15]FM_GetShiftState done [09:07:15]req_shift_opened done [09:07:15]requested_item shift.open_date is exist - process it [09:07:15]req_shift_open_date [09:07:15]req_shift_open_date done [09:07:15]produce_requested_data done [09:07:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94852,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:07:15]process_action_free print_text [09:07:15]json_value_free [09:07:15]json_value_free done [09:07:15]process_json_proto returns [09:07:15]Send response to host [09:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94852,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:07:15]free response buf [09:07:15]execute_script done [09:07:15]execute_script returns [09:07:15]free content buf [09:07:15]Sock 7.Close socket [09:07:15]Sock 7.Thread stoped [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:25]accept exits with 9 [09:07:25]New connection [09:07:25]New thread 3066871140 created [09:07:25]Thread 3067014500 joined [09:07:25]Waiting for new connection... [09:07:25] Sock 9.Parse request [09:07:25]Sock 9.Check first char [09:07:25]Sock 9.First char is OK [09:07:25]request: POST /json_proto HTTP/1.0 [09:07:25]Method: POST [09:07:25]URL: /json_proto [09:07:25]Method is POST - this is cgi request [09:07:25]url: /json_proto [09:07:25]query_string will be loaded in cgi processing [09:07:25]execute_cgi json_proto POST (null) [09:07:25]execute_cgi path=json_proto method=POST [09:07:25]POST find Content-Length [09:07:25]Host: 172.17.62.67:8080 [09:07:25]Content-Length: 677 [09:07:25]Content-Type: application/json [09:07:25] [09:07:25]POST finish read [09:07:25]Found Content-Length = 677 [09:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:07:25]execute_script... [09:07: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)195798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:07:25]POST & json_proto [09:07:25]process_json_proto [09:07:25]json parsed OK: [09:07:25]protocol is kg_v1.0 [09:07:25]action value=close_receipt [09:07:25]process_action close_receipt [09:07:25]cmd_close_receipt [09:07:25]MH_GetDate [09:07:25]Write to MH i2c: F0 00 00 00 7F 6E [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: F0 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: F0 05 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: F0 05 00 00 7F 00 DB C9 EE 65 6A [09:07:25]GetLastDocTimeStamp 1710147900 [09:07:25]current date 1710148059 [09:07:25]FM_GetShiftState [09:07:25]SAM_PROTO_GetShiftState [09:07:25]wFMCommunicate request_size=4 [09:07:25]MH_SAM_APDU [09:07:25]CAPDU: 80 13 01 00 [09:07:25]Write to MH i2c: E2 08 00 01 7F 80 13 01 00 00 00 00 00 FD [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:25]Read from MH i2c: E2 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 0E 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 0E 00 01 7F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 99 [09:07:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:07:25]wFMCommunicate OK [09:07:25]SAM_PROTO_GetShiftState done [09:07:25]FM_GetShiftState done [09:07:25]opened in 1710115571 [09:07:25]opened+sec_in_day 1710201971 [09:07:25]quantity*price = 50005 [09:07:25]sum+1 = 50007 [09:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 28 11.03.2024 09:07 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94853 ФПД: 273152348441777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090739&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94853&fm=273152348441777&tin=02508201610067®Number=0000000000090555&sum=50000 [09:07:27]StoreToDocumentArchive [09:07:27]shift 326 fd 94853 [09:07:27]save to /storage/0326/doc_00094853 [09:07:27]save last doc name /storage/0326/doc_00094853 to /storage/kkm_last_doc_name [09:07:27]save OK [09:07:27]Clear old archive folders... [09:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:27]tlvbuf is 0021F7C0 [09:07:27]SAM_PROTO_ClearQueue [09:07:27]wFMCommunicate request_size=4 [09:07:27]MH_SAM_APDU [09:07:27]CAPDU: 80 09 00 00 [09:07:27]Write to MH i2c: E2 08 00 0E 7F 80 09 00 00 00 00 00 00 FF [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:27]Read from MH i2c: E2 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 03 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 03 00 0E 7F 00 90 00 01 [09:07:27]RAPDU: 90 00 [09:07:27]wFMCommunicate OK [09:07:27]SAM_PROTO_ClearQueue done [09:07:27]KKMCreateOFDPacket [09:07:27]OFDProtocolAddRootSTLVToBuf [09:07:27]FM_MakeSignedData [09:07:27]FM_MakeSignedData [09:07:27]SAM_PROTO_SignData [09:07:27]wFMCommunicate request_size=4 [09:07:27]MH_SAM_APDU [09:07:27]CAPDU: 80 0D 01 02 [09:07:27]Write to MH i2c: E2 08 00 0F 7F 80 0D 01 02 00 00 00 00 07 [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:27]Read from MH i2c: E2 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 03 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 03 00 0F 7F 00 90 00 02 [09:07:27]RAPDU: 90 00 [09:07:27]wFMCommunicate OK [09:07:27]wFMCommunicate request_size=255 [09:07:27]MH_SAM_APDU [09:07:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 DB C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 72 01 00 35 04 06 00 F8 [09:07:27]Write to MH i2c: E2 02 01 10 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 DB C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 72 01 00 35 04 06 00 F8 00 00 FA [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:27]Read from MH i2c: E2 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 03 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 03 00 10 7F 00 90 00 03 [09:07:27]RAPDU: 90 00 [09:07:27]wFMCommunicate OK [09:07:27]wFMCommunicate request_size=10 [09:07:27]MH_SAM_APDU [09:07:27]CAPDU: 80 0D 02 02 05 6E 3C B2 CC B1 [09:07:27]Write to MH i2c: E2 0D 00 11 7F 80 0D 02 02 05 00 6E 3C B2 CC B1 00 00 ED [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:27]Read from MH i2c: E2 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 03 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 03 00 11 7F 00 90 00 04 [09:07:27]RAPDU: 90 00 [09:07:27]wFMCommunicate OK [09:07:27]wFMCommunicate request_size=4 [09:07:27]MH_SAM_APDU [09:07:27]CAPDU: 80 0D 03 02 [09:07:27]Write to MH i2c: E2 08 00 12 7F 80 0D 03 02 00 00 00 00 0C [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:27]Read from MH i2c: E2 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 0B 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 0B 00 12 7F 00 22 D1 FF B1 B0 2C 0F EE 90 00 89 [09:07:27]RAPDU: 22 D1 FF B1 B0 2C 0F EE 90 00 [09:07:27]wFMCommunicate OK [09:07:27]SAM_PROTO_SignData done [09:07:27]FM_MakeSignedData done [09:07:27]CreateOFDProtocolMessage [09:07:27]wFMCommunicate request_size=4 [09:07:27]MH_SAM_APDU [09:07:27]CAPDU: 80 11 00 00 [09:07:27]Write to MH i2c: E2 08 00 13 7F 80 11 00 00 00 00 00 00 0C [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:27]Read from MH i2c: E2 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 17 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 17 00 13 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5C [09:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:07:27]wFMCommunicate OK [09:07:27]CreateOFDProtocolMessage done [09:07:27]OFDSenderStorePacket 94853 [09:07:27]StoreOFDPacket docnum=94853 [09:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EC A8 07 01 9B 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 DB C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 72 01 00 35 04 06 00 F8 6E 3C B2 CC B1 22 D1 FF B1 B0 2C 0F EE [09:07:27]CheckFolder [09:07:27]dirname=/storage/ofd_packets [09:07:27]CheckFolder done [09:07:27]ProducePacketName [09:07:27]name=ofd_packets/00094853 [09:07:27]NVStorageSaveData ofd_packets/00094853 [09:07:27]File name is /storage/ofd_packets/00094853 [09:07:27]Write 301 bytes [09:07:27]NVStorageSaveData done [09:07:27]OFDSenderStorePacket done [09:07:27]KKMCreateOFDPacket done [09:07:27]NVStorageSaveData kkm_last_timestamp [09:07:27]File name is /storage/kkm_last_timestamp [09:07:27]Write 4 bytes [09:07:27]NVStorageSaveData done [09:07:27]ExternCall_PrintAddStr [09:07:27]wPrintStart [09:07:27]Write to MH i2c: 01 00 00 14 7F 93 [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 07 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 07 00 14 7F 00 80 00 00 00 FF 0F 28 [09:07:27]RasterBufferAndPrint [09:07:27]line Счет N : (1)195798 [09:07:27]line ИНН: 02508201610067 [09:07:27]line Контрольно-Кассовый Чек [09:07:27]line ПРОДАЖА [09:07:27]line ТРК (МРК, ГНК) : 32 [09:07:27]line Товар: 2710124130 [09:07:27]line Аи-92-К-5 [09:07:27]line 7.950 * 62.90 [09:07:27]line = 500.06 [09:07:27]line НДС 12% НСП 1% [09:07:27]line > о реализуемом товаре [09:07:27]line ОКРУГЛЕНИЕ: -0.06 [09:07:27]line ИТОГО: 500.00 [09:07:27]line Внесено: 500.00 [09:07:27]line СДАЧА: 0.00 [09:07:27]line НСП 1% : 4.42 [09:07:27]line НДС 12% : 53.10 [09:07:27]line Наличными: 500.00 [09:07:27]line Безнал.: 0.00 [09:07:27]line Место: АЗС № 6 "Партнер Нефть" [09:07:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:07:27]line СНО: Общий режим [09:07:27]line Чек 28 11.03.2024 09:07 [09:07:27]line Смена: 326 ФФД: 1.0 [09:07:27]line ЗНМ: 0300000009 [09:07:27]line РНМ: 0000000000090555 [09:07:27]line Версия ККМ: 001 [09:07:27]line ФМ: 0000000000874811 [09:07:27]line ФД: 94853 [09:07:27]line ФПД: 273152348441777 [09:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T090739&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94853&fm=273152348441777&tin=02508201610067®Number=0000000000090555&sum=50000 [09:07:27]OFD Sender: Processing packet 94853 [packets to send 30, broken 29] [09:07:27]ProducePacketName [09:07:27]name=ofd_packets/00094853 [09:07:27]OFD Sender: To server: pG, [09:07:27]CommunicateWithHost lk.salyk.kg:30040 [09:07:27]ConnectInit lk.salyk.kg [09:07:27]written 0, free lines is 4095 [09:07:27]Connected sock=10 [09:07: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 31 31 0F 01 00 00 EC A8 07 01 9B 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 DB C9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 72 01 00 35 04 06 00 F8 6E 3C B2 CC B1 22 D1 FF B1 B0 2C 0F EE [09:07: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 31 31 4F 00 00 00 DA 57 47 00 6C 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 72 01 00 F4 03 04 00 35 75 EE 65 B6 04 01 00 00 45 D5 73 B5 77 90 6C 65 [09:07:28]CommunicateWithHost err = 0 [09:07:28]CheckOFDResponse [09:07:28]1017 (14) - 77093643461234 [09:07:28]1041 (16) - 0000000000874811 [09:07:28]1040 (4) - 94853 [09:07:28]1012 (4) - 11.03.2024 03:06 [09:07:28]1206 (1) - 0 [09:07:28]OFD Sender: Remove packet 94853 [09:07:28]ProducePacketName [09:07:28]name=ofd_packets/00094853 [09:07:28]NVStorageDeleteData [09:07:28]Write to MH i2c: 01 00 00 3F 7F BE [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: 01 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: 01 07 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: 01 07 00 3F 7F 00 80 00 00 00 46 0D 98 [09:07:28]RasterBufferAndPrint [09:07:28]line [09:07:28]line [09:07:28]line [09:07:28]line [09:07:28]line [09:07:28]written 0, free lines is 3402 [09:07:28]process_action close_receipt done [09:07:28]requested_data is exist [09:07:28]produce_requested_data [09:07:28]requested_item fm.sn is exist - process it [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 11 00 00 [09:07:28]Write to MH i2c: E2 08 00 46 7F 80 11 00 00 00 00 00 00 3F [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 17 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 17 00 46 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8F [09:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:07:28]wFMCommunicate OK [09:07:28]requested_item fd.num is exist - process it [09:07:28]SAM_PROTO_GetFieldsCounters [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 13 00 00 [09:07:28]Write to MH i2c: E2 08 00 47 7F 80 13 00 00 00 00 00 00 42 [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 62 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 62 00 47 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 85 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [09:07: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 85 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:28]wFMCommunicate OK [09:07:28]SAM_PROTO_GetFieldsCounters done [09:07:28]requested_item shift.num is exist - process it [09:07:28]requested_item shift.opened is exist - process it [09:07:28]req_shift_opened [09:07:28]FM_GetShiftState [09:07:28]SAM_PROTO_GetShiftState [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 13 01 00 [09:07:28]Write to MH i2c: E2 08 00 48 7F 80 13 01 00 00 00 00 00 44 [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 0E 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 0E 00 48 7F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E0 [09:07:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:07:28]wFMCommunicate OK [09:07:28]SAM_PROTO_GetShiftState done [09:07:28]FM_GetShiftState done [09:07:28]req_shift_opened done [09:07:28]requested_item shift.open_date is exist - process it [09:07:28]req_shift_open_date [09:07:28]req_shift_open_date done [09:07:28]produce_requested_data done [09:07:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94853,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:07:28]process_action_free close_receipt [09:07:28]json_value_free [09:07:28]json_value_free done [09:07:28]process_json_proto returns [09:07:28]Send response to host [09:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94853,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:07:28]free response buf [09:07:28]execute_script done [09:07:28]execute_script returns [09:07:28]free content buf [09:07:28]Sock 9.Close socket [09:07:28]Sock 9.Thread stoped [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:25]accept exits with 7 [09:11:25]New connection [09:11:25]New thread 3067014500 created [09:11:25]Thread 3066871140 joined [09:11:25]Waiting for new connection... [09:11:25] Sock 7.Parse request [09:11:25]Sock 7.Check first char [09:11:25]Sock 7.First char is OK [09:11:25]request: POST /json_proto HTTP/1.0 [09:11:25]Method: POST [09:11:25]URL: /json_proto [09:11:25]Method is POST - this is cgi request [09:11:25]url: /json_proto [09:11:25]query_string will be loaded in cgi processing [09:11:25]execute_cgi json_proto POST (null) [09:11:25]execute_cgi path=json_proto method=POST [09:11:25]POST find Content-Length [09:11:25]Host: 172.17.62.67:8080 [09:11:25]Content-Length: 677 [09:11:25]Content-Type: application/json [09:11:25] [09:11:25]POST finish read [09:11:25]Found Content-Length = 677 [09:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 8.750, "sum" : 550.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:25]execute_script... [09:11: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)195801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 8.750, "sum" : 550.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:25]POST & json_proto [09:11:25]process_json_proto [09:11:25]json parsed OK: [09:11:25]protocol is kg_v1.0 [09:11:25]action value=close_receipt [09:11:25]process_action close_receipt [09:11:25]cmd_close_receipt [09:11:25]MH_GetDate [09:11:25]Write to MH i2c: F0 00 00 49 7F B7 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: F0 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: F0 05 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: F0 05 00 49 7F 00 CB CA EE 65 A4 [09:11:25]GetLastDocTimeStamp 1710148059 [09:11:25]current date 1710148299 [09:11:25]FM_GetShiftState [09:11:25]SAM_PROTO_GetShiftState [09:11:25]wFMCommunicate request_size=4 [09:11:25]MH_SAM_APDU [09:11:25]CAPDU: 80 13 01 00 [09:11:25]Write to MH i2c: E2 08 00 4A 7F 80 13 01 00 00 00 00 00 46 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:25]Read from MH i2c: E2 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0E 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: E2 0E 00 4A 7F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E2 [09:11:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:11:25]wFMCommunicate OK [09:11:25]SAM_PROTO_GetShiftState done [09:11:25]FM_GetShiftState done [09:11:25]opened in 1710115571 [09:11:25]opened+sec_in_day 1710201971 [09:11:25]quantity*price = 55037 [09:11:25]sum+1 = 55039 [09:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 29 11.03.2024 09:11 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94854 ФПД: 61981732000557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T091139&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94854&fm=61981732000557&tin=02508201610067®Number=0000000000090555&sum=55000 [09:11:26]StoreToDocumentArchive [09:11:26]shift 326 fd 94854 [09:11:26]save to /storage/0326/doc_00094854 [09:11:26]save last doc name /storage/0326/doc_00094854 to /storage/kkm_last_doc_name [09:11:26]save OK [09:11:26]Clear old archive folders... [09:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:26]tlvbuf is 001CE4E0 [09:11:26]SAM_PROTO_ClearQueue [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 09 00 00 [09:11:26]Write to MH i2c: E2 08 00 57 7F 80 09 00 00 00 00 00 00 48 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 57 7F 00 90 00 4A [09:11:26]RAPDU: 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_ClearQueue done [09:11:26]KKMCreateOFDPacket [09:11:26]OFDProtocolAddRootSTLVToBuf [09:11:26]FM_MakeSignedData [09:11:26]FM_MakeSignedData [09:11:26]SAM_PROTO_SignData [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 0D 01 02 [09:11:26]Write to MH i2c: E2 08 00 58 7F 80 0D 01 02 00 00 00 00 50 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 03 00 58 7F 00 90 00 4B [09:11:26]RAPDU: 90 00 [09:11:26]wFMCommunicate OK [09:11:26]wFMCommunicate request_size=255 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 22 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FE D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CB CA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 72 01 00 35 04 06 00 38 [09:11:26]Write to MH i2c: E2 02 01 59 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 22 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FE D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CB CA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 72 01 00 35 04 06 00 38 00 00 D0 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 59 7F 00 90 00 4C [09:11:27]RAPDU: 90 00 [09:11:27]wFMCommunicate OK [09:11:27]wFMCommunicate request_size=10 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 0D 02 02 05 5F 3F 1E 53 2D [09:11:27]Write to MH i2c: E2 0D 00 5A 7F 80 0D 02 02 05 00 5F 3F 1E 53 2D 00 00 99 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 5A 7F 00 90 00 4D [09:11:27]RAPDU: 90 00 [09:11:27]wFMCommunicate OK [09:11:27]wFMCommunicate request_size=4 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 0D 03 02 [09:11:27]Write to MH i2c: E2 08 00 5B 7F 80 0D 03 02 00 00 00 00 55 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 0B 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 0B 00 5B 7F 00 EF 3D 19 BE A8 97 4D 99 90 00 7E [09:11:27]RAPDU: EF 3D 19 BE A8 97 4D 99 90 00 [09:11:27]wFMCommunicate OK [09:11:27]SAM_PROTO_SignData done [09:11:27]FM_MakeSignedData done [09:11:27]CreateOFDProtocolMessage [09:11:27]wFMCommunicate request_size=4 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 11 00 00 [09:11:27]Write to MH i2c: E2 08 00 5C 7F 80 11 00 00 00 00 00 00 55 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 17 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 17 00 5C 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [09:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:11:27]wFMCommunicate OK [09:11:27]CreateOFDProtocolMessage done [09:11:27]OFDSenderStorePacket 94854 [09:11:27]StoreOFDPacket docnum=94854 [09:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 18 A0 07 01 C7 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 22 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FE D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CB CA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 72 01 00 35 04 06 00 38 5F 3F 1E 53 2D EF 3D 19 BE A8 97 4D 99 [09:11:27]CheckFolder [09:11:27]dirname=/storage/ofd_packets [09:11:27]CheckFolder done [09:11:27]ProducePacketName [09:11:27]name=ofd_packets/00094854 [09:11:27]NVStorageSaveData ofd_packets/00094854 [09:11:27]File name is /storage/ofd_packets/00094854 [09:11:27]Write 301 bytes [09:11:27]NVStorageSaveData done [09:11:27]OFDSenderStorePacket done [09:11:27]KKMCreateOFDPacket done [09:11:27]NVStorageSaveData kkm_last_timestamp [09:11:27]File name is /storage/kkm_last_timestamp [09:11:27]Write 4 bytes [09:11:27]NVStorageSaveData done [09:11:27]ExternCall_PrintAddStr [09:11:27]wPrintStart [09:11:27]Write to MH i2c: 01 00 00 5D 7F DC [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: 01 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: 01 07 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: 01 07 00 5D 7F 00 80 00 00 00 FF 0F 71 [09:11:27]RasterBufferAndPrint [09:11:27]line Счет N : (1)195801 [09:11:27]line ИНН: 02508201610067 [09:11:27]line Контрольно-Кассовый Чек [09:11:27]line ПРОДАЖА [09:11:27]line ТРК (МРК, ГНК) : 12 [09:11:27]line Товар: 2710124130 [09:11:27]line Аи-92-К-5 [09:11:27]line 8.750 * 62.90 [09:11:27]line = 550.38 [09:11:27]line НДС 12% НСП 1% [09:11:27]line > о реализуемом товаре [09:11:27]line ОКРУГЛЕНИЕ: -0.38 [09:11:27]line ИТОГО: 550.00 [09:11:27]line Внесено: 550.00 [09:11:27]line СДАЧА: 0.00 [09:11:27]line НСП 1% : 4.87 [09:11:27]line НДС 12% : 58.45 [09:11:27]line Наличными: 550.00 [09:11:27]line Безнал.: 0.00 [09:11:27]line Место: АЗС № 6 "Партнер Нефть" [09:11:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:11:27]line СНО: Общий режим [09:11:27]line Чек 29 11.03.2024 09:11 [09:11:27]line Смена: 326 ФФД: 1.0 [09:11:27]line ЗНМ: 0300000009 [09:11:27]line РНМ: 0000000000090555 [09:11:27]line Версия ККМ: 001 [09:11:27]line ФМ: 0000000000874811 [09:11:27]line ФД: 94854 [09:11:27]line ФПД: 61981732000557 [09:11:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T091139&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94854&fm=61981732000557&tin=02508201610067®Number=0000000000090555&sum=55000 [09:11:27]written 0, free lines is 4095 [09:11:27]OFD Sender: Processing packet 94854 [packets to send 30, broken 29] [09:11:27]ProducePacketName [09:11:27]name=ofd_packets/00094854 [09:11:27]OFD Sender: To server: pG, [09:11:27]CommunicateWithHost lk.salyk.kg:30040 [09:11:27]ConnectInit lk.salyk.kg [09:11:27]Connected sock=10 [09:11: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 31 31 0F 01 00 00 18 A0 07 01 C7 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 22 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FE D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 CB CA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 72 01 00 35 04 06 00 38 5F 3F 1E 53 2D EF 3D 19 BE A8 97 4D 99 [09:11: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 31 31 4F 00 00 00 5E 16 47 00 4F 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 31 31 10 04 04 00 86 72 01 00 F4 03 04 00 25 76 EE 65 B6 04 01 00 00 DD 13 5F 6D 2E 8D C1 F8 [09:11:28]CommunicateWithHost err = 0 [09:11:28]CheckOFDResponse [09:11:28]1017 (14) - 77093643461234 [09:11:28]1041 (16) - 0000000000874811 [09:11:28]1040 (4) - 94854 [09:11:28]1012 (4) - 11.03.2024 03:10 [09:11:28]1206 (1) - 0 [09:11:28]OFD Sender: Remove packet 94854 [09:11:28]ProducePacketName [09:11:28]name=ofd_packets/00094854 [09:11:28]NVStorageDeleteData [09:11:28]Write to MH i2c: 01 00 00 88 7F 07 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 88 7F 00 80 00 00 00 46 0D E1 [09:11:28]RasterBufferAndPrint [09:11:28]line [09:11:28]line [09:11:28]line [09:11:28]line [09:11:28]line [09:11:28]written 0, free lines is 3404 [09:11:28]process_action close_receipt done [09:11:28]requested_data is exist [09:11:28]produce_requested_data [09:11:28]requested_item fm.sn is exist - process it [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 11 00 00 [09:11:28]Write to MH i2c: E2 08 00 8F 7F 80 11 00 00 00 00 00 00 88 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 17 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 17 00 8F 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D8 [09:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:11:28]wFMCommunicate OK [09:11:28]requested_item fd.num is exist - process it [09:11:28]SAM_PROTO_GetFieldsCounters [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 13 00 00 [09:11:28]Write to MH i2c: E2 08 00 90 7F 80 13 00 00 00 00 00 00 8B [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 62 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 62 00 90 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [09:11: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:28]wFMCommunicate OK [09:11:28]SAM_PROTO_GetFieldsCounters done [09:11:28]requested_item shift.num is exist - process it [09:11:28]requested_item shift.opened is exist - process it [09:11:28]req_shift_opened [09:11:28]FM_GetShiftState [09:11:28]SAM_PROTO_GetShiftState [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 13 01 00 [09:11:28]Write to MH i2c: E2 08 00 91 7F 80 13 01 00 00 00 00 00 8D [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0E 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0E 00 91 7F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 29 [09:11:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:11:28]wFMCommunicate OK [09:11:28]SAM_PROTO_GetShiftState done [09:11:28]FM_GetShiftState done [09:11:28]req_shift_opened done [09:11:28]requested_item shift.open_date is exist - process it [09:11:28]req_shift_open_date [09:11:28]req_shift_open_date done [09:11:28]produce_requested_data done [09:11:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94854,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:11:28]process_action_free close_receipt [09:11:28]json_value_free [09:11:28]json_value_free done [09:11:28]process_json_proto returns [09:11:28]Send response to host [09:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94854,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:11:28]free response buf [09:11:28]execute_script done [09:11:28]execute_script returns [09:11:28]free content buf [09:11:28]Sock 7.Close socket [09:11:28]Sock 7.Thread stoped [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:05]accept exits with 9 [09:12:05]New connection [09:12:05]New thread 3066871140 created [09:12:05]Thread 3067014500 joined [09:12:05]Waiting for new connection... [09:12:05] Sock 9.Parse request [09:12:05]Sock 9.Check first char [09:12:05]Sock 9.First char is OK [09:12:05]request: POST /json_proto HTTP/1.0 [09:12:05]Method: POST [09:12:05]URL: /json_proto [09:12:05]Method is POST - this is cgi request [09:12:05]url: /json_proto [09:12:05]query_string will be loaded in cgi processing [09:12:05]execute_cgi json_proto POST (null) [09:12:05]execute_cgi path=json_proto method=POST [09:12:05]POST find Content-Length [09:12:05]Host: 172.17.62.67:8080 [09:12:05]Content-Length: 1193 [09:12:05]Content-Type: application/json [09:12:05] [09:12:05]POST finish read [09:12:05]Found Content-Length = 1193 [09:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195799\u000A11.03.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.670 x 62.90\u000A\u0418\u0422\u041E\u0413: 1300.14\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53045\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:05]execute_script... [09:12:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195799\u000A11.03.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.670 x 62.90\u000A\u0418\u0422\u041E\u0413: 1300.14\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53045\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:05]POST & json_proto [09:12:05]process_json_proto [09:12:05]json parsed OK: [09:12:05]protocol is kg_v1.0 [09:12:05]action value=print_text [09:12:05]process_action print_text [09:12:05]cmd_print_text [09:12:05]ExternCall_PrintAddStr [09:12:05]wPrintStart [09:12:05]Write to MH i2c: 01 00 00 92 7F 11 [09:12:05]Write i2c OK [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: 01 [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: 01 07 00 [09:12:05]MH_I2C_Read... [09:12:05]Read from MH i2c: 01 07 00 92 7F 00 80 00 00 00 FF 0F A6 [09:12:05]RasterBufferAndPrint [09:12:05]line *****ТОВАРНЫЙ ЧЕК***** [09:12:05]line АЗС 6 [09:12:05]line Партнер нефть [09:12:05]line 02508201610067 [09:12:05]line Кассир : Карыбаев Б. [09:12:05]line Счет N : (1)195799 [09:12:05]line 11.03.2024 09:06 [09:12:05]line ПРОДАЖА [09:12:05]line ТРК (МРК, ГНК): 22 [09:12:05]line Вид ГСМ : 2710124130 [09:12:05]line Аи-92-К-5 [09:12:05]line 20.670 x 62.90 [09:12:05]line ИТОГ: 1300.14 [09:12:05]line Тип оплаты: Талоны: Топливная Карта [09:12:05]line 53045 [09:12:05]line ______________________ [09:12:05]line (подпись) [09:12:05]written 0, free lines is 4095 [09:12:06]Write to MH i2c: 01 00 00 A6 7F 25 [09:12:06]Write i2c OK [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: 01 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: 01 07 00 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: 01 07 00 A6 7F 00 80 00 00 00 63 0E 1D [09:12:06]RasterBufferAndPrint [09:12:06]line [09:12:06]line [09:12:06]line [09:12:06]line [09:12:06]line [09:12:06]written 0, free lines is 3687 [09:12:06]process_action print_text done [09:12:06]requested_data is exist [09:12:06]produce_requested_data [09:12:06]requested_item fm.sn is exist - process it [09:12:06]wFMCommunicate request_size=4 [09:12:06]MH_SAM_APDU [09:12:06]CAPDU: 80 11 00 00 [09:12:06]Write to MH i2c: E2 08 00 AD 7F 80 11 00 00 00 00 00 00 A6 [09:12:06]Write i2c OK [09:12:06]MH_I2C_Read... [09:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:06]Read from MH i2c: E2 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 17 00 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 17 00 AD 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F6 [09:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:12:06]wFMCommunicate OK [09:12:06]requested_item fd.num is exist - process it [09:12:06]SAM_PROTO_GetFieldsCounters [09:12:06]wFMCommunicate request_size=4 [09:12:06]MH_SAM_APDU [09:12:06]CAPDU: 80 13 00 00 [09:12:06]Write to MH i2c: E2 08 00 AE 7F 80 13 00 00 00 00 00 00 A9 [09:12:06]Write i2c OK [09:12:06]MH_I2C_Read... [09:12:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:06]Read from MH i2c: E2 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 62 00 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 62 00 AE 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [09:12: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:06]wFMCommunicate OK [09:12:06]SAM_PROTO_GetFieldsCounters done [09:12:06]requested_item shift.num is exist - process it [09:12:06]requested_item shift.opened is exist - process it [09:12:06]req_shift_opened [09:12:06]FM_GetShiftState [09:12:06]SAM_PROTO_GetShiftState [09:12:06]wFMCommunicate request_size=4 [09:12:06]MH_SAM_APDU [09:12:06]CAPDU: 80 13 01 00 [09:12:06]Write to MH i2c: E2 08 00 AF 7F 80 13 01 00 00 00 00 00 AB [09:12:06]Write i2c OK [09:12:06]MH_I2C_Read... [09:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:06]Read from MH i2c: E2 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 0E 00 [09:12:06]MH_I2C_Read... [09:12:06]Read from MH i2c: E2 0E 00 AF 7F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 47 [09:12:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:12:06]wFMCommunicate OK [09:12:06]SAM_PROTO_GetShiftState done [09:12:06]FM_GetShiftState done [09:12:06]req_shift_opened done [09:12:06]requested_item shift.open_date is exist - process it [09:12:06]req_shift_open_date [09:12:06]req_shift_open_date done [09:12:06]produce_requested_data done [09:12:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94854,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:12:06]process_action_free print_text [09:12:06]json_value_free [09:12:06]json_value_free done [09:12:06]process_json_proto returns [09:12:06]Send response to host [09:12:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94854,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:12:06]free response buf [09:12:06]execute_script done [09:12:06]execute_script returns [09:12:06]free content buf [09:12:06]Sock 9.Close socket [09:12:06]Sock 9.Thread stoped [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]accept exits with 7 [09:14:58]New connection [09:14:58]New thread 3067014500 created [09:14:58]Thread 3066871140 joined [09:14:58]Waiting for new connection... [09:14:58] Sock 7.Parse request [09:14:58]Sock 7.Check first char [09:14:58]Sock 7.First char is OK [09:14:58]request: POST /json_proto HTTP/1.0 [09:14:58]Method: POST [09:14:58]URL: /json_proto [09:14:58]Method is POST - this is cgi request [09:14:58]url: /json_proto [09:14:58]query_string will be loaded in cgi processing [09:14:58]execute_cgi json_proto POST (null) [09:14:58]execute_cgi path=json_proto method=POST [09:14:58]POST find Content-Length [09:14:58]Host: 172.17.62.67:8080 [09:14:58]Content-Length: 1180 [09:14:58]Content-Type: application/json [09:14:58] [09:14:58]POST finish read [09:14:58]Found Content-Length = 1180 [09:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195802\u000A11.03.2024 09:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3430908\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:58]execute_script... [09:14:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195802\u000A11.03.2024 09:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3430908\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:58]POST & json_proto [09:14:58]process_json_proto [09:14:58]json parsed OK: [09:14:58]protocol is kg_v1.0 [09:14:58]action value=print_text [09:14:58]process_action print_text [09:14:58]cmd_print_text [09:14:58]ExternCall_PrintAddStr [09:14:58]wPrintStart [09:14:58]Write to MH i2c: 01 00 00 B0 7F 2F [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: 01 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: 01 07 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: 01 07 00 B0 7F 00 80 00 00 00 FF 0F C4 [09:14:58]RasterBufferAndPrint [09:14:58]line *****ТОВАРНЫЙ ЧЕК***** [09:14:58]line АЗС 6 [09:14:58]line Партнер нефть [09:14:58]line 02508201610067 [09:14:58]line Кассир : Карыбаев Б. [09:14:58]line Счет N : (1)195802 [09:14:58]line 11.03.2024 09:09 [09:14:58]line ПРОДАЖА [09:14:58]line ТРК (МРК, ГНК): 51 [09:14:58]line Вид ГСМ : 2710194210 [09:14:58]line ДТ-К-5 [09:14:58]line 20.000 x 70.90 [09:14:58]line ИТОГ: 1418.00 [09:14:58]line Тип оплаты: Талоны: Партнер нефть [09:14:58]line 3430908 [09:14:58]line ______________________ [09:14:58]line (подпись) [09:14:58]written 0, free lines is 4095 [09:14:58]Write to MH i2c: 01 00 00 C4 7F 43 [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: 01 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: 01 07 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: 01 07 00 C4 7F 00 80 00 00 00 61 0E 39 [09:14:58]RasterBufferAndPrint [09:14:58]line [09:14:58]line [09:14:58]line [09:14:58]line [09:14:58]line [09:14:58]written 0, free lines is 3685 [09:14:58]process_action print_text done [09:14:58]requested_data is exist [09:14:58]produce_requested_data [09:14:58]requested_item fm.sn is exist - process it [09:14:58]wFMCommunicate request_size=4 [09:14:58]MH_SAM_APDU [09:14:58]CAPDU: 80 11 00 00 [09:14:58]Write to MH i2c: E2 08 00 CB 7F 80 11 00 00 00 00 00 00 C4 [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:58]Read from MH i2c: E2 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 17 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 17 00 CB 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 14 [09:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:14:58]wFMCommunicate OK [09:14:58]requested_item fd.num is exist - process it [09:14:58]SAM_PROTO_GetFieldsCounters [09:14:58]wFMCommunicate request_size=4 [09:14:58]MH_SAM_APDU [09:14:58]CAPDU: 80 13 00 00 [09:14:58]Write to MH i2c: E2 08 00 CC 7F 80 13 00 00 00 00 00 00 C7 [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]OFD Sender: No OFD packet to send [09:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:58]Read from MH i2c: E2 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 62 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 62 00 CC 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [09:14: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:58]wFMCommunicate OK [09:14:58]SAM_PROTO_GetFieldsCounters done [09:14:58]requested_item shift.num is exist - process it [09:14:58]requested_item shift.opened is exist - process it [09:14:58]req_shift_opened [09:14:58]FM_GetShiftState [09:14:58]SAM_PROTO_GetShiftState [09:14:58]wFMCommunicate request_size=4 [09:14:58]MH_SAM_APDU [09:14:58]CAPDU: 80 13 01 00 [09:14:58]Write to MH i2c: E2 08 00 CD 7F 80 13 01 00 00 00 00 00 C9 [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:58]Read from MH i2c: E2 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 0E 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 0E 00 CD 7F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 65 [09:14:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:14:58]wFMCommunicate OK [09:14:58]SAM_PROTO_GetShiftState done [09:14:58]FM_GetShiftState done [09:14:58]req_shift_opened done [09:14:58]requested_item shift.open_date is exist - process it [09:14:58]req_shift_open_date [09:14:58]req_shift_open_date done [09:14:58]produce_requested_data done [09:14:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94854,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:14:58]process_action_free print_text [09:14:58]json_value_free [09:14:58]json_value_free done [09:14:58]process_json_proto returns [09:14:58]Send response to host [09:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94854,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:14:58]free response buf [09:14:58]execute_script done [09:14:58]execute_script returns [09:14:58]free content buf [09:14:58]Sock 7.Close socket [09:14:58]Sock 7.Thread stoped [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:30]accept exits with 9 [09:17:30]New connection [09:17:30]New thread 3066871140 created [09:17:30]Thread 3067014500 joined [09:17:30]Waiting for new connection... [09:17:30] Sock 9.Parse request [09:17:30]Sock 9.Check first char [09:17:30]Sock 9.First char is OK [09:17:30]request: POST /json_proto HTTP/1.0 [09:17:30]Method: POST [09:17:30]URL: /json_proto [09:17:30]Method is POST - this is cgi request [09:17:30]url: /json_proto [09:17:30]query_string will be loaded in cgi processing [09:17:30]execute_cgi json_proto POST (null) [09:17:30]execute_cgi path=json_proto method=POST [09:17:30]POST find Content-Length [09:17:30]Host: 172.17.62.67:8080 [09:17:30]Content-Length: 679 [09:17:30]Content-Type: application/json [09:17:30] [09:17:30]POST finish read [09:17:30]Found Content-Length = 679 [09:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:17:30]execute_script... [09:17: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)195804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:17:30]POST & json_proto [09:17:30]process_json_proto [09:17:30]json parsed OK: [09:17:30]protocol is kg_v1.0 [09:17:30]action value=close_receipt [09:17:30]process_action close_receipt [09:17:30]cmd_close_receipt [09:17:30]MH_GetDate [09:17:30]Write to MH i2c: F0 00 00 CE 7F 3C [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: F0 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: F0 05 00 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: F0 05 00 CE 7F 00 37 CC EE 65 97 [09:17:30]GetLastDocTimeStamp 1710148299 [09:17:30]current date 1710148663 [09:17:30]FM_GetShiftState [09:17:30]SAM_PROTO_GetShiftState [09:17:30]wFMCommunicate request_size=4 [09:17:30]MH_SAM_APDU [09:17:30]CAPDU: 80 13 01 00 [09:17:30]Write to MH i2c: E2 08 00 CF 7F 80 13 01 00 00 00 00 00 CB [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:30]Read from MH i2c: E2 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: E2 0E 00 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: E2 0E 00 CF 7F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 67 [09:17:30]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:17:30]wFMCommunicate OK [09:17:30]SAM_PROTO_GetShiftState done [09:17:30]FM_GetShiftState done [09:17:30]opened in 1710115571 [09:17:30]opened+sec_in_day 1710201971 [09:17:30]quantity*price = 100039 [09:17:30]sum+1 = 100041 [09:17:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 30 11.03.2024 09:17 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94855 ФПД: 24300477752332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T091743&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94855&fm=24300477752332&tin=02508201610067®Number=0000000000090555&sum=100000 [09:17:31]StoreToDocumentArchive [09:17:31]shift 326 fd 94855 [09:17:31]save to /storage/0326/doc_00094855 [09:17:31]save last doc name /storage/0326/doc_00094855 to /storage/kkm_last_doc_name [09:17:31]save OK [09:17:31]Clear old archive folders... [09:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:17:31]tlvbuf is 00286910 [09:17:31]SAM_PROTO_ClearQueue [09:17:31]wFMCommunicate request_size=4 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 09 00 00 [09:17:31]Write to MH i2c: E2 08 00 DC 7F 80 09 00 00 00 00 00 00 CD [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 DC 7F 00 90 00 CF [09:17:31]RAPDU: 90 00 [09:17:31]wFMCommunicate OK [09:17:31]SAM_PROTO_ClearQueue done [09:17:31]KKMCreateOFDPacket [09:17:31]OFDProtocolAddRootSTLVToBuf [09:17:31]FM_MakeSignedData [09:17:31]FM_MakeSignedData [09:17:31]SAM_PROTO_SignData [09:17:31]wFMCommunicate request_size=4 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 0D 01 02 [09:17:31]Write to MH i2c: E2 08 00 DD 7F 80 0D 01 02 00 00 00 00 D5 [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 DD 7F 00 90 00 D0 [09:17:31]RAPDU: 90 00 [09:17:31]wFMCommunicate OK [09:17:31]wFMCommunicate request_size=255 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 37 CC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 72 01 00 35 04 06 00 16 19 E5 58 [09:17:31]Write to MH i2c: E2 02 01 DE 7F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 37 CC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 72 01 00 35 04 06 00 16 19 E5 58 00 00 2F [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 DE 7F 00 90 00 D1 [09:17:31]RAPDU: 90 00 [09:17:31]wFMCommunicate OK [09:17:31]wFMCommunicate request_size=7 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 0D 02 02 02 24 0C [09:17:31]Write to MH i2c: E2 0A 00 DF 7F 80 0D 02 02 02 00 24 0C 00 00 0C [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:31]Read from MH i2c: E2 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 [09:17:31]MH_I2C_Read... [09:17:31]Read from MH i2c: E2 03 00 DF 7F 00 90 00 D2 [09:17:31]RAPDU: 90 00 [09:17:31]wFMCommunicate OK [09:17:31]wFMCommunicate request_size=4 [09:17:31]MH_SAM_APDU [09:17:31]CAPDU: 80 0D 03 02 [09:17:31]Write to MH i2c: E2 08 00 E0 7F 80 0D 03 02 00 00 00 00 DA [09:17:31]Write i2c OK [09:17:31]MH_I2C_Read... [09:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:32]Read from MH i2c: E2 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 0B 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 0B 00 E0 7F 00 9A 20 46 B5 44 10 60 2E 90 00 72 [09:17:32]RAPDU: 9A 20 46 B5 44 10 60 2E 90 00 [09:17:32]wFMCommunicate OK [09:17:32]SAM_PROTO_SignData done [09:17:32]FM_MakeSignedData done [09:17:32]CreateOFDProtocolMessage [09:17:32]wFMCommunicate request_size=4 [09:17:32]MH_SAM_APDU [09:17:32]CAPDU: 80 11 00 00 [09:17:32]Write to MH i2c: E2 08 00 E1 7F 80 11 00 00 00 00 00 00 DA [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:32]Read from MH i2c: E2 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 17 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 17 00 E1 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [09:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:17:32]wFMCommunicate OK [09:17:32]CreateOFDProtocolMessage done [09:17:32]OFDSenderStorePacket 94855 [09:17:32]StoreOFDPacket docnum=94855 [09:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 69 28 04 01 8B 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 37 CC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 72 01 00 35 04 06 00 16 19 E5 58 24 0C 9A 20 46 B5 44 10 60 2E [09:17:32]CheckFolder [09:17:32]dirname=/storage/ofd_packets [09:17:32]CheckFolder done [09:17:32]ProducePacketName [09:17:32]name=ofd_packets/00094855 [09:17:32]NVStorageSaveData ofd_packets/00094855 [09:17:32]File name is /storage/ofd_packets/00094855 [09:17:32]Write 298 bytes [09:17:32]NVStorageSaveData done [09:17:32]OFDSenderStorePacket done [09:17:32]KKMCreateOFDPacket done [09:17:32]NVStorageSaveData kkm_last_timestamp [09:17:32]File name is /storage/kkm_last_timestamp [09:17:32]Write 4 bytes [09:17:32]NVStorageSaveData done [09:17:32]ExternCall_PrintAddStr [09:17:32]wPrintStart [09:17:32]Write to MH i2c: 01 00 00 E2 7F 61 [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 07 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 07 00 E2 7F 00 80 00 00 00 FF 0F F6 [09:17:32]RasterBufferAndPrint [09:17:32]line Счет N : (1)195804 [09:17:32]line ИНН: 02508201610067 [09:17:32]line Контрольно-Кассовый Чек [09:17:32]line ПРОДАЖА [09:17:32]line ТРК (МРК, ГНК) : 51 [09:17:32]line Товар: 2710194210 [09:17:32]line ДТ-К-5 [09:17:32]line 14.110 * 70.90 [09:17:32]line = 1000.40 [09:17:32]line НДС 12% НСП 1% [09:17:32]line > о реализуемом товаре [09:17:32]line ОКРУГЛЕНИЕ: -0.40 [09:17:32]line ИТОГО: 1000.00 [09:17:32]line Внесено: 1000.00 [09:17:32]line СДАЧА: 0.00 [09:17:32]line НСП 1% : 8.85 [09:17:32]line НДС 12% : 106.24 [09:17:32]line Наличными: 1000.00 [09:17:32]line Безнал.: 0.00 [09:17:32]line Место: АЗС № 6 "Партнер Нефть" [09:17:32]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:17:32]line СНО: Общий режим [09:17:32]line Чек 30 11.03.2024 09:17 [09:17:32]line Смена: 326 ФФД: 1.0 [09:17:32]line ЗНМ: 0300000009 [09:17:32]line РНМ: 0000000000090555 [09:17:32]line Версия ККМ: 001 [09:17:32]line ФМ: 0000000000874811 [09:17:32]line ФД: 94855 [09:17:32]line ФПД: 24300477752332 [09:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T091743&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94855&fm=24300477752332&tin=02508201610067®Number=0000000000090555&sum=100000 [09:17:32]OFD Sender: Processing packet 94855 [packets to send 30, broken 29] [09:17:32]ProducePacketName [09:17:32]name=ofd_packets/00094855 [09:17:32]OFD Sender: To server: pG, [09:17:32]CommunicateWithHost lk.salyk.kg:30040 [09:17:32]ConnectInit lk.salyk.kg [09:17:32]written 0, free lines is 4095 [09:17:32]Connected sock=7 [09:17: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 31 31 0C 01 00 00 69 28 04 01 8B 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 37 CC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 72 01 00 35 04 06 00 16 19 E5 58 24 0C 9A 20 46 B5 44 10 60 2E [09:17: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 31 31 4F 00 00 00 D5 C4 47 00 CC 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 72 01 00 F4 03 04 00 91 77 EE 65 B6 04 01 00 00 1E CF B1 25 DC F3 35 76 [09:17:32]CommunicateWithHost err = 0 [09:17:32]CheckOFDResponse [09:17:32]1017 (14) - 77093643461234 [09:17:32]1041 (16) - 0000000000874811 [09:17:32]1040 (4) - 94855 [09:17:32]1012 (4) - 11.03.2024 03:16 [09:17:32]1206 (1) - 0 [09:17:32]OFD Sender: Remove packet 94855 [09:17:32]ProducePacketName [09:17:32]name=ofd_packets/00094855 [09:17:32]NVStorageDeleteData [09:17:32]Write to MH i2c: 01 00 00 0D 80 8D [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 07 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 07 00 0D 80 00 80 00 00 00 42 0D 63 [09:17:32]RasterBufferAndPrint [09:17:32]line [09:17:32]line [09:17:32]line [09:17:32]line [09:17:32]line [09:17:32]written 0, free lines is 3400 [09:17:32]process_action close_receipt done [09:17:32]requested_data is exist [09:17:32]produce_requested_data [09:17:32]requested_item fm.sn is exist - process it [09:17:32]wFMCommunicate request_size=4 [09:17:32]MH_SAM_APDU [09:17:32]CAPDU: 80 11 00 00 [09:17:32]Write to MH i2c: E2 08 00 14 80 80 11 00 00 00 00 00 00 0E [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 [09:17:32]MH_I2C_Read... [09:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:32]Read from MH i2c: E2 17 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 17 00 14 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5E [09:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:17:32]wFMCommunicate OK [09:17:32]requested_item fd.num is exist - process it [09:17:32]SAM_PROTO_GetFieldsCounters [09:17:32]wFMCommunicate request_size=4 [09:17:32]MH_SAM_APDU [09:17:32]CAPDU: 80 13 00 00 [09:17:32]Write to MH i2c: E2 08 00 15 80 80 13 00 00 00 00 00 00 11 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 62 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 62 00 15 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 87 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:17: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 87 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:33]wFMCommunicate OK [09:17:33]SAM_PROTO_GetFieldsCounters done [09:17:33]requested_item shift.num is exist - process it [09:17:33]requested_item shift.opened is exist - process it [09:17:33]req_shift_opened [09:17:33]FM_GetShiftState [09:17:33]SAM_PROTO_GetShiftState [09:17:33]wFMCommunicate request_size=4 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 13 01 00 [09:17:33]Write to MH i2c: E2 08 00 16 80 80 13 01 00 00 00 00 00 13 [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:33]OFD Sender: No OFD packet to send [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 0E 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 0E 00 16 80 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AF [09:17:33]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:17:33]wFMCommunicate OK [09:17:33]SAM_PROTO_GetShiftState done [09:17:33]FM_GetShiftState done [09:17:33]req_shift_opened done [09:17:33]requested_item shift.open_date is exist - process it [09:17:33]req_shift_open_date [09:17:33]req_shift_open_date done [09:17:33]produce_requested_data done [09:17:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94855,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:17:33]process_action_free close_receipt [09:17:33]json_value_free [09:17:33]json_value_free done [09:17:33]process_json_proto returns [09:17:33]Send response to host [09:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94855,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:17:33]free response buf [09:17:33]execute_script done [09:17:33]execute_script returns [09:17:33]free content buf [09:17:33]Sock 9.Close socket [09:17:33]Sock 9.Thread stoped [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:50]accept exits with 10 [09:17:50]New connection [09:17:50]New thread 3067014500 created [09:17:50]Thread 3066871140 joined [09:17:50]Waiting for new connection... [09:17:50] Sock 10.Parse request [09:17:50]Sock 10.Check first char [09:17:50]Sock 10.First char is OK [09:17:50]request: POST /json_proto HTTP/1.0 [09:17:50]Method: POST [09:17:50]URL: /json_proto [09:17:50]Method is POST - this is cgi request [09:17:50]url: /json_proto [09:17:50]query_string will be loaded in cgi processing [09:17:50]execute_cgi json_proto POST (null) [09:17:50]execute_cgi path=json_proto method=POST [09:17:50]POST find Content-Length [09:17:50]Host: 172.17.62.67:8080 [09:17:50]Content-Length: 1192 [09:17:50]Content-Type: application/json [09:17:50] [09:17:50]POST finish read [09:17:50]Found Content-Length = 1192 [09:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195800\u000A11.03.2024 09:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 300.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 21270.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:50]execute_script... [09:17:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195800\u000A11.03.2024 09:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 300.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 21270.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:50]POST & json_proto [09:17:50]process_json_proto [09:17:50]json parsed OK: [09:17:50]protocol is kg_v1.0 [09:17:50]action value=print_text [09:17:50]process_action print_text [09:17:50]cmd_print_text [09:17:50]ExternCall_PrintAddStr [09:17:50]wPrintStart [09:17:50]Write to MH i2c: 01 00 00 17 80 97 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 07 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 07 00 17 80 00 80 00 00 00 FF 0F 2C [09:17:50]RasterBufferAndPrint [09:17:50]line *****ТОВАРНЫЙ ЧЕК***** [09:17:50]line АЗС 6 [09:17:50]line Партнер нефть [09:17:50]line 02508201610067 [09:17:50]line Кассир : Карыбаев Б. [09:17:50]line Счет N : (1)195800 [09:17:50]line 11.03.2024 09:12 [09:17:50]line ПРОДАЖА [09:17:50]line ТРК (МРК, ГНК): 61 [09:17:50]line Вид ГСМ : 2710194210 [09:17:50]line ДТ-К-5 [09:17:50]line 300.000 x 70.90 [09:17:50]line ИТОГ: 21270.00 [09:17:50]line Тип оплаты: Талоны: Топливная Карта [09:17:50]line 74820 [09:17:50]line ______________________ [09:17:50]line (подпись) [09:17:50]written 0, free lines is 4095 [09:17:51]Write to MH i2c: 01 00 00 2B 80 AB [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: 01 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: 01 07 00 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: 01 07 00 2B 80 00 80 00 00 00 61 0E A1 [09:17:51]RasterBufferAndPrint [09:17:51]line [09:17:51]line [09:17:51]line [09:17:51]line [09:17:51]line [09:17:51]written 0, free lines is 3685 [09:17:51]process_action print_text done [09:17:51]requested_data is exist [09:17:51]produce_requested_data [09:17:51]requested_item fm.sn is exist - process it [09:17:51]wFMCommunicate request_size=4 [09:17:51]MH_SAM_APDU [09:17:51]CAPDU: 80 11 00 00 [09:17:51]Write to MH i2c: E2 08 00 32 80 80 11 00 00 00 00 00 00 2C [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:51]Read from MH i2c: E2 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: E2 17 00 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: E2 17 00 32 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7C [09:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:17:51]wFMCommunicate OK [09:17:51]requested_item fd.num is exist - process it [09:17:51]SAM_PROTO_GetFieldsCounters [09:17:51]wFMCommunicate request_size=4 [09:17:51]MH_SAM_APDU [09:17:51]CAPDU: 80 13 00 00 [09:17:51]Write to MH i2c: E2 08 00 33 80 80 13 00 00 00 00 00 00 2F [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:51]Read from MH i2c: E2 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: E2 62 00 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: E2 62 00 33 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 87 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [09:17: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 87 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:51]wFMCommunicate OK [09:17:51]SAM_PROTO_GetFieldsCounters done [09:17:51]requested_item shift.num is exist - process it [09:17:51]requested_item shift.opened is exist - process it [09:17:51]req_shift_opened [09:17:51]FM_GetShiftState [09:17:51]SAM_PROTO_GetShiftState [09:17:51]wFMCommunicate request_size=4 [09:17:51]MH_SAM_APDU [09:17:51]CAPDU: 80 13 01 00 [09:17:51]Write to MH i2c: E2 08 00 34 80 80 13 01 00 00 00 00 00 31 [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:51]Read from MH i2c: E2 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: E2 0E 00 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: E2 0E 00 34 80 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CD [09:17:51]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:17:51]wFMCommunicate OK [09:17:51]SAM_PROTO_GetShiftState done [09:17:51]FM_GetShiftState done [09:17:51]req_shift_opened done [09:17:51]requested_item shift.open_date is exist - process it [09:17:51]req_shift_open_date [09:17:51]req_shift_open_date done [09:17:51]produce_requested_data done [09:17:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94855,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:17:51]process_action_free print_text [09:17:51]json_value_free [09:17:51]json_value_free done [09:17:51]process_json_proto returns [09:17:51]Send response to host [09:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94855,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:17:51]free response buf [09:17:51]execute_script done [09:17:51]execute_script returns [09:17:51]free content buf [09:17:51]Sock 10.Close socket [09:17:51]Sock 10.Thread stoped [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:04]accept exits with 7 [09:19:04]New connection [09:19:04]New thread 3066871140 created [09:19:04]Thread 3067014500 joined [09:19:04]Waiting for new connection... [09:19:04] Sock 7.Parse request [09:19:04]Sock 7.Check first char [09:19:04]Sock 7.First char is OK [09:19:04]request: POST /json_proto HTTP/1.0 [09:19:04]Method: POST [09:19:04]URL: /json_proto [09:19:04]Method is POST - this is cgi request [09:19:04]url: /json_proto [09:19:04]query_string will be loaded in cgi processing [09:19:04]execute_cgi json_proto POST (null) [09:19:04]execute_cgi path=json_proto method=POST [09:19:04]POST find Content-Length [09:19:04]Host: 172.17.62.67:8080 [09:19:04]Content-Length: 817 [09:19:04]Content-Type: application/json [09:19:04] [09:19:04]POST finish read [09:19:04]Found Content-Length = 817 [09:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.720, "sum" : 800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:04]execute_script... [09:19: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)195803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.720, "sum" : 800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:04]POST & json_proto [09:19:04]process_json_proto [09:19:04]json parsed OK: [09:19:04]protocol is kg_v1.0 [09:19:04]action value=close_receipt [09:19:04]process_action close_receipt [09:19:04]cmd_close_receipt [09:19:04]MH_GetDate [09:19:04]Write to MH i2c: F0 00 00 35 80 A4 [09:19:04]Write i2c OK [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: F0 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: F0 05 00 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: F0 05 00 35 80 00 96 CC EE 65 5E [09:19:04]GetLastDocTimeStamp 1710148663 [09:19:04]current date 1710148758 [09:19:04]FM_GetShiftState [09:19:04]SAM_PROTO_GetShiftState [09:19:04]wFMCommunicate request_size=4 [09:19:04]MH_SAM_APDU [09:19:04]CAPDU: 80 13 01 00 [09:19:04]Write to MH i2c: E2 08 00 36 80 80 13 01 00 00 00 00 00 33 [09:19:04]Write i2c OK [09:19:04]MH_I2C_Read... [09:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:04]Read from MH i2c: E2 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: E2 0E 00 [09:19:04]MH_I2C_Read... [09:19:04]Read from MH i2c: E2 0E 00 36 80 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CF [09:19:04]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:19:04]wFMCommunicate OK [09:19:04]SAM_PROTO_GetShiftState done [09:19:04]FM_GetShiftState done [09:19:04]opened in 1710115571 [09:19:04]opened+sec_in_day 1710201971 [09:19:04]quantity*price = 80008 [09:19:04]sum+1 = 80010 [09:19:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.09 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.09 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 31 11.03.2024 09:19 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94856 ФПД: 234906807796911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T091918&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94856&fm=234906807796911&tin=02508201610067®Number=0000000000090555&sum=80009 [09:19:05]StoreToDocumentArchive [09:19:05]shift 326 fd 94856 [09:19:05]save to /storage/0326/doc_00094856 [09:19:05]save last doc name /storage/0326/doc_00094856 to /storage/kkm_last_doc_name [09:19:05]save OK [09:19:05]Clear old archive folders... [09:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:05]tlvbuf is 001CE330 [09:19:05]SAM_PROTO_ClearQueue [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 09 00 00 [09:19:05]Write to MH i2c: E2 08 00 43 80 80 09 00 00 00 00 00 00 35 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 43 80 00 90 00 37 [09:19:05]RAPDU: 90 00 [09:19:05]wFMCommunicate OK [09:19:05]SAM_PROTO_ClearQueue done [09:19:05]KKMCreateOFDPacket [09:19:05]OFDProtocolAddRootSTLVToBuf [09:19:05]FM_MakeSignedData [09:19:05]FM_MakeSignedData [09:19:05]SAM_PROTO_SignData [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 0D 01 02 [09:19:05]Write to MH i2c: E2 08 00 44 80 80 0D 01 02 00 00 00 00 3D [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 03 00 44 80 00 90 00 38 [09:19:05]RAPDU: 90 00 [09:19:05]wFMCommunicate OK [09:19:05]wFMCommunicate request_size=255 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 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 00 00 00 00 00 00 39 04 06 00 89 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 96 CC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 72 01 00 35 04 06 00 D5 [09:19:05]Write to MH i2c: E2 02 01 45 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 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 00 00 00 00 00 00 39 04 06 00 89 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 96 CC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 72 01 00 35 04 06 00 D5 00 00 16 [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 45 80 00 90 00 39 [09:19:06]RAPDU: 90 00 [09:19:06]wFMCommunicate OK [09:19:06]wFMCommunicate request_size=10 [09:19:06]MH_SAM_APDU [09:19:06]CAPDU: 80 0D 02 02 05 A5 80 D5 84 AF [09:19:06]Write to MH i2c: E2 0D 00 46 80 80 0D 02 02 05 00 A5 80 D5 84 AF 00 00 77 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 46 80 00 90 00 3A [09:19:06]RAPDU: 90 00 [09:19:06]wFMCommunicate OK [09:19:06]wFMCommunicate request_size=4 [09:19:06]MH_SAM_APDU [09:19:06]CAPDU: 80 0D 03 02 [09:19:06]Write to MH i2c: E2 08 00 47 80 80 0D 03 02 00 00 00 00 42 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 0B 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 0B 00 47 80 00 71 A9 8D C7 0F 38 EA E4 90 00 C6 [09:19:06]RAPDU: 71 A9 8D C7 0F 38 EA E4 90 00 [09:19:06]wFMCommunicate OK [09:19:06]SAM_PROTO_SignData done [09:19:06]FM_MakeSignedData done [09:19:06]CreateOFDProtocolMessage [09:19:06]wFMCommunicate request_size=4 [09:19:06]MH_SAM_APDU [09:19:06]CAPDU: 80 11 00 00 [09:19:06]Write to MH i2c: E2 08 00 48 80 80 11 00 00 00 00 00 00 42 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 17 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 17 00 48 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 92 [09:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:19:06]wFMCommunicate OK [09:19:06]CreateOFDProtocolMessage done [09:19:06]OFDSenderStorePacket 94856 [09:19:06]StoreOFDPacket docnum=94856 [09:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CA C6 07 01 95 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 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 00 00 00 00 00 00 39 04 06 00 89 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 96 CC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 72 01 00 35 04 06 00 D5 A5 80 D5 84 AF 71 A9 8D C7 0F 38 EA E4 [09:19:06]CheckFolder [09:19:06]dirname=/storage/ofd_packets [09:19:06]CheckFolder done [09:19:06]ProducePacketName [09:19:06]name=ofd_packets/00094856 [09:19:06]NVStorageSaveData ofd_packets/00094856 [09:19:06]File name is /storage/ofd_packets/00094856 [09:19:06]Write 301 bytes [09:19:06]NVStorageSaveData done [09:19:06]OFDSenderStorePacket done [09:19:06]KKMCreateOFDPacket done [09:19:06]NVStorageSaveData kkm_last_timestamp [09:19:06]File name is /storage/kkm_last_timestamp [09:19:06]Write 4 bytes [09:19:06]NVStorageSaveData done [09:19:06]ExternCall_PrintAddStr [09:19:06]wPrintStart [09:19:06]Write to MH i2c: 01 00 00 49 80 C9 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 49 80 00 80 00 00 00 FF 0F 5E [09:19:06]RasterBufferAndPrint [09:19:06]line Счет N : (1)195803 [09:19:06]line ИНН: 02508201610067 [09:19:06]line Контрольно-Кассовый Чек [09:19:06]line ПРОДАЖА [09:19:06]line ТРК (МРК, ГНК) : 32 [09:19:06]line Товар: 2710124130 [09:19:06]line Аи-92-К-5 [09:19:06]line 12.720 * 62.90 [09:19:06]line = 800.09 [09:19:06]line НДС 12% НСП 1% [09:19:06]line > о реализуемом товаре [09:19:06]line ИТОГО: 800.09 [09:19:06]line НСП 1% : 7.08 [09:19:06]line НДС 12% : 84.96 [09:19:06]line Наличными: 0.00 [09:19:06]line Безнал.: 800.09 [09:19:06]line Место: АЗС № 6 "Партнер Нефть" [09:19:06]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:19:06]line СНО: Общий режим [09:19:06]line Чек 31 11.03.2024 09:19 [09:19:06]line Смена: 326 ФФД: 1.0 [09:19:06]line ЗНМ: 0300000009 [09:19:06]line РНМ: 0000000000090555 [09:19:06]line Версия ККМ: 001 [09:19:06]line Платежная система: Бакай Банк [09:19:06]line ФМ: 0000000000874811 [09:19:06]line ФД: 94856 [09:19:06]line ФПД: 234906807796911 [09:19:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T091918&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94856&fm=234906807796911&tin=02508201610067®Number=0000000000090555&sum=80009 [09:19:06]OFD Sender: Processing packet 94856 [packets to send 30, broken 29] [09:19:06]ProducePacketName [09:19:06]name=ofd_packets/00094856 [09:19:06]OFD Sender: To server: pG, [09:19:06]CommunicateWithHost lk.salyk.kg:30040 [09:19:06]ConnectInit lk.salyk.kg [09:19:06]written 0, free lines is 4095 [09:19:06]Connected sock=9 [09:19: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 31 31 0F 01 00 00 CA C6 07 01 95 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 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 00 00 00 00 00 00 39 04 06 00 89 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 96 CC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 72 01 00 35 04 06 00 D5 A5 80 D5 84 AF 71 A9 8D C7 0F 38 EA E4 [09:19: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 31 31 4F 00 00 00 1D DD 47 00 CC 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 72 01 00 F4 03 04 00 F0 77 EE 65 B6 04 01 00 00 6B 47 B8 8D 2A ED 5C 56 [09:19:06]CommunicateWithHost err = 0 [09:19:06]CheckOFDResponse [09:19:06]1017 (14) - 77093643461234 [09:19:06]1041 (16) - 0000000000874811 [09:19:06]1040 (4) - 94856 [09:19:06]1012 (4) - 11.03.2024 03:18 [09:19:06]1206 (1) - 0 [09:19:06]OFD Sender: Remove packet 94856 [09:19:06]ProducePacketName [09:19:06]name=ofd_packets/00094856 [09:19:06]NVStorageDeleteData [09:19:07]Write to MH i2c: 01 00 00 73 80 F3 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 73 80 00 80 00 00 00 60 0D E7 [09:19:07]RasterBufferAndPrint [09:19:07]line [09:19:07]line [09:19:07]line [09:19:07]line [09:19:07]line [09:19:07]written 0, free lines is 3430 [09:19:07]process_action close_receipt done [09:19:07]requested_data is exist [09:19:07]produce_requested_data [09:19:07]requested_item fm.sn is exist - process it [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 11 00 00 [09:19:07]Write to MH i2c: E2 08 00 7A 80 80 11 00 00 00 00 00 00 74 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:07]Read from MH i2c: E2 17 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 7A 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C4 [09:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:19:07]wFMCommunicate OK [09:19:07]requested_item fd.num is exist - process it [09:19:07]SAM_PROTO_GetFieldsCounters [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 13 00 00 [09:19:07]Write to MH i2c: E2 08 00 7B 80 80 13 00 00 00 00 00 00 77 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 62 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 62 00 7B 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 88 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [09:19: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 88 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:07]wFMCommunicate OK [09:19:07]SAM_PROTO_GetFieldsCounters done [09:19:07]requested_item shift.num is exist - process it [09:19:07]requested_item shift.opened is exist - process it [09:19:07]req_shift_opened [09:19:07]FM_GetShiftState [09:19:07]SAM_PROTO_GetShiftState [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 13 01 00 [09:19:07]Write to MH i2c: E2 08 00 7C 80 80 13 01 00 00 00 00 00 79 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]OFD Sender: No OFD packet to send [09:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0E 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0E 00 7C 80 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 15 [09:19:07]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:19:07]wFMCommunicate OK [09:19:07]SAM_PROTO_GetShiftState done [09:19:07]FM_GetShiftState done [09:19:07]req_shift_opened done [09:19:07]requested_item shift.open_date is exist - process it [09:19:07]req_shift_open_date [09:19:07]req_shift_open_date done [09:19:07]produce_requested_data done [09:19:07]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94856,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:19:07]process_action_free close_receipt [09:19:07]json_value_free [09:19:07]json_value_free done [09:19:07]process_json_proto returns [09:19:07]Send response to host [09:19:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94856,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:19:07]free response buf [09:19:07]execute_script done [09:19:07]execute_script returns [09:19:07]free content buf [09:19:07]Sock 7.Close socket [09:19:07]Sock 7.Thread stoped [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:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:29]accept exits with 10 [09:25:29]New connection [09:25:29]New thread 3067014500 created [09:25:29]Thread 3066871140 joined [09:25:29]Waiting for new connection... [09:25:29] Sock 10.Parse request [09:25:29]Sock 10.Check first char [09:25:29]Sock 10.First char is OK [09:25:29]request: POST /json_proto HTTP/1.0 [09:25:29]Method: POST [09:25:29]URL: /json_proto [09:25:29]Method is POST - this is cgi request [09:25:29]url: /json_proto [09:25:29]query_string will be loaded in cgi processing [09:25:29]execute_cgi json_proto POST (null) [09:25:29]execute_cgi path=json_proto method=POST [09:25:29]POST find Content-Length [09:25:29]Host: 172.17.62.67:8080 [09:25:29]Content-Length: 808 [09:25:29]Content-Type: application/json [09:25:29] [09:25:29]POST finish read [09:25:29]Found Content-Length = 808 [09:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 30.460, "sum" : 2116.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2116.97 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:29]execute_script... [09:25: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)195805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 30.460, "sum" : 2116.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2116.97 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:29]POST & json_proto [09:25:29]process_json_proto [09:25:29]json parsed OK: [09:25:29]protocol is kg_v1.0 [09:25:29]action value=close_receipt [09:25:29]process_action close_receipt [09:25:29]cmd_close_receipt [09:25:29]MH_GetDate [09:25:29]Write to MH i2c: F0 00 00 7D 80 EC [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 05 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 05 00 7D 80 00 17 CE EE 65 29 [09:25:29]GetLastDocTimeStamp 1710148758 [09:25:29]current date 1710149143 [09:25:29]FM_GetShiftState [09:25:29]SAM_PROTO_GetShiftState [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 13 01 00 [09:25:29]Write to MH i2c: E2 08 00 7E 80 80 13 01 00 00 00 00 00 7B [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0E 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0E 00 7E 80 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 17 [09:25:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:25:29]wFMCommunicate OK [09:25:29]SAM_PROTO_GetShiftState done [09:25:29]FM_GetShiftState done [09:25:29]opened in 1710115571 [09:25:29]opened+sec_in_day 1710201971 [09:25:29]quantity*price = 211697 [09:25:29]sum+1 = 211698 [09:25:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2116.97 НСП 1% : 18.73 НДС 12% : 224.81 Наличными: 0.00 Безнал.: 2116.97 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 32 11.03.2024 09:25 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94857 ФПД: 150119216221364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T092543&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94857&fm=150119216221364&tin=02508201610067®Number=0000000000090555&sum=211697 [09:25:30]StoreToDocumentArchive [09:25:30]shift 326 fd 94857 [09:25:30]save to /storage/0326/doc_00094857 [09:25:30]save last doc name /storage/0326/doc_00094857 to /storage/kkm_last_doc_name [09:25:30]save OK [09:25:30]Clear old archive folders... [09:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:30]tlvbuf is 001FBBA0 [09:25:30]SAM_PROTO_ClearQueue [09:25:30]wFMCommunicate request_size=4 [09:25:30]MH_SAM_APDU [09:25:30]CAPDU: 80 09 00 00 [09:25:30]Write to MH i2c: E2 08 00 8B 80 80 09 00 00 00 00 00 00 7D [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:30]Read from MH i2c: E2 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 8B 80 00 90 00 7F [09:25:30]RAPDU: 90 00 [09:25:30]wFMCommunicate OK [09:25:30]SAM_PROTO_ClearQueue done [09:25:30]KKMCreateOFDPacket [09:25:30]OFDProtocolAddRootSTLVToBuf [09:25:30]FM_MakeSignedData [09:25:30]FM_MakeSignedData [09:25:30]SAM_PROTO_SignData [09:25:30]wFMCommunicate request_size=4 [09:25:30]MH_SAM_APDU [09:25:30]CAPDU: 80 0D 01 02 [09:25:30]Write to MH i2c: E2 08 00 8C 80 80 0D 01 02 00 00 00 00 85 [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:30]Read from MH i2c: E2 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: E2 03 00 8C 80 00 90 00 80 [09:25:30]RAPDU: 90 00 [09:25:30]wFMCommunicate OK [09:25:30]wFMCommunicate request_size=255 [09:25:30]MH_SAM_APDU [09:25: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 76 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F1 3A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F1 3A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 57 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F1 3A 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 17 CE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 72 01 00 35 04 06 00 88 [09:25:30]Write to MH i2c: E2 02 01 8D 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 76 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F1 3A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F1 3A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 57 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F1 3A 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 17 CE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 72 01 00 35 04 06 00 88 00 00 6F [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 8D 80 00 90 00 81 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]wFMCommunicate request_size=10 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 0D 02 02 05 88 5A 8E 8C B4 [09:25:31]Write to MH i2c: E2 0D 00 8E 80 80 0D 02 02 05 00 88 5A 8E 8C B4 00 00 42 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 8E 80 00 90 00 82 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 0D 03 02 [09:25:31]Write to MH i2c: E2 08 00 8F 80 80 0D 03 02 00 00 00 00 8A [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0B 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0B 00 8F 80 00 A4 DD 7C 9E 1B C5 06 81 90 00 8D [09:25:31]RAPDU: A4 DD 7C 9E 1B C5 06 81 90 00 [09:25:31]wFMCommunicate OK [09:25:31]SAM_PROTO_SignData done [09:25:31]FM_MakeSignedData done [09:25:31]CreateOFDProtocolMessage [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 11 00 00 [09:25:31]Write to MH i2c: E2 08 00 90 80 80 11 00 00 00 00 00 00 8A [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 17 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 17 00 90 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DA [09:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:25:31]wFMCommunicate OK [09:25:31]CreateOFDProtocolMessage done [09:25:31]OFDSenderStorePacket 94857 [09:25:31]StoreOFDPacket docnum=94857 [09:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 1A 07 01 86 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 76 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F1 3A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F1 3A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 57 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F1 3A 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 17 CE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 72 01 00 35 04 06 00 88 88 5A 8E 8C B4 A4 DD 7C 9E 1B C5 06 81 [09:25:31]CheckFolder [09:25:31]dirname=/storage/ofd_packets [09:25:31]CheckFolder done [09:25:31]ProducePacketName [09:25:31]name=ofd_packets/00094857 [09:25:31]NVStorageSaveData ofd_packets/00094857 [09:25:31]File name is /storage/ofd_packets/00094857 [09:25:31]Write 301 bytes [09:25:31]NVStorageSaveData done [09:25:31]OFDSenderStorePacket done [09:25:31]KKMCreateOFDPacket done [09:25:31]NVStorageSaveData kkm_last_timestamp [09:25:31]File name is /storage/kkm_last_timestamp [09:25:31]Write 4 bytes [09:25:31]NVStorageSaveData done [09:25:31]ExternCall_PrintAddStr [09:25:31]wPrintStart [09:25:31]Write to MH i2c: 01 00 00 91 80 11 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 07 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 07 00 91 80 00 80 00 00 00 FF 0F A6 [09:25:31]RasterBufferAndPrint [09:25:31]line Счет N : (1)195805 [09:25:31]line ИНН: 02508201610067 [09:25:31]line Контрольно-Кассовый Чек [09:25:31]line ПРОДАЖА [09:25:31]line ТРК (МРК, ГНК) : 41 [09:25:31]line Товар: 2710124500 [09:25:31]line Аи-95-К-5 [09:25:31]line 30.460 * 69.50 [09:25:31]line = 2116.97 [09:25:31]line НДС 12% НСП 1% [09:25:31]line > о реализуемом товаре [09:25:31]line ИТОГО: 2116.97 [09:25:31]line НСП 1% : 18.73 [09:25:31]line НДС 12% : 224.81 [09:25:31]line Наличными: 0.00 [09:25:31]line Безнал.: 2116.97 [09:25:31]line Место: АЗС № 6 "Партнер Нефть" [09:25:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:25:31]line СНО: Общий режим [09:25:31]line Чек 32 11.03.2024 09:25 [09:25:31]line Смена: 326 ФФД: 1.0 [09:25:31]line ЗНМ: 0300000009 [09:25:31]line РНМ: 0000000000090555 [09:25:31]line Версия ККМ: 001 [09:25:31]line Платежная система: О! деньги [09:25:31]line ФМ: 0000000000874811 [09:25:31]line ФД: 94857 [09:25:31]line ФПД: 150119216221364 [09:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T092543&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94857&fm=150119216221364&tin=02508201610067®Number=0000000000090555&sum=211697 [09:25:31]OFD Sender: Processing packet 94857 [packets to send 30, broken 29] [09:25:31]ProducePacketName [09:25:31]name=ofd_packets/00094857 [09:25:31]OFD Sender: To server: pG, [09:25:31]CommunicateWithHost lk.salyk.kg:30040 [09:25:31]ConnectInit lk.salyk.kg [09:25:31]written 0, free lines is 4095 [09:25:31]Connected sock=9 [09:25: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 31 31 0F 01 00 00 97 1A 07 01 86 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 76 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F1 3A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F1 3A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 57 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F1 3A 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 17 CE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 72 01 00 35 04 06 00 88 88 5A 8E 8C B4 A4 DD 7C 9E 1B C5 06 81 [09:25: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 31 31 4F 00 00 00 49 D9 47 00 A9 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 31 31 10 04 04 00 89 72 01 00 F4 03 04 00 71 79 EE 65 B6 04 01 00 00 49 FE 83 1C C1 39 87 E7 [09:25:31]CommunicateWithHost err = 0 [09:25:31]CheckOFDResponse [09:25:31]1017 (14) - 77093643461234 [09:25:31]1041 (16) - 0000000000874811 [09:25:31]1040 (4) - 94857 [09:25:31]1012 (4) - 11.03.2024 03:24 [09:25:31]1206 (1) - 0 [09:25:31]OFD Sender: Remove packet 94857 [09:25:31]ProducePacketName [09:25:31]name=ofd_packets/00094857 [09:25:31]NVStorageDeleteData [09:25:32]Write to MH i2c: 01 00 00 BB 80 3B [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 07 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 07 00 BB 80 00 80 00 00 00 5A 0D 29 [09:25:32]RasterBufferAndPrint [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]written 0, free lines is 3424 [09:25:32]process_action close_receipt done [09:25:32]requested_data is exist [09:25:32]produce_requested_data [09:25:32]requested_item fm.sn is exist - process it [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 11 00 00 [09:25:32]Write to MH i2c: E2 08 00 C2 80 80 11 00 00 00 00 00 00 BC [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 17 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 17 00 C2 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0C [09:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:25:32]wFMCommunicate OK [09:25:32]requested_item fd.num is exist - process it [09:25:32]SAM_PROTO_GetFieldsCounters [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 13 00 00 [09:25:32]Write to MH i2c: E2 08 00 C3 80 80 13 00 00 00 00 00 00 BF [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 62 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 62 00 C3 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 89 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [09:25: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 89 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:32]wFMCommunicate OK [09:25:32]SAM_PROTO_GetFieldsCounters done [09:25:32]requested_item shift.num is exist - process it [09:25:32]requested_item shift.opened is exist - process it [09:25:32]req_shift_opened [09:25:32]FM_GetShiftState [09:25:32]SAM_PROTO_GetShiftState [09:25:32]wFMCommunicate request_size=4 [09:25:32]MH_SAM_APDU [09:25:32]CAPDU: 80 13 01 00 [09:25:32]Write to MH i2c: E2 08 00 C4 80 80 13 01 00 00 00 00 00 C1 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:32]Read from MH i2c: E2 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 0E 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: E2 0E 00 C4 80 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5D [09:25:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:25:32]wFMCommunicate OK [09:25:32]SAM_PROTO_GetShiftState done [09:25:32]FM_GetShiftState done [09:25:32]req_shift_opened done [09:25:32]requested_item shift.open_date is exist - process it [09:25:32]req_shift_open_date [09:25:32]req_shift_open_date done [09:25:32]produce_requested_data done [09:25:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94857,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:25:32]process_action_free close_receipt [09:25:32]json_value_free [09:25:32]json_value_free done [09:25:32]process_json_proto returns [09:25:32]Send response to host [09:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94857,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:25:32]free response buf [09:25:32]execute_script done [09:25:32]execute_script returns [09:25:32]free content buf [09:25:32]Sock 10.Close socket [09:25:32]Sock 10.Thread stoped [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:56]accept exits with 7 [09:30:56]New connection [09:30:56]New thread 3066871140 created [09:30:56]Thread 3067014500 joined [09:30:56]Waiting for new connection... [09:30:56] Sock 7.Parse request [09:30:56]Sock 7.Check first char [09:30:56]Sock 7.First char is OK [09:30:56]request: POST /json_proto HTTP/1.0 [09:30:56]Method: POST [09:30:56]URL: /json_proto [09:30:56]Method is POST - this is cgi request [09:30:56]url: /json_proto [09:30:56]query_string will be loaded in cgi processing [09:30:56]execute_cgi json_proto POST (null) [09:30:56]execute_cgi path=json_proto method=POST [09:30:56]POST find Content-Length [09:30:56]Host: 172.17.62.67:8080 [09:30:56]Content-Length: 677 [09:30:56]Content-Type: application/json [09:30:56] [09:30:56]POST finish read [09:30:56]Found Content-Length = 677 [09:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "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:30:56]execute_script... [09:30: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)195806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "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:30:56]POST & json_proto [09:30:56]process_json_proto [09:30:56]json parsed OK: [09:30:56]protocol is kg_v1.0 [09:30:56]action value=close_receipt [09:30:56]process_action close_receipt [09:30:56]cmd_close_receipt [09:30:56]MH_GetDate [09:30:56]Write to MH i2c: F0 00 00 C5 80 34 [09:30:56]Write i2c OK [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: F0 [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: F0 05 00 [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: F0 05 00 C5 80 00 5D CF EE 65 B8 [09:30:56]GetLastDocTimeStamp 1710149143 [09:30:56]current date 1710149469 [09:30:56]FM_GetShiftState [09:30:56]SAM_PROTO_GetShiftState [09:30:56]wFMCommunicate request_size=4 [09:30:56]MH_SAM_APDU [09:30:56]CAPDU: 80 13 01 00 [09:30:56]Write to MH i2c: E2 08 00 C6 80 80 13 01 00 00 00 00 00 C3 [09:30:56]Write i2c OK [09:30:56]MH_I2C_Read... [09:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:56]Read from MH i2c: E2 [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: E2 0E 00 [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: E2 0E 00 C6 80 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5F [09:30:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:30:56]wFMCommunicate OK [09:30:56]SAM_PROTO_GetShiftState done [09:30:56]FM_GetShiftState done [09:30:56]opened in 1710115571 [09:30:56]opened+sec_in_day 1710201971 [09:30:56]quantity*price = 30003 [09:30:56]sum+1 = 30004 [09:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 33 11.03.2024 09:31 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94858 ФПД: 60356613143731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T093109&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94858&fm=60356613143731&tin=02508201610067®Number=0000000000090555&sum=30000 [09:30:57]StoreToDocumentArchive [09:30:57]shift 326 fd 94858 [09:30:57]save to /storage/0326/doc_00094858 [09:30:57]save last doc name /storage/0326/doc_00094858 to /storage/kkm_last_doc_name [09:30:57]save OK [09:30:57]Clear old archive folders... [09:30:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:57]tlvbuf is 0016DD30 [09:30:57]SAM_PROTO_ClearQueue [09:30:57]wFMCommunicate request_size=4 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 09 00 00 [09:30:57]Write to MH i2c: E2 08 00 D3 80 80 09 00 00 00 00 00 00 C5 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 03 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 03 00 D3 80 00 90 00 C7 [09:30:57]RAPDU: 90 00 [09:30:57]wFMCommunicate OK [09:30:57]SAM_PROTO_ClearQueue done [09:30:57]KKMCreateOFDPacket [09:30:57]OFDProtocolAddRootSTLVToBuf [09:30:57]FM_MakeSignedData [09:30:57]FM_MakeSignedData [09:30:57]SAM_PROTO_SignData [09:30:57]wFMCommunicate request_size=4 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 0D 01 02 [09:30:57]Write to MH i2c: E2 08 00 D4 80 80 0D 01 02 00 00 00 00 CD [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 03 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 03 00 D4 80 00 90 00 C8 [09:30:57]RAPDU: 90 00 [09:30:57]wFMCommunicate OK [09:30:57]wFMCommunicate request_size=255 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5D CF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 72 01 00 35 04 06 00 36 [09:30:57]Write to MH i2c: E2 02 01 D5 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5D CF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 72 01 00 35 04 06 00 36 00 00 C5 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 03 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 03 00 D5 80 00 90 00 C9 [09:30:57]RAPDU: 90 00 [09:30:57]wFMCommunicate OK [09:30:57]wFMCommunicate request_size=10 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 0D 02 02 05 E4 DE 7C 7C B3 [09:30:57]Write to MH i2c: E2 0D 00 D6 80 80 0D 02 02 05 00 E4 DE 7C 7C B3 00 00 47 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 03 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 03 00 D6 80 00 90 00 CA [09:30:57]RAPDU: 90 00 [09:30:57]wFMCommunicate OK [09:30:57]wFMCommunicate request_size=4 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 0D 03 02 [09:30:57]Write to MH i2c: E2 08 00 D7 80 80 0D 03 02 00 00 00 00 D2 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]OFD Sender: No OFD packet to send [09:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 0B 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 0B 00 D7 80 00 2B 62 E5 77 5A 4F C1 54 90 00 7A [09:30:57]RAPDU: 2B 62 E5 77 5A 4F C1 54 90 00 [09:30:57]wFMCommunicate OK [09:30:57]SAM_PROTO_SignData done [09:30:57]FM_MakeSignedData done [09:30:57]CreateOFDProtocolMessage [09:30:57]wFMCommunicate request_size=4 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 11 00 00 [09:30:57]Write to MH i2c: E2 08 00 D8 80 80 11 00 00 00 00 00 00 D2 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 17 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 17 00 D8 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 22 [09:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:30:57]wFMCommunicate OK [09:30:57]CreateOFDProtocolMessage done [09:30:57]OFDSenderStorePacket 94858 [09:30:57]StoreOFDPacket docnum=94858 [09:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 10 08 07 01 8B 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5D CF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 72 01 00 35 04 06 00 36 E4 DE 7C 7C B3 2B 62 E5 77 5A 4F C1 54 [09:30:57]CheckFolder [09:30:57]dirname=/storage/ofd_packets [09:30:57]CheckFolder done [09:30:57]ProducePacketName [09:30:57]name=ofd_packets/00094858 [09:30:57]NVStorageSaveData ofd_packets/00094858 [09:30:57]File name is /storage/ofd_packets/00094858 [09:30:57]Write 301 bytes [09:30:57]NVStorageSaveData done [09:30:57]OFDSenderStorePacket done [09:30:57]KKMCreateOFDPacket done [09:30:57]NVStorageSaveData kkm_last_timestamp [09:30:57]File name is /storage/kkm_last_timestamp [09:30:57]Write 4 bytes [09:30:57]NVStorageSaveData done [09:30:57]ExternCall_PrintAddStr [09:30:57]wPrintStart [09:30:57]Write to MH i2c: 01 00 00 D9 80 59 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: 01 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: 01 07 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: 01 07 00 D9 80 00 80 00 00 00 FF 0F EE [09:30:57]RasterBufferAndPrint [09:30:57]line Счет N : (1)195806 [09:30:57]line ИНН: 02508201610067 [09:30:57]line Контрольно-Кассовый Чек [09:30:57]line ПРОДАЖА [09:30:57]line ТРК (МРК, ГНК) : 22 [09:30:57]line Товар: 2710124130 [09:30:57]line Аи-92-К-5 [09:30:57]line 4.770 * 62.90 [09:30:57]line = 300.03 [09:30:57]line НДС 12% НСП 1% [09:30:57]line > о реализуемом товаре [09:30:57]line ОКРУГЛЕНИЕ: -0.03 [09:30:57]line ИТОГО: 300.00 [09:30:57]line Внесено: 300.00 [09:30:57]line СДАЧА: 0.00 [09:30:57]line НСП 1% : 2.65 [09:30:57]line НДС 12% : 31.86 [09:30:57]line Наличными: 300.00 [09:30:57]line Безнал.: 0.00 [09:30:57]line Место: АЗС № 6 "Партнер Нефть" [09:30:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:30:57]line СНО: Общий режим [09:30:57]line Чек 33 11.03.2024 09:31 [09:30:57]line Смена: 326 ФФД: 1.0 [09:30:57]line ЗНМ: 0300000009 [09:30:57]line РНМ: 0000000000090555 [09:30:57]line Версия ККМ: 001 [09:30:58]line ФМ: 0000000000874811 [09:30:58]line ФД: 94858 [09:30:58]line ФПД: 60356613143731 [09:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T093109&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94858&fm=60356613143731&tin=02508201610067®Number=0000000000090555&sum=30000 [09:30:58]OFD Sender: Processing packet 94858 [packets to send 30, broken 29] [09:30:58]ProducePacketName [09:30:58]name=ofd_packets/00094858 [09:30:58]OFD Sender: To server: pG, [09:30:58]CommunicateWithHost lk.salyk.kg:30040 [09:30:58]ConnectInit lk.salyk.kg [09:30:58]written 0, free lines is 4095 [09:30:58]Connected sock=10 [09:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 10 08 07 01 8B 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 5D CF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 72 01 00 35 04 06 00 36 E4 DE 7C 7C B3 2B 62 E5 77 5A 4F C1 54 [09:30: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 31 31 4F 00 00 00 7D B8 47 00 F3 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 72 01 00 F4 03 04 00 B7 7A EE 65 B6 04 01 00 00 6D FE 28 43 E4 2F A1 4A [09:30:58]CommunicateWithHost err = 0 [09:30:58]CheckOFDResponse [09:30:58]1017 (14) - 77093643461234 [09:30:58]1041 (16) - 0000000000874811 [09:30:58]1040 (4) - 94858 [09:30:58]1012 (4) - 11.03.2024 03:29 [09:30:58]1206 (1) - 0 [09:30:58]OFD Sender: Remove packet 94858 [09:30:58]ProducePacketName [09:30:58]name=ofd_packets/00094858 [09:30:58]NVStorageDeleteData [09:30:58]Write to MH i2c: 01 00 00 04 81 85 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: 01 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: 01 07 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: 01 07 00 04 81 00 80 00 00 00 4A 0D 63 [09:30:58]RasterBufferAndPrint [09:30:58]line [09:30:58]line [09:30:58]line [09:30:58]line [09:30:58]line [09:30:58]written 0, free lines is 3406 [09:30:58]process_action close_receipt done [09:30:58]requested_data is exist [09:30:58]produce_requested_data [09:30:58]requested_item fm.sn is exist - process it [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 11 00 00 [09:30:58]Write to MH i2c: E2 08 00 0B 81 80 11 00 00 00 00 00 00 06 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 17 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 17 00 0B 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 56 [09:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:30:58]wFMCommunicate OK [09:30:58]requested_item fd.num is exist - process it [09:30:58]SAM_PROTO_GetFieldsCounters [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 13 00 00 [09:30:58]Write to MH i2c: E2 08 00 0C 81 80 13 00 00 00 00 00 00 09 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 62 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 62 00 0C 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8A 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:30: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8A 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:58]wFMCommunicate OK [09:30:58]SAM_PROTO_GetFieldsCounters done [09:30:58]requested_item shift.num is exist - process it [09:30:58]requested_item shift.opened is exist - process it [09:30:58]req_shift_opened [09:30:58]FM_GetShiftState [09:30:58]SAM_PROTO_GetShiftState [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 13 01 00 [09:30:58]Write to MH i2c: E2 08 00 0D 81 80 13 01 00 00 00 00 00 0B [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 0E 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 0E 00 0D 81 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A7 [09:30:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:30:58]wFMCommunicate OK [09:30:58]SAM_PROTO_GetShiftState done [09:30:58]FM_GetShiftState done [09:30:58]req_shift_opened done [09:30:58]requested_item shift.open_date is exist - process it [09:30:58]req_shift_open_date [09:30:58]req_shift_open_date done [09:30:58]produce_requested_data done [09:30:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94858,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:30:58]process_action_free close_receipt [09:30:58]json_value_free [09:30:58]json_value_free done [09:30:58]process_json_proto returns [09:30:58]Send response to host [09:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94858,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:30:58]free response buf [09:30:58]execute_script done [09:30:58]execute_script returns [09:30:58]free content buf [09:30:58]Sock 7.Close socket [09:30:58]Sock 7.Thread stoped [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:22]accept exits with 9 [09:33:22]New connection [09:33:22]New thread 3067014500 created [09:33:22]Thread 3066871140 joined [09:33:22]Waiting for new connection... [09:33:22] Sock 9.Parse request [09:33:22]Sock 9.Check first char [09:33:22]Sock 9.First char is OK [09:33:22]request: POST /json_proto HTTP/1.0 [09:33:22]Method: POST [09:33:22]URL: /json_proto [09:33:22]Method is POST - this is cgi request [09:33:22]url: /json_proto [09:33:22]query_string will be loaded in cgi processing [09:33:22]execute_cgi json_proto POST (null) [09:33:22]execute_cgi path=json_proto method=POST [09:33:22]POST find Content-Length [09:33:22]Host: 172.17.62.67:8080 [09:33:22]Content-Length: 682 [09:33:22]Content-Type: application/json [09:33:22] [09:33:22]POST finish read [09:33:22]Found Content-Length = 682 [09:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:33:22]execute_script... [09:33: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)195807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:33:22]POST & json_proto [09:33:22]process_json_proto [09:33:22]json parsed OK: [09:33:22]protocol is kg_v1.0 [09:33:22]action value=close_receipt [09:33:22]process_action close_receipt [09:33:22]cmd_close_receipt [09:33:22]MH_GetDate [09:33:22]Write to MH i2c: F0 00 00 0E 81 7E [09:33:22]Write i2c OK [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 05 00 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 05 00 0E 81 00 F0 CF EE 65 95 [09:33:22]GetLastDocTimeStamp 1710149469 [09:33:22]current date 1710149616 [09:33:22]FM_GetShiftState [09:33:22]SAM_PROTO_GetShiftState [09:33:22]wFMCommunicate request_size=4 [09:33:22]MH_SAM_APDU [09:33:22]CAPDU: 80 13 01 00 [09:33:22]Write to MH i2c: E2 08 00 0F 81 80 13 01 00 00 00 00 00 0D [09:33:22]Write i2c OK [09:33:22]MH_I2C_Read... [09:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:22]Read from MH i2c: E2 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: E2 0E 00 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: E2 0E 00 0F 81 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A9 [09:33:22]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:33:22]wFMCommunicate OK [09:33:22]SAM_PROTO_GetShiftState done [09:33:22]FM_GetShiftState done [09:33:22]opened in 1710115571 [09:33:22]opened+sec_in_day 1710201971 [09:33:22]quantity*price = 100011 [09:33:22]sum+1 = 100012 [09:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 34 11.03.2024 09:33 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94859 ФПД: 126177559135623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T093336&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94859&fm=126177559135623&tin=02508201610067®Number=0000000000090555&sum=100000 [09:33:23]StoreToDocumentArchive [09:33:23]shift 326 fd 94859 [09:33:23]save to /storage/0326/doc_00094859 [09:33:23]save last doc name /storage/0326/doc_00094859 to /storage/kkm_last_doc_name [09:33:23]save OK [09:33:23]Clear old archive folders... [09:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:23]tlvbuf is 0020CC00 [09:33:23]SAM_PROTO_ClearQueue [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 09 00 00 [09:33:23]Write to MH i2c: E2 08 00 1C 81 80 09 00 00 00 00 00 00 0F [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 1C 81 00 90 00 11 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]SAM_PROTO_ClearQueue done [09:33:23]KKMCreateOFDPacket [09:33:23]OFDProtocolAddRootSTLVToBuf [09:33:23]FM_MakeSignedData [09:33:23]FM_MakeSignedData [09:33:23]SAM_PROTO_SignData [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 0D 01 02 [09:33:23]Write to MH i2c: E2 08 00 1D 81 80 0D 01 02 00 00 00 00 17 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 1D 81 00 90 00 12 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]wFMCommunicate request_size=255 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F0 CF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 72 01 00 35 04 06 00 72 [09:33:23]Write to MH i2c: E2 02 01 1E 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F0 CF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 72 01 00 35 04 06 00 72 00 00 AA [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 1E 81 00 90 00 13 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]wFMCommunicate request_size=10 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 0D 02 02 05 C2 00 97 45 87 [09:33:23]Write to MH i2c: E2 0D 00 1F 81 80 0D 02 02 05 00 C2 00 97 45 87 00 00 49 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:24]OFD Sender: No OFD packet to send [09:33:24]Read from MH i2c: E2 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 03 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 03 00 1F 81 00 90 00 14 [09:33:24]RAPDU: 90 00 [09:33:24]wFMCommunicate OK [09:33:24]wFMCommunicate request_size=4 [09:33:24]MH_SAM_APDU [09:33:24]CAPDU: 80 0D 03 02 [09:33:24]Write to MH i2c: E2 08 00 20 81 80 0D 03 02 00 00 00 00 1C [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:24]Read from MH i2c: E2 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 0B 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 0B 00 20 81 00 C7 7C 44 16 C9 D9 53 A7 90 00 56 [09:33:24]RAPDU: C7 7C 44 16 C9 D9 53 A7 90 00 [09:33:24]wFMCommunicate OK [09:33:24]SAM_PROTO_SignData done [09:33:24]FM_MakeSignedData done [09:33:24]CreateOFDProtocolMessage [09:33:24]wFMCommunicate request_size=4 [09:33:24]MH_SAM_APDU [09:33:24]CAPDU: 80 11 00 00 [09:33:24]Write to MH i2c: E2 08 00 21 81 80 11 00 00 00 00 00 00 1C [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:24]Read from MH i2c: E2 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 17 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 17 00 21 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6C [09:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:33:24]wFMCommunicate OK [09:33:24]CreateOFDProtocolMessage done [09:33:24]OFDSenderStorePacket 94859 [09:33:24]StoreOFDPacket docnum=94859 [09:33:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DE 09 07 01 E6 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F0 CF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 72 01 00 35 04 06 00 72 C2 00 97 45 87 C7 7C 44 16 C9 D9 53 A7 [09:33:24]CheckFolder [09:33:24]dirname=/storage/ofd_packets [09:33:24]CheckFolder done [09:33:24]ProducePacketName [09:33:24]name=ofd_packets/00094859 [09:33:24]NVStorageSaveData ofd_packets/00094859 [09:33:24]File name is /storage/ofd_packets/00094859 [09:33:24]Write 301 bytes [09:33:24]NVStorageSaveData done [09:33:24]OFDSenderStorePacket done [09:33:24]KKMCreateOFDPacket done [09:33:24]NVStorageSaveData kkm_last_timestamp [09:33:24]File name is /storage/kkm_last_timestamp [09:33:24]Write 4 bytes [09:33:24]NVStorageSaveData done [09:33:24]ExternCall_PrintAddStr [09:33:24]wPrintStart [09:33:24]Write to MH i2c: 01 00 00 22 81 A3 [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 22 81 00 80 00 00 00 FF 0F 38 [09:33:24]RasterBufferAndPrint [09:33:24]line Счет N : (1)195807 [09:33:24]line ИНН: 02508201610067 [09:33:24]line Контрольно-Кассовый Чек [09:33:24]line ПРОДАЖА [09:33:24]line ТРК (МРК, ГНК) : 22 [09:33:24]line Товар: 2710124130 [09:33:24]line Аи-92-К-5 [09:33:24]line 15.900 * 62.90 [09:33:24]line = 1000.11 [09:33:24]line НДС 12% НСП 1% [09:33:24]line > о реализуемом товаре [09:33:24]line ОКРУГЛЕНИЕ: -0.11 [09:33:24]line ИТОГО: 1000.00 [09:33:24]line Внесено: 1000.00 [09:33:24]line СДАЧА: 0.00 [09:33:24]line НСП 1% : 8.85 [09:33:24]line НДС 12% : 106.21 [09:33:24]line Наличными: 1000.00 [09:33:24]line Безнал.: 0.00 [09:33:24]line Место: АЗС № 6 "Партнер Нефть" [09:33:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:33:24]line СНО: Общий режим [09:33:24]line Чек 34 11.03.2024 09:33 [09:33:24]line Смена: 326 ФФД: 1.0 [09:33:24]line ЗНМ: 0300000009 [09:33:24]line РНМ: 0000000000090555 [09:33:24]line Версия ККМ: 001 [09:33:24]line ФМ: 0000000000874811 [09:33:24]line ФД: 94859 [09:33:24]line ФПД: 126177559135623 [09:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T093336&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94859&fm=126177559135623&tin=02508201610067®Number=0000000000090555&sum=100000 [09:33:24]OFD Sender: Processing packet 94859 [packets to send 30, broken 29] [09:33:24]ProducePacketName [09:33:24]name=ofd_packets/00094859 [09:33:24]OFD Sender: To server: pG, [09:33:24]CommunicateWithHost lk.salyk.kg:30040 [09:33:24]ConnectInit lk.salyk.kg [09:33:24]written 0, free lines is 4095 [09:33:24]Connected sock=10 [09:33: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 31 31 0F 01 00 00 DE 09 07 01 E6 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F0 CF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 72 01 00 35 04 06 00 72 C2 00 97 45 87 C7 7C 44 16 C9 D9 53 A7 [09:33: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 31 31 4F 00 00 00 AD A2 47 00 8B 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 31 31 10 04 04 00 8B 72 01 00 F4 03 04 00 49 7B EE 65 B6 04 01 00 00 FE DC BB 22 44 94 C4 C2 [09:33:24]CommunicateWithHost err = 0 [09:33:24]CheckOFDResponse [09:33:24]1017 (14) - 77093643461234 [09:33:24]1041 (16) - 0000000000874811 [09:33:24]1040 (4) - 94859 [09:33:24]1012 (4) - 11.03.2024 03:32 [09:33:24]1206 (1) - 0 [09:33:24]OFD Sender: Remove packet 94859 [09:33:24]ProducePacketName [09:33:24]name=ofd_packets/00094859 [09:33:24]NVStorageDeleteData [09:33:24]Write to MH i2c: 01 00 00 4D 81 CE [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 4D 81 00 80 00 00 00 47 0D A9 [09:33:24]RasterBufferAndPrint [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]written 0, free lines is 3405 [09:33:24]process_action close_receipt done [09:33:24]requested_data is exist [09:33:24]produce_requested_data [09:33:24]requested_item fm.sn is exist - process it [09:33:24]wFMCommunicate request_size=4 [09:33:24]MH_SAM_APDU [09:33:24]CAPDU: 80 11 00 00 [09:33:24]Write to MH i2c: E2 08 00 54 81 80 11 00 00 00 00 00 00 4F [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:24]Read from MH i2c: E2 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 17 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 17 00 54 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9F [09:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:33:25]wFMCommunicate OK [09:33:25]requested_item fd.num is exist - process it [09:33:25]SAM_PROTO_GetFieldsCounters [09:33:25]wFMCommunicate request_size=4 [09:33:25]MH_SAM_APDU [09:33:25]CAPDU: 80 13 00 00 [09:33:25]Write to MH i2c: E2 08 00 55 81 80 13 00 00 00 00 00 00 52 [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:25]Read from MH i2c: E2 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 62 00 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 62 00 55 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8B 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [09:33:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8B 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:25]wFMCommunicate OK [09:33:25]SAM_PROTO_GetFieldsCounters done [09:33:25]requested_item shift.num is exist - process it [09:33:25]requested_item shift.opened is exist - process it [09:33:25]req_shift_opened [09:33:25]FM_GetShiftState [09:33:25]SAM_PROTO_GetShiftState [09:33:25]wFMCommunicate request_size=4 [09:33:25]MH_SAM_APDU [09:33:25]CAPDU: 80 13 01 00 [09:33:25]Write to MH i2c: E2 08 00 56 81 80 13 01 00 00 00 00 00 54 [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:25]Read from MH i2c: E2 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 0E 00 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: E2 0E 00 56 81 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F0 [09:33:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:33:25]wFMCommunicate OK [09:33:25]SAM_PROTO_GetShiftState done [09:33:25]FM_GetShiftState done [09:33:25]req_shift_opened done [09:33:25]requested_item shift.open_date is exist - process it [09:33:25]req_shift_open_date [09:33:25]req_shift_open_date done [09:33:25]produce_requested_data done [09:33:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94859,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:33:25]process_action_free close_receipt [09:33:25]json_value_free [09:33:25]json_value_free done [09:33:25]process_json_proto returns [09:33:25]Send response to host [09:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94859,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:33:25]free response buf [09:33:25]execute_script done [09:33:25]execute_script returns [09:33:25]free content buf [09:33:25]Sock 9.Close socket [09:33:25]Sock 9.Thread stoped [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:04]accept exits with 7 [09:35:04]New connection [09:35:04]New thread 3066871140 created [09:35:04]Thread 3067014500 joined [09:35:04]Waiting for new connection... [09:35:04] Sock 7.Parse request [09:35:04]Sock 7.Check first char [09:35:04]Sock 7.First char is OK [09:35:04]request: POST /json_proto HTTP/1.0 [09:35:04]Method: POST [09:35:04]URL: /json_proto [09:35:04]Method is POST - this is cgi request [09:35:04]url: /json_proto [09:35:04]query_string will be loaded in cgi processing [09:35:04]execute_cgi json_proto POST (null) [09:35:04]execute_cgi path=json_proto method=POST [09:35:04]POST find Content-Length [09:35:04]Host: 172.17.62.67:8080 [09:35:04]Content-Length: 675 [09:35:04]Content-Type: application/json [09:35:04] [09:35:04]POST finish read [09:35:04]Found Content-Length = 675 [09:35:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "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:35:04]execute_script... [09:35: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)195808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "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:35:04]POST & json_proto [09:35:04]process_json_proto [09:35:04]json parsed OK: [09:35:04]protocol is kg_v1.0 [09:35:04]action value=close_receipt [09:35:04]process_action close_receipt [09:35:04]cmd_close_receipt [09:35:04]MH_GetDate [09:35:04]Write to MH i2c: F0 00 00 57 81 C7 [09:35:04]Write i2c OK [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: F0 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: F0 05 00 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: F0 05 00 57 81 00 55 D0 EE 65 44 [09:35:04]GetLastDocTimeStamp 1710149616 [09:35:04]current date 1710149717 [09:35:04]FM_GetShiftState [09:35:04]SAM_PROTO_GetShiftState [09:35:04]wFMCommunicate request_size=4 [09:35:04]MH_SAM_APDU [09:35:04]CAPDU: 80 13 01 00 [09:35:04]Write to MH i2c: E2 08 00 58 81 80 13 01 00 00 00 00 00 56 [09:35:04]Write i2c OK [09:35:04]MH_I2C_Read... [09:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:04]Read from MH i2c: E2 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 0E 00 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 0E 00 58 81 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F2 [09:35:04]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:35:04]wFMCommunicate OK [09:35:04]SAM_PROTO_GetShiftState done [09:35:04]FM_GetShiftState done [09:35:04]opened in 1710115571 [09:35:04]opened+sec_in_day 1710201971 [09:35:04]quantity*price = 100003 [09:35:04]sum+1 = 100005 [09:35:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 35 11.03.2024 09:35 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94860 ФПД: 24260024724845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T093517&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94860&fm=24260024724845&tin=02508201610067®Number=0000000000090555&sum=100000 [09:35:05]StoreToDocumentArchive [09:35:05]shift 326 fd 94860 [09:35:05]save to /storage/0326/doc_00094860 [09:35:05]save last doc name /storage/0326/doc_00094860 to /storage/kkm_last_doc_name [09:35:05]save OK [09:35:05]Clear old archive folders... [09:35:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:35:05]tlvbuf is 0033D520 [09:35:05]SAM_PROTO_ClearQueue [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 09 00 00 [09:35:05]Write to MH i2c: E2 08 00 65 81 80 09 00 00 00 00 00 00 58 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 65 81 00 90 00 5A [09:35:05]RAPDU: 90 00 [09:35:05]wFMCommunicate OK [09:35:05]SAM_PROTO_ClearQueue done [09:35:05]KKMCreateOFDPacket [09:35:05]OFDProtocolAddRootSTLVToBuf [09:35:05]FM_MakeSignedData [09:35:05]FM_MakeSignedData [09:35:05]SAM_PROTO_SignData [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 0D 01 02 [09:35:05]Write to MH i2c: E2 08 00 66 81 80 0D 01 02 00 00 00 00 60 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 66 81 00 90 00 5B [09:35:05]RAPDU: 90 00 [09:35:05]wFMCommunicate OK [09:35:05]wFMCommunicate request_size=255 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 55 D0 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 72 01 00 35 04 06 00 [09:35:05]Write to MH i2c: E2 02 01 67 81 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 55 D0 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 72 01 00 35 04 06 00 00 00 E7 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 67 81 00 90 00 5C [09:35:05]RAPDU: 90 00 [09:35:05]wFMCommunicate OK [09:35:05]wFMCommunicate request_size=11 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 0D 02 02 06 16 10 7A 27 ED 6D [09:35:05]Write to MH i2c: E2 0E 00 68 81 80 0D 02 02 06 00 16 10 7A 27 ED 6D 00 00 90 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 03 00 68 81 00 90 00 5D [09:35:05]RAPDU: 90 00 [09:35:05]wFMCommunicate OK [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 0D 03 02 [09:35:05]Write to MH i2c: E2 08 00 69 81 80 0D 03 02 00 00 00 00 65 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 0B 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 0B 00 69 81 00 D8 0C 1F A8 0C 1E 13 F0 90 00 3E [09:35:05]RAPDU: D8 0C 1F A8 0C 1E 13 F0 90 00 [09:35:05]wFMCommunicate OK [09:35:05]SAM_PROTO_SignData done [09:35:05]FM_MakeSignedData done [09:35:05]CreateOFDProtocolMessage [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 11 00 00 [09:35:05]Write to MH i2c: E2 08 00 6A 81 80 11 00 00 00 00 00 00 65 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 17 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 17 00 6A 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B5 [09:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:35:05]wFMCommunicate OK [09:35:05]CreateOFDProtocolMessage done [09:35:05]OFDSenderStorePacket 94860 [09:35:05]StoreOFDPacket docnum=94860 [09:35:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 B3 11 08 01 CA 4F 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 55 D0 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 72 01 00 35 04 06 00 16 10 7A 27 ED 6D D8 0C 1F A8 0C 1E 13 F0 [09:35:05]CheckFolder [09:35:05]dirname=/storage/ofd_packets [09:35:05]CheckFolder done [09:35:05]ProducePacketName [09:35:05]name=ofd_packets/00094860 [09:35:05]NVStorageSaveData ofd_packets/00094860 [09:35:05]File name is /storage/ofd_packets/00094860 [09:35:05]Write 302 bytes [09:35:05]NVStorageSaveData done [09:35:05]OFDSenderStorePacket done [09:35:05]KKMCreateOFDPacket done [09:35:05]NVStorageSaveData kkm_last_timestamp [09:35:05]File name is /storage/kkm_last_timestamp [09:35:05]Write 4 bytes [09:35:05]NVStorageSaveData done [09:35:05]ExternCall_PrintAddStr [09:35:05]wPrintStart [09:35:05]Write to MH i2c: 01 00 00 6B 81 EC [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 07 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: 01 07 00 6B 81 00 80 00 00 00 FF 0F 81 [09:35:05]RasterBufferAndPrint [09:35:05]line Счет N : (1)195808 [09:35:05]line ИНН: 02508201610067 [09:35:05]line Контрольно-Кассовый Чек [09:35:05]line ПРОДАЖА [09:35:05]line ТРК (МРК, ГНК) : 13 [09:35:05]line Товар: 2710124130 [09:35:05]line SUPER 92-К-5 [09:35:05]line 15.650 * 63.90 [09:35:05]line = 1000.04 [09:35:05]line НДС 12% НСП 1% [09:35:05]line > о реализуемом товаре [09:35:05]line ОКРУГЛЕНИЕ: -0.04 [09:35:05]line ИТОГО: 1000.00 [09:35:05]line Внесено: 1000.00 [09:35:05]line СДАЧА: 0.00 [09:35:05]line НСП 1% : 8.85 [09:35:05]line НДС 12% : 106.20 [09:35:05]line Наличными: 1000.00 [09:35:05]line Безнал.: 0.00 [09:35:05]line Место: АЗС № 6 "Партнер Нефть" [09:35:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:35:05]line СНО: Общий режим [09:35:05]line Чек 35 11.03.2024 09:35 [09:35:05]line Смена: 326 ФФД: 1.0 [09:35:05]line ЗНМ: 0300000009 [09:35:05]line РНМ: 0000000000090555 [09:35:05]line Версия ККМ: 001 [09:35:05]line ФМ: 0000000000874811 [09:35:05]line ФД: 94860 [09:35:05]line ФПД: 24260024724845 [09:35:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T093517&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94860&fm=24260024724845&tin=02508201610067®Number=0000000000090555&sum=100000 [09:35:06]OFD Sender: Processing packet 94860 [packets to send 30, broken 29] [09:35:06]ProducePacketName [09:35:06]name=ofd_packets/00094860 [09:35:06]OFD Sender: To server: pG, [09:35:06]CommunicateWithHost lk.salyk.kg:30040 [09:35:06]ConnectInit lk.salyk.kg [09:35:06]written 0, free lines is 4095 [09:35:06]Connected sock=10 [09:35:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 B3 11 08 01 CA 4F 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 55 D0 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 72 01 00 35 04 06 00 16 10 7A 27 ED 6D D8 0C 1F A8 0C 1E 13 F0 [09:35: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 31 31 4F 00 00 00 92 7C 47 00 8E 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 31 31 10 04 04 00 8C 72 01 00 F4 03 04 00 AF 7B EE 65 B6 04 01 00 00 34 7C 0B 6A AB ED BE AA [09:35:06]CommunicateWithHost err = 0 [09:35:06]CheckOFDResponse [09:35:06]1017 (14) - 77093643461234 [09:35:06]1041 (16) - 0000000000874811 [09:35:06]1040 (4) - 94860 [09:35:06]1012 (4) - 11.03.2024 03:34 [09:35:06]1206 (1) - 0 [09:35:06]OFD Sender: Remove packet 94860 [09:35:06]ProducePacketName [09:35:06]name=ofd_packets/00094860 [09:35:06]NVStorageDeleteData [09:35:06]Write to MH i2c: 01 00 00 96 81 17 [09:35:06]Write i2c OK [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: 01 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: 01 07 00 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: 01 07 00 96 81 00 80 00 00 00 4F 0D FA [09:35:06]RasterBufferAndPrint [09:35:06]line [09:35:06]line [09:35:06]line [09:35:06]line [09:35:06]line [09:35:06]written 0, free lines is 3414 [09:35:06]process_action close_receipt done [09:35:06]requested_data is exist [09:35:06]produce_requested_data [09:35:06]requested_item fm.sn is exist - process it [09:35:06]wFMCommunicate request_size=4 [09:35:06]MH_SAM_APDU [09:35:06]CAPDU: 80 11 00 00 [09:35:06]Write to MH i2c: E2 08 00 9D 81 80 11 00 00 00 00 00 00 98 [09:35:06]Write i2c OK [09:35:06]MH_I2C_Read... [09:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:06]Read from MH i2c: E2 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 17 00 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 17 00 9D 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E8 [09:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:35:06]wFMCommunicate OK [09:35:06]requested_item fd.num is exist - process it [09:35:06]SAM_PROTO_GetFieldsCounters [09:35:06]wFMCommunicate request_size=4 [09:35:06]MH_SAM_APDU [09:35:06]CAPDU: 80 13 00 00 [09:35:06]Write to MH i2c: E2 08 00 9E 81 80 13 00 00 00 00 00 00 9B [09:35:06]Write i2c OK [09:35:06]MH_I2C_Read... [09:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:06]Read from MH i2c: E2 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 62 00 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 62 00 9E 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8C 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:35: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8C 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:07]wFMCommunicate OK [09:35:07]SAM_PROTO_GetFieldsCounters done [09:35:07]requested_item shift.num is exist - process it [09:35:07]requested_item shift.opened is exist - process it [09:35:07]req_shift_opened [09:35:07]FM_GetShiftState [09:35:07]SAM_PROTO_GetShiftState [09:35:07]wFMCommunicate request_size=4 [09:35:07]MH_SAM_APDU [09:35:07]CAPDU: 80 13 01 00 [09:35:07]Write to MH i2c: E2 08 00 9F 81 80 13 01 00 00 00 00 00 9D [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 0E 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 0E 00 9F 81 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 39 [09:35:07]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:35:07]wFMCommunicate OK [09:35:07]SAM_PROTO_GetShiftState done [09:35:07]FM_GetShiftState done [09:35:07]req_shift_opened done [09:35:07]requested_item shift.open_date is exist - process it [09:35:07]req_shift_open_date [09:35:07]req_shift_open_date done [09:35:07]produce_requested_data done [09:35:07]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94860,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:35:07]process_action_free close_receipt [09:35:07]json_value_free [09:35:07]json_value_free done [09:35:07]process_json_proto returns [09:35:07]Send response to host [09:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94860,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:35:07]free response buf [09:35:07]execute_script done [09:35:07]execute_script returns [09:35:07]free content buf [09:35:07]Sock 7.Close socket [09:35:07]Sock 7.Thread stoped [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:24]accept exits with 9 [09:42:24]New connection [09:42:24]New thread 3067014500 created [09:42:24]Thread 3066871140 joined [09:42:24]Waiting for new connection... [09:42:24] Sock 9.Parse request [09:42:24]Sock 9.Check first char [09:42:24]Sock 9.First char is OK [09:42:24]request: POST /json_proto HTTP/1.0 [09:42:24]Method: POST [09:42:24]URL: /json_proto [09:42:24]Method is POST - this is cgi request [09:42:24]url: /json_proto [09:42:24]query_string will be loaded in cgi processing [09:42:24]execute_cgi json_proto POST (null) [09:42:24]execute_cgi path=json_proto method=POST [09:42:24]POST find Content-Length [09:42:24]Host: 172.17.62.67:8080 [09:42:24]Content-Length: 1189 [09:42:24]Content-Type: application/json [09:42:24] [09:42:24]POST finish read [09:42:24]Found Content-Length = 1189 [09:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195809\u000A11.03.2024 09:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 2836.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3695668:69:70:71\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:24]execute_script... [09:42:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195809\u000A11.03.2024 09:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 2836.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3695668:69:70:71\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:24]POST & json_proto [09:42:24]process_json_proto [09:42:24]json parsed OK: [09:42:24]protocol is kg_v1.0 [09:42:24]action value=print_text [09:42:24]process_action print_text [09:42:24]cmd_print_text [09:42:24]ExternCall_PrintAddStr [09:42:24]wPrintStart [09:42:24]Write to MH i2c: 01 00 00 A0 81 21 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 A0 81 00 80 00 00 00 FF 0F B6 [09:42:24]RasterBufferAndPrint [09:42:24]line *****ТОВАРНЫЙ ЧЕК***** [09:42:24]line АЗС 6 [09:42:24]line Партнер нефть [09:42:24]line 02508201610067 [09:42:24]line Кассир : Карыбаев Б. [09:42:24]line Счет N : (1)195809 [09:42:24]line 11.03.2024 09:36 [09:42:24]line ПРОДАЖА [09:42:24]line ТРК (МРК, ГНК): 61 [09:42:24]line Вид ГСМ : 2710194210 [09:42:24]line ДТ-К-5 [09:42:24]line 40.000 x 70.90 [09:42:24]line ИТОГ: 2836.00 [09:42:24]line Тип оплаты: Талоны: Партнер нефть [09:42:24]line 3695668:69:70:71 [09:42:24]line ______________________ [09:42:24]line (подпись) [09:42:24]written 0, free lines is 4095 [09:42:24]Write to MH i2c: 01 00 00 B4 81 35 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 B4 81 00 80 00 00 00 6A 0E 34 [09:42:24]RasterBufferAndPrint [09:42:24]line [09:42:24]line [09:42:24]line [09:42:24]line [09:42:24]line [09:42:24]written 0, free lines is 3694 [09:42:24]process_action print_text done [09:42:24]requested_data is exist [09:42:24]produce_requested_data [09:42:24]requested_item fm.sn is exist - process it [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 11 00 00 [09:42:24]Write to MH i2c: E2 08 00 BB 81 80 11 00 00 00 00 00 00 B6 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 17 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 17 00 BB 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 06 [09:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:42:24]wFMCommunicate OK [09:42:24]requested_item fd.num is exist - process it [09:42:24]SAM_PROTO_GetFieldsCounters [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 13 00 00 [09:42:24]Write to MH i2c: E2 08 00 BC 81 80 13 00 00 00 00 00 00 B9 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 62 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 62 00 BC 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8C 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [09:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8C 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:24]wFMCommunicate OK [09:42:24]SAM_PROTO_GetFieldsCounters done [09:42:24]requested_item shift.num is exist - process it [09:42:24]requested_item shift.opened is exist - process it [09:42:24]req_shift_opened [09:42:24]FM_GetShiftState [09:42:24]SAM_PROTO_GetShiftState [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 13 01 00 [09:42:24]Write to MH i2c: E2 08 00 BD 81 80 13 01 00 00 00 00 00 BB [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 0E 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 0E 00 BD 81 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 57 [09:42:24]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:42:24]wFMCommunicate OK [09:42:24]SAM_PROTO_GetShiftState done [09:42:24]FM_GetShiftState done [09:42:24]req_shift_opened done [09:42:24]requested_item shift.open_date is exist - process it [09:42:24]req_shift_open_date [09:42:24]req_shift_open_date done [09:42:24]produce_requested_data done [09:42:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94860,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:42:24]process_action_free print_text [09:42:24]json_value_free [09:42:24]json_value_free done [09:42:24]process_json_proto returns [09:42:24]Send response to host [09:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94860,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:42:24]free response buf [09:42:24]execute_script done [09:42:24]execute_script returns [09:42:24]free content buf [09:42:24]Sock 9.Close socket [09:42:24]Sock 9.Thread stoped [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:36]accept exits with 7 [09:42:36]New connection [09:42:36]New thread 3066871140 created [09:42:36]Thread 3067014500 joined [09:42:36]Waiting for new connection... [09:42:36] Sock 7.Parse request [09:42:36]Sock 7.Check first char [09:42:36]Sock 7.First char is OK [09:42:36]request: POST /json_proto HTTP/1.0 [09:42:36]Method: POST [09:42:36]URL: /json_proto [09:42:36]Method is POST - this is cgi request [09:42:36]url: /json_proto [09:42:36]query_string will be loaded in cgi processing [09:42:36]execute_cgi json_proto POST (null) [09:42:36]execute_cgi path=json_proto method=POST [09:42:36]POST find Content-Length [09:42:36]Host: 172.17.62.67:8080 [09:42:36]Content-Length: 679 [09:42:36]Content-Type: application/json [09:42:36] [09:42:36]POST finish read [09:42:36]Found Content-Length = 679 [09:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:36]execute_script... [09:42: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)195811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:36]POST & json_proto [09:42:36]process_json_proto [09:42:36]json parsed OK: [09:42:36]protocol is kg_v1.0 [09:42:36]action value=close_receipt [09:42:36]process_action close_receipt [09:42:36]cmd_close_receipt [09:42:36]MH_GetDate [09:42:36]Write to MH i2c: F0 00 00 BE 81 2E [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: F0 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: F0 05 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: F0 05 00 BE 81 00 1A D2 EE 65 72 [09:42:36]GetLastDocTimeStamp 1710149717 [09:42:36]current date 1710150170 [09:42:36]FM_GetShiftState [09:42:36]SAM_PROTO_GetShiftState [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 13 01 00 [09:42:36]Write to MH i2c: E2 08 00 BF 81 80 13 01 00 00 00 00 00 BD [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0E 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0E 00 BF 81 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 59 [09:42:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:42:36]wFMCommunicate OK [09:42:36]SAM_PROTO_GetShiftState done [09:42:36]FM_GetShiftState done [09:42:36]opened in 1710115571 [09:42:36]opened+sec_in_day 1710201971 [09:42:36]quantity*price = 180015 [09:42:36]sum+1 = 180016 [09:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.17 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 36 11.03.2024 09:42 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94861 ФПД: 17593914413609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T094250&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94861&fm=17593914413609&tin=02508201610067®Number=0000000000090555&sum=180000 [09:42:37]StoreToDocumentArchive [09:42:37]shift 326 fd 94861 [09:42:37]save to /storage/0326/doc_00094861 [09:42:37]save last doc name /storage/0326/doc_00094861 to /storage/kkm_last_doc_name [09:42:37]save OK [09:42:37]Clear old archive folders... [09:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:42:37]tlvbuf is 0026F120 [09:42:37]SAM_PROTO_ClearQueue [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 09 00 00 [09:42:37]Write to MH i2c: E2 08 00 CC 81 80 09 00 00 00 00 00 00 BF [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 CC 81 00 90 00 C1 [09:42:37]RAPDU: 90 00 [09:42:37]wFMCommunicate OK [09:42:37]SAM_PROTO_ClearQueue done [09:42:37]KKMCreateOFDPacket [09:42:37]OFDProtocolAddRootSTLVToBuf [09:42:37]FM_MakeSignedData [09:42:37]FM_MakeSignedData [09:42:37]SAM_PROTO_SignData [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 0D 01 02 [09:42:37]Write to MH i2c: E2 08 00 CD 81 80 0D 01 02 00 00 00 00 C7 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 03 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 03 00 CD 81 00 90 00 C2 [09:42:38]RAPDU: 90 00 [09:42:38]wFMCommunicate OK [09:42:38]wFMCommunicate request_size=255 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1A D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 72 01 00 35 04 06 00 10 00 67 04 [09:42:38]Write to MH i2c: E2 02 01 CE 81 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1A D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 72 01 00 35 04 06 00 10 00 67 04 00 00 8B [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 03 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 03 00 CE 81 00 90 00 C3 [09:42:38]RAPDU: 90 00 [09:42:38]wFMCommunicate OK [09:42:38]wFMCommunicate request_size=7 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 0D 02 02 02 D2 29 [09:42:38]Write to MH i2c: E2 0A 00 CF 81 80 0D 02 02 02 00 D2 29 00 00 C9 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 03 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 03 00 CF 81 00 90 00 C4 [09:42:38]RAPDU: 90 00 [09:42:38]wFMCommunicate OK [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 0D 03 02 [09:42:38]Write to MH i2c: E2 08 00 D0 81 80 0D 03 02 00 00 00 00 CC [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0B 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0B 00 D0 81 00 6B 30 46 27 42 B1 20 33 90 00 1B [09:42:38]RAPDU: 6B 30 46 27 42 B1 20 33 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_SignData done [09:42:38]FM_MakeSignedData done [09:42:38]CreateOFDProtocolMessage [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 11 00 00 [09:42:38]Write to MH i2c: E2 08 00 D1 81 80 11 00 00 00 00 00 00 CC [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 17 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 17 00 D1 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1C [09:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:42:38]wFMCommunicate OK [09:42:38]CreateOFDProtocolMessage done [09:42:38]OFDSenderStorePacket 94861 [09:42:38]StoreOFDPacket docnum=94861 [09:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 B0 E3 04 01 7B D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1A D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 72 01 00 35 04 06 00 10 00 67 04 D2 29 6B 30 46 27 42 B1 20 33 [09:42:38]CheckFolder [09:42:38]dirname=/storage/ofd_packets [09:42:38]CheckFolder done [09:42:38]ProducePacketName [09:42:38]name=ofd_packets/00094861 [09:42:38]NVStorageSaveData ofd_packets/00094861 [09:42:38]File name is /storage/ofd_packets/00094861 [09:42:38]Write 298 bytes [09:42:38]NVStorageSaveData done [09:42:38]OFDSenderStorePacket done [09:42:38]KKMCreateOFDPacket done [09:42:38]NVStorageSaveData kkm_last_timestamp [09:42:38]File name is /storage/kkm_last_timestamp [09:42:38]Write 4 bytes [09:42:38]NVStorageSaveData done [09:42:38]ExternCall_PrintAddStr [09:42:38]wPrintStart [09:42:38]Write to MH i2c: 01 00 00 D2 81 53 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 07 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 07 00 D2 81 00 80 00 00 00 FF 0F E8 [09:42:38]RasterBufferAndPrint [09:42:38]line Счет N : (1)195811 [09:42:38]line ИНН: 02508201610067 [09:42:38]line Контрольно-Кассовый Чек [09:42:38]line ПРОДАЖА [09:42:38]line ТРК (МРК, ГНК) : 61 [09:42:38]line Товар: 2710194210 [09:42:38]line ДТ-К-5 [09:42:38]line 25.390 * 70.90 [09:42:38]line = 1800.15 [09:42:38]line НДС 12% НСП 1% [09:42:38]line > о реализуемом товаре [09:42:38]line ОКРУГЛЕНИЕ: -0.15 [09:42:38]line ИТОГО: 1800.00 [09:42:38]line Внесено: 1800.00 [09:42:38]line СДАЧА: 0.00 [09:42:38]line НСП 1% : 15.93 [09:42:38]line НДС 12% : 191.17 [09:42:38]line Наличными: 1800.00 [09:42:38]line Безнал.: 0.00 [09:42:38]line Место: АЗС № 6 "Партнер Нефть" [09:42:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:42:38]line СНО: Общий режим [09:42:38]line Чек 36 11.03.2024 09:42 [09:42:38]line Смена: 326 ФФД: 1.0 [09:42:38]line ЗНМ: 0300000009 [09:42:38]line РНМ: 0000000000090555 [09:42:38]line Версия ККМ: 001 [09:42:38]line ФМ: 0000000000874811 [09:42:38]line ФД: 94861 [09:42:38]line ФПД: 17593914413609 [09:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T094250&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94861&fm=17593914413609&tin=02508201610067®Number=0000000000090555&sum=180000 [09:42:38]OFD Sender: Processing packet 94861 [packets to send 30, broken 29] [09:42:38]ProducePacketName [09:42:38]name=ofd_packets/00094861 [09:42:38]OFD Sender: To server: pG, [09:42:38]CommunicateWithHost lk.salyk.kg:30040 [09:42:38]ConnectInit lk.salyk.kg [09:42:38]written 0, free lines is 4095 [09:42:38]Connected sock=10 [09:42: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 31 31 0C 01 00 00 B0 E3 04 01 7B D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 1A D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 72 01 00 35 04 06 00 10 00 67 04 D2 29 6B 30 46 27 42 B1 20 33 [09:42: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 31 31 4F 00 00 00 62 1A 47 00 FE 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 72 01 00 F4 03 04 00 74 7D EE 65 B6 04 01 00 00 1C AF E2 C6 03 C8 FB 36 [09:42:39]CommunicateWithHost err = 0 [09:42:39]CheckOFDResponse [09:42:39]1017 (14) - 77093643461234 [09:42:39]1041 (16) - 0000000000874811 [09:42:39]1040 (4) - 94861 [09:42:39]1012 (4) - 11.03.2024 03:41 [09:42:39]1206 (1) - 0 [09:42:39]OFD Sender: Remove packet 94861 [09:42:39]ProducePacketName [09:42:39]name=ofd_packets/00094861 [09:42:39]NVStorageDeleteData [09:42:39]Write to MH i2c: 01 00 00 FD 81 7E [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 FD 81 00 80 00 00 00 4B 0D 5D [09:42:39]RasterBufferAndPrint [09:42:39]line [09:42:39]line [09:42:39]line [09:42:39]line [09:42:39]line [09:42:39]written 0, free lines is 3409 [09:42:39]process_action close_receipt done [09:42:39]requested_data is exist [09:42:39]produce_requested_data [09:42:39]requested_item fm.sn is exist - process it [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 11 00 00 [09:42:39]Write to MH i2c: E2 08 00 04 82 80 11 00 00 00 00 00 00 00 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 04 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 50 [09:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:42:39]wFMCommunicate OK [09:42:39]requested_item fd.num is exist - process it [09:42:39]SAM_PROTO_GetFieldsCounters [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 13 00 00 [09:42:39]Write to MH i2c: E2 08 00 05 82 80 13 00 00 00 00 00 00 03 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 62 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 62 00 05 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [09:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_GetFieldsCounters done [09:42:39]requested_item shift.num is exist - process it [09:42:39]requested_item shift.opened is exist - process it [09:42:39]req_shift_opened [09:42:39]FM_GetShiftState [09:42:39]SAM_PROTO_GetShiftState [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 13 01 00 [09:42:39]Write to MH i2c: E2 08 00 06 82 80 13 01 00 00 00 00 00 05 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0E 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0E 00 06 82 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A1 [09:42:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_GetShiftState done [09:42:39]FM_GetShiftState done [09:42:39]req_shift_opened done [09:42:39]requested_item shift.open_date is exist - process it [09:42:39]req_shift_open_date [09:42:39]req_shift_open_date done [09:42:39]produce_requested_data done [09:42:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94861,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:42:39]process_action_free close_receipt [09:42:39]json_value_free [09:42:39]json_value_free done [09:42:39]process_json_proto returns [09:42:39]Send response to host [09:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94861,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:42:39]free response buf [09:42:39]execute_script done [09:42:39]execute_script returns [09:42:39]free content buf [09:42:39]Sock 7.Close socket [09:42:39]Sock 7.Thread stoped [09:42:39]OFD Sender: No OFD packet to send [09:42:41]accept exits with 9 [09:42:41]New connection [09:42:41]New thread 3067014500 created [09:42:41]Thread 3066871140 joined [09:42:41]Waiting for new connection... [09:42:41] Sock 9.Parse request [09:42:41]Sock 9.Check first char [09:42:41]Sock 9.First char is OK [09:42:41]request: POST /json_proto HTTP/1.0 [09:42:41]Method: POST [09:42:41]URL: /json_proto [09:42:41]Method is POST - this is cgi request [09:42:41]url: /json_proto [09:42:41]query_string will be loaded in cgi processing [09:42:41]execute_cgi json_proto POST (null) [09:42:41]execute_cgi path=json_proto method=POST [09:42:41]POST find Content-Length [09:42:41]Host: 172.17.62.67:8080 [09:42:41]Content-Length: 1179 [09:42:41]Content-Type: application/json [09:42:41] [09:42:41]POST finish read [09:42:41]Found Content-Length = 1179 [09:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195810\u000A11.03.2024 09:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3695357\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:41]execute_script... [09:42:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195810\u000A11.03.2024 09:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3695357\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:41]POST & json_proto [09:42:41]process_json_proto [09:42:41]json parsed OK: [09:42:41]protocol is kg_v1.0 [09:42:41]action value=print_text [09:42:41]process_action print_text [09:42:41]cmd_print_text [09:42:41]ExternCall_PrintAddStr [09:42:41]wPrintStart [09:42:41]Write to MH i2c: 01 00 00 07 82 89 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 07 82 00 80 00 00 00 FF 0F 1E [09:42:41]RasterBufferAndPrint [09:42:41]line *****ТОВАРНЫЙ ЧЕК***** [09:42:41]line АЗС 6 [09:42:41]line Партнер нефть [09:42:41]line 02508201610067 [09:42:41]line Кассир : Карыбаев Б. [09:42:41]line Счет N : (1)195810 [09:42:41]line 11.03.2024 09:36 [09:42:41]line ПРОДАЖА [09:42:41]line ТРК (МРК, ГНК): 51 [09:42:41]line Вид ГСМ : 2710194210 [09:42:41]line ДТ-К-5 [09:42:41]line 10.000 x 70.90 [09:42:41]line ИТОГ: 709.00 [09:42:41]line Тип оплаты: Талоны: Партнер нефть [09:42:41]line 3695357 [09:42:41]line ______________________ [09:42:41]line (подпись) [09:42:41]written 0, free lines is 4095 [09:42:41]Write to MH i2c: 01 00 00 1B 82 9D [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 1B 82 00 80 00 00 00 60 0E 92 [09:42:41]RasterBufferAndPrint [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]written 0, free lines is 3686 [09:42:41]process_action print_text done [09:42:41]requested_data is exist [09:42:41]produce_requested_data [09:42:41]requested_item fm.sn is exist - process it [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 11 00 00 [09:42:41]Write to MH i2c: E2 08 00 22 82 80 11 00 00 00 00 00 00 1E [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 17 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 17 00 22 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6E [09:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:42:41]wFMCommunicate OK [09:42:41]requested_item fd.num is exist - process it [09:42:41]SAM_PROTO_GetFieldsCounters [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 13 00 00 [09:42:41]Write to MH i2c: E2 08 00 23 82 80 13 00 00 00 00 00 00 21 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 62 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 62 00 23 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [09:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_GetFieldsCounters done [09:42:41]requested_item shift.num is exist - process it [09:42:41]requested_item shift.opened is exist - process it [09:42:41]req_shift_opened [09:42:41]FM_GetShiftState [09:42:41]SAM_PROTO_GetShiftState [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 13 01 00 [09:42:41]Write to MH i2c: E2 08 00 24 82 80 13 01 00 00 00 00 00 23 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 24 82 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BF [09:42:41]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_GetShiftState done [09:42:41]FM_GetShiftState done [09:42:41]req_shift_opened done [09:42:41]requested_item shift.open_date is exist - process it [09:42:41]req_shift_open_date [09:42:41]req_shift_open_date done [09:42:41]produce_requested_data done [09:42:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94861,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:42:41]process_action_free print_text [09:42:41]json_value_free [09:42:41]json_value_free done [09:42:41]process_json_proto returns [09:42:41]Send response to host [09:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94861,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:42:41]free response buf [09:42:41]execute_script done [09:42:41]execute_script returns [09:42:41]free content buf [09:42:41]Sock 9.Close socket [09:42:41]Sock 9.Thread stoped [09:42:44]OFD Sender: No OFD packet to send [09:42:46]accept exits with 7 [09:42:46]New connection [09:42:46]New thread 3066871140 created [09:42:46]Thread 3067014500 joined [09:42:46]Waiting for new connection... [09:42:46] Sock 7.Parse request [09:42:46]Sock 7.Check first char [09:42:46]Sock 7.First char is OK [09:42:46]request: POST /json_proto HTTP/1.0 [09:42:46]Method: POST [09:42:46]URL: /json_proto [09:42:46]Method is POST - this is cgi request [09:42:46]url: /json_proto [09:42:46]query_string will be loaded in cgi processing [09:42:46]execute_cgi json_proto POST (null) [09:42:46]execute_cgi path=json_proto method=POST [09:42:46]POST find Content-Length [09:42:46]Host: 172.17.62.67:8080 [09:42:46]Content-Length: 735 [09:42:46]Content-Type: application/json [09:42:46] [09:42:46]POST finish read [09:42:46]Found Content-Length = 735 [09:42:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94861, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:46]execute_script... [09:42:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94861, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:46]POST & json_proto [09:42:46]process_json_proto [09:42:46]json parsed OK: [09:42:46]protocol is kg_v1.0 [09:42:46]action value=close_receipt [09:42:46]process_action close_receipt [09:42:46]cmd_close_receipt [09:42:46]MH_GetDate [09:42:46]Write to MH i2c: F0 00 00 25 82 96 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: F0 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: F0 05 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: F0 05 00 25 82 00 23 D2 EE 65 E3 [09:42:46]GetLastDocTimeStamp 1710150170 [09:42:46]current date 1710150179 [09:42:46]FM_GetShiftState [09:42:46]SAM_PROTO_GetShiftState [09:42:46]wFMCommunicate request_size=4 [09:42:46]MH_SAM_APDU [09:42:46]CAPDU: 80 13 01 00 [09:42:46]Write to MH i2c: E2 08 00 26 82 80 13 01 00 00 00 00 00 25 [09:42:46]Write i2c OK [09:42:46]MH_I2C_Read... [09:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:46]Read from MH i2c: E2 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 0E 00 [09:42:46]MH_I2C_Read... [09:42:46]Read from MH i2c: E2 0E 00 26 82 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C1 [09:42:46]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:42:46]wFMCommunicate OK [09:42:46]SAM_PROTO_GetShiftState done [09:42:46]FM_GetShiftState done [09:42:46]opened in 1710115571 [09:42:46]opened+sec_in_day 1710201971 [09:42:46]quantity*price = 180015 [09:42:46]sum+1 = 180016 [09:42:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1800.00 НСП 1% : 15.93 НДС 12% : 191.17 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 37 11.03.2024 09:42 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 94861 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 94862 ФПД: 218096017668383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T094259&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94862&fm=218096017668383&tin=02508201610067®Number=0000000000090555&sum=180000 [09:42:47]StoreToDocumentArchive [09:42:47]shift 326 fd 94862 [09:42:47]save to /storage/0326/doc_00094862 [09:42:47]save last doc name /storage/0326/doc_00094862 to /storage/kkm_last_doc_name [09:42:47]save OK [09:42:47]Clear old archive folders... [09:42:47]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:42:47]tlvbuf is 0041C610 [09:42:47]SAM_PROTO_ClearQueue [09:42:47]wFMCommunicate request_size=4 [09:42:47]MH_SAM_APDU [09:42:47]CAPDU: 80 09 00 00 [09:42:47]Write to MH i2c: E2 08 00 35 82 80 09 00 00 00 00 00 00 29 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:47]Read from MH i2c: E2 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 03 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 03 00 35 82 00 90 00 2B [09:42:47]RAPDU: 90 00 [09:42:47]wFMCommunicate OK [09:42:47]SAM_PROTO_ClearQueue done [09:42:47]KKMCreateOFDPacket [09:42:47]OFDProtocolAddRootSTLVToBuf [09:42:47]FM_MakeSignedData [09:42:47]FM_MakeSignedData [09:42:47]SAM_PROTO_SignData [09:42:47]wFMCommunicate request_size=4 [09:42:47]MH_SAM_APDU [09:42:47]CAPDU: 80 0D 01 02 [09:42:47]Write to MH i2c: E2 08 00 36 82 80 0D 01 02 00 00 00 00 31 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:47]Read from MH i2c: E2 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 03 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 03 00 36 82 00 90 00 2C [09:42:47]RAPDU: 90 00 [09:42:47]wFMCommunicate OK [09:42:47]wFMCommunicate request_size=255 [09:42:47]MH_SAM_APDU [09:42:47]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 23 D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 8D 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [09:42:47]Write to MH i2c: E2 02 01 37 82 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 23 D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 8D 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 76 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:47]Read from MH i2c: E2 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 03 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 03 00 37 82 00 90 00 2D [09:42:47]RAPDU: 90 00 [09:42:47]wFMCommunicate OK [09:42:47]wFMCommunicate request_size=35 [09:42:47]MH_SAM_APDU [09:42:47]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 72 01 00 35 04 06 00 C6 5B 6F A8 F9 1F [09:42:47]Write to MH i2c: E2 26 00 38 82 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 72 01 00 35 04 06 00 C6 5B 6F A8 F9 1F 00 00 75 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:47]Read from MH i2c: E2 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 03 00 [09:42:47]MH_I2C_Read... [09:42:47]Read from MH i2c: E2 03 00 38 82 00 90 00 2E [09:42:47]RAPDU: 90 00 [09:42:47]wFMCommunicate OK [09:42:47]wFMCommunicate request_size=4 [09:42:47]MH_SAM_APDU [09:42:47]CAPDU: 80 0D 03 02 [09:42:47]Write to MH i2c: E2 08 00 39 82 80 0D 03 02 00 00 00 00 36 [09:42:47]Write i2c OK [09:42:47]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 0B 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 0B 00 39 82 00 0E 86 35 EC C4 AC 55 CC 90 00 7D [09:42:48]RAPDU: 0E 86 35 EC C4 AC 55 CC 90 00 [09:42:48]wFMCommunicate OK [09:42:48]SAM_PROTO_SignData done [09:42:48]FM_MakeSignedData done [09:42:48]CreateOFDProtocolMessage [09:42:48]wFMCommunicate request_size=4 [09:42:48]MH_SAM_APDU [09:42:48]CAPDU: 80 11 00 00 [09:42:48]Write to MH i2c: E2 08 00 3A 82 80 11 00 00 00 00 00 00 36 [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 17 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 17 00 3A 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 86 [09:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:42:48]wFMCommunicate OK [09:42:48]CreateOFDProtocolMessage done [09:42:48]OFDSenderStorePacket 94862 [09:42:48]StoreOFDPacket docnum=94862 [09:42:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 5A 42 20 01 6D 10 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 23 D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 8D 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 72 01 00 35 04 06 00 C6 5B 6F A8 F9 1F 0E 86 35 EC C4 AC 55 CC [09:42:48]CheckFolder [09:42:48]dirname=/storage/ofd_packets [09:42:48]CheckFolder done [09:42:48]ProducePacketName [09:42:48]name=ofd_packets/00094862 [09:42:48]NVStorageSaveData ofd_packets/00094862 [09:42:48]File name is /storage/ofd_packets/00094862 [09:42:48]Write 326 bytes [09:42:48]NVStorageSaveData done [09:42:48]OFDSenderStorePacket done [09:42:48]KKMCreateOFDPacket done [09:42:48]NVStorageSaveData kkm_last_timestamp [09:42:48]File name is /storage/kkm_last_timestamp [09:42:48]Write 4 bytes [09:42:48]NVStorageSaveData done [09:42:48]ExternCall_PrintAddStr [09:42:48]wPrintStart [09:42:48]Write to MH i2c: 01 00 00 3B 82 BD [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: 01 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: 01 07 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: 01 07 00 3B 82 00 80 00 00 00 FF 0F 52 [09:42:48]RasterBufferAndPrint [09:42:48]line Счет N : (1)195811 [09:42:48]line ИНН: 02508201610067 [09:42:48]line Контрольно-Кассовый Чек [09:42:48]line ВОЗВРАТ ПРОДАЖИ [09:42:48]line ТРК (МРК, ГНК) : 61 [09:42:48]line Товар: 2710194210 [09:42:48]line ДТ-К-5 [09:42:48]line 25.390 * 70.90 [09:42:48]line = 1800.15 [09:42:48]line НДС 12% НСП 1% [09:42:48]line > о реализуемом товаре [09:42:48]line ОКРУГЛЕНИЕ: -0.15 [09:42:48]line ИТОГО: 1800.00 [09:42:48]line НСП 1% : 15.93 [09:42:48]line НДС 12% : 191.17 [09:42:48]line Наличными: 1800.00 [09:42:48]line Безнал.: 0.00 [09:42:48]line Место: АЗС № 6 "Партнер Нефть" [09:42:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:42:48]line СНО: Общий режим [09:42:48]line Чек 37 11.03.2024 09:42 [09:42:48]line Смена: 326 ФФД: 1.0 [09:42:48]line ЗНМ: 0300000009 [09:42:48]line РНМ: 0000000000090555 [09:42:48]line Версия ККМ: 001 [09:42:48]line ФД осн.: 94861 [09:42:48]line ФМ осн.: 0000000000874811 [09:42:48]line ФМ: 0000000000874811 [09:42:48]line ФД: 94862 [09:42:48]line ФПД: 218096017668383 [09:42:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T094259&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94862&fm=218096017668383&tin=02508201610067®Number=0000000000090555&sum=180000 [09:42:48]written 0, free lines is 4095 [09:42:48]OFD Sender: Processing packet 94862 [packets to send 30, broken 29] [09:42:48]ProducePacketName [09:42:48]name=ofd_packets/00094862 [09:42:48]OFD Sender: To server: pG, [09:42:48]CommunicateWithHost lk.salyk.kg:30040 [09:42:48]ConnectInit lk.salyk.kg [09:42:48]Connected sock=10 [09:42:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 5A 42 20 01 6D 10 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 23 D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 8D 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 72 01 00 35 04 06 00 C6 5B 6F A8 F9 1F 0E 86 35 EC C4 AC 55 CC [09:42: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 31 31 4F 00 00 00 7E D7 47 00 60 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 72 01 00 F4 03 04 00 7D 7D EE 65 B6 04 01 00 00 F3 D7 02 E2 80 04 2D 0B [09:42:48]CommunicateWithHost err = 0 [09:42:48]CheckOFDResponse [09:42:48]1017 (14) - 77093643461234 [09:42:48]1041 (16) - 0000000000874811 [09:42:48]1040 (4) - 94862 [09:42:48]1012 (4) - 11.03.2024 03:41 [09:42:48]1206 (1) - 0 [09:42:48]OFD Sender: Remove packet 94862 [09:42:48]ProducePacketName [09:42:48]name=ofd_packets/00094862 [09:42:48]NVStorageDeleteData [09:42:48]Write to MH i2c: 01 00 00 66 82 E8 [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: 01 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: 01 07 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: 01 07 00 66 82 00 80 00 00 00 6B 0D E7 [09:42:48]RasterBufferAndPrint [09:42:48]line [09:42:48]line [09:42:48]line [09:42:48]line [09:42:48]line [09:42:48]written 0, free lines is 3449 [09:42:48]process_action close_receipt done [09:42:48]requested_data is exist [09:42:48]produce_requested_data [09:42:48]requested_item fm.sn is exist - process it [09:42:48]wFMCommunicate request_size=4 [09:42:48]MH_SAM_APDU [09:42:48]CAPDU: 80 11 00 00 [09:42:48]Write to MH i2c: E2 08 00 6D 82 80 11 00 00 00 00 00 00 69 [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 17 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 17 00 6D 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B9 [09:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:42:48]wFMCommunicate OK [09:42:48]requested_item fd.num is exist - process it [09:42:48]SAM_PROTO_GetFieldsCounters [09:42:48]wFMCommunicate request_size=4 [09:42:48]MH_SAM_APDU [09:42:48]CAPDU: 80 13 00 00 [09:42:48]Write to MH i2c: E2 08 00 6E 82 80 13 00 00 00 00 00 00 6C [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 62 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 62 00 6E 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8E 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [09:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8E 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:48]wFMCommunicate OK [09:42:48]SAM_PROTO_GetFieldsCounters done [09:42:48]requested_item shift.num is exist - process it [09:42:48]requested_item shift.opened is exist - process it [09:42:48]req_shift_opened [09:42:48]FM_GetShiftState [09:42:48]SAM_PROTO_GetShiftState [09:42:48]wFMCommunicate request_size=4 [09:42:48]MH_SAM_APDU [09:42:48]CAPDU: 80 13 01 00 [09:42:48]Write to MH i2c: E2 08 00 6F 82 80 13 01 00 00 00 00 00 6E [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 0E 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 0E 00 6F 82 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0A [09:42:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:42:48]wFMCommunicate OK [09:42:48]SAM_PROTO_GetShiftState done [09:42:48]FM_GetShiftState done [09:42:48]req_shift_opened done [09:42:48]requested_item shift.open_date is exist - process it [09:42:48]req_shift_open_date [09:42:48]req_shift_open_date done [09:42:48]produce_requested_data done [09:42:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94862,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:42:48]process_action_free close_receipt [09:42:48]json_value_free [09:42:48]json_value_free done [09:42:48]process_json_proto returns [09:42:48]Send response to host [09:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94862,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:42:48]free response buf [09:42:48]execute_script done [09:42:48]execute_script returns [09:42:48]free content buf [09:42:48]Sock 7.Close socket [09:42:48]Sock 7.Thread stoped [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:15]accept exits with 9 [09:43:15]New connection [09:43:15]New thread 3067014500 created [09:43:15]Thread 3066871140 joined [09:43:15]Waiting for new connection... [09:43:15] Sock 9.Parse request [09:43:15]Sock 9.Check first char [09:43:15]Sock 9.First char is OK [09:43:15]request: POST /json_proto HTTP/1.0 [09:43:15]Method: POST [09:43:15]URL: /json_proto [09:43:15]Method is POST - this is cgi request [09:43:15]url: /json_proto [09:43:15]query_string will be loaded in cgi processing [09:43:15]execute_cgi json_proto POST (null) [09:43:15]execute_cgi path=json_proto method=POST [09:43:15]POST find Content-Length [09:43:15]Host: 172.17.62.67:8080 [09:43:15]Content-Length: 679 [09:43:15]Content-Type: application/json [09:43:15] [09:43:15]POST finish read [09:43:15]Found Content-Length = 679 [09:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 15.380, "sum" : 1090.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1090.00, "total" : 1090.00, "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:15]execute_script... [09:43:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 15.380, "sum" : 1090.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1090.00, "total" : 1090.00, "payments": [ { "type": 0, "sum" : 1090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:15]POST & json_proto [09:43:15]process_json_proto [09:43:15]json parsed OK: [09:43:15]protocol is kg_v1.0 [09:43:15]action value=close_receipt [09:43:15]process_action close_receipt [09:43:15]cmd_close_receipt [09:43:15]MH_GetDate [09:43:15]Write to MH i2c: F0 00 00 70 82 E1 [09:43:15]Write i2c OK [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: F0 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: F0 05 00 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: F0 05 00 70 82 00 41 D2 EE 65 4C [09:43:15]GetLastDocTimeStamp 1710150179 [09:43:15]current date 1710150209 [09:43:15]FM_GetShiftState [09:43:15]SAM_PROTO_GetShiftState [09:43:15]wFMCommunicate request_size=4 [09:43:15]MH_SAM_APDU [09:43:15]CAPDU: 80 13 01 00 [09:43:15]Write to MH i2c: E2 08 00 71 82 80 13 01 00 00 00 00 00 70 [09:43:15]Write i2c OK [09:43:15]MH_I2C_Read... [09:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:15]Read from MH i2c: E2 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 0E 00 [09:43:15]MH_I2C_Read... [09:43:15]Read from MH i2c: E2 0E 00 71 82 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0C [09:43:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:43:15]wFMCommunicate OK [09:43:15]SAM_PROTO_GetShiftState done [09:43:15]FM_GetShiftState done [09:43:15]opened in 1710115571 [09:43:15]opened+sec_in_day 1710201971 [09:43:15]quantity*price = 109044 [09:43:15]sum+1 = 109045 [09:43:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1090.00 Внесено: 1090.00 СДАЧА: 0.00 НСП 1% : 9.65 НДС 12% : 115.80 Наличными: 1090.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 38 11.03.2024 09:43 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94863 ФПД: 211267247715235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T094329&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94863&fm=211267247715235&tin=02508201610067®Number=0000000000090555&sum=109000 [09:43:16]StoreToDocumentArchive [09:43:16]shift 326 fd 94863 [09:43:16]save to /storage/0326/doc_00094863 [09:43:16]save last doc name /storage/0326/doc_00094863 to /storage/kkm_last_doc_name [09:43:16]save OK [09:43:16]Clear old archive folders... [09:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:43:16]tlvbuf is 00476C90 [09:43:16]SAM_PROTO_ClearQueue [09:43:16]wFMCommunicate request_size=4 [09:43:16]MH_SAM_APDU [09:43:16]CAPDU: 80 09 00 00 [09:43:16]Write to MH i2c: E2 08 00 7E 82 80 09 00 00 00 00 00 00 72 [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:16]Read from MH i2c: E2 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 7E 82 00 90 00 74 [09:43:16]RAPDU: 90 00 [09:43:16]wFMCommunicate OK [09:43:16]SAM_PROTO_ClearQueue done [09:43:16]KKMCreateOFDPacket [09:43:16]OFDProtocolAddRootSTLVToBuf [09:43:16]FM_MakeSignedData [09:43:16]FM_MakeSignedData [09:43:16]SAM_PROTO_SignData [09:43:16]wFMCommunicate request_size=4 [09:43:16]MH_SAM_APDU [09:43:16]CAPDU: 80 0D 01 02 [09:43:16]Write to MH i2c: E2 08 00 7F 82 80 0D 01 02 00 00 00 00 7A [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:16]Read from MH i2c: E2 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 [09:43:16]MH_I2C_Read... [09:43:16]Read from MH i2c: E2 03 00 7F 82 00 90 00 75 [09:43:16]RAPDU: 90 00 [09:43:16]wFMCommunicate OK [09:43:16]wFMCommunicate request_size=255 [09:43:16]MH_SAM_APDU [09:43:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 3C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 41 D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 72 01 00 35 04 06 00 C0 25 7D 40 [09:43:16]Write to MH i2c: E2 02 01 80 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 3C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 41 D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 72 01 00 35 04 06 00 C0 25 7D 40 00 00 1A [09:43:16]Write i2c OK [09:43:16]MH_I2C_Read... [09:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:17]Read from MH i2c: E2 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 03 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 03 00 80 82 00 90 00 76 [09:43:17]RAPDU: 90 00 [09:43:17]wFMCommunicate OK [09:43:17]wFMCommunicate request_size=7 [09:43:17]MH_SAM_APDU [09:43:17]CAPDU: 80 0D 02 02 02 B3 A3 [09:43:17]Write to MH i2c: E2 0A 00 81 82 80 0D 02 02 02 00 B3 A3 00 00 D7 [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:17]Read from MH i2c: E2 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 03 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 03 00 81 82 00 90 00 77 [09:43:17]RAPDU: 90 00 [09:43:17]wFMCommunicate OK [09:43:17]wFMCommunicate request_size=4 [09:43:17]MH_SAM_APDU [09:43:17]CAPDU: 80 0D 03 02 [09:43:17]Write to MH i2c: E2 08 00 82 82 80 0D 03 02 00 00 00 00 7F [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:17]Read from MH i2c: E2 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 0B 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 0B 00 82 82 00 A0 7B FD 3B 13 57 D1 A9 90 00 B7 [09:43:17]RAPDU: A0 7B FD 3B 13 57 D1 A9 90 00 [09:43:17]wFMCommunicate OK [09:43:17]SAM_PROTO_SignData done [09:43:17]FM_MakeSignedData done [09:43:17]CreateOFDProtocolMessage [09:43:17]wFMCommunicate request_size=4 [09:43:17]MH_SAM_APDU [09:43:17]CAPDU: 80 11 00 00 [09:43:17]Write to MH i2c: E2 08 00 83 82 80 11 00 00 00 00 00 00 7F [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:17]Read from MH i2c: E2 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 17 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: E2 17 00 83 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CF [09:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:43:17]wFMCommunicate OK [09:43:17]CreateOFDProtocolMessage done [09:43:17]OFDSenderStorePacket 94863 [09:43:17]StoreOFDPacket docnum=94863 [09:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 3D B0 04 01 FD 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 3C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 41 D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 72 01 00 35 04 06 00 C0 25 7D 40 B3 A3 A0 7B FD 3B 13 57 D1 A9 [09:43:17]CheckFolder [09:43:17]dirname=/storage/ofd_packets [09:43:17]CheckFolder done [09:43:17]ProducePacketName [09:43:17]name=ofd_packets/00094863 [09:43:17]NVStorageSaveData ofd_packets/00094863 [09:43:17]File name is /storage/ofd_packets/00094863 [09:43:17]Write 298 bytes [09:43:17]NVStorageSaveData done [09:43:17]OFDSenderStorePacket done [09:43:17]KKMCreateOFDPacket done [09:43:17]NVStorageSaveData kkm_last_timestamp [09:43:17]File name is /storage/kkm_last_timestamp [09:43:17]Write 4 bytes [09:43:17]NVStorageSaveData done [09:43:17]ExternCall_PrintAddStr [09:43:17]wPrintStart [09:43:17]Write to MH i2c: 01 00 00 84 82 06 [09:43:17]Write i2c OK [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 07 00 [09:43:17]MH_I2C_Read... [09:43:17]Read from MH i2c: 01 07 00 84 82 00 80 00 00 00 FF 0F 9B [09:43:17]RasterBufferAndPrint [09:43:17]line Счет N : (1)195812 [09:43:17]line ИНН: 02508201610067 [09:43:17]line Контрольно-Кассовый Чек [09:43:17]line ПРОДАЖА [09:43:17]line ТРК (МРК, ГНК) : 51 [09:43:17]line Товар: 2710194210 [09:43:17]line ДТ-К-5 [09:43:17]line 15.380 * 70.90 [09:43:17]line = 1090.44 [09:43:17]line НДС 12% НСП 1% [09:43:17]line > о реализуемом товаре [09:43:17]line ОКРУГЛЕНИЕ: -0.44 [09:43:17]line ИТОГО: 1090.00 [09:43:17]line Внесено: 1090.00 [09:43:17]line СДАЧА: 0.00 [09:43:17]line НСП 1% : 9.65 [09:43:17]line НДС 12% : 115.80 [09:43:17]line Наличными: 1090.00 [09:43:17]line Безнал.: 0.00 [09:43:17]line Место: АЗС № 6 "Партнер Нефть" [09:43:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:43:17]line СНО: Общий режим [09:43:17]line Чек 38 11.03.2024 09:43 [09:43:17]line Смена: 326 ФФД: 1.0 [09:43:17]line ЗНМ: 0300000009 [09:43:17]line РНМ: 0000000000090555 [09:43:17]line Версия ККМ: 001 [09:43:17]line ФМ: 0000000000874811 [09:43:17]line ФД: 94863 [09:43:17]line ФПД: 211267247715235 [09:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T094329&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94863&fm=211267247715235&tin=02508201610067®Number=0000000000090555&sum=109000 [09:43:17]OFD Sender: Processing packet 94863 [packets to send 30, broken 29] [09:43:17]ProducePacketName [09:43:17]name=ofd_packets/00094863 [09:43:17]OFD Sender: To server: pG, [09:43:17]CommunicateWithHost lk.salyk.kg:30040 [09:43:17]ConnectInit lk.salyk.kg [09:43:17]written 0, free lines is 4095 [09:43:17]Connected sock=10 [09:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 3D B0 04 01 FD 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 3C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 A9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 A9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 2D 00 00 00 00 07 04 06 00 C8 A9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 41 D2 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 72 01 00 35 04 06 00 C0 25 7D 40 B3 A3 A0 7B FD 3B 13 57 D1 A9 [09:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 70 02 47 00 9D 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 31 31 10 04 04 00 8F 72 01 00 F4 03 04 00 9B 7D EE 65 B6 04 01 00 00 7C 41 77 97 B8 00 A8 A5 [09:43:17]CommunicateWithHost err = 0 [09:43:17]CheckOFDResponse [09:43:17]1017 (14) - 77093643461234 [09:43:17]1041 (16) - 0000000000874811 [09:43:17]1040 (4) - 94863 [09:43:17]1012 (4) - 11.03.2024 03:42 [09:43:17]1206 (1) - 0 [09:43:17]OFD Sender: Remove packet 94863 [09:43:17]ProducePacketName [09:43:17]name=ofd_packets/00094863 [09:43:17]NVStorageDeleteData [09:43:18]Write to MH i2c: 01 00 00 AF 82 31 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: 01 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: 01 07 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: 01 07 00 AF 82 00 80 00 00 00 47 0D 0C [09:43:18]RasterBufferAndPrint [09:43:18]line [09:43:18]line [09:43:18]line [09:43:18]line [09:43:18]line [09:43:18]written 0, free lines is 3403 [09:43:18]process_action close_receipt done [09:43:18]requested_data is exist [09:43:18]produce_requested_data [09:43:18]requested_item fm.sn is exist - process it [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 11 00 00 [09:43:18]Write to MH i2c: E2 08 00 B6 82 80 11 00 00 00 00 00 00 B2 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:18]Read from MH i2c: E2 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 17 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 17 00 B6 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 02 [09:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:43:18]wFMCommunicate OK [09:43:18]requested_item fd.num is exist - process it [09:43:18]SAM_PROTO_GetFieldsCounters [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 13 00 00 [09:43:18]Write to MH i2c: E2 08 00 B7 82 80 13 00 00 00 00 00 00 B5 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:18]Read from MH i2c: E2 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 62 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 62 00 B7 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [09:43: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:18]wFMCommunicate OK [09:43:18]SAM_PROTO_GetFieldsCounters done [09:43:18]requested_item shift.num is exist - process it [09:43:18]requested_item shift.opened is exist - process it [09:43:18]req_shift_opened [09:43:18]FM_GetShiftState [09:43:18]SAM_PROTO_GetShiftState [09:43:18]wFMCommunicate request_size=4 [09:43:18]MH_SAM_APDU [09:43:18]CAPDU: 80 13 01 00 [09:43:18]Write to MH i2c: E2 08 00 B8 82 80 13 01 00 00 00 00 00 B7 [09:43:18]Write i2c OK [09:43:18]MH_I2C_Read... [09:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:18]Read from MH i2c: E2 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 0E 00 [09:43:18]MH_I2C_Read... [09:43:18]Read from MH i2c: E2 0E 00 B8 82 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 53 [09:43:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:43:18]wFMCommunicate OK [09:43:18]SAM_PROTO_GetShiftState done [09:43:18]FM_GetShiftState done [09:43:18]req_shift_opened done [09:43:18]requested_item shift.open_date is exist - process it [09:43:18]req_shift_open_date [09:43:18]req_shift_open_date done [09:43:18]produce_requested_data done [09:43:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94863,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:43:18]process_action_free close_receipt [09:43:18]json_value_free [09:43:18]json_value_free done [09:43:18]process_json_proto returns [09:43:18]Send response to host [09:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94863,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:43:18]free response buf [09:43:18]execute_script done [09:43:18]execute_script returns [09:43:18]free content buf [09:43:18]Sock 9.Close socket [09:43:18]Sock 9.Thread stoped [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]accept exits with 7 [09:55:03]New connection [09:55:03]New thread 3066871140 created [09:55:03]Thread 3067014500 joined [09:55:03]Waiting for new connection... [09:55:03] Sock 7.Parse request [09:55:03]Sock 7.Check first char [09:55:03]Sock 7.First char is OK [09:55:03]request: POST /json_proto HTTP/1.0 [09:55:03]Method: POST [09:55:03]URL: /json_proto [09:55:03]Method is POST - this is cgi request [09:55:03]url: /json_proto [09:55:03]query_string will be loaded in cgi processing [09:55:03]execute_cgi json_proto POST (null) [09:55:03]execute_cgi path=json_proto method=POST [09:55:03]POST find Content-Length [09:55:03]Host: 172.17.62.67:8080 [09:55:03]Content-Length: 677 [09:55:03]Content-Type: application/json [09:55:03] [09:55:03]POST finish read [09:55:03]Found Content-Length = 677 [09:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.980, "sum" : 250.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:03]execute_script... [09:55: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)195813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.980, "sum" : 250.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:03]POST & json_proto [09:55:03]process_json_proto [09:55:03]json parsed OK: [09:55:03]protocol is kg_v1.0 [09:55:03]action value=close_receipt [09:55:03]process_action close_receipt [09:55:03]cmd_close_receipt [09:55:03]MH_GetDate [09:55:03]Write to MH i2c: F0 00 00 B9 82 2A [09:55:03]Write i2c OK [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: F0 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: F0 05 00 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: F0 05 00 B9 82 00 05 D5 EE 65 5C [09:55:03]GetLastDocTimeStamp 1710150209 [09:55:03]current date 1710150917 [09:55:03]FM_GetShiftState [09:55:03]SAM_PROTO_GetShiftState [09:55:03]wFMCommunicate request_size=4 [09:55:03]MH_SAM_APDU [09:55:03]CAPDU: 80 13 01 00 [09:55:03]Write to MH i2c: E2 08 00 BA 82 80 13 01 00 00 00 00 00 B9 [09:55:03]Write i2c OK [09:55:03]MH_I2C_Read... [09:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:03]Read from MH i2c: E2 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: E2 0E 00 [09:55:03]MH_I2C_Read... [09:55:03]Read from MH i2c: E2 0E 00 BA 82 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 55 [09:55:03]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:55:03]wFMCommunicate OK [09:55:03]SAM_PROTO_GetShiftState done [09:55:03]FM_GetShiftState done [09:55:03]opened in 1710115571 [09:55:03]opened+sec_in_day 1710201971 [09:55:03]quantity*price = 25034 [09:55:03]sum+1 = 25035 [09:55:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 39 11.03.2024 09:55 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94864 ФПД: 15809235824122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T095517&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94864&fm=15809235824122&tin=02508201610067®Number=0000000000090555&sum=25000 [09:55:04]StoreToDocumentArchive [09:55:04]shift 326 fd 94864 [09:55:04]save to /storage/0326/doc_00094864 [09:55:04]save last doc name /storage/0326/doc_00094864 to /storage/kkm_last_doc_name [09:55:04]save OK [09:55:04]Clear old archive folders... [09:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:04]tlvbuf is 001CE5A0 [09:55:04]SAM_PROTO_ClearQueue [09:55:04]wFMCommunicate request_size=4 [09:55:04]MH_SAM_APDU [09:55:04]CAPDU: 80 09 00 00 [09:55:04]Write to MH i2c: E2 08 00 C7 82 80 09 00 00 00 00 00 00 BB [09:55:05]Write i2c OK [09:55:05]MH_I2C_Read... [09:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:05]Read from MH i2c: E2 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 03 00 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 03 00 C7 82 00 90 00 BD [09:55:05]RAPDU: 90 00 [09:55:05]wFMCommunicate OK [09:55:05]SAM_PROTO_ClearQueue done [09:55:05]KKMCreateOFDPacket [09:55:05]OFDProtocolAddRootSTLVToBuf [09:55:05]FM_MakeSignedData [09:55:05]FM_MakeSignedData [09:55:05]SAM_PROTO_SignData [09:55:05]wFMCommunicate request_size=4 [09:55:05]MH_SAM_APDU [09:55:05]CAPDU: 80 0D 01 02 [09:55:05]Write to MH i2c: E2 08 00 C8 82 80 0D 01 02 00 00 00 00 C3 [09:55:05]Write i2c OK [09:55:05]MH_I2C_Read... [09:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:05]Read from MH i2c: E2 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 03 00 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 03 00 C8 82 00 90 00 BE [09:55:05]RAPDU: 90 00 [09:55:05]wFMCommunicate OK [09:55:05]wFMCommunicate request_size=255 [09:55:05]MH_SAM_APDU [09:55:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 05 D5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 72 01 00 35 04 06 00 0E [09:55:05]Write to MH i2c: E2 02 01 C9 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 05 D5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 72 01 00 35 04 06 00 0E 00 00 40 [09:55:05]Write i2c OK [09:55:05]MH_I2C_Read... [09:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:05]Read from MH i2c: E2 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 03 00 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 03 00 C9 82 00 90 00 BF [09:55:05]RAPDU: 90 00 [09:55:05]wFMCommunicate OK [09:55:05]wFMCommunicate request_size=10 [09:55:05]MH_SAM_APDU [09:55:05]CAPDU: 80 0D 02 02 05 60 DF E2 AD FA [09:55:05]Write to MH i2c: E2 0D 00 CA 82 80 0D 02 02 05 00 60 DF E2 AD FA 00 00 98 [09:55:05]Write i2c OK [09:55:05]MH_I2C_Read... [09:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:05]Read from MH i2c: E2 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 03 00 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 03 00 CA 82 00 90 00 C0 [09:55:05]RAPDU: 90 00 [09:55:05]wFMCommunicate OK [09:55:05]wFMCommunicate request_size=4 [09:55:05]MH_SAM_APDU [09:55:05]CAPDU: 80 0D 03 02 [09:55:05]Write to MH i2c: E2 08 00 CB 82 80 0D 03 02 00 00 00 00 C8 [09:55:05]Write i2c OK [09:55:05]MH_I2C_Read... [09:55:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:05]Read from MH i2c: E2 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 0B 00 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 0B 00 CB 82 00 A8 57 72 41 C4 42 8F 3D 90 00 4D [09:55:05]RAPDU: A8 57 72 41 C4 42 8F 3D 90 00 [09:55:05]wFMCommunicate OK [09:55:05]SAM_PROTO_SignData done [09:55:05]FM_MakeSignedData done [09:55:05]CreateOFDProtocolMessage [09:55:05]wFMCommunicate request_size=4 [09:55:05]MH_SAM_APDU [09:55:05]CAPDU: 80 11 00 00 [09:55:05]Write to MH i2c: E2 08 00 CC 82 80 11 00 00 00 00 00 00 C8 [09:55:05]Write i2c OK [09:55:05]MH_I2C_Read... [09:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:05]Read from MH i2c: E2 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 17 00 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: E2 17 00 CC 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 18 [09:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:55:05]wFMCommunicate OK [09:55:05]CreateOFDProtocolMessage done [09:55:05]OFDSenderStorePacket 94864 [09:55:05]StoreOFDPacket docnum=94864 [09:55:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 31 51 07 01 8E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 05 D5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 72 01 00 35 04 06 00 0E 60 DF E2 AD FA A8 57 72 41 C4 42 8F 3D [09:55:05]CheckFolder [09:55:05]dirname=/storage/ofd_packets [09:55:05]CheckFolder done [09:55:05]ProducePacketName [09:55:05]name=ofd_packets/00094864 [09:55:05]NVStorageSaveData ofd_packets/00094864 [09:55:05]File name is /storage/ofd_packets/00094864 [09:55:05]Write 301 bytes [09:55:05]NVStorageSaveData done [09:55:05]OFDSenderStorePacket done [09:55:05]KKMCreateOFDPacket done [09:55:05]NVStorageSaveData kkm_last_timestamp [09:55:05]File name is /storage/kkm_last_timestamp [09:55:05]Write 4 bytes [09:55:05]NVStorageSaveData done [09:55:05]ExternCall_PrintAddStr [09:55:05]wPrintStart [09:55:05]Write to MH i2c: 01 00 00 CD 82 4F [09:55:05]Write i2c OK [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: 01 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: 01 07 00 [09:55:05]MH_I2C_Read... [09:55:05]Read from MH i2c: 01 07 00 CD 82 00 80 00 00 00 FF 0F E4 [09:55:05]RasterBufferAndPrint [09:55:05]line Счет N : (1)195813 [09:55:05]line ИНН: 02508201610067 [09:55:05]line Контрольно-Кассовый Чек [09:55:05]line ПРОДАЖА [09:55:05]line ТРК (МРК, ГНК) : 42 [09:55:05]line Товар: 2710124130 [09:55:05]line Аи-92-К-5 [09:55:05]line 3.980 * 62.90 [09:55:05]line = 250.34 [09:55:05]line НДС 12% НСП 1% [09:55:05]line > о реализуемом товаре [09:55:05]line ОКРУГЛЕНИЕ: -0.34 [09:55:05]line ИТОГО: 250.00 [09:55:05]line Внесено: 250.00 [09:55:05]line СДАЧА: 0.00 [09:55:05]line НСП 1% : 2.21 [09:55:05]line НДС 12% : 26.58 [09:55:05]line Наличными: 250.00 [09:55:05]line Безнал.: 0.00 [09:55:05]line Место: АЗС № 6 "Партнер Нефть" [09:55:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:55:05]line СНО: Общий режим [09:55:05]line Чек 39 11.03.2024 09:55 [09:55:05]line Смена: 326 ФФД: 1.0 [09:55:05]line ЗНМ: 0300000009 [09:55:05]line РНМ: 0000000000090555 [09:55:05]line Версия ККМ: 001 [09:55:05]line ФМ: 0000000000874811 [09:55:05]line ФД: 94864 [09:55:05]line ФПД: 15809235824122 [09:55:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T095517&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94864&fm=15809235824122&tin=02508201610067®Number=0000000000090555&sum=25000 [09:55:05]OFD Sender: Processing packet 94864 [packets to send 30, broken 29] [09:55:05]ProducePacketName [09:55:05]name=ofd_packets/00094864 [09:55:05]OFD Sender: To server: pG, [09:55:05]CommunicateWithHost lk.salyk.kg:30040 [09:55:05]ConnectInit lk.salyk.kg [09:55:05]written 0, free lines is 4095 [09:55:05]Connected sock=11 [09:55: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 31 31 0F 01 00 00 31 51 07 01 8E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 05 D5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 72 01 00 35 04 06 00 0E 60 DF E2 AD FA A8 57 72 41 C4 42 8F 3D [09:55: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 31 31 4F 00 00 00 38 5E 47 00 1B FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 72 01 00 F4 03 04 00 5F 80 EE 65 B6 04 01 00 00 A3 85 8C 0A FC 8B E8 20 [09:55:06]CommunicateWithHost err = 0 [09:55:06]CheckOFDResponse [09:55:06]1017 (14) - 77093643461234 [09:55:06]1041 (16) - 0000000000874811 [09:55:06]1040 (4) - 94864 [09:55:06]1012 (4) - 11.03.2024 03:54 [09:55:06]1206 (1) - 0 [09:55:06]OFD Sender: Remove packet 94864 [09:55:06]ProducePacketName [09:55:06]name=ofd_packets/00094864 [09:55:06]NVStorageDeleteData [09:55:06]Write to MH i2c: 01 00 00 F8 82 7A [09:55:06]Write i2c OK [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: 01 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: 01 07 00 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: 01 07 00 F8 82 00 80 00 00 00 4A 0D 58 [09:55:06]RasterBufferAndPrint [09:55:06]line [09:55:06]line [09:55:06]line [09:55:06]line [09:55:06]line [09:55:06]written 0, free lines is 3406 [09:55:06]process_action close_receipt done [09:55:06]requested_data is exist [09:55:06]produce_requested_data [09:55:06]requested_item fm.sn is exist - process it [09:55:06]wFMCommunicate request_size=4 [09:55:06]MH_SAM_APDU [09:55:06]CAPDU: 80 11 00 00 [09:55:06]Write to MH i2c: E2 08 00 FF 82 80 11 00 00 00 00 00 00 FB [09:55:06]Write i2c OK [09:55:06]MH_I2C_Read... [09:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:06]Read from MH i2c: E2 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: E2 17 00 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: E2 17 00 FF 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4B [09:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:55:06]wFMCommunicate OK [09:55:06]requested_item fd.num is exist - process it [09:55:06]SAM_PROTO_GetFieldsCounters [09:55:06]wFMCommunicate request_size=4 [09:55:06]MH_SAM_APDU [09:55:06]CAPDU: 80 13 00 00 [09:55:06]Write to MH i2c: E2 08 00 00 83 80 13 00 00 00 00 00 00 FF [09:55:06]Write i2c OK [09:55:06]MH_I2C_Read... [09:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:06]Read from MH i2c: E2 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: E2 62 00 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: E2 62 00 00 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 90 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [09:55: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 90 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:06]wFMCommunicate OK [09:55:06]SAM_PROTO_GetFieldsCounters done [09:55:06]requested_item shift.num is exist - process it [09:55:06]requested_item shift.opened is exist - process it [09:55:06]req_shift_opened [09:55:06]FM_GetShiftState [09:55:06]SAM_PROTO_GetShiftState [09:55:06]wFMCommunicate request_size=4 [09:55:06]MH_SAM_APDU [09:55:06]CAPDU: 80 13 01 00 [09:55:06]Write to MH i2c: E2 08 00 01 83 80 13 01 00 00 00 00 00 01 [09:55:06]Write i2c OK [09:55:06]MH_I2C_Read... [09:55:06]OFD Sender: No OFD packet to send [09:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:06]Read from MH i2c: E2 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: E2 0E 00 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: E2 0E 00 01 83 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 9D [09:55:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [09:55:06]wFMCommunicate OK [09:55:06]SAM_PROTO_GetShiftState done [09:55:06]FM_GetShiftState done [09:55:06]req_shift_opened done [09:55:06]requested_item shift.open_date is exist - process it [09:55:06]req_shift_open_date [09:55:06]req_shift_open_date done [09:55:06]produce_requested_data done [09:55:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94864,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [09:55:06]process_action_free close_receipt [09:55:06]json_value_free [09:55:06]json_value_free done [09:55:06]process_json_proto returns [09:55:06]Send response to host [09:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94864,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [09:55:06]free response buf [09:55:06]execute_script done [09:55:06]execute_script returns [09:55:06]free content buf [09:55:06]Sock 7.Close socket [09:55:06]Sock 7.Thread stoped [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]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:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:29]accept exits with 9 [10:06:29]New connection [10:06:29]New thread 3067014500 created [10:06:29]Thread 3066871140 joined [10:06:29]Waiting for new connection... [10:06:29] Sock 9.Parse request [10:06:29]Sock 9.Check first char [10:06:29]Sock 9.First char is OK [10:06:29]request: POST /json_proto HTTP/1.0 [10:06:29]Method: POST [10:06:29]URL: /json_proto [10:06:29]Method is POST - this is cgi request [10:06:29]url: /json_proto [10:06:29]query_string will be loaded in cgi processing [10:06:29]execute_cgi json_proto POST (null) [10:06:29]execute_cgi path=json_proto method=POST [10:06:29]POST find Content-Length [10:06:29]Host: 172.17.62.67:8080 [10:06:29]Content-Length: 677 [10:06:29]Content-Type: application/json [10:06:29] [10:06:29]POST finish read [10:06:29]Found Content-Length = 677 [10:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 2.000, "sum" : 125.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 125.00, "payments": [ { "type": 0, "sum" : 125.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:29]execute_script... [10:06: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)195814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 2.000, "sum" : 125.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 125.00, "payments": [ { "type": 0, "sum" : 125.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:29]POST & json_proto [10:06:29]process_json_proto [10:06:29]json parsed OK: [10:06:29]protocol is kg_v1.0 [10:06:29]action value=close_receipt [10:06:29]process_action close_receipt [10:06:29]cmd_close_receipt [10:06:29]MH_GetDate [10:06:29]Write to MH i2c: F0 00 00 02 83 74 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: F0 [10:06:29]MH_I2C_Read... [10:06:30]Read from MH i2c: F0 05 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: F0 05 00 02 83 00 B3 D7 EE 65 56 [10:06:30]GetLastDocTimeStamp 1710150917 [10:06:30]current date 1710151603 [10:06:30]FM_GetShiftState [10:06:30]SAM_PROTO_GetShiftState [10:06:30]wFMCommunicate request_size=4 [10:06:30]MH_SAM_APDU [10:06:30]CAPDU: 80 13 01 00 [10:06:30]Write to MH i2c: E2 08 00 03 83 80 13 01 00 00 00 00 00 03 [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:30]Read from MH i2c: E2 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: E2 0E 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: E2 0E 00 03 83 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 9F [10:06:30]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:06:30]wFMCommunicate OK [10:06:30]SAM_PROTO_GetShiftState done [10:06:30]FM_GetShiftState done [10:06:30]opened in 1710115571 [10:06:30]opened+sec_in_day 1710201971 [10:06:30]quantity*price = 12580 [10:06:30]sum+1 = 12581 [10:06:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 125.00 Внесено: 200.00 СДАЧА: 75.00 НСП 1% : 1.11 НДС 12% : 13.36 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 40 11.03.2024 10:06 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94865 ФПД: 260629034934662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T100643&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94865&fm=260629034934662&tin=02508201610067®Number=0000000000090555&sum=12500 [10:06:31]StoreToDocumentArchive [10:06:31]shift 326 fd 94865 [10:06:31]save to /storage/0326/doc_00094865 [10:06:31]save last doc name /storage/0326/doc_00094865 to /storage/kkm_last_doc_name [10:06:31]save OK [10:06:31]Clear old archive folders... [10:06:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:31]tlvbuf is 00197C80 [10:06:31]SAM_PROTO_ClearQueue [10:06:31]wFMCommunicate request_size=4 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 09 00 00 [10:06:31]Write to MH i2c: E2 08 00 10 83 80 09 00 00 00 00 00 00 05 [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 03 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 03 00 10 83 00 90 00 07 [10:06:31]RAPDU: 90 00 [10:06:31]wFMCommunicate OK [10:06:31]SAM_PROTO_ClearQueue done [10:06:31]KKMCreateOFDPacket [10:06:31]OFDProtocolAddRootSTLVToBuf [10:06:31]FM_MakeSignedData [10:06:31]FM_MakeSignedData [10:06:31]SAM_PROTO_SignData [10:06:31]wFMCommunicate request_size=4 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 0D 01 02 [10:06:31]Write to MH i2c: E2 08 00 11 83 80 0D 01 02 00 00 00 00 0D [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 03 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 03 00 11 83 00 90 00 08 [10:06:31]RAPDU: 90 00 [10:06:31]wFMCommunicate OK [10:06:31]wFMCommunicate request_size=255 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 24 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B3 D7 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 72 01 00 35 04 06 00 ED [10:06:31]Write to MH i2c: E2 02 01 12 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 24 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B3 D7 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 72 01 00 35 04 06 00 ED 00 00 DA [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 03 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 03 00 12 83 00 90 00 09 [10:06:31]RAPDU: 90 00 [10:06:31]wFMCommunicate OK [10:06:31]wFMCommunicate request_size=10 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 0D 02 02 05 0A 6D 0B A1 86 [10:06:31]Write to MH i2c: E2 0D 00 13 83 80 0D 02 02 05 00 0A 6D 0B A1 86 00 00 C3 [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 03 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 03 00 13 83 00 90 00 0A [10:06:31]RAPDU: 90 00 [10:06:31]wFMCommunicate OK [10:06:31]wFMCommunicate request_size=4 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 0D 03 02 [10:06:31]Write to MH i2c: E2 08 00 14 83 80 0D 03 02 00 00 00 00 12 [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 0B 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 0B 00 14 83 00 01 F7 4A E5 41 E6 29 BA 90 00 44 [10:06:31]RAPDU: 01 F7 4A E5 41 E6 29 BA 90 00 [10:06:31]wFMCommunicate OK [10:06:31]SAM_PROTO_SignData done [10:06:31]FM_MakeSignedData done [10:06:31]CreateOFDProtocolMessage [10:06:31]wFMCommunicate request_size=4 [10:06:31]MH_SAM_APDU [10:06:31]CAPDU: 80 11 00 00 [10:06:31]Write to MH i2c: E2 08 00 15 83 80 11 00 00 00 00 00 00 12 [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:31]Read from MH i2c: E2 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 17 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: E2 17 00 15 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 62 [10:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:06:31]wFMCommunicate OK [10:06:31]CreateOFDProtocolMessage done [10:06:31]OFDSenderStorePacket 94865 [10:06:31]StoreOFDPacket docnum=94865 [10:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5D F4 07 01 01 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 24 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B3 D7 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 72 01 00 35 04 06 00 ED 0A 6D 0B A1 86 01 F7 4A E5 41 E6 29 BA [10:06:31]CheckFolder [10:06:31]dirname=/storage/ofd_packets [10:06:31]CheckFolder done [10:06:31]ProducePacketName [10:06:31]name=ofd_packets/00094865 [10:06:31]NVStorageSaveData ofd_packets/00094865 [10:06:31]File name is /storage/ofd_packets/00094865 [10:06:31]Write 301 bytes [10:06:31]NVStorageSaveData done [10:06:31]OFDSenderStorePacket done [10:06:31]KKMCreateOFDPacket done [10:06:31]NVStorageSaveData kkm_last_timestamp [10:06:31]File name is /storage/kkm_last_timestamp [10:06:31]Write 4 bytes [10:06:31]NVStorageSaveData done [10:06:31]ExternCall_PrintAddStr [10:06:31]wPrintStart [10:06:31]Write to MH i2c: 01 00 00 16 83 99 [10:06:31]Write i2c OK [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: 01 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: 01 07 00 [10:06:31]MH_I2C_Read... [10:06:31]Read from MH i2c: 01 07 00 16 83 00 80 00 00 00 FF 0F 2E [10:06:31]RasterBufferAndPrint [10:06:31]line Счет N : (1)195814 [10:06:31]line ИНН: 02508201610067 [10:06:31]line Контрольно-Кассовый Чек [10:06:31]line ПРОДАЖА [10:06:31]line ТРК (МРК, ГНК) : 32 [10:06:31]line Товар: 2710124130 [10:06:31]line Аи-92-К-5 [10:06:31]line 2.000 * 62.90 [10:06:31]line = 125.80 [10:06:31]line НДС 12% НСП 1% [10:06:31]line > о реализуемом товаре [10:06:31]line ОКРУГЛЕНИЕ: -0.80 [10:06:31]line ИТОГО: 125.00 [10:06:31]line Внесено: 200.00 [10:06:31]line СДАЧА: 75.00 [10:06:31]line НСП 1% : 1.11 [10:06:31]line НДС 12% : 13.36 [10:06:31]line Наличными: 125.00 [10:06:31]line Безнал.: 0.00 [10:06:31]line Место: АЗС № 6 "Партнер Нефть" [10:06:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:06:31]line СНО: Общий режим [10:06:31]line Чек 40 11.03.2024 10:06 [10:06:31]line Смена: 326 ФФД: 1.0 [10:06:31]line ЗНМ: 0300000009 [10:06:31]line РНМ: 0000000000090555 [10:06:31]line Версия ККМ: 001 [10:06:31]line ФМ: 0000000000874811 [10:06:31]line ФД: 94865 [10:06:31]line ФПД: 260629034934662 [10:06:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T100643&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94865&fm=260629034934662&tin=02508201610067®Number=0000000000090555&sum=12500 [10:06:32]OFD Sender: Processing packet 94865 [packets to send 30, broken 29] [10:06:32]ProducePacketName [10:06:32]name=ofd_packets/00094865 [10:06:32]OFD Sender: To server: pG, [10:06:32]CommunicateWithHost lk.salyk.kg:30040 [10:06:32]ConnectInit lk.salyk.kg [10:06:32]written 0, free lines is 4095 [10:06:32]Connected sock=10 [10:06: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 31 31 0F 01 00 00 5D F4 07 01 01 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 24 31 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B3 D7 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 72 01 00 35 04 06 00 ED 0A 6D 0B A1 86 01 F7 4A E5 41 E6 29 BA [10:06: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 31 31 4F 00 00 00 FB 01 47 00 FA 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 72 01 00 F4 03 04 00 0D 83 EE 65 B6 04 01 00 00 7B C3 B4 D2 E1 04 7F 39 [10:06:32]CommunicateWithHost err = 0 [10:06:32]CheckOFDResponse [10:06:32]1017 (14) - 77093643461234 [10:06:32]1041 (16) - 0000000000874811 [10:06:32]1040 (4) - 94865 [10:06:32]1012 (4) - 11.03.2024 04:05 [10:06:32]1206 (1) - 0 [10:06:32]OFD Sender: Remove packet 94865 [10:06:32]ProducePacketName [10:06:32]name=ofd_packets/00094865 [10:06:32]NVStorageDeleteData [10:06:32]Write to MH i2c: 01 00 00 41 83 C4 [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: 01 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: 01 07 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: 01 07 00 41 83 00 80 00 00 00 4A 0D A2 [10:06:32]RasterBufferAndPrint [10:06:32]line [10:06:32]line [10:06:32]line [10:06:32]line [10:06:32]line [10:06:32]written 0, free lines is 3408 [10:06:32]process_action close_receipt done [10:06:32]requested_data is exist [10:06:32]produce_requested_data [10:06:32]requested_item fm.sn is exist - process it [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 11 00 00 [10:06:32]Write to MH i2c: E2 08 00 48 83 80 11 00 00 00 00 00 00 45 [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 17 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 17 00 48 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [10:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:06:32]wFMCommunicate OK [10:06:32]requested_item fd.num is exist - process it [10:06:32]SAM_PROTO_GetFieldsCounters [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 13 00 00 [10:06:32]Write to MH i2c: E2 08 00 49 83 80 13 00 00 00 00 00 00 48 [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 62 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 62 00 49 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [10:06: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:32]wFMCommunicate OK [10:06:32]SAM_PROTO_GetFieldsCounters done [10:06:32]requested_item shift.num is exist - process it [10:06:32]requested_item shift.opened is exist - process it [10:06:32]req_shift_opened [10:06:32]FM_GetShiftState [10:06:32]SAM_PROTO_GetShiftState [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 13 01 00 [10:06:32]Write to MH i2c: E2 08 00 4A 83 80 13 01 00 00 00 00 00 4A [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 0E 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 0E 00 4A 83 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E6 [10:06:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:06:32]wFMCommunicate OK [10:06:32]SAM_PROTO_GetShiftState done [10:06:32]FM_GetShiftState done [10:06:32]req_shift_opened done [10:06:32]requested_item shift.open_date is exist - process it [10:06:32]req_shift_open_date [10:06:32]req_shift_open_date done [10:06:32]produce_requested_data done [10:06:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94865,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:06:32]process_action_free close_receipt [10:06:32]json_value_free [10:06:32]json_value_free done [10:06:32]process_json_proto returns [10:06:32]Send response to host [10:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94865,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:06:32]free response buf [10:06:32]execute_script done [10:06:32]execute_script returns [10:06:32]free content buf [10:06:32]Sock 9.Close socket [10:06:32]Sock 9.Thread stoped [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]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:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:32]accept exits with 7 [10:11:32]New connection [10:11:32]New thread 3066871140 created [10:11:32]Thread 3067014500 joined [10:11:32]Waiting for new connection... [10:11:32] Sock 7.Parse request [10:11:32]Sock 7.Check first char [10:11:32]Sock 7.First char is OK [10:11:32]request: POST /json_proto HTTP/1.0 [10:11:32]Method: POST [10:11:32]URL: /json_proto [10:11:32]Method is POST - this is cgi request [10:11:32]url: /json_proto [10:11:32]query_string will be loaded in cgi processing [10:11:32]execute_cgi json_proto POST (null) [10:11:32]execute_cgi path=json_proto method=POST [10:11:32]POST find Content-Length [10:11:32]Host: 172.17.62.67:8080 [10:11:32]Content-Length: 677 [10:11:32]Content-Type: application/json [10:11:32] [10:11:32]POST finish read [10:11:32]Found Content-Length = 677 [10:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:11:32]execute_script... [10:11:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:11:32]POST & json_proto [10:11:32]process_json_proto [10:11:32]json parsed OK: [10:11:32]protocol is kg_v1.0 [10:11:32]action value=close_receipt [10:11:32]process_action close_receipt [10:11:32]cmd_close_receipt [10:11:32]MH_GetDate [10:11:32]Write to MH i2c: F0 00 00 4B 83 BD [10:11:32]Write i2c OK [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: F0 [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: F0 05 00 [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: F0 05 00 4B 83 00 E1 D8 EE 65 CE [10:11:32]GetLastDocTimeStamp 1710151603 [10:11:32]current date 1710151905 [10:11:32]FM_GetShiftState [10:11:32]SAM_PROTO_GetShiftState [10:11:32]wFMCommunicate request_size=4 [10:11:32]MH_SAM_APDU [10:11:32]CAPDU: 80 13 01 00 [10:11:32]Write to MH i2c: E2 08 00 4C 83 80 13 01 00 00 00 00 00 4C [10:11:32]Write i2c OK [10:11:32]MH_I2C_Read... [10:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:32]Read from MH i2c: E2 [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: E2 0E 00 [10:11:32]MH_I2C_Read... [10:11:32]Read from MH i2c: E2 0E 00 4C 83 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E8 [10:11:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:11:32]wFMCommunicate OK [10:11:32]SAM_PROTO_GetShiftState done [10:11:32]FM_GetShiftState done [10:11:32]opened in 1710115571 [10:11:32]opened+sec_in_day 1710201971 [10:11:32]quantity*price = 50005 [10:11:32]sum+1 = 50007 [10:11:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 41 11.03.2024 10:11 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94866 ФПД: 165670211740866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T101145&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94866&fm=165670211740866&tin=02508201610067®Number=0000000000090555&sum=50000 [10:11:33]StoreToDocumentArchive [10:11:33]shift 326 fd 94866 [10:11:33]save to /storage/0326/doc_00094866 [10:11:33]save last doc name /storage/0326/doc_00094866 to /storage/kkm_last_doc_name [10:11:33]save OK [10:11:33]Clear old archive folders... [10:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:33]tlvbuf is 00248C50 [10:11:33]SAM_PROTO_ClearQueue [10:11:33]wFMCommunicate request_size=4 [10:11:33]MH_SAM_APDU [10:11:33]CAPDU: 80 09 00 00 [10:11:33]Write to MH i2c: E2 08 00 59 83 80 09 00 00 00 00 00 00 4E [10:11:33]Write i2c OK [10:11:33]MH_I2C_Read... [10:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:33]Read from MH i2c: E2 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 03 00 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 03 00 59 83 00 90 00 50 [10:11:33]RAPDU: 90 00 [10:11:33]wFMCommunicate OK [10:11:33]SAM_PROTO_ClearQueue done [10:11:33]KKMCreateOFDPacket [10:11:33]OFDProtocolAddRootSTLVToBuf [10:11:33]FM_MakeSignedData [10:11:33]FM_MakeSignedData [10:11:33]SAM_PROTO_SignData [10:11:33]wFMCommunicate request_size=4 [10:11:33]MH_SAM_APDU [10:11:33]CAPDU: 80 0D 01 02 [10:11:33]Write to MH i2c: E2 08 00 5A 83 80 0D 01 02 00 00 00 00 56 [10:11:33]Write i2c OK [10:11:33]MH_I2C_Read... [10:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:33]Read from MH i2c: E2 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 03 00 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 03 00 5A 83 00 90 00 51 [10:11:33]RAPDU: 90 00 [10:11:33]wFMCommunicate OK [10:11:33]wFMCommunicate request_size=255 [10:11:33]MH_SAM_APDU [10:11:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 E1 D8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 72 01 00 35 04 06 00 96 [10:11:33]Write to MH i2c: E2 02 01 5B 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 E1 D8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 72 01 00 35 04 06 00 96 00 00 16 [10:11:33]Write i2c OK [10:11:33]MH_I2C_Read... [10:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:33]Read from MH i2c: E2 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 03 00 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 03 00 5B 83 00 90 00 52 [10:11:33]RAPDU: 90 00 [10:11:33]wFMCommunicate OK [10:11:33]wFMCommunicate request_size=10 [10:11:33]MH_SAM_APDU [10:11:33]CAPDU: 80 0D 02 02 05 AD 1A 1E E4 C2 [10:11:33]Write to MH i2c: E2 0D 00 5C 83 80 0D 02 02 05 00 AD 1A 1E E4 C2 00 00 EE [10:11:33]Write i2c OK [10:11:33]MH_I2C_Read... [10:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:33]Read from MH i2c: E2 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 03 00 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 03 00 5C 83 00 90 00 53 [10:11:33]RAPDU: 90 00 [10:11:33]wFMCommunicate OK [10:11:33]wFMCommunicate request_size=4 [10:11:33]MH_SAM_APDU [10:11:33]CAPDU: 80 0D 03 02 [10:11:33]Write to MH i2c: E2 08 00 5D 83 80 0D 03 02 00 00 00 00 5B [10:11:33]Write i2c OK [10:11:33]MH_I2C_Read... [10:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:33]Read from MH i2c: E2 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 0B 00 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 0B 00 5D 83 00 5F C2 0E 2B 02 56 1F AF 90 00 DC [10:11:33]RAPDU: 5F C2 0E 2B 02 56 1F AF 90 00 [10:11:33]wFMCommunicate OK [10:11:33]SAM_PROTO_SignData done [10:11:33]FM_MakeSignedData done [10:11:33]CreateOFDProtocolMessage [10:11:33]wFMCommunicate request_size=4 [10:11:33]MH_SAM_APDU [10:11:33]CAPDU: 80 11 00 00 [10:11:33]Write to MH i2c: E2 08 00 5E 83 80 11 00 00 00 00 00 00 5B [10:11:33]Write i2c OK [10:11:33]MH_I2C_Read... [10:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:33]Read from MH i2c: E2 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 17 00 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: E2 17 00 5E 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AB [10:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:11:33]wFMCommunicate OK [10:11:33]CreateOFDProtocolMessage done [10:11:33]OFDSenderStorePacket 94866 [10:11:33]StoreOFDPacket docnum=94866 [10:11:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5D BA 07 01 2F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 E1 D8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 72 01 00 35 04 06 00 96 AD 1A 1E E4 C2 5F C2 0E 2B 02 56 1F AF [10:11:33]CheckFolder [10:11:33]dirname=/storage/ofd_packets [10:11:33]CheckFolder done [10:11:33]ProducePacketName [10:11:33]name=ofd_packets/00094866 [10:11:33]NVStorageSaveData ofd_packets/00094866 [10:11:33]File name is /storage/ofd_packets/00094866 [10:11:33]Write 301 bytes [10:11:33]NVStorageSaveData done [10:11:33]OFDSenderStorePacket done [10:11:33]KKMCreateOFDPacket done [10:11:33]NVStorageSaveData kkm_last_timestamp [10:11:33]File name is /storage/kkm_last_timestamp [10:11:33]Write 4 bytes [10:11:33]NVStorageSaveData done [10:11:33]ExternCall_PrintAddStr [10:11:33]wPrintStart [10:11:33]Write to MH i2c: 01 00 00 5F 83 E2 [10:11:33]Write i2c OK [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: 01 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: 01 07 00 [10:11:33]MH_I2C_Read... [10:11:33]Read from MH i2c: 01 07 00 5F 83 00 80 00 00 00 FF 0F 77 [10:11:33]RasterBufferAndPrint [10:11:33]line Счет N : (1)195815 [10:11:33]line ИНН: 02508201610067 [10:11:33]line Контрольно-Кассовый Чек [10:11:33]line ПРОДАЖА [10:11:33]line ТРК (МРК, ГНК) : 22 [10:11:33]line Товар: 2710124130 [10:11:33]line Аи-92-К-5 [10:11:33]line 7.950 * 62.90 [10:11:33]line = 500.06 [10:11:33]line НДС 12% НСП 1% [10:11:33]line > о реализуемом товаре [10:11:33]line ОКРУГЛЕНИЕ: -0.06 [10:11:33]line ИТОГО: 500.00 [10:11:33]line Внесено: 500.00 [10:11:33]line СДАЧА: 0.00 [10:11:33]line НСП 1% : 4.42 [10:11:33]line НДС 12% : 53.10 [10:11:33]line Наличными: 500.00 [10:11:33]line Безнал.: 0.00 [10:11:33]line Место: АЗС № 6 "Партнер Нефть" [10:11:33]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:11:33]line СНО: Общий режим [10:11:33]line Чек 41 11.03.2024 10:11 [10:11:33]line Смена: 326 ФФД: 1.0 [10:11:33]line ЗНМ: 0300000009 [10:11:33]line РНМ: 0000000000090555 [10:11:33]line Версия ККМ: 001 [10:11:33]line ФМ: 0000000000874811 [10:11:33]line ФД: 94866 [10:11:33]line ФПД: 165670211740866 [10:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T101145&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94866&fm=165670211740866&tin=02508201610067®Number=0000000000090555&sum=50000 [10:11:34]OFD Sender: Processing packet 94866 [packets to send 30, broken 29] [10:11:34]ProducePacketName [10:11:34]name=ofd_packets/00094866 [10:11:34]OFD Sender: To server: pG, [10:11:34]CommunicateWithHost lk.salyk.kg:30040 [10:11:34]ConnectInit lk.salyk.kg [10:11:34]written 0, free lines is 4095 [10:11:34]Connected sock=10 [10:11: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 31 31 0F 01 00 00 5D BA 07 01 2F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 E1 D8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 72 01 00 35 04 06 00 96 AD 1A 1E E4 C2 5F C2 0E 2B 02 56 1F AF [10:11:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 78 1B 47 00 83 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 72 01 00 F4 03 04 00 3B 84 EE 65 B6 04 01 00 00 6B FC E2 3B 98 06 B6 FB [10:11:34]CommunicateWithHost err = 0 [10:11:34]CheckOFDResponse [10:11:34]1017 (14) - 77093643461234 [10:11:34]1041 (16) - 0000000000874811 [10:11:34]1040 (4) - 94866 [10:11:34]1012 (4) - 11.03.2024 04:10 [10:11:34]1206 (1) - 0 [10:11:34]OFD Sender: Remove packet 94866 [10:11:34]ProducePacketName [10:11:34]name=ofd_packets/00094866 [10:11:34]NVStorageDeleteData [10:11:34]Write to MH i2c: 01 00 00 8A 83 0D [10:11:34]Write i2c OK [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: 01 [10:11:34]MH_I2C_Read... [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 8A 83 00 80 00 00 00 44 0D E5 [10:11:34]RasterBufferAndPrint [10:11:34]line [10:11:34]line [10:11:34]line [10:11:34]line [10:11:34]line [10:11:34]written 0, free lines is 3402 [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 91 83 80 11 00 00 00 00 00 00 8E [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 91 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DE [10:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 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 92 83 80 13 00 00 00 00 00 00 91 [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 92 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 92 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 92 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 93 83 80 13 01 00 00 00 00 00 93 [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 93 83 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2F [10:11:34]RAPDU: 09 00 01 F3 4A EE 65 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":"0000000000874811","fd.num":94866,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [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":"0000000000874811","fd.num":94866,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [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 7.Close socket [10:11:34]Sock 7.Thread stoped [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:37]accept exits with 9 [10:12:37]New connection [10:12:37]New thread 3067014500 created [10:12:37]Thread 3066871140 joined [10:12:37]Waiting for new connection... [10:12:37] Sock 9.Parse request [10:12:37]Sock 9.Check first char [10:12:37]Sock 9.First char is OK [10:12:37]request: POST /json_proto HTTP/1.0 [10:12:37]Method: POST [10:12:37]URL: /json_proto [10:12:37]Method is POST - this is cgi request [10:12:37]url: /json_proto [10:12:37]query_string will be loaded in cgi processing [10:12:37]execute_cgi json_proto POST (null) [10:12:37]execute_cgi path=json_proto method=POST [10:12:37]POST find Content-Length [10:12:37]Host: 172.17.62.67:8080 [10:12:37]Content-Length: 677 [10:12:37]Content-Type: application/json [10:12:37] [10:12:37]POST finish read [10:12:37]Found Content-Length = 677 [10:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:12:37]execute_script... [10:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:12:37]POST & json_proto [10:12:37]process_json_proto [10:12:37]json parsed OK: [10:12:37]protocol is kg_v1.0 [10:12:37]action value=close_receipt [10:12:37]process_action close_receipt [10:12:37]cmd_close_receipt [10:12:37]MH_GetDate [10:12:37]Write to MH i2c: F0 00 00 94 83 06 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: F0 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: F0 05 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: F0 05 00 94 83 00 23 D9 EE 65 5A [10:12:37]GetLastDocTimeStamp 1710151905 [10:12:37]current date 1710151971 [10:12:37]FM_GetShiftState [10:12:37]SAM_PROTO_GetShiftState [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 13 01 00 [10:12:37]Write to MH i2c: E2 08 00 95 83 80 13 01 00 00 00 00 00 95 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 0E 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 0E 00 95 83 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 31 [10:12:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:12:37]wFMCommunicate OK [10:12:37]SAM_PROTO_GetShiftState done [10:12:37]FM_GetShiftState done [10:12:37]opened in 1710115571 [10:12:37]opened+sec_in_day 1710201971 [10:12:37]quantity*price = 50005 [10:12:37]sum+1 = 50007 [10:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 42 11.03.2024 10:12 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94867 ФПД: 153015386205787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T101251&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94867&fm=153015386205787&tin=02508201610067®Number=0000000000090555&sum=50000 [10:12:38]StoreToDocumentArchive [10:12:38]shift 326 fd 94867 [10:12:38]save to /storage/0326/doc_00094867 [10:12:38]save last doc name /storage/0326/doc_00094867 to /storage/kkm_last_doc_name [10:12:38]save OK [10:12:38]Clear old archive folders... [10:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:38]tlvbuf is 00266C00 [10:12:38]SAM_PROTO_ClearQueue [10:12:38]wFMCommunicate request_size=4 [10:12:38]MH_SAM_APDU [10:12:38]CAPDU: 80 09 00 00 [10:12:38]Write to MH i2c: E2 08 00 A2 83 80 09 00 00 00 00 00 00 97 [10:12:38]Write i2c OK [10:12:38]MH_I2C_Read... [10:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:38]Read from MH i2c: E2 [10:12:38]MH_I2C_Read... [10:12:38]Read from MH i2c: E2 03 00 [10:12:38]MH_I2C_Read... [10:12:38]Read from MH i2c: E2 03 00 A2 83 00 90 00 99 [10:12:38]RAPDU: 90 00 [10:12:38]wFMCommunicate OK [10:12:38]SAM_PROTO_ClearQueue done [10:12:38]KKMCreateOFDPacket [10:12:38]OFDProtocolAddRootSTLVToBuf [10:12:38]FM_MakeSignedData [10:12:38]FM_MakeSignedData [10:12:38]SAM_PROTO_SignData [10:12:38]wFMCommunicate request_size=4 [10:12:38]MH_SAM_APDU [10:12:38]CAPDU: 80 0D 01 02 [10:12:38]Write to MH i2c: E2 08 00 A3 83 80 0D 01 02 00 00 00 00 9F [10:12:38]Write i2c OK [10:12:38]MH_I2C_Read... [10:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:38]Read from MH i2c: E2 [10:12:38]MH_I2C_Read... [10:12:38]Read from MH i2c: E2 03 00 [10:12:38]MH_I2C_Read... [10:12:38]Read from MH i2c: E2 03 00 A3 83 00 90 00 9A [10:12:38]RAPDU: 90 00 [10:12:38]wFMCommunicate OK [10:12:38]wFMCommunicate request_size=255 [10:12:38]MH_SAM_APDU [10:12:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 23 D9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 72 01 00 35 04 06 00 8B [10:12:38]Write to MH i2c: E2 02 01 A4 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 23 D9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 72 01 00 35 04 06 00 8B 00 00 99 [10:12:38]Write i2c OK [10:12:38]MH_I2C_Read... [10:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:38]Read from MH i2c: E2 [10:12:38]MH_I2C_Read... [10:12:38]Read from MH i2c: E2 03 00 [10:12:38]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 03 00 A4 83 00 90 00 9B [10:12:39]RAPDU: 90 00 [10:12:39]wFMCommunicate OK [10:12:39]wFMCommunicate request_size=10 [10:12:39]MH_SAM_APDU [10:12:39]CAPDU: 80 0D 02 02 05 2A AB BD 6E 5B [10:12:39]Write to MH i2c: E2 0D 00 A5 83 80 0D 02 02 05 00 2A AB BD 6E 5B 00 00 07 [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:39]Read from MH i2c: E2 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 03 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 03 00 A5 83 00 90 00 9C [10:12:39]RAPDU: 90 00 [10:12:39]wFMCommunicate OK [10:12:39]wFMCommunicate request_size=4 [10:12:39]MH_SAM_APDU [10:12:39]CAPDU: 80 0D 03 02 [10:12:39]Write to MH i2c: E2 08 00 A6 83 80 0D 03 02 00 00 00 00 A4 [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:39]Read from MH i2c: E2 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 0B 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 0B 00 A6 83 00 30 65 30 FD DB 3A 53 22 90 00 F1 [10:12:39]RAPDU: 30 65 30 FD DB 3A 53 22 90 00 [10:12:39]wFMCommunicate OK [10:12:39]SAM_PROTO_SignData done [10:12:39]FM_MakeSignedData done [10:12:39]CreateOFDProtocolMessage [10:12:39]wFMCommunicate request_size=4 [10:12:39]MH_SAM_APDU [10:12:39]CAPDU: 80 11 00 00 [10:12:39]Write to MH i2c: E2 08 00 A7 83 80 11 00 00 00 00 00 00 A4 [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:39]Read from MH i2c: E2 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 17 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: E2 17 00 A7 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F4 [10:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:12:39]wFMCommunicate OK [10:12:39]CreateOFDProtocolMessage done [10:12:39]OFDSenderStorePacket 94867 [10:12:39]StoreOFDPacket docnum=94867 [10:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D7 77 07 01 47 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 23 D9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 72 01 00 35 04 06 00 8B 2A AB BD 6E 5B 30 65 30 FD DB 3A 53 22 [10:12:39]CheckFolder [10:12:39]dirname=/storage/ofd_packets [10:12:39]CheckFolder done [10:12:39]ProducePacketName [10:12:39]name=ofd_packets/00094867 [10:12:39]NVStorageSaveData ofd_packets/00094867 [10:12:39]File name is /storage/ofd_packets/00094867 [10:12:39]Write 301 bytes [10:12:39]NVStorageSaveData done [10:12:39]OFDSenderStorePacket done [10:12:39]KKMCreateOFDPacket done [10:12:39]NVStorageSaveData kkm_last_timestamp [10:12:39]File name is /storage/kkm_last_timestamp [10:12:39]Write 4 bytes [10:12:39]NVStorageSaveData done [10:12:39]ExternCall_PrintAddStr [10:12:39]wPrintStart [10:12:39]Write to MH i2c: 01 00 00 A8 83 2B [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: 01 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: 01 07 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: 01 07 00 A8 83 00 80 00 00 00 FF 0F C0 [10:12:39]RasterBufferAndPrint [10:12:39]line Счет N : (1)195816 [10:12:39]line ИНН: 02508201610067 [10:12:39]line Контрольно-Кассовый Чек [10:12:39]line ПРОДАЖА [10:12:39]line ТРК (МРК, ГНК) : 12 [10:12:39]line Товар: 2710124130 [10:12:39]line Аи-92-К-5 [10:12:39]line 7.950 * 62.90 [10:12:39]line = 500.06 [10:12:39]line НДС 12% НСП 1% [10:12:39]line > о реализуемом товаре [10:12:39]line ОКРУГЛЕНИЕ: -0.06 [10:12:39]line ИТОГО: 500.00 [10:12:39]line Внесено: 500.00 [10:12:39]line СДАЧА: 0.00 [10:12:39]line НСП 1% : 4.42 [10:12:39]line НДС 12% : 53.10 [10:12:39]line Наличными: 500.00 [10:12:39]line Безнал.: 0.00 [10:12:39]line Место: АЗС № 6 "Партнер Нефть" [10:12:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:12:39]line СНО: Общий режим [10:12:39]line Чек 42 11.03.2024 10:12 [10:12:39]line Смена: 326 ФФД: 1.0 [10:12:39]line ЗНМ: 0300000009 [10:12:39]line РНМ: 0000000000090555 [10:12:39]line Версия ККМ: 001 [10:12:39]line ФМ: 0000000000874811 [10:12:39]line ФД: 94867 [10:12:39]line ФПД: 153015386205787 [10:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T101251&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94867&fm=153015386205787&tin=02508201610067®Number=0000000000090555&sum=50000 [10:12:39]OFD Sender: Processing packet 94867 [packets to send 30, broken 29] [10:12:39]ProducePacketName [10:12:39]name=ofd_packets/00094867 [10:12:39]OFD Sender: To server: pG, [10:12:39]CommunicateWithHost lk.salyk.kg:30040 [10:12:39]ConnectInit lk.salyk.kg [10:12:39]written 0, free lines is 4095 [10:12:39]Connected sock=11 [10:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D7 77 07 01 47 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 23 D9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 72 01 00 35 04 06 00 8B 2A AB BD 6E 5B 30 65 30 FD DB 3A 53 22 [10:12: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 31 31 4F 00 00 00 3F 3A 47 00 C2 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 72 01 00 F4 03 04 00 7C 84 EE 65 B6 04 01 00 00 75 41 BE F0 43 D2 8F 27 [10:12:39]CommunicateWithHost err = 0 [10:12:39]CheckOFDResponse [10:12:39]1017 (14) - 77093643461234 [10:12:39]1041 (16) - 0000000000874811 [10:12:39]1040 (4) - 94867 [10:12:39]1012 (4) - 11.03.2024 04:11 [10:12:39]1206 (1) - 0 [10:12:39]OFD Sender: Remove packet 94867 [10:12:39]ProducePacketName [10:12:39]name=ofd_packets/00094867 [10:12:39]NVStorageDeleteData [10:12:39]Write to MH i2c: 01 00 00 D3 83 56 [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: 01 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: 01 07 00 [10:12:39]MH_I2C_Read... [10:12:39]Read from MH i2c: 01 07 00 D3 83 00 80 00 00 00 4A 0D 34 [10:12:39]RasterBufferAndPrint [10:12:39]line [10:12:39]line [10:12:39]line [10:12:39]line [10:12:39]line [10:12:39]written 0, free lines is 3408 [10:12:39]process_action close_receipt done [10:12:39]requested_data is exist [10:12:39]produce_requested_data [10:12:39]requested_item fm.sn is exist - process it [10:12:39]wFMCommunicate request_size=4 [10:12:39]MH_SAM_APDU [10:12:39]CAPDU: 80 11 00 00 [10:12:39]Write to MH i2c: E2 08 00 DA 83 80 11 00 00 00 00 00 00 D7 [10:12:39]Write i2c OK [10:12:39]MH_I2C_Read... [10:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:40]Read from MH i2c: E2 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: E2 17 00 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: E2 17 00 DA 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 27 [10:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:12:40]wFMCommunicate OK [10:12:40]requested_item fd.num is exist - process it [10:12:40]SAM_PROTO_GetFieldsCounters [10:12:40]wFMCommunicate request_size=4 [10:12:40]MH_SAM_APDU [10:12:40]CAPDU: 80 13 00 00 [10:12:40]Write to MH i2c: E2 08 00 DB 83 80 13 00 00 00 00 00 00 DA [10:12:40]Write i2c OK [10:12:40]MH_I2C_Read... [10:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:40]Read from MH i2c: E2 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: E2 62 00 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: E2 62 00 DB 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 93 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [10:12: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 93 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:40]wFMCommunicate OK [10:12:40]SAM_PROTO_GetFieldsCounters done [10:12:40]requested_item shift.num is exist - process it [10:12:40]requested_item shift.opened is exist - process it [10:12:40]req_shift_opened [10:12:40]FM_GetShiftState [10:12:40]SAM_PROTO_GetShiftState [10:12:40]wFMCommunicate request_size=4 [10:12:40]MH_SAM_APDU [10:12:40]CAPDU: 80 13 01 00 [10:12:40]Write to MH i2c: E2 08 00 DC 83 80 13 01 00 00 00 00 00 DC [10:12:40]Write i2c OK [10:12:40]MH_I2C_Read... [10:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:40]Read from MH i2c: E2 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: E2 0E 00 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: E2 0E 00 DC 83 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 78 [10:12:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:12:40]wFMCommunicate OK [10:12:40]SAM_PROTO_GetShiftState done [10:12:40]FM_GetShiftState done [10:12:40]req_shift_opened done [10:12:40]requested_item shift.open_date is exist - process it [10:12:40]req_shift_open_date [10:12:40]req_shift_open_date done [10:12:40]produce_requested_data done [10:12:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94867,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:12:40]process_action_free close_receipt [10:12:40]json_value_free [10:12:40]json_value_free done [10:12:40]process_json_proto returns [10:12:40]Send response to host [10:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94867,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:12:40]free response buf [10:12:40]execute_script done [10:12:40]execute_script returns [10:12:40]free content buf [10:12:40]Sock 9.Close socket [10:12:40]Sock 9.Thread stoped [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:31]accept exits with 7 [10:13:31]New connection [10:13:31]New thread 3066871140 created [10:13:31]Thread 3067014500 joined [10:13:31]Waiting for new connection... [10:13:31] Sock 7.Parse request [10:13:31]Sock 7.Check first char [10:13:31]Sock 7.First char is OK [10:13:31]request: POST /json_proto HTTP/1.0 [10:13:31]Method: POST [10:13:31]URL: /json_proto [10:13:31]Method is POST - this is cgi request [10:13:31]url: /json_proto [10:13:31]query_string will be loaded in cgi processing [10:13:31]execute_cgi json_proto POST (null) [10:13:31]execute_cgi path=json_proto method=POST [10:13:31]POST find Content-Length [10:13:31]Host: 172.17.62.67:8080 [10:13:31]Content-Length: 670 [10:13:31]Content-Type: application/json [10:13:31] [10:13:31]POST finish read [10:13:31]Found Content-Length = 670 [10:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "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:13:31]execute_script... [10:13: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)195817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "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:13:31]POST & json_proto [10:13:31]process_json_proto [10:13:31]json parsed OK: [10:13:31]protocol is kg_v1.0 [10:13:31]action value=close_receipt [10:13:31]process_action close_receipt [10:13:31]cmd_close_receipt [10:13:31]MH_GetDate [10:13:31]Write to MH i2c: F0 00 00 DD 83 4F [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: F0 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: F0 05 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: F0 05 00 DD 83 00 59 D9 EE 65 D9 [10:13:31]GetLastDocTimeStamp 1710151971 [10:13:31]current date 1710152025 [10:13:31]FM_GetShiftState [10:13:31]SAM_PROTO_GetShiftState [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 13 01 00 [10:13:31]Write to MH i2c: E2 08 00 DE 83 80 13 01 00 00 00 00 00 DE [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0E 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0E 00 DE 83 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7A [10:13:31]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_GetShiftState done [10:13:31]FM_GetShiftState done [10:13:31]opened in 1710115571 [10:13:31]opened+sec_in_day 1710201971 [10:13:31]quantity*price = 40001 [10:13:31]sum+1 = 40002 [10:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 43 11.03.2024 10:13 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94868 ФПД: 63204532030170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T101345&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94868&fm=63204532030170&tin=02508201610067®Number=0000000000090555&sum=40000 [10:13:32]StoreToDocumentArchive [10:13:32]shift 326 fd 94868 [10:13:32]save to /storage/0326/doc_00094868 [10:13:32]save last doc name /storage/0326/doc_00094868 to /storage/kkm_last_doc_name [10:13:32]save OK [10:13:32]Clear old archive folders... [10:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:13:32]tlvbuf is 003F6AE0 [10:13:32]SAM_PROTO_ClearQueue [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 09 00 00 [10:13:32]Write to MH i2c: E2 08 00 EB 83 80 09 00 00 00 00 00 00 E0 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 EB 83 00 90 00 E2 [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]SAM_PROTO_ClearQueue done [10:13:32]KKMCreateOFDPacket [10:13:32]OFDProtocolAddRootSTLVToBuf [10:13:32]FM_MakeSignedData [10:13:32]FM_MakeSignedData [10:13:32]SAM_PROTO_SignData [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 0D 01 02 [10:13:32]Write to MH i2c: E2 08 00 EC 83 80 0D 01 02 00 00 00 00 E8 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 03 00 EC 83 00 90 00 E3 [10:13:32]RAPDU: 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=255 [10:13:32]MH_SAM_APDU [10:13:32]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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 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 98 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 2B 00 00 00 F4 03 04 00 59 D9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 72 01 00 35 04 06 00 [10:13:32]Write to MH i2c: E2 02 01 ED 83 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 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 98 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 2B 00 00 00 F4 03 04 00 59 D9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 72 01 00 35 04 06 00 00 00 C3 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:33]Read from MH i2c: E2 03 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 03 00 ED 83 00 90 00 E4 [10:13:33]RAPDU: 90 00 [10:13:33]wFMCommunicate OK [10:13:33]wFMCommunicate request_size=11 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 0D 02 02 06 39 7B F3 AE 0A DA [10:13:33]Write to MH i2c: E2 0E 00 EE 83 80 0D 02 02 06 00 39 7B F3 AE 0A DA 00 00 30 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 03 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 03 00 EE 83 00 90 00 E5 [10:13:33]RAPDU: 90 00 [10:13:33]wFMCommunicate OK [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 0D 03 02 [10:13:33]Write to MH i2c: E2 08 00 EF 83 80 0D 03 02 00 00 00 00 ED [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 0B 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 0B 00 EF 83 00 39 0B 7F BC C3 5D 70 EC 90 00 E9 [10:13:33]RAPDU: 39 0B 7F BC C3 5D 70 EC 90 00 [10:13:33]wFMCommunicate OK [10:13:33]SAM_PROTO_SignData done [10:13:33]FM_MakeSignedData done [10:13:33]CreateOFDProtocolMessage [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 11 00 00 [10:13:33]Write to MH i2c: E2 08 00 F0 83 80 11 00 00 00 00 00 00 ED [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 F0 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3D [10:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:13:33]wFMCommunicate OK [10:13:33]CreateOFDProtocolMessage done [10:13:33]OFDSenderStorePacket 94868 [10:13:33]StoreOFDPacket docnum=94868 [10:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 18 A8 08 01 40 8C 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 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 98 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 2B 00 00 00 F4 03 04 00 59 D9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 72 01 00 35 04 06 00 39 7B F3 AE 0A DA 39 0B 7F BC C3 5D 70 EC [10:13:33]CheckFolder [10:13:33]dirname=/storage/ofd_packets [10:13:33]CheckFolder done [10:13:33]ProducePacketName [10:13:33]name=ofd_packets/00094868 [10:13:33]NVStorageSaveData ofd_packets/00094868 [10:13:33]File name is /storage/ofd_packets/00094868 [10:13:33]Write 302 bytes [10:13:33]NVStorageSaveData done [10:13:33]OFDSenderStorePacket done [10:13:33]KKMCreateOFDPacket done [10:13:33]NVStorageSaveData kkm_last_timestamp [10:13:33]File name is /storage/kkm_last_timestamp [10:13:33]Write 4 bytes [10:13:33]NVStorageSaveData done [10:13:33]ExternCall_PrintAddStr [10:13:33]wPrintStart [10:13:33]Write to MH i2c: 01 00 00 F1 83 74 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 07 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 07 00 F1 83 00 80 00 00 00 FF 0F 09 [10:13:33]RasterBufferAndPrint [10:13:33]line Счет N : (1)195817 [10:13:33]line ИНН: 02508201610067 [10:13:33]line Контрольно-Кассовый Чек [10:13:33]line ПРОДАЖА [10:13:33]line ТРК (МРК, ГНК) : 43 [10:13:33]line Товар: 2710124130 [10:13:33]line SUPER 92-К-5 [10:13:33]line 6.260 * 63.90 [10:13:33]line = 400.01 [10:13:33]line НДС 12% НСП 1% [10:13:33]line > о реализуемом товаре [10:13:33]line ОКРУГЛЕНИЕ: -0.01 [10:13:33]line ИТОГО: 400.00 [10:13:33]line Внесено: 400.00 [10:13:33]line СДАЧА: 0.00 [10:13:33]line НСП 1% : 3.54 [10:13:33]line НДС 12% : 42.48 [10:13:33]line Наличными: 400.00 [10:13:33]line Безнал.: 0.00 [10:13:33]line Место: АЗС № 6 "Партнер Нефть" [10:13:33]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:13:33]line СНО: Общий режим [10:13:33]line Чек 43 11.03.2024 10:13 [10:13:33]line Смена: 326 ФФД: 1.0 [10:13:33]line ЗНМ: 0300000009 [10:13:33]line РНМ: 0000000000090555 [10:13:33]line Версия ККМ: 001 [10:13:33]line ФМ: 0000000000874811 [10:13:33]line ФД: 94868 [10:13:33]line ФПД: 63204532030170 [10:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T101345&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94868&fm=63204532030170&tin=02508201610067®Number=0000000000090555&sum=40000 [10:13:33]OFD Sender: Processing packet 94868 [packets to send 30, broken 29] [10:13:33]ProducePacketName [10:13:33]name=ofd_packets/00094868 [10:13:33]OFD Sender: To server: pG, [10:13:33]CommunicateWithHost lk.salyk.kg:30040 [10:13:33]ConnectInit lk.salyk.kg [10:13:33]written 0, free lines is 4095 [10:13:33]Connected sock=10 [10:13: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 31 31 10 01 00 00 18 A8 08 01 40 8C 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 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 98 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 2B 00 00 00 F4 03 04 00 59 D9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 72 01 00 35 04 06 00 39 7B F3 AE 0A DA 39 0B 7F BC C3 5D 70 EC [10:13: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 31 31 4F 00 00 00 B7 93 47 00 FF 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 72 01 00 F4 03 04 00 B3 84 EE 65 B6 04 01 00 00 BF 1C AD 77 9E 4E 0D DD [10:13:33]CommunicateWithHost err = 0 [10:13:33]CheckOFDResponse [10:13:33]1017 (14) - 77093643461234 [10:13:33]1041 (16) - 0000000000874811 [10:13:33]1040 (4) - 94868 [10:13:33]1012 (4) - 11.03.2024 04:12 [10:13:33]1206 (1) - 0 [10:13:33]OFD Sender: Remove packet 94868 [10:13:33]ProducePacketName [10:13:33]name=ofd_packets/00094868 [10:13:33]NVStorageDeleteData [10:13:34]Write to MH i2c: 01 00 00 1C 84 A0 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: 01 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: 01 07 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: 01 07 00 1C 84 00 80 00 00 00 4B 0D 7F [10:13:34]RasterBufferAndPrint [10:13:34]line [10:13:34]line [10:13:34]line [10:13:34]line [10:13:34]line [10:13:34]written 0, free lines is 3411 [10:13:34]process_action close_receipt done [10:13:34]requested_data is exist [10:13:34]produce_requested_data [10:13:34]requested_item fm.sn is exist - process it [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 11 00 00 [10:13:34]Write to MH i2c: E2 08 00 23 84 80 11 00 00 00 00 00 00 21 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:34]Read from MH i2c: E2 17 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 17 00 23 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 71 [10:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:13:34]wFMCommunicate OK [10:13:34]requested_item fd.num is exist - process it [10:13:34]SAM_PROTO_GetFieldsCounters [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 13 00 00 [10:13:34]Write to MH i2c: E2 08 00 24 84 80 13 00 00 00 00 00 00 24 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 62 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 62 00 24 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 94 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:13: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 94 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:34]wFMCommunicate OK [10:13:34]SAM_PROTO_GetFieldsCounters done [10:13:34]requested_item shift.num is exist - process it [10:13:34]requested_item shift.opened is exist - process it [10:13:34]req_shift_opened [10:13:34]FM_GetShiftState [10:13:34]SAM_PROTO_GetShiftState [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 13 01 00 [10:13:34]Write to MH i2c: E2 08 00 25 84 80 13 01 00 00 00 00 00 26 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:34]OFD Sender: No OFD packet to send [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 0E 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 0E 00 25 84 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C2 [10:13:34]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:13:34]wFMCommunicate OK [10:13:34]SAM_PROTO_GetShiftState done [10:13:34]FM_GetShiftState done [10:13:34]req_shift_opened done [10:13:34]requested_item shift.open_date is exist - process it [10:13:34]req_shift_open_date [10:13:34]req_shift_open_date done [10:13:34]produce_requested_data done [10:13:34]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94868,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:13:34]process_action_free close_receipt [10:13:34]json_value_free [10:13:34]json_value_free done [10:13:34]process_json_proto returns [10:13:34]Send response to host [10:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94868,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:13:34]free response buf [10:13:34]execute_script done [10:13:34]execute_script returns [10:13:34]free content buf [10:13:34]Sock 7.Close socket [10:13:34]Sock 7.Thread stoped [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:10]accept exits with 9 [10:21:10]New connection [10:21:10]New thread 3067014500 created [10:21:10]Thread 3066871140 joined [10:21:10]Waiting for new connection... [10:21:10] Sock 9.Parse request [10:21:10]Sock 9.Check first char [10:21:10]Sock 9.First char is OK [10:21:10]request: POST /json_proto HTTP/1.0 [10:21:10]Method: POST [10:21:10]URL: /json_proto [10:21:10]Method is POST - this is cgi request [10:21:10]url: /json_proto [10:21:10]query_string will be loaded in cgi processing [10:21:10]execute_cgi json_proto POST (null) [10:21:10]execute_cgi path=json_proto method=POST [10:21:10]POST find Content-Length [10:21:10]Host: 172.17.62.67:8080 [10:21:10]Content-Length: 677 [10:21:10]Content-Type: application/json [10:21:10] [10:21:10]POST finish read [10:21:10]Found Content-Length = 677 [10:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:10]execute_script... [10:21: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)195818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:10]POST & json_proto [10:21:10]process_json_proto [10:21:10]json parsed OK: [10:21:10]protocol is kg_v1.0 [10:21:10]action value=close_receipt [10:21:10]process_action close_receipt [10:21:10]cmd_close_receipt [10:21:10]MH_GetDate [10:21:10]Write to MH i2c: F0 00 00 26 84 99 [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: F0 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: F0 05 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: F0 05 00 26 84 00 23 DB EE 65 EF [10:21:10]GetLastDocTimeStamp 1710152025 [10:21:10]current date 1710152483 [10:21:10]FM_GetShiftState [10:21:10]SAM_PROTO_GetShiftState [10:21:10]wFMCommunicate request_size=4 [10:21:10]MH_SAM_APDU [10:21:10]CAPDU: 80 13 01 00 [10:21:10]Write to MH i2c: E2 08 00 27 84 80 13 01 00 00 00 00 00 28 [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:10]Read from MH i2c: E2 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 0E 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: E2 0E 00 27 84 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C4 [10:21:10]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:21:10]wFMCommunicate OK [10:21:10]SAM_PROTO_GetShiftState done [10:21:10]FM_GetShiftState done [10:21:10]opened in 1710115571 [10:21:10]opened+sec_in_day 1710201971 [10:21:10]quantity*price = 20002 [10:21:10]sum+1 = 20003 [10:21:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 44 11.03.2024 10:21 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94869 ФПД: 149076259465209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T102123&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94869&fm=149076259465209&tin=02508201610067®Number=0000000000090555&sum=20000 [10:21:11]StoreToDocumentArchive [10:21:11]shift 326 fd 94869 [10:21:11]save to /storage/0326/doc_00094869 [10:21:11]save last doc name /storage/0326/doc_00094869 to /storage/kkm_last_doc_name [10:21:11]save OK [10:21:11]Clear old archive folders... [10:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:11]tlvbuf is 001B40C0 [10:21:11]SAM_PROTO_ClearQueue [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 09 00 00 [10:21:11]Write to MH i2c: E2 08 00 34 84 80 09 00 00 00 00 00 00 2A [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 34 84 00 90 00 2C [10:21:11]RAPDU: 90 00 [10:21:11]wFMCommunicate OK [10:21:11]SAM_PROTO_ClearQueue done [10:21:11]KKMCreateOFDPacket [10:21:11]OFDProtocolAddRootSTLVToBuf [10:21:11]FM_MakeSignedData [10:21:11]FM_MakeSignedData [10:21:11]SAM_PROTO_SignData [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 0D 01 02 [10:21:11]Write to MH i2c: E2 08 00 35 84 80 0D 01 02 00 00 00 00 32 [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 35 84 00 90 00 2D [10:21:11]RAPDU: 90 00 [10:21:11]wFMCommunicate OK [10:21:11]wFMCommunicate request_size=255 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 23 DB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 72 01 00 35 04 06 00 87 [10:21:11]Write to MH i2c: E2 02 01 36 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 23 DB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 72 01 00 35 04 06 00 87 00 00 FE [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 36 84 00 90 00 2E [10:21:11]RAPDU: 90 00 [10:21:11]wFMCommunicate OK [10:21:11]wFMCommunicate request_size=10 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 0D 02 02 05 95 85 7D 67 F9 [10:21:11]Write to MH i2c: E2 0D 00 37 84 80 0D 02 02 05 00 95 85 7D 67 F9 00 00 36 [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 37 84 00 90 00 2F [10:21:11]RAPDU: 90 00 [10:21:11]wFMCommunicate OK [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 0D 03 02 [10:21:11]Write to MH i2c: E2 08 00 38 84 80 0D 03 02 00 00 00 00 37 [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0B 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0B 00 38 84 00 A1 1D 1E BB 40 B1 34 05 90 00 F9 [10:21:11]RAPDU: A1 1D 1E BB 40 B1 34 05 90 00 [10:21:11]wFMCommunicate OK [10:21:11]SAM_PROTO_SignData done [10:21:11]FM_MakeSignedData done [10:21:11]CreateOFDProtocolMessage [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 11 00 00 [10:21:11]Write to MH i2c: E2 08 00 39 84 80 11 00 00 00 00 00 00 37 [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 17 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 17 00 39 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 87 [10:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:21:11]wFMCommunicate OK [10:21:11]CreateOFDProtocolMessage done [10:21:11]OFDSenderStorePacket 94869 [10:21:11]StoreOFDPacket docnum=94869 [10:21:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 14 59 07 01 8F BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 23 DB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 72 01 00 35 04 06 00 87 95 85 7D 67 F9 A1 1D 1E BB 40 B1 34 05 [10:21:11]CheckFolder [10:21:11]dirname=/storage/ofd_packets [10:21:11]CheckFolder done [10:21:11]ProducePacketName [10:21:11]name=ofd_packets/00094869 [10:21:11]NVStorageSaveData ofd_packets/00094869 [10:21:11]File name is /storage/ofd_packets/00094869 [10:21:11]Write 301 bytes [10:21:11]NVStorageSaveData done [10:21:11]OFDSenderStorePacket done [10:21:11]KKMCreateOFDPacket done [10:21:11]NVStorageSaveData kkm_last_timestamp [10:21:11]File name is /storage/kkm_last_timestamp [10:21:11]Write 4 bytes [10:21:11]NVStorageSaveData done [10:21:11]ExternCall_PrintAddStr [10:21:11]wPrintStart [10:21:11]Write to MH i2c: 01 00 00 3A 84 BE [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: 01 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: 01 07 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: 01 07 00 3A 84 00 80 00 00 00 FF 0F 53 [10:21:11]RasterBufferAndPrint [10:21:11]line Счет N : (1)195818 [10:21:11]line ИНН: 02508201610067 [10:21:11]line Контрольно-Кассовый Чек [10:21:11]line ПРОДАЖА [10:21:11]line ТРК (МРК, ГНК) : 42 [10:21:11]line Товар: 2710124130 [10:21:11]line Аи-92-К-5 [10:21:11]line 3.180 * 62.90 [10:21:11]line = 200.02 [10:21:11]line НДС 12% НСП 1% [10:21:11]line > о реализуемом товаре [10:21:11]line ОКРУГЛЕНИЕ: -0.02 [10:21:11]line ИТОГО: 200.00 [10:21:11]line Внесено: 200.00 [10:21:11]line СДАЧА: 0.00 [10:21:11]line НСП 1% : 1.77 [10:21:11]line НДС 12% : 21.24 [10:21:11]line Наличными: 200.00 [10:21:11]line Безнал.: 0.00 [10:21:11]line Место: АЗС № 6 "Партнер Нефть" [10:21:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:21:11]line СНО: Общий режим [10:21:11]line Чек 44 11.03.2024 10:21 [10:21:11]line Смена: 326 ФФД: 1.0 [10:21:11]line ЗНМ: 0300000009 [10:21:11]line РНМ: 0000000000090555 [10:21:11]line Версия ККМ: 001 [10:21:11]line ФМ: 0000000000874811 [10:21:11]line ФД: 94869 [10:21:11]line ФПД: 149076259465209 [10:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T102123&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94869&fm=149076259465209&tin=02508201610067®Number=0000000000090555&sum=20000 [10:21:12]OFD Sender: Processing packet 94869 [packets to send 30, broken 29] [10:21:12]ProducePacketName [10:21:12]name=ofd_packets/00094869 [10:21:12]OFD Sender: To server: pG, [10:21:12]CommunicateWithHost lk.salyk.kg:30040 [10:21:12]ConnectInit lk.salyk.kg [10:21:12]written 0, free lines is 4095 [10:21:12]Connected sock=10 [10:21: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 31 31 0F 01 00 00 14 59 07 01 8F BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 23 DB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 72 01 00 35 04 06 00 87 95 85 7D 67 F9 A1 1D 1E BB 40 B1 34 05 [10:21: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 31 31 4F 00 00 00 70 80 47 00 39 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 72 01 00 F4 03 04 00 7D 86 EE 65 B6 04 01 00 00 A2 6E 9B B4 07 40 37 5C [10:21:12]CommunicateWithHost err = 0 [10:21:12]CheckOFDResponse [10:21:12]1017 (14) - 77093643461234 [10:21:12]1041 (16) - 0000000000874811 [10:21:12]1040 (4) - 94869 [10:21:12]1012 (4) - 11.03.2024 04:20 [10:21:12]1206 (1) - 0 [10:21:12]OFD Sender: Remove packet 94869 [10:21:12]ProducePacketName [10:21:12]name=ofd_packets/00094869 [10:21:12]NVStorageDeleteData [10:21:12]Write to MH i2c: 01 00 00 65 84 E9 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 07 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 07 00 65 84 00 80 00 00 00 48 0D C5 [10:21:12]RasterBufferAndPrint [10:21:12]line [10:21:12]line [10:21:12]line [10:21:12]line [10:21:12]line [10:21:12]written 0, free lines is 3406 [10:21:12]process_action close_receipt done [10:21:12]requested_data is exist [10:21:12]produce_requested_data [10:21:12]requested_item fm.sn is exist - process it [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 11 00 00 [10:21:12]Write to MH i2c: E2 08 00 6C 84 80 11 00 00 00 00 00 00 6A [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:12]Read from MH i2c: E2 17 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 17 00 6C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [10:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:21:12]wFMCommunicate OK [10:21:12]requested_item fd.num is exist - process it [10:21:12]SAM_PROTO_GetFieldsCounters [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 13 00 00 [10:21:12]Write to MH i2c: E2 08 00 6D 84 80 13 00 00 00 00 00 00 6D [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 62 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 62 00 6D 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 95 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [10:21: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 95 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:12]wFMCommunicate OK [10:21:12]SAM_PROTO_GetFieldsCounters done [10:21:12]requested_item shift.num is exist - process it [10:21:12]requested_item shift.opened is exist - process it [10:21:12]req_shift_opened [10:21:12]FM_GetShiftState [10:21:12]SAM_PROTO_GetShiftState [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 13 01 00 [10:21:12]Write to MH i2c: E2 08 00 6E 84 80 13 01 00 00 00 00 00 6F [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0E 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0E 00 6E 84 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0B [10:21:12]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:21:12]wFMCommunicate OK [10:21:12]SAM_PROTO_GetShiftState done [10:21:12]FM_GetShiftState done [10:21:12]req_shift_opened done [10:21:12]requested_item shift.open_date is exist - process it [10:21:12]req_shift_open_date [10:21:12]req_shift_open_date done [10:21:12]produce_requested_data done [10:21:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94869,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:21:12]process_action_free close_receipt [10:21:12]json_value_free [10:21:12]json_value_free done [10:21:12]process_json_proto returns [10:21:12]Send response to host [10:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94869,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:21:12]free response buf [10:21:12]execute_script done [10:21:12]execute_script returns [10:21:12]free content buf [10:21:12]Sock 9.Close socket [10:21:12]Sock 9.Thread stoped [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]accept exits with 7 [10:22:12]New connection [10:22:12]New thread 3066871140 created [10:22:12]Thread 3067014500 joined [10:22:12]Waiting for new connection... [10:22:12] Sock 7.Parse request [10:22:12]Sock 7.Check first char [10:22:12]Sock 7.First char is OK [10:22:12]request: POST /json_proto HTTP/1.0 [10:22:12]Method: POST [10:22:12]URL: /json_proto [10:22:12]Method is POST - this is cgi request [10:22:12]url: /json_proto [10:22:12]query_string will be loaded in cgi processing [10:22:12]execute_cgi json_proto POST (null) [10:22:12]execute_cgi path=json_proto method=POST [10:22:12]POST find Content-Length [10:22:12]Host: 172.17.62.67:8080 [10:22:12]Content-Length: 677 [10:22:12]Content-Type: application/json [10:22:12] [10:22:12]POST finish read [10:22:12]Found Content-Length = 677 [10:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "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" ] } } [10:22:12]execute_script... [10:22: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)195819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "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" ] } } [10:22:12]POST & json_proto [10:22:12]process_json_proto [10:22:12]json parsed OK: [10:22:12]protocol is kg_v1.0 [10:22:12]action value=close_receipt [10:22:12]process_action close_receipt [10:22:12]cmd_close_receipt [10:22:12]MH_GetDate [10:22:12]Write to MH i2c: F0 00 00 6F 84 E2 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: F0 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: F0 05 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: F0 05 00 6F 84 00 62 DB EE 65 77 [10:22:12]GetLastDocTimeStamp 1710152483 [10:22:12]current date 1710152546 [10:22:12]FM_GetShiftState [10:22:12]SAM_PROTO_GetShiftState [10:22:12]wFMCommunicate request_size=4 [10:22:12]MH_SAM_APDU [10:22:12]CAPDU: 80 13 01 00 [10:22:12]Write to MH i2c: E2 08 00 70 84 80 13 01 00 00 00 00 00 71 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:12]Read from MH i2c: E2 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: E2 0E 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: E2 0E 00 70 84 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0D [10:22:12]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:22:12]wFMCommunicate OK [10:22:12]SAM_PROTO_GetShiftState done [10:22:12]FM_GetShiftState done [10:22:12]opened in 1710115571 [10:22:12]opened+sec_in_day 1710201971 [10:22:12]quantity*price = 60006 [10:22:12]sum+1 = 60008 [10:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 45 11.03.2024 10:22 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94870 ФПД: 92828190474156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T102226&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94870&fm=92828190474156&tin=02508201610067®Number=0000000000090555&sum=60000 [10:22:13]StoreToDocumentArchive [10:22:13]shift 326 fd 94870 [10:22:13]save to /storage/0326/doc_00094870 [10:22:13]save last doc name /storage/0326/doc_00094870 to /storage/kkm_last_doc_name [10:22:13]save OK [10:22:13]Clear old archive folders... [10:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:13]tlvbuf is 00320AA0 [10:22:13]SAM_PROTO_ClearQueue [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 09 00 00 [10:22:13]Write to MH i2c: E2 08 00 7D 84 80 09 00 00 00 00 00 00 73 [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 7D 84 00 90 00 75 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]SAM_PROTO_ClearQueue done [10:22:14]KKMCreateOFDPacket [10:22:14]OFDProtocolAddRootSTLVToBuf [10:22:14]FM_MakeSignedData [10:22:14]FM_MakeSignedData [10:22:14]SAM_PROTO_SignData [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 01 02 [10:22:14]Write to MH i2c: E2 08 00 7E 84 80 0D 01 02 00 00 00 00 7B [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 7E 84 00 90 00 76 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=255 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 2D 00 00 00 F4 03 04 00 62 DB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 72 01 00 35 04 06 00 54 [10:22:14]Write to MH i2c: E2 02 01 7F 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 2D 00 00 00 F4 03 04 00 62 DB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 72 01 00 35 04 06 00 54 00 00 EB [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 7F 84 00 90 00 77 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=10 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 02 02 05 6D 3F 51 7F AC [10:22:14]Write to MH i2c: E2 0D 00 80 84 80 0D 02 02 05 00 6D 3F 51 7F AC 00 00 B0 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 80 84 00 90 00 78 [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 03 02 [10:22:14]Write to MH i2c: E2 08 00 81 84 80 0D 03 02 00 00 00 00 80 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 0B 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 0B 00 81 84 00 29 67 D1 95 B9 E4 D9 A8 90 00 95 [10:22:14]RAPDU: 29 67 D1 95 B9 E4 D9 A8 90 00 [10:22:14]wFMCommunicate OK [10:22:14]SAM_PROTO_SignData done [10:22:14]FM_MakeSignedData done [10:22:14]CreateOFDProtocolMessage [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 11 00 00 [10:22:14]Write to MH i2c: E2 08 00 82 84 80 11 00 00 00 00 00 00 80 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 17 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 17 00 82 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D0 [10:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:22:14]wFMCommunicate OK [10:22:14]CreateOFDProtocolMessage done [10:22:14]OFDSenderStorePacket 94870 [10:22:14]StoreOFDPacket docnum=94870 [10:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B3 B3 07 01 40 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 2D 00 00 00 F4 03 04 00 62 DB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 72 01 00 35 04 06 00 54 6D 3F 51 7F AC 29 67 D1 95 B9 E4 D9 A8 [10:22:14]CheckFolder [10:22:14]dirname=/storage/ofd_packets [10:22:14]CheckFolder done [10:22:14]ProducePacketName [10:22:14]name=ofd_packets/00094870 [10:22:14]NVStorageSaveData ofd_packets/00094870 [10:22:14]File name is /storage/ofd_packets/00094870 [10:22:14]Write 301 bytes [10:22:14]NVStorageSaveData done [10:22:14]OFDSenderStorePacket done [10:22:14]KKMCreateOFDPacket done [10:22:14]NVStorageSaveData kkm_last_timestamp [10:22:14]File name is /storage/kkm_last_timestamp [10:22:14]Write 4 bytes [10:22:14]NVStorageSaveData done [10:22:14]ExternCall_PrintAddStr [10:22:14]wPrintStart [10:22:14]Write to MH i2c: 01 00 00 83 84 07 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: 01 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: 01 07 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: 01 07 00 83 84 00 80 00 00 00 FF 0F 9C [10:22:14]RasterBufferAndPrint [10:22:14]line Счет N : (1)195819 [10:22:14]line ИНН: 02508201610067 [10:22:14]line Контрольно-Кассовый Чек [10:22:14]line ПРОДАЖА [10:22:14]line ТРК (МРК, ГНК) : 42 [10:22:14]line Товар: 2710124130 [10:22:14]line Аи-92-К-5 [10:22:14]line 9.540 * 62.90 [10:22:14]line = 600.07 [10:22:14]line НДС 12% НСП 1% [10:22:14]line > о реализуемом товаре [10:22:14]line ОКРУГЛЕНИЕ: -0.07 [10:22:14]line ИТОГО: 600.00 [10:22:14]line Внесено: 600.00 [10:22:14]line СДАЧА: 0.00 [10:22:14]line НСП 1% : 5.31 [10:22:14]line НДС 12% : 63.72 [10:22:14]line Наличными: 600.00 [10:22:14]line Безнал.: 0.00 [10:22:14]line Место: АЗС № 6 "Партнер Нефть" [10:22:14]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:22:14]line СНО: Общий режим [10:22:14]line Чек 45 11.03.2024 10:22 [10:22:14]line Смена: 326 ФФД: 1.0 [10:22:14]line ЗНМ: 0300000009 [10:22:14]line РНМ: 0000000000090555 [10:22:14]line Версия ККМ: 001 [10:22:14]line ФМ: 0000000000874811 [10:22:14]line ФД: 94870 [10:22:14]line ФПД: 92828190474156 [10:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T102226&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94870&fm=92828190474156&tin=02508201610067®Number=0000000000090555&sum=60000 [10:22:14]OFD Sender: Processing packet 94870 [packets to send 30, broken 29] [10:22:14]ProducePacketName [10:22:14]name=ofd_packets/00094870 [10:22:14]OFD Sender: To server: pG, [10:22:14]CommunicateWithHost lk.salyk.kg:30040 [10:22:14]ConnectInit lk.salyk.kg [10:22:14]written 0, free lines is 4095 [10:22:14]Connected sock=10 [10:22: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 31 31 0F 01 00 00 B3 B3 07 01 40 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 2D 00 00 00 F4 03 04 00 62 DB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 72 01 00 35 04 06 00 54 6D 3F 51 7F AC 29 67 D1 95 B9 E4 D9 A8 [10:22: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 31 31 4F 00 00 00 C5 A6 47 00 67 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 31 31 10 04 04 00 96 72 01 00 F4 03 04 00 BC 86 EE 65 B6 04 01 00 00 E7 4A 65 A9 28 35 D8 AA [10:22:15]CommunicateWithHost err = 0 [10:22:15]CheckOFDResponse [10:22:15]1017 (14) - 77093643461234 [10:22:15]1041 (16) - 0000000000874811 [10:22:15]1040 (4) - 94870 [10:22:15]1012 (4) - 11.03.2024 04:21 [10:22:15]1206 (1) - 0 [10:22:15]OFD Sender: Remove packet 94870 [10:22:15]ProducePacketName [10:22:15]name=ofd_packets/00094870 [10:22:15]NVStorageDeleteData [10:22:15]Write to MH i2c: 01 00 00 AE 84 32 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 AE 84 00 80 00 00 00 44 0D 0A [10:22:15]RasterBufferAndPrint [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]written 0, free lines is 3402 [10:22:15]process_action close_receipt done [10:22:15]requested_data is exist [10:22:15]produce_requested_data [10:22:15]requested_item fm.sn is exist - process it [10:22:15]wFMCommunicate request_size=4 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 11 00 00 [10:22:15]Write to MH i2c: E2 08 00 B5 84 80 11 00 00 00 00 00 00 B3 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 17 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 17 00 B5 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [10:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:22:15]wFMCommunicate OK [10:22:15]requested_item fd.num is exist - process it [10:22:15]SAM_PROTO_GetFieldsCounters [10:22:15]wFMCommunicate request_size=4 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 13 00 00 [10:22:15]Write to MH i2c: E2 08 00 B6 84 80 13 00 00 00 00 00 00 B6 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 62 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 62 00 B6 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 96 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [10:22: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 96 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:15]wFMCommunicate OK [10:22:15]SAM_PROTO_GetFieldsCounters done [10:22:15]requested_item shift.num is exist - process it [10:22:15]requested_item shift.opened is exist - process it [10:22:15]req_shift_opened [10:22:15]FM_GetShiftState [10:22:15]SAM_PROTO_GetShiftState [10:22:15]wFMCommunicate request_size=4 [10:22:15]MH_SAM_APDU [10:22:15]CAPDU: 80 13 01 00 [10:22:15]Write to MH i2c: E2 08 00 B7 84 80 13 01 00 00 00 00 00 B8 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:15]Read from MH i2c: E2 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 0E 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: E2 0E 00 B7 84 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 54 [10:22:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:22:15]wFMCommunicate OK [10:22:15]SAM_PROTO_GetShiftState done [10:22:15]FM_GetShiftState done [10:22:15]req_shift_opened done [10:22:15]requested_item shift.open_date is exist - process it [10:22:15]req_shift_open_date [10:22:15]req_shift_open_date done [10:22:15]produce_requested_data done [10:22:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94870,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:22:15]process_action_free close_receipt [10:22:15]json_value_free [10:22:15]json_value_free done [10:22:15]process_json_proto returns [10:22:15]Send response to host [10:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94870,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:22:15]free response buf [10:22:15]execute_script done [10:22:15]execute_script returns [10:22:15]free content buf [10:22:15]Sock 7.Close socket [10:22:15]Sock 7.Thread stoped [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:05]accept exits with 9 [10:25:05]New connection [10:25:05]New thread 3067014500 created [10:25:05]Thread 3066871140 joined [10:25:05]Waiting for new connection... [10:25:05] Sock 9.Parse request [10:25:05]Sock 9.Check first char [10:25:05]Sock 9.First char is OK [10:25:05]request: POST /json_proto HTTP/1.0 [10:25:05]Method: POST [10:25:05]URL: /json_proto [10:25:05]Method is POST - this is cgi request [10:25:05]url: /json_proto [10:25:05]query_string will be loaded in cgi processing [10:25:05]execute_cgi json_proto POST (null) [10:25:05]execute_cgi path=json_proto method=POST [10:25:05]POST find Content-Length [10:25:05]Host: 172.17.62.67:8080 [10:25:05]Content-Length: 806 [10:25:05]Content-Type: application/json [10:25:05] [10:25:05]POST finish read [10:25:05]Found Content-Length = 806 [10:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 100.000, "sum" : 7090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:05]execute_script... [10:25: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)195820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 100.000, "sum" : 7090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:05]POST & json_proto [10:25:05]process_json_proto [10:25:05]json parsed OK: [10:25:05]protocol is kg_v1.0 [10:25:05]action value=close_receipt [10:25:05]process_action close_receipt [10:25:05]cmd_close_receipt [10:25:05]MH_GetDate [10:25:05]Write to MH i2c: F0 00 00 B8 84 2B [10:25:05]Write i2c OK [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: F0 [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: F0 05 00 [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: F0 05 00 B8 84 00 0F DC EE 65 6E [10:25:05]GetLastDocTimeStamp 1710152546 [10:25:05]current date 1710152719 [10:25:05]FM_GetShiftState [10:25:05]SAM_PROTO_GetShiftState [10:25:05]wFMCommunicate request_size=4 [10:25:05]MH_SAM_APDU [10:25:05]CAPDU: 80 13 01 00 [10:25:05]Write to MH i2c: E2 08 00 B9 84 80 13 01 00 00 00 00 00 BA [10:25:05]Write i2c OK [10:25:05]MH_I2C_Read... [10:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:05]Read from MH i2c: E2 [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: E2 0E 00 [10:25:05]MH_I2C_Read... [10:25:05]Read from MH i2c: E2 0E 00 B9 84 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 56 [10:25:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:25:05]wFMCommunicate OK [10:25:05]SAM_PROTO_GetShiftState done [10:25:05]FM_GetShiftState done [10:25:05]opened in 1710115571 [10:25:05]opened+sec_in_day 1710201971 [10:25:05]quantity*price = 709000 [10:25:05]sum+1 = 709001 [10:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7090.00 НСП 1% : 62.74 НДС 12% : 752.92 Наличными: 0.00 Безнал.: 7090.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 46 11.03.2024 10:25 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94871 ФПД: 71340855955174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T102519&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94871&fm=71340855955174&tin=02508201610067®Number=0000000000090555&sum=709000 [10:25:06]StoreToDocumentArchive [10:25:06]shift 326 fd 94871 [10:25:06]save to /storage/0326/doc_00094871 [10:25:06]save last doc name /storage/0326/doc_00094871 to /storage/kkm_last_doc_name [10:25:06]save OK [10:25:06]Clear old archive folders... [10:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:25:06]tlvbuf is 0045A400 [10:25:06]SAM_PROTO_ClearQueue [10:25:06]wFMCommunicate request_size=4 [10:25:06]MH_SAM_APDU [10:25:06]CAPDU: 80 09 00 00 [10:25:06]Write to MH i2c: E2 08 00 C6 84 80 09 00 00 00 00 00 00 BC [10:25:06]Write i2c OK [10:25:06]MH_I2C_Read... [10:25:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:07]Read from MH i2c: E2 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 03 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 03 00 C6 84 00 90 00 BE [10:25:07]RAPDU: 90 00 [10:25:07]wFMCommunicate OK [10:25:07]SAM_PROTO_ClearQueue done [10:25:07]KKMCreateOFDPacket [10:25:07]OFDProtocolAddRootSTLVToBuf [10:25:07]FM_MakeSignedData [10:25:07]FM_MakeSignedData [10:25:07]SAM_PROTO_SignData [10:25:07]wFMCommunicate request_size=4 [10:25:07]MH_SAM_APDU [10:25:07]CAPDU: 80 0D 01 02 [10:25:07]Write to MH i2c: E2 08 00 C7 84 80 0D 01 02 00 00 00 00 C4 [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:07]Read from MH i2c: E2 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 03 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 03 00 C7 84 00 90 00 BF [10:25:07]RAPDU: 90 00 [10:25:07]wFMCommunicate OK [10:25:07]wFMCommunicate request_size=255 [10:25:07]MH_SAM_APDU [10:25:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 D1 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 0F DC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 72 01 00 35 04 06 00 40 E2 56 60 [10:25:07]Write to MH i2c: E2 02 01 C8 84 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 D1 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 0F DC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 72 01 00 35 04 06 00 40 E2 56 60 00 00 AC [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:07]Read from MH i2c: E2 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 03 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 03 00 C8 84 00 90 00 C0 [10:25:07]RAPDU: 90 00 [10:25:07]wFMCommunicate OK [10:25:07]wFMCommunicate request_size=7 [10:25:07]MH_SAM_APDU [10:25:07]CAPDU: 80 0D 02 02 02 8E E6 [10:25:07]Write to MH i2c: E2 0A 00 C9 84 80 0D 02 02 02 00 8E E6 00 00 3F [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:07]Read from MH i2c: E2 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 03 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 03 00 C9 84 00 90 00 C1 [10:25:07]RAPDU: 90 00 [10:25:07]wFMCommunicate OK [10:25:07]wFMCommunicate request_size=4 [10:25:07]MH_SAM_APDU [10:25:07]CAPDU: 80 0D 03 02 [10:25:07]Write to MH i2c: E2 08 00 CA 84 80 0D 03 02 00 00 00 00 C9 [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:07]Read from MH i2c: E2 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 0B 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 0B 00 CA 84 00 E3 98 82 26 2D 2C ED 05 90 00 38 [10:25:07]RAPDU: E3 98 82 26 2D 2C ED 05 90 00 [10:25:07]wFMCommunicate OK [10:25:07]SAM_PROTO_SignData done [10:25:07]FM_MakeSignedData done [10:25:07]CreateOFDProtocolMessage [10:25:07]wFMCommunicate request_size=4 [10:25:07]MH_SAM_APDU [10:25:07]CAPDU: 80 11 00 00 [10:25:07]Write to MH i2c: E2 08 00 CB 84 80 11 00 00 00 00 00 00 C9 [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:07]Read from MH i2c: E2 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 17 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: E2 17 00 CB 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 19 [10:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:25:07]wFMCommunicate OK [10:25:07]CreateOFDProtocolMessage done [10:25:07]OFDSenderStorePacket 94871 [10:25:07]StoreOFDPacket docnum=94871 [10:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 97 E9 04 01 1F 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 D1 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 0F DC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 72 01 00 35 04 06 00 40 E2 56 60 8E E6 E3 98 82 26 2D 2C ED 05 [10:25:07]CheckFolder [10:25:07]dirname=/storage/ofd_packets [10:25:07]CheckFolder done [10:25:07]ProducePacketName [10:25:07]name=ofd_packets/00094871 [10:25:07]NVStorageSaveData ofd_packets/00094871 [10:25:07]File name is /storage/ofd_packets/00094871 [10:25:07]Write 298 bytes [10:25:07]NVStorageSaveData done [10:25:07]OFDSenderStorePacket done [10:25:07]KKMCreateOFDPacket done [10:25:07]NVStorageSaveData kkm_last_timestamp [10:25:07]File name is /storage/kkm_last_timestamp [10:25:07]Write 4 bytes [10:25:07]NVStorageSaveData done [10:25:07]ExternCall_PrintAddStr [10:25:07]wPrintStart [10:25:07]Write to MH i2c: 01 00 00 CC 84 50 [10:25:07]Write i2c OK [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: 01 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: 01 07 00 [10:25:07]MH_I2C_Read... [10:25:07]Read from MH i2c: 01 07 00 CC 84 00 80 00 00 00 FF 0F E5 [10:25:07]RasterBufferAndPrint [10:25:07]line Счет N : (1)195820 [10:25:07]line ИНН: 02508201610067 [10:25:07]line Контрольно-Кассовый Чек [10:25:07]line ПРОДАЖА [10:25:07]line ТРК (МРК, ГНК) : 51 [10:25:07]line Товар: 2710194210 [10:25:07]line ДТ-К-5 [10:25:07]line 100.000 * 70.90 [10:25:07]line = 7090.00 [10:25:07]line НДС 12% НСП 1% [10:25:07]line > о реализуемом товаре [10:25:07]line ИТОГО: 7090.00 [10:25:07]line НСП 1% : 62.74 [10:25:07]line НДС 12% : 752.92 [10:25:07]line Наличными: 0.00 [10:25:07]line Безнал.: 7090.00 [10:25:07]line Место: АЗС № 6 "Партнер Нефть" [10:25:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:25:07]line СНО: Общий режим [10:25:07]line Чек 46 11.03.2024 10:25 [10:25:07]line Смена: 326 ФФД: 1.0 [10:25:07]line ЗНМ: 0300000009 [10:25:07]line РНМ: 0000000000090555 [10:25:07]line Версия ККМ: 001 [10:25:07]line Платежная система: О! деньги [10:25:07]line ФМ: 0000000000874811 [10:25:07]line ФД: 94871 [10:25:07]line ФПД: 71340855955174 [10:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T102519&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94871&fm=71340855955174&tin=02508201610067®Number=0000000000090555&sum=709000 [10:25:07]OFD Sender: Processing packet 94871 [packets to send 30, broken 29] [10:25:07]ProducePacketName [10:25:07]name=ofd_packets/00094871 [10:25:07]OFD Sender: To server: pG, [10:25:07]CommunicateWithHost lk.salyk.kg:30040 [10:25:07]ConnectInit lk.salyk.kg [10:25:07]written 0, free lines is 4095 [10:25:07]Connected sock=10 [10:25: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 31 31 0C 01 00 00 97 E9 04 01 1F 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 D1 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 0F DC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 72 01 00 35 04 06 00 40 E2 56 60 8E E6 E3 98 82 26 2D 2C ED 05 [10:25:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 9C F5 47 00 9A 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 72 01 00 F4 03 04 00 69 87 EE 65 B6 04 01 00 00 BB DC 7E 72 69 7D 9D F7 [10:25:08]CommunicateWithHost err = 0 [10:25:08]CheckOFDResponse [10:25:08]1017 (14) - 77093643461234 [10:25:08]1041 (16) - 0000000000874811 [10:25:08]1040 (4) - 94871 [10:25:08]1012 (4) - 11.03.2024 04:24 [10:25:08]1206 (1) - 0 [10:25:08]OFD Sender: Remove packet 94871 [10:25:08]ProducePacketName [10:25:08]name=ofd_packets/00094871 [10:25:08]NVStorageDeleteData [10:25:08]Write to MH i2c: 01 00 00 F6 84 7A [10:25:08]Write i2c OK [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: 01 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: 01 07 00 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: 01 07 00 F6 84 00 80 00 00 00 55 0D 63 [10:25:08]RasterBufferAndPrint [10:25:08]line [10:25:08]line [10:25:08]line [10:25:08]line [10:25:08]line [10:25:08]written 0, free lines is 3421 [10:25:08]process_action close_receipt done [10:25:08]requested_data is exist [10:25:08]produce_requested_data [10:25:08]requested_item fm.sn is exist - process it [10:25:08]wFMCommunicate request_size=4 [10:25:08]MH_SAM_APDU [10:25:08]CAPDU: 80 11 00 00 [10:25:08]Write to MH i2c: E2 08 00 FD 84 80 11 00 00 00 00 00 00 FB [10:25:08]Write i2c OK [10:25:08]MH_I2C_Read... [10:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:08]Read from MH i2c: E2 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 17 00 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 17 00 FD 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4B [10:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:25:08]wFMCommunicate OK [10:25:08]requested_item fd.num is exist - process it [10:25:08]SAM_PROTO_GetFieldsCounters [10:25:08]wFMCommunicate request_size=4 [10:25:08]MH_SAM_APDU [10:25:08]CAPDU: 80 13 00 00 [10:25:08]Write to MH i2c: E2 08 00 FE 84 80 13 00 00 00 00 00 00 FE [10:25:08]Write i2c OK [10:25:08]MH_I2C_Read... [10:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:08]Read from MH i2c: E2 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 62 00 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 62 00 FE 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 97 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [10:25: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 97 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:08]wFMCommunicate OK [10:25:08]SAM_PROTO_GetFieldsCounters done [10:25:08]requested_item shift.num is exist - process it [10:25:08]requested_item shift.opened is exist - process it [10:25:08]req_shift_opened [10:25:08]FM_GetShiftState [10:25:08]SAM_PROTO_GetShiftState [10:25:08]wFMCommunicate request_size=4 [10:25:08]MH_SAM_APDU [10:25:08]CAPDU: 80 13 01 00 [10:25:08]Write to MH i2c: E2 08 00 FF 84 80 13 01 00 00 00 00 00 00 [10:25:08]Write i2c OK [10:25:08]MH_I2C_Read... [10:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:08]Read from MH i2c: E2 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 0E 00 [10:25:08]MH_I2C_Read... [10:25:08]Read from MH i2c: E2 0E 00 FF 84 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 9C [10:25:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:25:08]wFMCommunicate OK [10:25:08]SAM_PROTO_GetShiftState done [10:25:08]FM_GetShiftState done [10:25:08]req_shift_opened done [10:25:08]requested_item shift.open_date is exist - process it [10:25:08]req_shift_open_date [10:25:08]req_shift_open_date done [10:25:08]produce_requested_data done [10:25:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94871,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:25:08]process_action_free close_receipt [10:25:08]json_value_free [10:25:08]json_value_free done [10:25:08]process_json_proto returns [10:25:08]Send response to host [10:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94871,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:25:08]free response buf [10:25:08]execute_script done [10:25:08]execute_script returns [10:25:08]free content buf [10:25:08]Sock 9.Close socket [10:25:08]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:21]accept exits with 7 [10:26:21]New connection [10:26:21]New thread 3066871140 created [10:26:21]Thread 3067014500 joined [10:26:21]Waiting for new connection... [10:26:21] Sock 7.Parse request [10:26:21]Sock 7.Check first char [10:26:21]Sock 7.First char is OK [10:26:21]request: POST /json_proto HTTP/1.0 [10:26:21]Method: POST [10:26:21]URL: /json_proto [10:26:21]Method is POST - this is cgi request [10:26:21]url: /json_proto [10:26:21]query_string will be loaded in cgi processing [10:26:21]execute_cgi json_proto POST (null) [10:26:21]execute_cgi path=json_proto method=POST [10:26:21]POST find Content-Length [10:26:21]Host: 172.17.62.67:8080 [10:26:21]Content-Length: 805 [10:26:21]Content-Type: application/json [10:26:21] [10:26:21]POST finish read [10:26:21]Found Content-Length = 805 [10:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 60.000, "sum" : 4254.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4254.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:21]execute_script... [10:26:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 60.000, "sum" : 4254.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4254.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:21]POST & json_proto [10:26:21]process_json_proto [10:26:21]json parsed OK: [10:26:21]protocol is kg_v1.0 [10:26:21]action value=close_receipt [10:26:21]process_action close_receipt [10:26:21]cmd_close_receipt [10:26:21]MH_GetDate [10:26:21]Write to MH i2c: F0 00 00 00 85 74 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: F0 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: F0 05 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: F0 05 00 00 85 00 5A DC EE 65 02 [10:26:21]GetLastDocTimeStamp 1710152719 [10:26:21]current date 1710152794 [10:26:21]FM_GetShiftState [10:26:21]SAM_PROTO_GetShiftState [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 13 01 00 [10:26:21]Write to MH i2c: E2 08 00 01 85 80 13 01 00 00 00 00 00 03 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 0E 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 0E 00 01 85 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 9F [10:26:21]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_GetShiftState done [10:26:21]FM_GetShiftState done [10:26:21]opened in 1710115571 [10:26:21]opened+sec_in_day 1710201971 [10:26:21]quantity*price = 425400 [10:26:21]sum+1 = 425401 [10:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4254.00 НСП 1% : 37.65 НДС 12% : 451.75 Наличными: 0.00 Безнал.: 4254.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 47 11.03.2024 10:26 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94872 ФПД: 199429162315146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T102635&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94872&fm=199429162315146&tin=02508201610067®Number=0000000000090555&sum=425400 [10:26:22]StoreToDocumentArchive [10:26:22]shift 326 fd 94872 [10:26:22]save to /storage/0326/doc_00094872 [10:26:22]save last doc name /storage/0326/doc_00094872 to /storage/kkm_last_doc_name [10:26:22]save OK [10:26:22]Clear old archive folders... [10:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:22]tlvbuf is 001EE1E0 [10:26:22]SAM_PROTO_ClearQueue [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 09 00 00 [10:26:22]Write to MH i2c: E2 08 00 0E 85 80 09 00 00 00 00 00 00 05 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 0E 85 00 90 00 07 [10:26:22]RAPDU: 90 00 [10:26:22]wFMCommunicate OK [10:26:22]SAM_PROTO_ClearQueue done [10:26:22]KKMCreateOFDPacket [10:26:22]OFDProtocolAddRootSTLVToBuf [10:26:22]FM_MakeSignedData [10:26:22]FM_MakeSignedData [10:26:22]SAM_PROTO_SignData [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 0D 01 02 [10:26:22]Write to MH i2c: E2 08 00 0F 85 80 0D 01 02 00 00 00 00 0D [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 0F 85 00 90 00 08 [10:26:22]RAPDU: 90 00 [10:26:22]wFMCommunicate OK [10:26:22]wFMCommunicate request_size=255 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 B8 7D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 7D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 7D 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 5B DC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 72 01 00 35 04 06 00 B5 61 38 60 [10:26:22]Write to MH i2c: E2 02 01 10 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 B8 7D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 7D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 7D 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 5B DC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 72 01 00 35 04 06 00 B5 61 38 60 00 00 D1 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 10 85 00 90 00 09 [10:26:22]RAPDU: 90 00 [10:26:22]wFMCommunicate OK [10:26:22]wFMCommunicate request_size=7 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 0D 02 02 02 AD 8A [10:26:22]Write to MH i2c: E2 0A 00 11 85 80 0D 02 02 02 00 AD 8A 00 00 4B [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 03 00 11 85 00 90 00 0A [10:26:22]RAPDU: 90 00 [10:26:22]wFMCommunicate OK [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 0D 03 02 [10:26:22]Write to MH i2c: E2 08 00 12 85 80 0D 03 02 00 00 00 00 12 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 0B 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 0B 00 12 85 00 19 D4 FE F2 32 9C 68 41 90 00 67 [10:26:22]RAPDU: 19 D4 FE F2 32 9C 68 41 90 00 [10:26:22]wFMCommunicate OK [10:26:22]SAM_PROTO_SignData done [10:26:22]FM_MakeSignedData done [10:26:22]CreateOFDProtocolMessage [10:26:22]wFMCommunicate request_size=4 [10:26:22]MH_SAM_APDU [10:26:22]CAPDU: 80 11 00 00 [10:26:22]Write to MH i2c: E2 08 00 13 85 80 11 00 00 00 00 00 00 12 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:22]Read from MH i2c: E2 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 17 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: E2 17 00 13 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 62 [10:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:26:22]wFMCommunicate OK [10:26:22]CreateOFDProtocolMessage done [10:26:22]OFDSenderStorePacket 94872 [10:26:22]StoreOFDPacket docnum=94872 [10:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 08 37 04 01 F3 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 B8 7D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 7D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 7D 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 5B DC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 72 01 00 35 04 06 00 B5 61 38 60 AD 8A 19 D4 FE F2 32 9C 68 41 [10:26:22]CheckFolder [10:26:22]dirname=/storage/ofd_packets [10:26:22]CheckFolder done [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00094872 [10:26:22]NVStorageSaveData ofd_packets/00094872 [10:26:22]File name is /storage/ofd_packets/00094872 [10:26:22]Write 298 bytes [10:26:22]NVStorageSaveData done [10:26:22]OFDSenderStorePacket done [10:26:22]KKMCreateOFDPacket done [10:26:22]NVStorageSaveData kkm_last_timestamp [10:26:22]File name is /storage/kkm_last_timestamp [10:26:22]Write 4 bytes [10:26:22]NVStorageSaveData done [10:26:22]ExternCall_PrintAddStr [10:26:22]wPrintStart [10:26:22]Write to MH i2c: 01 00 00 14 85 99 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 14 85 00 80 00 00 00 FF 0F 2E [10:26:22]RasterBufferAndPrint [10:26:22]line Счет N : (1)195821 [10:26:22]line ИНН: 02508201610067 [10:26:22]line Контрольно-Кассовый Чек [10:26:22]line ПРОДАЖА [10:26:22]line ТРК (МРК, ГНК) : 61 [10:26:22]line Товар: 2710194210 [10:26:22]line ДТ-К-5 [10:26:22]line 60.000 * 70.90 [10:26:22]line = 4254.00 [10:26:22]line НДС 12% НСП 1% [10:26:22]line > о реализуемом товаре [10:26:22]line ИТОГО: 4254.00 [10:26:22]line НСП 1% : 37.65 [10:26:22]line НДС 12% : 451.75 [10:26:22]line Наличными: 0.00 [10:26:22]line Безнал.: 4254.00 [10:26:22]line Место: АЗС № 6 "Партнер Нефть" [10:26:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:26:22]line СНО: Общий режим [10:26:22]line Чек 47 11.03.2024 10:26 [10:26:22]line Смена: 326 ФФД: 1.0 [10:26:22]line ЗНМ: 0300000009 [10:26:22]line РНМ: 0000000000090555 [10:26:22]line Версия ККМ: 001 [10:26:23]line Платежная система: О! деньги [10:26:23]line ФМ: 0000000000874811 [10:26:23]line ФД: 94872 [10:26:23]line ФПД: 199429162315146 [10:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T102635&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94872&fm=199429162315146&tin=02508201610067®Number=0000000000090555&sum=425400 [10:26:23]OFD Sender: Processing packet 94872 [packets to send 30, broken 29] [10:26:23]ProducePacketName [10:26:23]name=ofd_packets/00094872 [10:26:23]OFD Sender: To server: pG, [10:26:23]CommunicateWithHost lk.salyk.kg:30040 [10:26:23]ConnectInit lk.salyk.kg [10:26:23]written 0, free lines is 4095 [10:26:23]Connected sock=10 [10:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 08 37 04 01 F3 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 B8 7D 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 7D 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 7D 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 5B DC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 72 01 00 35 04 06 00 B5 61 38 60 AD 8A 19 D4 FE F2 32 9C 68 41 [10:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 5D CB 47 00 52 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 31 31 10 04 04 00 98 72 01 00 F4 03 04 00 B4 87 EE 65 B6 04 01 00 00 6B 2D 28 5D 46 F0 EE A7 [10:26:23]CommunicateWithHost err = 0 [10:26:23]CheckOFDResponse [10:26:23]1017 (14) - 77093643461234 [10:26:23]1041 (16) - 0000000000874811 [10:26:23]1040 (4) - 94872 [10:26:23]1012 (4) - 11.03.2024 04:25 [10:26:23]1206 (1) - 0 [10:26:23]OFD Sender: Remove packet 94872 [10:26:23]ProducePacketName [10:26:23]name=ofd_packets/00094872 [10:26:23]NVStorageDeleteData [10:26:23]Write to MH i2c: 01 00 00 3E 85 C3 [10:26:23]Write i2c OK [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: 01 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: 01 07 00 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: 01 07 00 3E 85 00 80 00 00 00 59 0D B0 [10:26:23]RasterBufferAndPrint [10:26:23]line [10:26:23]line [10:26:23]line [10:26:23]line [10:26:23]line [10:26:23]written 0, free lines is 3422 [10:26:23]process_action close_receipt done [10:26:23]requested_data is exist [10:26:23]produce_requested_data [10:26:23]requested_item fm.sn is exist - process it [10:26:23]wFMCommunicate request_size=4 [10:26:23]MH_SAM_APDU [10:26:23]CAPDU: 80 11 00 00 [10:26:23]Write to MH i2c: E2 08 00 45 85 80 11 00 00 00 00 00 00 44 [10:26:23]Write i2c OK [10:26:23]MH_I2C_Read... [10:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:23]Read from MH i2c: E2 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: E2 17 00 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: E2 17 00 45 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 94 [10:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:26:23]wFMCommunicate OK [10:26:23]requested_item fd.num is exist - process it [10:26:23]SAM_PROTO_GetFieldsCounters [10:26:23]wFMCommunicate request_size=4 [10:26:23]MH_SAM_APDU [10:26:23]CAPDU: 80 13 00 00 [10:26:23]Write to MH i2c: E2 08 00 46 85 80 13 00 00 00 00 00 00 47 [10:26:23]Write i2c OK [10:26:23]MH_I2C_Read... [10:26:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:23]Read from MH i2c: E2 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: E2 62 00 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: E2 62 00 46 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 98 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10:26:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 98 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:23]wFMCommunicate OK [10:26:23]SAM_PROTO_GetFieldsCounters done [10:26:23]requested_item shift.num is exist - process it [10:26:23]requested_item shift.opened is exist - process it [10:26:23]req_shift_opened [10:26:23]FM_GetShiftState [10:26:23]SAM_PROTO_GetShiftState [10:26:23]wFMCommunicate request_size=4 [10:26:23]MH_SAM_APDU [10:26:23]CAPDU: 80 13 01 00 [10:26:23]Write to MH i2c: E2 08 00 47 85 80 13 01 00 00 00 00 00 49 [10:26:23]Write i2c OK [10:26:23]MH_I2C_Read... [10:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:23]Read from MH i2c: E2 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: E2 0E 00 [10:26:23]MH_I2C_Read... [10:26:23]Read from MH i2c: E2 0E 00 47 85 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E5 [10:26:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:26:23]wFMCommunicate OK [10:26:23]SAM_PROTO_GetShiftState done [10:26:23]FM_GetShiftState done [10:26:23]req_shift_opened done [10:26:23]requested_item shift.open_date is exist - process it [10:26:23]req_shift_open_date [10:26:23]req_shift_open_date done [10:26:23]produce_requested_data done [10:26:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94872,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:26:23]process_action_free close_receipt [10:26:23]json_value_free [10:26:23]json_value_free done [10:26:23]process_json_proto returns [10:26:23]Send response to host [10:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94872,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:26:23]free response buf [10:26:23]execute_script done [10:26:23]execute_script returns [10:26:23]free content buf [10:26:23]Sock 7.Close socket [10:26:23]Sock 7.Thread stoped [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:49]accept exits with 9 [10:32:49]New connection [10:32:49]New thread 3067014500 created [10:32:49]Thread 3066871140 joined [10:32:49]Waiting for new connection... [10:32:49] Sock 9.Parse request [10:32:49]Sock 9.Check first char [10:32:49]Sock 9.First char is OK [10:32:49]request: POST /json_proto HTTP/1.0 [10:32:49]Method: POST [10:32:49]URL: /json_proto [10:32:49]Method is POST - this is cgi request [10:32:49]url: /json_proto [10:32:49]query_string will be loaded in cgi processing [10:32:49]execute_cgi json_proto POST (null) [10:32:49]execute_cgi path=json_proto method=POST [10:32:49]POST find Content-Length [10:32:49]Host: 172.17.62.67:8080 [10:32:49]Content-Length: 642 [10:32:49]Content-Type: application/json [10:32:49] [10:32:49]POST finish read [10:32:49]Found Content-Length = 642 [10:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 390.000, "sum" : 27651.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 27651.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:49]execute_script... [10:32: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)195823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 390.000, "sum" : 27651.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 27651.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:49]POST & json_proto [10:32:49]process_json_proto [10:32:49]json parsed OK: [10:32:49]protocol is kg_v1.0 [10:32:49]action value=close_receipt [10:32:49]process_action close_receipt [10:32:49]cmd_close_receipt [10:32:49]MH_GetDate [10:32:49]Write to MH i2c: F0 00 00 48 85 BC [10:32:49]Write i2c OK [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: F0 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: F0 05 00 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: F0 05 00 48 85 00 DF DD EE 65 D0 [10:32:49]GetLastDocTimeStamp 1710152795 [10:32:49]current date 1710153183 [10:32:49]FM_GetShiftState [10:32:49]SAM_PROTO_GetShiftState [10:32:49]wFMCommunicate request_size=4 [10:32:49]MH_SAM_APDU [10:32:49]CAPDU: 80 13 01 00 [10:32:49]Write to MH i2c: E2 08 00 49 85 80 13 01 00 00 00 00 00 4B [10:32:49]Write i2c OK [10:32:49]MH_I2C_Read... [10:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:49]Read from MH i2c: E2 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: E2 0E 00 [10:32:49]MH_I2C_Read... [10:32:49]Read from MH i2c: E2 0E 00 49 85 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E7 [10:32:49]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:32:49]wFMCommunicate OK [10:32:49]SAM_PROTO_GetShiftState done [10:32:49]FM_GetShiftState done [10:32:49]opened in 1710115571 [10:32:49]opened+sec_in_day 1710201971 [10:32:49]quantity*price = 2765100 [10:32:49]sum+1 = 2765101 [10:32:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 27651.00 НСП 1% : 244.70 НДС 12% : 2936.39 Наличными: 27651.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 48 11.03.2024 10:33 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94873 ФПД: 177341343996774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T103303&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94873&fm=177341343996774&tin=02508201610067®Number=0000000000090555&sum=2765100 [10:32:50]StoreToDocumentArchive [10:32:50]shift 326 fd 94873 [10:32:50]save to /storage/0326/doc_00094873 [10:32:50]save last doc name /storage/0326/doc_00094873 to /storage/kkm_last_doc_name [10:32:50]save OK [10:32:50]Clear old archive folders... [10:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:50]tlvbuf is 0032CE20 [10:32:50]SAM_PROTO_ClearQueue [10:32:50]wFMCommunicate request_size=4 [10:32:50]MH_SAM_APDU [10:32:50]CAPDU: 80 09 00 00 [10:32:50]Write to MH i2c: E2 08 00 56 85 80 09 00 00 00 00 00 00 4D [10:32:50]Write i2c OK [10:32:50]MH_I2C_Read... [10:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:50]Read from MH i2c: E2 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: E2 03 00 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: E2 03 00 56 85 00 90 00 4F [10:32:50]RAPDU: 90 00 [10:32:50]wFMCommunicate OK [10:32:50]SAM_PROTO_ClearQueue done [10:32:50]KKMCreateOFDPacket [10:32:50]OFDProtocolAddRootSTLVToBuf [10:32:50]FM_MakeSignedData [10:32:50]FM_MakeSignedData [10:32:50]SAM_PROTO_SignData [10:32:50]wFMCommunicate request_size=4 [10:32:50]MH_SAM_APDU [10:32:50]CAPDU: 80 0D 01 02 [10:32:50]Write to MH i2c: E2 08 00 57 85 80 0D 01 02 00 00 00 00 55 [10:32:50]Write i2c OK [10:32:50]MH_I2C_Read... [10:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:50]Read from MH i2c: E2 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: E2 03 00 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: E2 03 00 57 85 00 90 00 50 [10:32:50]RAPDU: 90 00 [10:32:50]wFMCommunicate OK [10:32:50]wFMCommunicate request_size=255 [10:32:50]MH_SAM_APDU [10:32:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 F3 05 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2C 31 2A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 31 2A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 5F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 7B 04 00 00 00 07 04 06 00 2C 31 2A 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 DF DD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 72 01 00 35 04 06 00 A1 4A 7F D0 [10:32:50]Write to MH i2c: E2 02 01 58 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 F3 05 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2C 31 2A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 31 2A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 5F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 7B 04 00 00 00 07 04 06 00 2C 31 2A 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 DF DD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 72 01 00 35 04 06 00 A1 4A 7F D0 00 00 BF [10:32:50]Write i2c OK [10:32:50]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 [10:32:51]MH_I2C_Read... [10:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:51]Read from MH i2c: E2 03 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 03 00 58 85 00 90 00 51 [10:32:51]RAPDU: 90 00 [10:32:51]wFMCommunicate OK [10:32:51]wFMCommunicate request_size=7 [10:32:51]MH_SAM_APDU [10:32:51]CAPDU: 80 0D 02 02 02 1B 66 [10:32:51]Write to MH i2c: E2 0A 00 59 85 80 0D 02 02 02 00 1B 66 00 00 DD [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:51]Read from MH i2c: E2 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 03 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 03 00 59 85 00 90 00 52 [10:32:51]RAPDU: 90 00 [10:32:51]wFMCommunicate OK [10:32:51]wFMCommunicate request_size=4 [10:32:51]MH_SAM_APDU [10:32:51]CAPDU: 80 0D 03 02 [10:32:51]Write to MH i2c: E2 08 00 5A 85 80 0D 03 02 00 00 00 00 5A [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:51]Read from MH i2c: E2 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 0B 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 0B 00 5A 85 00 99 A8 51 14 07 7F 19 CD 90 00 6D [10:32:51]RAPDU: 99 A8 51 14 07 7F 19 CD 90 00 [10:32:51]wFMCommunicate OK [10:32:51]SAM_PROTO_SignData done [10:32:51]FM_MakeSignedData done [10:32:51]CreateOFDProtocolMessage [10:32:51]wFMCommunicate request_size=4 [10:32:51]MH_SAM_APDU [10:32:51]CAPDU: 80 11 00 00 [10:32:51]Write to MH i2c: E2 08 00 5B 85 80 11 00 00 00 00 00 00 5A [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:51]Read from MH i2c: E2 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 17 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 17 00 5B 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AA [10:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:32:51]wFMCommunicate OK [10:32:51]CreateOFDProtocolMessage done [10:32:51]OFDSenderStorePacket 94873 [10:32:51]StoreOFDPacket docnum=94873 [10:32:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 39 2D 04 01 67 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 F3 05 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2C 31 2A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 31 2A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 5F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 7B 04 00 00 00 07 04 06 00 2C 31 2A 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 DF DD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 72 01 00 35 04 06 00 A1 4A 7F D0 1B 66 99 A8 51 14 07 7F 19 CD [10:32:51]CheckFolder [10:32:51]dirname=/storage/ofd_packets [10:32:51]CheckFolder done [10:32:51]ProducePacketName [10:32:51]name=ofd_packets/00094873 [10:32:51]NVStorageSaveData ofd_packets/00094873 [10:32:51]File name is /storage/ofd_packets/00094873 [10:32:51]Write 298 bytes [10:32:51]NVStorageSaveData done [10:32:51]OFDSenderStorePacket done [10:32:51]KKMCreateOFDPacket done [10:32:51]NVStorageSaveData kkm_last_timestamp [10:32:51]File name is /storage/kkm_last_timestamp [10:32:51]Write 4 bytes [10:32:51]NVStorageSaveData done [10:32:51]ExternCall_PrintAddStr [10:32:51]wPrintStart [10:32:51]Write to MH i2c: 01 00 00 5C 85 E1 [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: 01 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: 01 07 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: 01 07 00 5C 85 00 80 00 00 00 FF 0F 76 [10:32:51]RasterBufferAndPrint [10:32:51]line Счет N : (1)195823 [10:32:51]line ИНН: 02508201610067 [10:32:51]line Контрольно-Кассовый Чек [10:32:51]line ПРОДАЖА [10:32:51]line ТРК (МРК, ГНК) : 51 [10:32:51]line Товар: 2710194210 [10:32:51]line ДТ-К-5 [10:32:51]line 390.000 * 70.90 [10:32:51]line = 27651.00 [10:32:51]line НДС 12% НСП 1% [10:32:51]line > о реализуемом товаре [10:32:51]line ИТОГО: 27651.00 [10:32:51]line НСП 1% : 244.70 [10:32:51]line НДС 12% : 2936.39 [10:32:51]line Наличными: 27651.00 [10:32:51]line Безнал.: 0.00 [10:32:51]line Место: АЗС № 6 "Партнер Нефть" [10:32:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:32:51]line СНО: Общий режим [10:32:51]line Чек 48 11.03.2024 10:33 [10:32:51]line Смена: 326 ФФД: 1.0 [10:32:51]line ЗНМ: 0300000009 [10:32:51]line РНМ: 0000000000090555 [10:32:51]line Версия ККМ: 001 [10:32:51]line ФМ: 0000000000874811 [10:32:51]line ФД: 94873 [10:32:51]line ФПД: 177341343996774 [10:32:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T103303&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94873&fm=177341343996774&tin=02508201610067®Number=0000000000090555&sum=2765100 [10:32:51]OFD Sender: Processing packet 94873 [packets to send 30, broken 29] [10:32:51]ProducePacketName [10:32:51]name=ofd_packets/00094873 [10:32:51]OFD Sender: To server: pG, [10:32:51]CommunicateWithHost lk.salyk.kg:30040 [10:32:51]ConnectInit lk.salyk.kg [10:32:51]written 0, free lines is 4095 [10:32:51]Connected sock=10 [10:32: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 31 31 0C 01 00 00 39 2D 04 01 67 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 F3 05 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2C 31 2A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 31 2A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 5F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 7B 04 00 00 00 07 04 06 00 2C 31 2A 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 DF DD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 72 01 00 35 04 06 00 A1 4A 7F D0 1B 66 99 A8 51 14 07 7F 19 CD [10:32: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 31 31 4F 00 00 00 A2 97 47 00 CE 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 31 31 10 04 04 00 99 72 01 00 F4 03 04 00 39 89 EE 65 B6 04 01 00 00 F4 28 DB F1 E8 CA 2D C9 [10:32:51]CommunicateWithHost err = 0 [10:32:51]CheckOFDResponse [10:32:51]1017 (14) - 77093643461234 [10:32:51]1041 (16) - 0000000000874811 [10:32:51]1040 (4) - 94873 [10:32:51]1012 (4) - 11.03.2024 04:31 [10:32:51]1206 (1) - 0 [10:32:51]OFD Sender: Remove packet 94873 [10:32:51]ProducePacketName [10:32:51]name=ofd_packets/00094873 [10:32:51]NVStorageDeleteData [10:32:52]Write to MH i2c: 01 00 00 84 85 09 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: 01 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: 01 07 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: 01 07 00 84 85 00 80 00 00 00 7E 0D 1B [10:32:52]RasterBufferAndPrint [10:32:52]line [10:32:52]line [10:32:52]line [10:32:52]line [10:32:52]line [10:32:52]written 0, free lines is 3460 [10:32:52]process_action close_receipt done [10:32:52]requested_data is exist [10:32:52]produce_requested_data [10:32:52]requested_item fm.sn is exist - process it [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 11 00 00 [10:32:52]Write to MH i2c: E2 08 00 8B 85 80 11 00 00 00 00 00 00 8A [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 17 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 17 00 8B 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DA [10:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:32:52]wFMCommunicate OK [10:32:52]requested_item fd.num is exist - process it [10:32:52]SAM_PROTO_GetFieldsCounters [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 13 00 00 [10:32:52]Write to MH i2c: E2 08 00 8C 85 80 13 00 00 00 00 00 00 8D [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 62 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 62 00 8C 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 99 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [10:32:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 99 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:52]wFMCommunicate OK [10:32:52]SAM_PROTO_GetFieldsCounters done [10:32:52]requested_item shift.num is exist - process it [10:32:52]requested_item shift.opened is exist - process it [10:32:52]req_shift_opened [10:32:52]FM_GetShiftState [10:32:52]SAM_PROTO_GetShiftState [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 13 01 00 [10:32:52]Write to MH i2c: E2 08 00 8D 85 80 13 01 00 00 00 00 00 8F [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 0E 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 0E 00 8D 85 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2B [10:32:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:32:52]wFMCommunicate OK [10:32:52]SAM_PROTO_GetShiftState done [10:32:52]FM_GetShiftState done [10:32:52]req_shift_opened done [10:32:52]requested_item shift.open_date is exist - process it [10:32:52]req_shift_open_date [10:32:52]req_shift_open_date done [10:32:52]produce_requested_data done [10:32:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94873,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:32:52]process_action_free close_receipt [10:32:52]json_value_free [10:32:52]json_value_free done [10:32:52]process_json_proto returns [10:32:52]Send response to host [10:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94873,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:32:52]free response buf [10:32:52]execute_script done [10:32:52]execute_script returns [10:32:52]free content buf [10:32:52]Sock 9.Close socket [10:32:52]Sock 9.Thread stoped [10:32:52]OFD Sender: No OFD packet to send [10:32:55]accept exits with 7 [10:32:55]New connection [10:32:55]New thread 3066871140 created [10:32:55]Thread 3067014500 joined [10:32:55]Waiting for new connection... [10:32:55] Sock 7.Parse request [10:32:55]Sock 7.Check first char [10:32:55]Sock 7.First char is OK [10:32:55]request: POST /json_proto HTTP/1.0 [10:32:55]Method: POST [10:32:55]URL: /json_proto [10:32:55]Method is POST - this is cgi request [10:32:55]url: /json_proto [10:32:55]query_string will be loaded in cgi processing [10:32:55]execute_cgi json_proto POST (null) [10:32:55]execute_cgi path=json_proto method=POST [10:32:55]POST find Content-Length [10:32:55]Host: 172.17.62.67:8080 [10:32:55]Content-Length: 698 [10:32:55]Content-Type: application/json [10:32:55] [10:32:55]POST finish read [10:32:55]Found Content-Length = 698 [10:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94873, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 390.000, "sum" : 27651.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 27651.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:55]execute_script... [10:32:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94873, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 390.000, "sum" : 27651.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 27651.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:55]POST & json_proto [10:32:55]process_json_proto [10:32:55]json parsed OK: [10:32:55]protocol is kg_v1.0 [10:32:55]action value=close_receipt [10:32:55]process_action close_receipt [10:32:55]cmd_close_receipt [10:32:55]MH_GetDate [10:32:55]Write to MH i2c: F0 00 00 8E 85 02 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 05 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 05 00 8E 85 00 E5 DD EE 65 1C [10:32:55]GetLastDocTimeStamp 1710153183 [10:32:55]current date 1710153189 [10:32:55]FM_GetShiftState [10:32:55]SAM_PROTO_GetShiftState [10:32:55]wFMCommunicate request_size=4 [10:32:55]MH_SAM_APDU [10:32:55]CAPDU: 80 13 01 00 [10:32:55]Write to MH i2c: E2 08 00 8F 85 80 13 01 00 00 00 00 00 91 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:55]Read from MH i2c: E2 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 0E 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: E2 0E 00 8F 85 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2D [10:32:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:32:55]wFMCommunicate OK [10:32:55]SAM_PROTO_GetShiftState done [10:32:55]FM_GetShiftState done [10:32:55]opened in 1710115571 [10:32:55]opened+sec_in_day 1710201971 [10:32:55]quantity*price = 2765100 [10:32:55]sum+1 = 2765101 [10:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 27651.00 НСП 1% : 244.70 НДС 12% : 2936.39 Наличными: 27651.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 49 11.03.2024 10:33 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 94873 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 94874 ФПД: 276630272471914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T103309&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94874&fm=276630272471914&tin=02508201610067®Number=0000000000090555&sum=2765100 [10:32:57]StoreToDocumentArchive [10:32:57]shift 326 fd 94874 [10:32:57]save to /storage/0326/doc_00094874 [10:32:57]save last doc name /storage/0326/doc_00094874 to /storage/kkm_last_doc_name [10:32:57]save OK [10:32:57]Clear old archive folders... [10:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:32:57]tlvbuf is 00384420 [10:32:57]SAM_PROTO_ClearQueue [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 09 00 00 [10:32:57]Write to MH i2c: E2 08 00 9E 85 80 09 00 00 00 00 00 00 95 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 9E 85 00 90 00 97 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_ClearQueue done [10:32:57]KKMCreateOFDPacket [10:32:57]OFDProtocolAddRootSTLVToBuf [10:32:57]FM_MakeSignedData [10:32:57]FM_MakeSignedData [10:32:57]SAM_PROTO_SignData [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 01 02 [10:32:57]Write to MH i2c: E2 08 00 9F 85 80 0D 01 02 00 00 00 00 9D [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 9F 85 00 90 00 98 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=255 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 F3 05 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2C 31 2A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 31 2A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 5F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 7B 04 00 00 00 07 04 06 00 2C 31 2A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E5 DD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 99 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [10:32:57]Write to MH i2c: E2 02 01 A0 85 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 F3 05 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2C 31 2A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 31 2A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 5F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 7B 04 00 00 00 07 04 06 00 2C 31 2A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E5 DD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 99 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 C6 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]OFD Sender: No OFD packet to send [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 A0 85 00 90 00 99 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=35 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 72 01 00 35 04 06 00 FB 98 01 1F F3 6A [10:32:57]Write to MH i2c: E2 26 00 A1 85 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 72 01 00 35 04 06 00 FB 98 01 1F F3 6A 00 00 AD [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 A1 85 00 90 00 9A [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 03 02 [10:32:57]Write to MH i2c: E2 08 00 A2 85 80 0D 03 02 00 00 00 00 A2 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 0B 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 0B 00 A2 85 00 BD EA 3F 72 90 AA 11 E7 90 00 2D [10:32:57]RAPDU: BD EA 3F 72 90 AA 11 E7 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_SignData done [10:32:57]FM_MakeSignedData done [10:32:57]CreateOFDProtocolMessage [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 11 00 00 [10:32:57]Write to MH i2c: E2 08 00 A3 85 80 11 00 00 00 00 00 00 A2 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 17 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 17 00 A3 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F2 [10:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:32:57]wFMCommunicate OK [10:32:57]CreateOFDProtocolMessage done [10:32:57]OFDSenderStorePacket 94874 [10:32:57]StoreOFDPacket docnum=94874 [10:32:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 2B D7 20 01 6D 36 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 F3 05 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2C 31 2A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 31 2A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 5F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 7B 04 00 00 00 07 04 06 00 2C 31 2A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E5 DD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 99 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 72 01 00 35 04 06 00 FB 98 01 1F F3 6A BD EA 3F 72 90 AA 11 E7 [10:32:57]CheckFolder [10:32:57]dirname=/storage/ofd_packets [10:32:57]CheckFolder done [10:32:57]ProducePacketName [10:32:57]name=ofd_packets/00094874 [10:32:57]NVStorageSaveData ofd_packets/00094874 [10:32:57]File name is /storage/ofd_packets/00094874 [10:32:57]Write 326 bytes [10:32:57]NVStorageSaveData done [10:32:57]OFDSenderStorePacket done [10:32:57]KKMCreateOFDPacket done [10:32:57]NVStorageSaveData kkm_last_timestamp [10:32:57]File name is /storage/kkm_last_timestamp [10:32:57]Write 4 bytes [10:32:57]NVStorageSaveData done [10:32:57]ExternCall_PrintAddStr [10:32:57]wPrintStart [10:32:57]Write to MH i2c: 01 00 00 A4 85 29 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 A4 85 00 80 00 00 00 FF 0F BE [10:32:57]RasterBufferAndPrint [10:32:57]line Счет N : (1)195823 [10:32:57]line ИНН: 02508201610067 [10:32:57]line Контрольно-Кассовый Чек [10:32:57]line ВОЗВРАТ ПРОДАЖИ [10:32:57]line ТРК (МРК, ГНК) : 51 [10:32:57]line Товар: 2710194210 [10:32:57]line ДТ-К-5 [10:32:57]line 390.000 * 70.90 [10:32:57]line = 27651.00 [10:32:57]line НДС 12% НСП 1% [10:32:57]line > о реализуемом товаре [10:32:57]line ИТОГО: 27651.00 [10:32:57]line НСП 1% : 244.70 [10:32:57]line НДС 12% : 2936.39 [10:32:57]line Наличными: 27651.00 [10:32:57]line Безнал.: 0.00 [10:32:57]line Место: АЗС № 6 "Партнер Нефть" [10:32:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:32:57]line СНО: Общий режим [10:32:57]line Чек 49 11.03.2024 10:33 [10:32:57]line Смена: 326 ФФД: 1.0 [10:32:57]line ЗНМ: 0300000009 [10:32:57]line РНМ: 0000000000090555 [10:32:57]line Версия ККМ: 001 [10:32:57]line ФД осн.: 94873 [10:32:57]line ФМ осн.: 0000000000874811 [10:32:57]line ФМ: 0000000000874811 [10:32:57]line ФД: 94874 [10:32:57]line ФПД: 276630272471914 [10:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T103309&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94874&fm=276630272471914&tin=02508201610067®Number=0000000000090555&sum=2765100 [10:32:57]written 0, free lines is 4095 [10:32:57]OFD Sender: Processing packet 94874 [packets to send 30, broken 29] [10:32:57]ProducePacketName [10:32:57]name=ofd_packets/00094874 [10:32:57]OFD Sender: To server: pG, [10:32:57]CommunicateWithHost lk.salyk.kg:30040 [10:32:57]ConnectInit lk.salyk.kg [10:32:57]Connected sock=10 [10:32: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 31 31 28 01 00 00 2B D7 20 01 6D 36 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 F3 05 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2C 31 2A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 31 2A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 5F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 7B 04 00 00 00 07 04 06 00 2C 31 2A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E5 DD EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 99 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 72 01 00 35 04 06 00 FB 98 01 1F F3 6A BD EA 3F 72 90 AA 11 E7 [10:32: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 31 31 4F 00 00 00 BD FC 47 00 74 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 72 01 00 F4 03 04 00 3F 89 EE 65 B6 04 01 00 00 29 9D F8 D2 41 7E 6A 35 [10:32:58]CommunicateWithHost err = 0 [10:32:58]CheckOFDResponse [10:32:58]1017 (14) - 77093643461234 [10:32:58]1041 (16) - 0000000000874811 [10:32:58]1040 (4) - 94874 [10:32:58]1012 (4) - 11.03.2024 04:31 [10:32:58]1206 (1) - 0 [10:32:58]OFD Sender: Remove packet 94874 [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00094874 [10:32:58]NVStorageDeleteData [10:32:58]Write to MH i2c: 01 00 00 CE 85 53 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 CE 85 00 80 00 00 00 6B 0D 52 [10:32:58]RasterBufferAndPrint [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]written 0, free lines is 3449 [10:32:58]process_action close_receipt done [10:32:58]requested_data is exist [10:32:58]produce_requested_data [10:32:58]requested_item fm.sn is exist - process it [10:32:58]wFMCommunicate request_size=4 [10:32:58]MH_SAM_APDU [10:32:58]CAPDU: 80 11 00 00 [10:32:58]Write to MH i2c: E2 08 00 D5 85 80 11 00 00 00 00 00 00 D4 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:58]Read from MH i2c: E2 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 D5 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [10:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:32:58]wFMCommunicate OK [10:32:58]requested_item fd.num is exist - process it [10:32:58]SAM_PROTO_GetFieldsCounters [10:32:58]wFMCommunicate request_size=4 [10:32:58]MH_SAM_APDU [10:32:58]CAPDU: 80 13 00 00 [10:32:58]Write to MH i2c: E2 08 00 D6 85 80 13 00 00 00 00 00 00 D7 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:58]Read from MH i2c: E2 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 62 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 62 00 D6 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9A 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [10:32: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9A 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:58]wFMCommunicate OK [10:32:58]SAM_PROTO_GetFieldsCounters done [10:32:58]requested_item shift.num is exist - process it [10:32:58]requested_item shift.opened is exist - process it [10:32:58]req_shift_opened [10:32:58]FM_GetShiftState [10:32:58]SAM_PROTO_GetShiftState [10:32:58]wFMCommunicate request_size=4 [10:32:58]MH_SAM_APDU [10:32:58]CAPDU: 80 13 01 00 [10:32:58]Write to MH i2c: E2 08 00 D7 85 80 13 01 00 00 00 00 00 D9 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:58]OFD Sender: No OFD packet to send [10:32:58]Read from MH i2c: E2 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 0E 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 0E 00 D7 85 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 75 [10:32:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:32:58]wFMCommunicate OK [10:32:58]SAM_PROTO_GetShiftState done [10:32:58]FM_GetShiftState done [10:32:58]req_shift_opened done [10:32:58]requested_item shift.open_date is exist - process it [10:32:58]req_shift_open_date [10:32:58]req_shift_open_date done [10:32:58]produce_requested_data done [10:32:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94874,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:32:58]process_action_free close_receipt [10:32:58]json_value_free [10:32:58]json_value_free done [10:32:58]process_json_proto returns [10:32:58]Send response to host [10:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94874,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:32:58]free response buf [10:32:58]execute_script done [10:32:58]execute_script returns [10:32:58]free content buf [10:32:58]Sock 7.Close socket [10:32:58]Sock 7.Thread stoped [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:09]accept exits with 9 [10:37:09]New connection [10:37:09]New thread 3067014500 created [10:37:09]Thread 3066871140 joined [10:37:09]Waiting for new connection... [10:37:09] Sock 9.Parse request [10:37:09]Sock 9.Check first char [10:37:09]Sock 9.First char is OK [10:37:09]request: POST /json_proto HTTP/1.0 [10:37:09]Method: POST [10:37:09]URL: /json_proto [10:37:09]Method is POST - this is cgi request [10:37:09]url: /json_proto [10:37:09]query_string will be loaded in cgi processing [10:37:09]execute_cgi json_proto POST (null) [10:37:09]execute_cgi path=json_proto method=POST [10:37:09]POST find Content-Length [10:37:09]Host: 172.17.62.67:8080 [10:37:09]Content-Length: 679 [10:37:09]Content-Type: application/json [10:37:09] [10:37:09]POST finish read [10:37:09]Found Content-Length = 679 [10:37:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "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" ] } } [10:37:09]execute_script... [10:37: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)195824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "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" ] } } [10:37:09]POST & json_proto [10:37:09]process_json_proto [10:37:09]json parsed OK: [10:37:09]protocol is kg_v1.0 [10:37:09]action value=close_receipt [10:37:09]process_action close_receipt [10:37:09]cmd_close_receipt [10:37:09]MH_GetDate [10:37:09]Write to MH i2c: F0 00 00 D8 85 4C [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: F0 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: F0 05 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: F0 05 00 D8 85 00 E3 DE EE 65 65 [10:37:09]GetLastDocTimeStamp 1710153189 [10:37:09]current date 1710153443 [10:37:09]FM_GetShiftState [10:37:09]SAM_PROTO_GetShiftState [10:37:09]wFMCommunicate request_size=4 [10:37:09]MH_SAM_APDU [10:37:09]CAPDU: 80 13 01 00 [10:37:09]Write to MH i2c: E2 08 00 D9 85 80 13 01 00 00 00 00 00 DB [10:37:09]Write i2c OK [10:37:09]MH_I2C_Read... [10:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:09]Read from MH i2c: E2 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 0E 00 [10:37:09]MH_I2C_Read... [10:37:09]Read from MH i2c: E2 0E 00 D9 85 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 77 [10:37:09]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:37:09]wFMCommunicate OK [10:37:09]SAM_PROTO_GetShiftState done [10:37:09]FM_GetShiftState done [10:37:09]opened in 1710115571 [10:37:09]opened+sec_in_day 1710201971 [10:37:09]quantity*price = 150024 [10:37:09]sum+1 = 150025 [10:37:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 50 11.03.2024 10:37 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94875 ФПД: 56231246664212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T103723&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94875&fm=56231246664212&tin=02508201610067®Number=0000000000090555&sum=150000 [10:37:10]StoreToDocumentArchive [10:37:10]shift 326 fd 94875 [10:37:10]save to /storage/0326/doc_00094875 [10:37:10]save last doc name /storage/0326/doc_00094875 to /storage/kkm_last_doc_name [10:37:10]save OK [10:37:10]Clear old archive folders... [10:37:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:37:10]tlvbuf is 0041C900 [10:37:10]SAM_PROTO_ClearQueue [10:37:10]wFMCommunicate request_size=4 [10:37:10]MH_SAM_APDU [10:37:10]CAPDU: 80 09 00 00 [10:37:10]Write to MH i2c: E2 08 00 E6 85 80 09 00 00 00 00 00 00 DD [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 [10:37:10]MH_I2C_Read... [10:37:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:10]Read from MH i2c: E2 03 00 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 03 00 E6 85 00 90 00 DF [10:37:10]RAPDU: 90 00 [10:37:10]wFMCommunicate OK [10:37:10]SAM_PROTO_ClearQueue done [10:37:10]KKMCreateOFDPacket [10:37:10]OFDProtocolAddRootSTLVToBuf [10:37:10]FM_MakeSignedData [10:37:10]FM_MakeSignedData [10:37:10]SAM_PROTO_SignData [10:37:10]wFMCommunicate request_size=4 [10:37:10]MH_SAM_APDU [10:37:10]CAPDU: 80 0D 01 02 [10:37:10]Write to MH i2c: E2 08 00 E7 85 80 0D 01 02 00 00 00 00 E5 [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:10]Read from MH i2c: E2 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 03 00 [10:37:10]MH_I2C_Read... [10:37:10]Read from MH i2c: E2 03 00 E7 85 00 90 00 E0 [10:37:10]RAPDU: 90 00 [10:37:10]wFMCommunicate OK [10:37:10]wFMCommunicate request_size=255 [10:37:10]MH_SAM_APDU [10:37:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 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 32 00 00 00 F4 03 04 00 E3 DE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 72 01 00 35 04 06 00 33 24 5B 7B [10:37:10]Write to MH i2c: E2 02 01 E8 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 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 32 00 00 00 F4 03 04 00 E3 DE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 72 01 00 35 04 06 00 33 24 5B 7B 00 00 46 [10:37:10]Write i2c OK [10:37:10]MH_I2C_Read... [10:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:11]Read from MH i2c: E2 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: E2 03 00 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: E2 03 00 E8 85 00 90 00 E1 [10:37:11]RAPDU: 90 00 [10:37:11]wFMCommunicate OK [10:37:11]wFMCommunicate request_size=7 [10:37:11]MH_SAM_APDU [10:37:11]CAPDU: 80 0D 02 02 02 92 14 [10:37:11]Write to MH i2c: E2 0A 00 E9 85 80 0D 02 02 02 00 92 14 00 00 92 [10:37:11]Write i2c OK [10:37:11]MH_I2C_Read... [10:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:11]Read from MH i2c: E2 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: E2 03 00 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: E2 03 00 E9 85 00 90 00 E2 [10:37:11]RAPDU: 90 00 [10:37:11]wFMCommunicate OK [10:37:11]wFMCommunicate request_size=4 [10:37:11]MH_SAM_APDU [10:37:11]CAPDU: 80 0D 03 02 [10:37:11]Write to MH i2c: E2 08 00 EA 85 80 0D 03 02 00 00 00 00 EA [10:37:11]Write i2c OK [10:37:11]MH_I2C_Read... [10:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:11]Read from MH i2c: E2 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: E2 0B 00 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: E2 0B 00 EA 85 00 7D 5D 22 F4 25 40 49 36 90 00 BF [10:37:11]RAPDU: 7D 5D 22 F4 25 40 49 36 90 00 [10:37:11]wFMCommunicate OK [10:37:11]SAM_PROTO_SignData done [10:37:11]FM_MakeSignedData done [10:37:11]CreateOFDProtocolMessage [10:37:11]wFMCommunicate request_size=4 [10:37:11]MH_SAM_APDU [10:37:11]CAPDU: 80 11 00 00 [10:37:11]Write to MH i2c: E2 08 00 EB 85 80 11 00 00 00 00 00 00 EA [10:37:11]Write i2c OK [10:37:11]MH_I2C_Read... [10:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:11]Read from MH i2c: E2 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: E2 17 00 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: E2 17 00 EB 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3A [10:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:37:11]wFMCommunicate OK [10:37:11]CreateOFDProtocolMessage done [10:37:11]OFDSenderStorePacket 94875 [10:37:11]StoreOFDPacket docnum=94875 [10:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 75 51 04 01 97 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 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 32 00 00 00 F4 03 04 00 E3 DE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 72 01 00 35 04 06 00 33 24 5B 7B 92 14 7D 5D 22 F4 25 40 49 36 [10:37:11]CheckFolder [10:37:11]dirname=/storage/ofd_packets [10:37:11]CheckFolder done [10:37:11]ProducePacketName [10:37:11]name=ofd_packets/00094875 [10:37:11]NVStorageSaveData ofd_packets/00094875 [10:37:11]File name is /storage/ofd_packets/00094875 [10:37:11]Write 298 bytes [10:37:11]NVStorageSaveData done [10:37:11]OFDSenderStorePacket done [10:37:11]KKMCreateOFDPacket done [10:37:11]NVStorageSaveData kkm_last_timestamp [10:37:11]File name is /storage/kkm_last_timestamp [10:37:11]Write 4 bytes [10:37:11]NVStorageSaveData done [10:37:11]ExternCall_PrintAddStr [10:37:11]wPrintStart [10:37:11]Write to MH i2c: 01 00 00 EC 85 71 [10:37:11]Write i2c OK [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: 01 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: 01 07 00 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: 01 07 00 EC 85 00 80 00 00 00 FF 0F 06 [10:37:11]RasterBufferAndPrint [10:37:11]line Счет N : (1)195824 [10:37:11]line ИНН: 02508201610067 [10:37:11]line Контрольно-Кассовый Чек [10:37:11]line ПРОДАЖА [10:37:11]line ТРК (МРК, ГНК) : 51 [10:37:11]line Товар: 2710194210 [10:37:11]line ДТ-К-5 [10:37:11]line 21.160 * 70.90 [10:37:11]line = 1500.24 [10:37:11]line НДС 12% НСП 1% [10:37:11]line > о реализуемом товаре [10:37:11]line ОКРУГЛЕНИЕ: -0.24 [10:37:11]line ИТОГО: 1500.00 [10:37:11]line Внесено: 1500.00 [10:37:11]line СДАЧА: 0.00 [10:37:11]line НСП 1% : 13.28 [10:37:11]line НДС 12% : 159.32 [10:37:11]line Наличными: 1500.00 [10:37:11]line Безнал.: 0.00 [10:37:11]line Место: АЗС № 6 "Партнер Нефть" [10:37:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:37:11]line СНО: Общий режим [10:37:11]line Чек 50 11.03.2024 10:37 [10:37:11]line Смена: 326 ФФД: 1.0 [10:37:11]line ЗНМ: 0300000009 [10:37:11]line РНМ: 0000000000090555 [10:37:11]line Версия ККМ: 001 [10:37:11]line ФМ: 0000000000874811 [10:37:11]line ФД: 94875 [10:37:11]line ФПД: 56231246664212 [10:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T103723&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94875&fm=56231246664212&tin=02508201610067®Number=0000000000090555&sum=150000 [10:37:11]OFD Sender: Processing packet 94875 [packets to send 30, broken 29] [10:37:11]ProducePacketName [10:37:11]name=ofd_packets/00094875 [10:37:11]OFD Sender: To server: pG, [10:37:11]CommunicateWithHost lk.salyk.kg:30040 [10:37:11]ConnectInit lk.salyk.kg [10:37:11]written 0, free lines is 4095 [10:37:11]Connected sock=10 [10:37: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 31 31 0C 01 00 00 75 51 04 01 97 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 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 32 00 00 00 F4 03 04 00 E3 DE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 72 01 00 35 04 06 00 33 24 5B 7B 92 14 7D 5D 22 F4 25 40 49 36 [10:37:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 5F F9 47 00 18 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 72 01 00 F4 03 04 00 3D 8A EE 65 B6 04 01 00 00 D3 CD F8 42 FD 86 0C 34 [10:37:11]CommunicateWithHost err = 0 [10:37:11]CheckOFDResponse [10:37:11]1017 (14) - 77093643461234 [10:37:11]1041 (16) - 0000000000874811 [10:37:11]1040 (4) - 94875 [10:37:11]1012 (4) - 11.03.2024 04:36 [10:37:11]1206 (1) - 0 [10:37:11]OFD Sender: Remove packet 94875 [10:37:11]ProducePacketName [10:37:11]name=ofd_packets/00094875 [10:37:11]NVStorageDeleteData [10:37:12]Write to MH i2c: 01 00 00 17 86 9D [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: 01 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: 01 07 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: 01 07 00 17 86 00 80 00 00 00 55 0D 86 [10:37:12]RasterBufferAndPrint [10:37:12]line [10:37:12]line [10:37:12]line [10:37:12]line [10:37:12]line [10:37:12]written 0, free lines is 3419 [10:37:12]process_action close_receipt done [10:37:12]requested_data is exist [10:37:12]produce_requested_data [10:37:12]requested_item fm.sn is exist - process it [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 11 00 00 [10:37:12]Write to MH i2c: E2 08 00 1E 86 80 11 00 00 00 00 00 00 1E [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 17 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 17 00 1E 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6E [10:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:37:12]wFMCommunicate OK [10:37:12]requested_item fd.num is exist - process it [10:37:12]SAM_PROTO_GetFieldsCounters [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 00 00 [10:37:12]Write to MH i2c: E2 08 00 1F 86 80 13 00 00 00 00 00 00 21 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 62 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 62 00 1F 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9B 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [10:37: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9B 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetFieldsCounters done [10:37:12]requested_item shift.num is exist - process it [10:37:12]requested_item shift.opened is exist - process it [10:37:12]req_shift_opened [10:37:12]FM_GetShiftState [10:37:12]SAM_PROTO_GetShiftState [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 01 00 [10:37:12]Write to MH i2c: E2 08 00 20 86 80 13 01 00 00 00 00 00 23 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 20 86 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BF [10:37:12]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetShiftState done [10:37:12]FM_GetShiftState done [10:37:12]req_shift_opened done [10:37:12]requested_item shift.open_date is exist - process it [10:37:12]req_shift_open_date [10:37:12]req_shift_open_date done [10:37:12]produce_requested_data done [10:37:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94875,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:37:12]process_action_free close_receipt [10:37:12]json_value_free [10:37:12]json_value_free done [10:37:12]process_json_proto returns [10:37:12]Send response to host [10:37:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94875,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:37:12]free response buf [10:37:12]execute_script done [10:37:12]execute_script returns [10:37:12]free content buf [10:37:12]Sock 9.Close socket [10:37:12]Sock 9.Thread stoped [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:19]accept exits with 7 [10:38:19]New connection [10:38:19]New thread 3066871140 created [10:38:19]Thread 3067014500 joined [10:38:19]Waiting for new connection... [10:38:19] Sock 7.Parse request [10:38:19]Sock 7.Check first char [10:38:19]Sock 7.First char is OK [10:38:19]request: POST /json_proto HTTP/1.0 [10:38:19]Method: POST [10:38:19]URL: /json_proto [10:38:19]Method is POST - this is cgi request [10:38:19]url: /json_proto [10:38:19]query_string will be loaded in cgi processing [10:38:19]execute_cgi json_proto POST (null) [10:38:19]execute_cgi path=json_proto method=POST [10:38:19]POST find Content-Length [10:38:19]Host: 172.17.62.67:8080 [10:38:19]Content-Length: 1201 [10:38:19]Content-Type: application/json [10:38:19] [10:38:19]POST finish read [10:38:19]Found Content-Length = 1201 [10:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195822\u000A11.03.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 80.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 5672.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699948:49:50:51:47:46:45:44\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:19]execute_script... [10:38:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195822\u000A11.03.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 80.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 5672.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699948:49:50:51:47:46:45:44\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:19]POST & json_proto [10:38:19]process_json_proto [10:38:19]json parsed OK: [10:38:19]protocol is kg_v1.0 [10:38:19]action value=print_text [10:38:19]process_action print_text [10:38:19]cmd_print_text [10:38:19]ExternCall_PrintAddStr [10:38:19]wPrintStart [10:38:19]Write to MH i2c: 01 00 00 21 86 A7 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 21 86 00 80 00 00 00 FF 0F 3C [10:38:19]RasterBufferAndPrint [10:38:19]line *****ТОВАРНЫЙ ЧЕК***** [10:38:19]line АЗС 6 [10:38:19]line Партнер нефть [10:38:19]line 02508201610067 [10:38:19]line Кассир : Карыбаев Б. [10:38:19]line Счет N : (1)195822 [10:38:19]line 11.03.2024 10:32 [10:38:19]line ПРОДАЖА [10:38:19]line ТРК (МРК, ГНК): 61 [10:38:19]line Вид ГСМ : 2710194210 [10:38:19]line ДТ-К-5 [10:38:19]line 80.000 x 70.90 [10:38:19]line ИТОГ: 5672.00 [10:38:19]line Тип оплаты: Талоны: Партнер нефть [10:38:19]line 3699948:49:50:51:47:46:45:44 [10:38:19]line ______________________ [10:38:19]line (подпись) [10:38:19]written 0, free lines is 4095 [10:38:19]Write to MH i2c: 01 00 00 35 86 BB [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 35 86 00 80 00 00 00 74 0E C4 [10:38:19]RasterBufferAndPrint [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]written 0, free lines is 3704 [10:38:19]process_action print_text done [10:38:19]requested_data is exist [10:38:19]produce_requested_data [10:38:19]requested_item fm.sn is exist - process it [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 11 00 00 [10:38:19]Write to MH i2c: E2 08 00 3C 86 80 11 00 00 00 00 00 00 3C [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 17 00 3C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8C [10:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:38:19]wFMCommunicate OK [10:38:19]requested_item fd.num is exist - process it [10:38:19]SAM_PROTO_GetFieldsCounters [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 13 00 00 [10:38:19]Write to MH i2c: E2 08 00 3D 86 80 13 00 00 00 00 00 00 3F [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 62 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 62 00 3D 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9B 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [10:38: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9B 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:19]wFMCommunicate OK [10:38:19]SAM_PROTO_GetFieldsCounters done [10:38:19]requested_item shift.num is exist - process it [10:38:19]requested_item shift.opened is exist - process it [10:38:19]req_shift_opened [10:38:19]FM_GetShiftState [10:38:19]SAM_PROTO_GetShiftState [10:38:19]wFMCommunicate request_size=4 [10:38:19]MH_SAM_APDU [10:38:19]CAPDU: 80 13 01 00 [10:38:19]Write to MH i2c: E2 08 00 3E 86 80 13 01 00 00 00 00 00 41 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:19]Read from MH i2c: E2 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0E 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: E2 0E 00 3E 86 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DD [10:38:19]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:38:19]wFMCommunicate OK [10:38:19]SAM_PROTO_GetShiftState done [10:38:19]FM_GetShiftState done [10:38:19]req_shift_opened done [10:38:19]requested_item shift.open_date is exist - process it [10:38:19]req_shift_open_date [10:38:19]req_shift_open_date done [10:38:19]produce_requested_data done [10:38:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94875,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:38:19]process_action_free print_text [10:38:19]json_value_free [10:38:19]json_value_free done [10:38:19]process_json_proto returns [10:38:19]Send response to host [10:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94875,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:38:19]free response buf [10:38:19]execute_script done [10:38:19]execute_script returns [10:38:19]free content buf [10:38:19]Sock 7.Close socket [10:38:19]Sock 7.Thread stoped [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]accept exits with 9 [10:40:52]New connection [10:40:52]New thread 3067014500 created [10:40:52]Thread 3066871140 joined [10:40:52]Waiting for new connection... [10:40:52] Sock 9.Parse request [10:40:52]Sock 9.Check first char [10:40:52]Sock 9.First char is OK [10:40:52]request: POST /json_proto HTTP/1.0 [10:40:52]Method: POST [10:40:52]URL: /json_proto [10:40:52]Method is POST - this is cgi request [10:40:52]url: /json_proto [10:40:52]query_string will be loaded in cgi processing [10:40:52]execute_cgi json_proto POST (null) [10:40:52]execute_cgi path=json_proto method=POST [10:40:52]POST find Content-Length [10:40:52]Host: 172.17.62.67:8080 [10:40:52]Content-Length: 678 [10:40:52]Content-Type: application/json [10:40:52] [10:40:52]POST finish read [10:40:52]Found Content-Length = 678 [10:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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:40:52]execute_script... [10:40: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)195825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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:40:52]POST & json_proto [10:40:52]process_json_proto [10:40:52]json parsed OK: [10:40:52]protocol is kg_v1.0 [10:40:52]action value=close_receipt [10:40:52]process_action close_receipt [10:40:52]cmd_close_receipt [10:40:52]MH_GetDate [10:40:52]Write to MH i2c: F0 00 00 3F 86 B4 [10:40:52]Write i2c OK [10:40:52]MH_I2C_Read... [10:40:52]Read from MH i2c: F0 [10:40:52]MH_I2C_Read... [10:40:52]Read from MH i2c: F0 05 00 [10:40:52]MH_I2C_Read... [10:40:52]Read from MH i2c: F0 05 00 3F 86 00 C2 DF EE 65 AD [10:40:52]GetLastDocTimeStamp 1710153443 [10:40:52]current date 1710153666 [10:40:52]FM_GetShiftState [10:40:52]SAM_PROTO_GetShiftState [10:40:52]wFMCommunicate request_size=4 [10:40:52]MH_SAM_APDU [10:40:52]CAPDU: 80 13 01 00 [10:40:52]Write to MH i2c: E2 08 00 40 86 80 13 01 00 00 00 00 00 43 [10:40:52]Write i2c OK [10:40:52]MH_I2C_Read... [10:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:52]Read from MH i2c: E2 [10:40:52]MH_I2C_Read... [10:40:52]Read from MH i2c: E2 0E 00 [10:40:52]MH_I2C_Read... [10:40:52]Read from MH i2c: E2 0E 00 40 86 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DF [10:40:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:40:52]wFMCommunicate OK [10:40:52]SAM_PROTO_GetShiftState done [10:40:52]FM_GetShiftState done [10:40:52]opened in 1710115571 [10:40:52]opened+sec_in_day 1710201971 [10:40:52]quantity*price = 70007 [10:40:52]sum+1 = 70009 [10:40:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 51 11.03.2024 10:41 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94876 ФПД: 247114015430445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T104106&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94876&fm=247114015430445&tin=02508201610067®Number=0000000000090555&sum=70000 [10:40:53]StoreToDocumentArchive [10:40:53]shift 326 fd 94876 [10:40:53]save to /storage/0326/doc_00094876 [10:40:53]save last doc name /storage/0326/doc_00094876 to /storage/kkm_last_doc_name [10:40:53]save OK [10:40:53]Clear old archive folders... [10:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:53]tlvbuf is 00213560 [10:40:53]SAM_PROTO_ClearQueue [10:40:53]wFMCommunicate request_size=4 [10:40:53]MH_SAM_APDU [10:40:53]CAPDU: 80 09 00 00 [10:40:53]Write to MH i2c: E2 08 00 4D 86 80 09 00 00 00 00 00 00 45 [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:53]Read from MH i2c: E2 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: E2 03 00 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: E2 03 00 4D 86 00 90 00 47 [10:40:53]RAPDU: 90 00 [10:40:53]wFMCommunicate OK [10:40:53]SAM_PROTO_ClearQueue done [10:40:53]KKMCreateOFDPacket [10:40:53]OFDProtocolAddRootSTLVToBuf [10:40:53]FM_MakeSignedData [10:40:53]FM_MakeSignedData [10:40:53]SAM_PROTO_SignData [10:40:53]wFMCommunicate request_size=4 [10:40:53]MH_SAM_APDU [10:40:53]CAPDU: 80 0D 01 02 [10:40:53]Write to MH i2c: E2 08 00 4E 86 80 0D 01 02 00 00 00 00 4D [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:53]Read from MH i2c: E2 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: E2 03 00 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: E2 03 00 4E 86 00 90 00 48 [10:40:53]RAPDU: 90 00 [10:40:53]wFMCommunicate OK [10:40:53]wFMCommunicate request_size=255 [10:40:53]MH_SAM_APDU [10:40:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 33 00 00 00 F4 03 04 00 C2 DF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 72 01 00 35 04 06 00 E0 [10:40:53]Write to MH i2c: E2 02 01 4F 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 33 00 00 00 F4 03 04 00 C2 DF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 72 01 00 35 04 06 00 E0 00 00 21 [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:53]Read from MH i2c: E2 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: E2 03 00 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: E2 03 00 4F 86 00 90 00 49 [10:40:53]RAPDU: 90 00 [10:40:53]wFMCommunicate OK [10:40:53]wFMCommunicate request_size=10 [10:40:53]MH_SAM_APDU [10:40:53]CAPDU: 80 0D 02 02 05 BF B7 1B D7 2D [10:40:53]Write to MH i2c: E2 0D 00 50 86 80 0D 02 02 05 00 BF B7 1B D7 2D 00 00 EF [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:53]Read from MH i2c: E2 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: E2 03 00 [10:40:53]MH_I2C_Read... [10:40:53]Read from MH i2c: E2 03 00 50 86 00 90 00 4A [10:40:53]RAPDU: 90 00 [10:40:53]wFMCommunicate OK [10:40:53]wFMCommunicate request_size=4 [10:40:53]MH_SAM_APDU [10:40:53]CAPDU: 80 0D 03 02 [10:40:53]Write to MH i2c: E2 08 00 51 86 80 0D 03 02 00 00 00 00 52 [10:40:53]Write i2c OK [10:40:53]MH_I2C_Read... [10:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:54]Read from MH i2c: E2 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 0B 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 0B 00 51 86 00 8D 42 E7 BA A9 C5 72 CE 90 00 71 [10:40:54]RAPDU: 8D 42 E7 BA A9 C5 72 CE 90 00 [10:40:54]wFMCommunicate OK [10:40:54]SAM_PROTO_SignData done [10:40:54]FM_MakeSignedData done [10:40:54]CreateOFDProtocolMessage [10:40:54]wFMCommunicate request_size=4 [10:40:54]MH_SAM_APDU [10:40:54]CAPDU: 80 11 00 00 [10:40:54]Write to MH i2c: E2 08 00 52 86 80 11 00 00 00 00 00 00 52 [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:54]Read from MH i2c: E2 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 17 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 17 00 52 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A2 [10:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:40:54]wFMCommunicate OK [10:40:54]CreateOFDProtocolMessage done [10:40:54]OFDSenderStorePacket 94876 [10:40:54]StoreOFDPacket docnum=94876 [10:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3B 4A 07 01 B9 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 33 00 00 00 F4 03 04 00 C2 DF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 72 01 00 35 04 06 00 E0 BF B7 1B D7 2D 8D 42 E7 BA A9 C5 72 CE [10:40:54]CheckFolder [10:40:54]dirname=/storage/ofd_packets [10:40:54]CheckFolder done [10:40:54]ProducePacketName [10:40:54]name=ofd_packets/00094876 [10:40:54]NVStorageSaveData ofd_packets/00094876 [10:40:54]File name is /storage/ofd_packets/00094876 [10:40:54]Write 301 bytes [10:40:54]NVStorageSaveData done [10:40:54]OFDSenderStorePacket done [10:40:54]KKMCreateOFDPacket done [10:40:54]NVStorageSaveData kkm_last_timestamp [10:40:54]File name is /storage/kkm_last_timestamp [10:40:54]Write 4 bytes [10:40:54]NVStorageSaveData done [10:40:54]ExternCall_PrintAddStr [10:40:54]wPrintStart [10:40:54]Write to MH i2c: 01 00 00 53 86 D9 [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: 01 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: 01 07 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: 01 07 00 53 86 00 80 00 00 00 FF 0F 6E [10:40:54]RasterBufferAndPrint [10:40:54]line Счет N : (1)195825 [10:40:54]line ИНН: 02508201610067 [10:40:54]line Контрольно-Кассовый Чек [10:40:54]line ПРОДАЖА [10:40:54]line ТРК (МРК, ГНК) : 32 [10:40:54]line Товар: 2710124130 [10:40:54]line Аи-92-К-5 [10:40:54]line 11.130 * 62.90 [10:40:54]line = 700.08 [10:40:54]line НДС 12% НСП 1% [10:40:54]line > о реализуемом товаре [10:40:54]line ОКРУГЛЕНИЕ: -0.08 [10:40:54]line ИТОГО: 700.00 [10:40:54]line Внесено: 700.00 [10:40:54]line СДАЧА: 0.00 [10:40:54]line НСП 1% : 6.19 [10:40:54]line НДС 12% : 74.34 [10:40:54]line Наличными: 700.00 [10:40:54]line Безнал.: 0.00 [10:40:54]line Место: АЗС № 6 "Партнер Нефть" [10:40:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:40:54]line СНО: Общий режим [10:40:54]line Чек 51 11.03.2024 10:41 [10:40:54]line Смена: 326 ФФД: 1.0 [10:40:54]line ЗНМ: 0300000009 [10:40:54]line РНМ: 0000000000090555 [10:40:54]line Версия ККМ: 001 [10:40:54]line ФМ: 0000000000874811 [10:40:54]line ФД: 94876 [10:40:54]line ФПД: 247114015430445 [10:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T104106&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94876&fm=247114015430445&tin=02508201610067®Number=0000000000090555&sum=70000 [10:40:54]OFD Sender: Processing packet 94876 [packets to send 30, broken 29] [10:40:54]ProducePacketName [10:40:54]name=ofd_packets/00094876 [10:40:54]OFD Sender: To server: pG, [10:40:54]CommunicateWithHost lk.salyk.kg:30040 [10:40:54]ConnectInit lk.salyk.kg [10:40:54]written 0, free lines is 4095 [10:40:54]Connected sock=10 [10:40: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 31 31 0F 01 00 00 3B 4A 07 01 B9 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 33 00 00 00 F4 03 04 00 C2 DF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 72 01 00 35 04 06 00 E0 BF B7 1B D7 2D 8D 42 E7 BA A9 C5 72 CE [10:40: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 31 31 4F 00 00 00 53 C0 47 00 87 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 72 01 00 F4 03 04 00 1B 8B EE 65 B6 04 01 00 00 72 8E BD 7B E3 6D 5C 1B [10:40:54]CommunicateWithHost err = 0 [10:40:54]CheckOFDResponse [10:40:54]1017 (14) - 77093643461234 [10:40:54]1041 (16) - 0000000000874811 [10:40:54]1040 (4) - 94876 [10:40:54]1012 (4) - 11.03.2024 04:39 [10:40:54]1206 (1) - 0 [10:40:54]OFD Sender: Remove packet 94876 [10:40:54]ProducePacketName [10:40:54]name=ofd_packets/00094876 [10:40:54]NVStorageDeleteData [10:40:54]Write to MH i2c: 01 00 00 7E 86 04 [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: 01 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: 01 07 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: 01 07 00 7E 86 00 80 00 00 00 4C 0D E4 [10:40:54]RasterBufferAndPrint [10:40:54]line [10:40:54]line [10:40:54]line [10:40:54]line [10:40:54]line [10:40:54]written 0, free lines is 3410 [10:40:54]process_action close_receipt done [10:40:54]requested_data is exist [10:40:54]produce_requested_data [10:40:54]requested_item fm.sn is exist - process it [10:40:54]wFMCommunicate request_size=4 [10:40:54]MH_SAM_APDU [10:40:54]CAPDU: 80 11 00 00 [10:40:54]Write to MH i2c: E2 08 00 85 86 80 11 00 00 00 00 00 00 85 [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:54]Read from MH i2c: E2 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 17 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 17 00 85 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D5 [10:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:40:54]wFMCommunicate OK [10:40:54]requested_item fd.num is exist - process it [10:40:54]SAM_PROTO_GetFieldsCounters [10:40:54]wFMCommunicate request_size=4 [10:40:54]MH_SAM_APDU [10:40:54]CAPDU: 80 13 00 00 [10:40:54]Write to MH i2c: E2 08 00 86 86 80 13 00 00 00 00 00 00 88 [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 62 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 62 00 86 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9C 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [10:40: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9C 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:55]wFMCommunicate OK [10:40:55]SAM_PROTO_GetFieldsCounters done [10:40:55]requested_item shift.num is exist - process it [10:40:55]requested_item shift.opened is exist - process it [10:40:55]req_shift_opened [10:40:55]FM_GetShiftState [10:40:55]SAM_PROTO_GetShiftState [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 13 01 00 [10:40:55]Write to MH i2c: E2 08 00 87 86 80 13 01 00 00 00 00 00 8A [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 0E 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 0E 00 87 86 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 26 [10:40:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:40:55]wFMCommunicate OK [10:40:55]SAM_PROTO_GetShiftState done [10:40:55]FM_GetShiftState done [10:40:55]req_shift_opened done [10:40:55]requested_item shift.open_date is exist - process it [10:40:55]req_shift_open_date [10:40:55]req_shift_open_date done [10:40:55]produce_requested_data done [10:40:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94876,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:40:55]process_action_free close_receipt [10:40:55]json_value_free [10:40:55]json_value_free done [10:40:55]process_json_proto returns [10:40:55]Send response to host [10:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94876,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:40:55]free response buf [10:40:55]execute_script done [10:40:55]execute_script returns [10:40:55]free content buf [10:40:55]Sock 9.Close socket [10:40:55]Sock 9.Thread stoped [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:39]accept exits with 7 [10:45:39]New connection [10:45:39]New thread 3066871140 created [10:45:39]Thread 3067014500 joined [10:45:39]Waiting for new connection... [10:45:39] Sock 7.Parse request [10:45:39]Sock 7.Check first char [10:45:39]Sock 7.First char is OK [10:45:39]request: POST /json_proto HTTP/1.0 [10:45:39]Method: POST [10:45:39]URL: /json_proto [10:45:39]Method is POST - this is cgi request [10:45:39]url: /json_proto [10:45:39]query_string will be loaded in cgi processing [10:45:39]execute_cgi json_proto POST (null) [10:45:39]execute_cgi path=json_proto method=POST [10:45:39]POST find Content-Length [10:45:39]Host: 172.17.62.67:8080 [10:45:39]Content-Length: 682 [10:45:39]Content-Type: application/json [10:45:39] [10:45:39]POST finish read [10:45:39]Found Content-Length = 682 [10:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:45:39]execute_script... [10:45: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)195826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:45:39]POST & json_proto [10:45:39]process_json_proto [10:45:39]json parsed OK: [10:45:39]protocol is kg_v1.0 [10:45:39]action value=close_receipt [10:45:39]process_action close_receipt [10:45:39]cmd_close_receipt [10:45:39]MH_GetDate [10:45:39]Write to MH i2c: F0 00 00 88 86 FD [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: F0 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: F0 05 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: F0 05 00 88 86 00 E1 E0 EE 65 16 [10:45:39]GetLastDocTimeStamp 1710153666 [10:45:39]current date 1710153953 [10:45:39]FM_GetShiftState [10:45:39]SAM_PROTO_GetShiftState [10:45:39]wFMCommunicate request_size=4 [10:45:39]MH_SAM_APDU [10:45:39]CAPDU: 80 13 01 00 [10:45:39]Write to MH i2c: E2 08 00 89 86 80 13 01 00 00 00 00 00 8C [10:45:39]Write i2c OK [10:45:39]MH_I2C_Read... [10:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:39]Read from MH i2c: E2 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 0E 00 [10:45:39]MH_I2C_Read... [10:45:39]Read from MH i2c: E2 0E 00 89 86 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 28 [10:45:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:45:39]wFMCommunicate OK [10:45:39]SAM_PROTO_GetShiftState done [10:45:39]FM_GetShiftState done [10:45:39]opened in 1710115571 [10:45:39]opened+sec_in_day 1710201971 [10:45:39]quantity*price = 100011 [10:45:39]sum+1 = 100012 [10:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 52 11.03.2024 10:45 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94877 ФПД: 280083692356168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T104553&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94877&fm=280083692356168&tin=02508201610067®Number=0000000000090555&sum=100000 [10:45:40]StoreToDocumentArchive [10:45:40]shift 326 fd 94877 [10:45:40]save to /storage/0326/doc_00094877 [10:45:40]save last doc name /storage/0326/doc_00094877 to /storage/kkm_last_doc_name [10:45:40]save OK [10:45:40]Clear old archive folders... [10:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:40]tlvbuf is 00248FD0 [10:45:40]SAM_PROTO_ClearQueue [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 09 00 00 [10:45:40]Write to MH i2c: E2 08 00 96 86 80 09 00 00 00 00 00 00 8E [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:40]Read from MH i2c: E2 03 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 96 86 00 90 00 90 [10:45:40]RAPDU: 90 00 [10:45:40]wFMCommunicate OK [10:45:40]SAM_PROTO_ClearQueue done [10:45:40]KKMCreateOFDPacket [10:45:40]OFDProtocolAddRootSTLVToBuf [10:45:40]FM_MakeSignedData [10:45:40]FM_MakeSignedData [10:45:40]SAM_PROTO_SignData [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 0D 01 02 [10:45:40]Write to MH i2c: E2 08 00 97 86 80 0D 01 02 00 00 00 00 96 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 97 86 00 90 00 91 [10:45:40]RAPDU: 90 00 [10:45:40]wFMCommunicate OK [10:45:40]wFMCommunicate request_size=255 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E1 E0 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 72 01 00 35 04 06 00 FE [10:45:40]Write to MH i2c: E2 02 01 98 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E1 E0 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 72 01 00 35 04 06 00 FE 00 00 DB [10:45:40]OFD Sender: No OFD packet to send [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 98 86 00 90 00 92 [10:45:40]RAPDU: 90 00 [10:45:40]wFMCommunicate OK [10:45:40]wFMCommunicate request_size=10 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 0D 02 02 05 BC 10 FD 82 48 [10:45:40]Write to MH i2c: E2 0D 00 99 86 80 0D 02 02 05 00 BC 10 FD 82 48 00 00 36 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 03 00 99 86 00 90 00 93 [10:45:40]RAPDU: 90 00 [10:45:40]wFMCommunicate OK [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 0D 03 02 [10:45:40]Write to MH i2c: E2 08 00 9A 86 80 0D 03 02 00 00 00 00 9B [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 0B 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 0B 00 9A 86 00 3B 61 B6 B3 4E CF D6 C6 90 00 5A [10:45:40]RAPDU: 3B 61 B6 B3 4E CF D6 C6 90 00 [10:45:40]wFMCommunicate OK [10:45:40]SAM_PROTO_SignData done [10:45:40]FM_MakeSignedData done [10:45:40]CreateOFDProtocolMessage [10:45:40]wFMCommunicate request_size=4 [10:45:40]MH_SAM_APDU [10:45:40]CAPDU: 80 11 00 00 [10:45:40]Write to MH i2c: E2 08 00 9B 86 80 11 00 00 00 00 00 00 9B [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:40]Read from MH i2c: E2 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 17 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: E2 17 00 9B 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EB [10:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:45:40]wFMCommunicate OK [10:45:40]CreateOFDProtocolMessage done [10:45:40]OFDSenderStorePacket 94877 [10:45:40]StoreOFDPacket docnum=94877 [10:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C6 69 07 01 5B 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E1 E0 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 72 01 00 35 04 06 00 FE BC 10 FD 82 48 3B 61 B6 B3 4E CF D6 C6 [10:45:40]CheckFolder [10:45:40]dirname=/storage/ofd_packets [10:45:40]CheckFolder done [10:45:40]ProducePacketName [10:45:40]name=ofd_packets/00094877 [10:45:40]NVStorageSaveData ofd_packets/00094877 [10:45:40]File name is /storage/ofd_packets/00094877 [10:45:40]Write 301 bytes [10:45:40]NVStorageSaveData done [10:45:40]OFDSenderStorePacket done [10:45:40]KKMCreateOFDPacket done [10:45:40]NVStorageSaveData kkm_last_timestamp [10:45:40]File name is /storage/kkm_last_timestamp [10:45:40]Write 4 bytes [10:45:40]NVStorageSaveData done [10:45:40]ExternCall_PrintAddStr [10:45:40]wPrintStart [10:45:40]Write to MH i2c: 01 00 00 9C 86 22 [10:45:40]Write i2c OK [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 [10:45:40]MH_I2C_Read... [10:45:40]Read from MH i2c: 01 07 00 9C 86 00 80 00 00 00 FF 0F B7 [10:45:40]RasterBufferAndPrint [10:45:40]line Счет N : (1)195826 [10:45:40]line ИНН: 02508201610067 [10:45:40]line Контрольно-Кассовый Чек [10:45:40]line ПРОДАЖА [10:45:40]line ТРК (МРК, ГНК) : 22 [10:45:40]line Товар: 2710124130 [10:45:40]line Аи-92-К-5 [10:45:40]line 15.900 * 62.90 [10:45:40]line = 1000.11 [10:45:40]line НДС 12% НСП 1% [10:45:40]line > о реализуемом товаре [10:45:40]line ОКРУГЛЕНИЕ: -0.11 [10:45:40]line ИТОГО: 1000.00 [10:45:40]line Внесено: 1000.00 [10:45:40]line СДАЧА: 0.00 [10:45:40]line НСП 1% : 8.85 [10:45:40]line НДС 12% : 106.21 [10:45:40]line Наличными: 1000.00 [10:45:40]line Безнал.: 0.00 [10:45:40]line Место: АЗС № 6 "Партнер Нефть" [10:45:40]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:45:40]line СНО: Общий режим [10:45:40]line Чек 52 11.03.2024 10:45 [10:45:40]line Смена: 326 ФФД: 1.0 [10:45:40]line ЗНМ: 0300000009 [10:45:40]line РНМ: 0000000000090555 [10:45:40]line Версия ККМ: 001 [10:45:40]line ФМ: 0000000000874811 [10:45:40]line ФД: 94877 [10:45:40]line ФПД: 280083692356168 [10:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T104553&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94877&fm=280083692356168&tin=02508201610067®Number=0000000000090555&sum=100000 [10:45:40]written 0, free lines is 4095 [10:45:40]OFD Sender: Processing packet 94877 [packets to send 30, broken 29] [10:45:40]ProducePacketName [10:45:40]name=ofd_packets/00094877 [10:45:40]OFD Sender: To server: pG, [10:45:40]CommunicateWithHost lk.salyk.kg:30040 [10:45:40]ConnectInit lk.salyk.kg [10:45:41]Connected sock=11 [10:45: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 31 31 0F 01 00 00 C6 69 07 01 5B 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 E1 E0 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 72 01 00 35 04 06 00 FE BC 10 FD 82 48 3B 61 B6 B3 4E CF D6 C6 [10:45: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 31 31 4F 00 00 00 46 DC 47 00 C6 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 72 01 00 F4 03 04 00 3A 8C EE 65 B6 04 01 00 00 3C 30 A3 50 3F B5 CC A4 [10:45:41]CommunicateWithHost err = 0 [10:45:41]CheckOFDResponse [10:45:41]1017 (14) - 77093643461234 [10:45:41]1041 (16) - 0000000000874811 [10:45:41]1040 (4) - 94877 [10:45:41]1012 (4) - 11.03.2024 04:44 [10:45:41]1206 (1) - 0 [10:45:41]OFD Sender: Remove packet 94877 [10:45:41]ProducePacketName [10:45:41]name=ofd_packets/00094877 [10:45:41]NVStorageDeleteData [10:45:41]Write to MH i2c: 01 00 00 C7 86 4D [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: 01 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: 01 07 00 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: 01 07 00 C7 86 00 80 00 00 00 67 0D 48 [10:45:41]RasterBufferAndPrint [10:45:41]line [10:45:41]line [10:45:41]line [10:45:41]line [10:45:41]line [10:45:41]written 0, free lines is 3437 [10:45:41]process_action close_receipt done [10:45:41]requested_data is exist [10:45:41]produce_requested_data [10:45:41]requested_item fm.sn is exist - process it [10:45:41]wFMCommunicate request_size=4 [10:45:41]MH_SAM_APDU [10:45:41]CAPDU: 80 11 00 00 [10:45:41]Write to MH i2c: E2 08 00 CE 86 80 11 00 00 00 00 00 00 CE [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:41]Read from MH i2c: E2 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: E2 17 00 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: E2 17 00 CE 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1E [10:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:45:41]wFMCommunicate OK [10:45:41]requested_item fd.num is exist - process it [10:45:41]SAM_PROTO_GetFieldsCounters [10:45:41]wFMCommunicate request_size=4 [10:45:41]MH_SAM_APDU [10:45:41]CAPDU: 80 13 00 00 [10:45:41]Write to MH i2c: E2 08 00 CF 86 80 13 00 00 00 00 00 00 D1 [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:41]Read from MH i2c: E2 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: E2 62 00 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: E2 62 00 CF 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:45: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9D 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:41]wFMCommunicate OK [10:45:41]SAM_PROTO_GetFieldsCounters done [10:45:41]requested_item shift.num is exist - process it [10:45:41]requested_item shift.opened is exist - process it [10:45:41]req_shift_opened [10:45:41]FM_GetShiftState [10:45:41]SAM_PROTO_GetShiftState [10:45:41]wFMCommunicate request_size=4 [10:45:41]MH_SAM_APDU [10:45:41]CAPDU: 80 13 01 00 [10:45:41]Write to MH i2c: E2 08 00 D0 86 80 13 01 00 00 00 00 00 D3 [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:41]Read from MH i2c: E2 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: E2 0E 00 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: E2 0E 00 D0 86 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 6F [10:45:41]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:45:41]wFMCommunicate OK [10:45:41]SAM_PROTO_GetShiftState done [10:45:41]FM_GetShiftState done [10:45:41]req_shift_opened done [10:45:41]requested_item shift.open_date is exist - process it [10:45:41]req_shift_open_date [10:45:41]req_shift_open_date done [10:45:41]produce_requested_data done [10:45:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94877,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:45:41]process_action_free close_receipt [10:45:41]json_value_free [10:45:41]json_value_free done [10:45:41]process_json_proto returns [10:45:41]Send response to host [10:45:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94877,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:45:41]free response buf [10:45:41]execute_script done [10:45:41]execute_script returns [10:45:41]free content buf [10:45:41]Sock 7.Close socket [10:45:41]Sock 7.Thread stoped [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:13]accept exits with 9 [10:50:13]New connection [10:50:13]New thread 3067014500 created [10:50:13]Thread 3066871140 joined [10:50:13]Waiting for new connection... [10:50:13] Sock 9.Parse request [10:50:13]Sock 9.Check first char [10:50:13]Sock 9.First char is OK [10:50:13]request: POST /json_proto HTTP/1.0 [10:50:13]Method: POST [10:50:13]URL: /json_proto [10:50:13]Method is POST - this is cgi request [10:50:13]url: /json_proto [10:50:13]query_string will be loaded in cgi processing [10:50:13]execute_cgi json_proto POST (null) [10:50:13]execute_cgi path=json_proto method=POST [10:50:13]POST find Content-Length [10:50:13]Host: 172.17.62.67:8080 [10:50:13]Content-Length: 682 [10:50:13]Content-Type: application/json [10:50:13] [10:50:13]POST finish read [10:50:13]Found Content-Length = 682 [10:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:13]execute_script... [10:50: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)195827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:13]POST & json_proto [10:50:13]process_json_proto [10:50:13]json parsed OK: [10:50:13]protocol is kg_v1.0 [10:50:13]action value=close_receipt [10:50:13]process_action close_receipt [10:50:13]cmd_close_receipt [10:50:13]MH_GetDate [10:50:13]Write to MH i2c: F0 00 00 D1 86 46 [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: F0 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: F0 05 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: F0 05 00 D1 86 00 F3 E1 EE 65 72 [10:50:13]GetLastDocTimeStamp 1710153953 [10:50:13]current date 1710154227 [10:50:13]FM_GetShiftState [10:50:13]SAM_PROTO_GetShiftState [10:50:13]wFMCommunicate request_size=4 [10:50:13]MH_SAM_APDU [10:50:13]CAPDU: 80 13 01 00 [10:50:13]Write to MH i2c: E2 08 00 D2 86 80 13 01 00 00 00 00 00 D5 [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:13]Read from MH i2c: E2 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 0E 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 0E 00 D2 86 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 71 [10:50:13]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:50:13]wFMCommunicate OK [10:50:13]SAM_PROTO_GetShiftState done [10:50:13]FM_GetShiftState done [10:50:13]opened in 1710115571 [10:50:13]opened+sec_in_day 1710201971 [10:50:13]quantity*price = 300031 [10:50:13]sum+1 = 300033 [10:50:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 53 11.03.2024 10:50 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94878 ФПД: 76625832610989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T105027&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94878&fm=76625832610989&tin=02508201610067®Number=0000000000090555&sum=300000 [10:50:14]StoreToDocumentArchive [10:50:14]shift 326 fd 94878 [10:50:14]save to /storage/0326/doc_00094878 [10:50:14]save last doc name /storage/0326/doc_00094878 to /storage/kkm_last_doc_name [10:50:14]save OK [10:50:14]Clear old archive folders... [10:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:14]tlvbuf is 001920D0 [10:50:14]SAM_PROTO_ClearQueue [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 09 00 00 [10:50:14]Write to MH i2c: E2 08 00 DF 86 80 09 00 00 00 00 00 00 D7 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 DF 86 00 90 00 D9 [10:50:14]RAPDU: 90 00 [10:50:14]wFMCommunicate OK [10:50:14]SAM_PROTO_ClearQueue done [10:50:14]KKMCreateOFDPacket [10:50:14]OFDProtocolAddRootSTLVToBuf [10:50:14]FM_MakeSignedData [10:50:14]FM_MakeSignedData [10:50:14]SAM_PROTO_SignData [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 0D 01 02 [10:50:14]Write to MH i2c: E2 08 00 E0 86 80 0D 01 02 00 00 00 00 DF [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 E0 86 00 90 00 DA [10:50:14]RAPDU: 90 00 [10:50:14]wFMCommunicate OK [10:50:14]wFMCommunicate request_size=255 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F3 E1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 72 01 00 35 04 06 00 45 [10:50:14]Write to MH i2c: E2 02 01 E1 86 80 0D 02 02 FA 00 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 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F3 E1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 72 01 00 35 04 06 00 45 00 00 4E [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:14]Read from MH i2c: E2 03 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 E1 86 00 90 00 DB [10:50:14]RAPDU: 90 00 [10:50:14]wFMCommunicate OK [10:50:14]wFMCommunicate request_size=10 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 0D 02 02 05 B0 D7 88 8C AD [10:50:14]Write to MH i2c: E2 0D 00 E2 86 80 0D 02 02 05 00 B0 D7 88 8C AD 00 00 34 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 E2 86 00 90 00 DC [10:50:14]RAPDU: 90 00 [10:50:14]wFMCommunicate OK [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 0D 03 02 [10:50:14]Write to MH i2c: E2 08 00 E3 86 80 0D 03 02 00 00 00 00 E4 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 0B 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 0B 00 E3 86 00 7C 66 02 5A F4 C9 5C D7 90 00 13 [10:50:14]RAPDU: 7C 66 02 5A F4 C9 5C D7 90 00 [10:50:14]wFMCommunicate OK [10:50:14]SAM_PROTO_SignData done [10:50:14]FM_MakeSignedData done [10:50:14]CreateOFDProtocolMessage [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 11 00 00 [10:50:14]Write to MH i2c: E2 08 00 E4 86 80 11 00 00 00 00 00 00 E4 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 17 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 17 00 E4 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 34 [10:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:50:14]wFMCommunicate OK [10:50:14]CreateOFDProtocolMessage done [10:50:14]OFDSenderStorePacket 94878 [10:50:14]StoreOFDPacket docnum=94878 [10:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1C 49 07 01 96 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F3 E1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 72 01 00 35 04 06 00 45 B0 D7 88 8C AD 7C 66 02 5A F4 C9 5C D7 [10:50:14]CheckFolder [10:50:14]dirname=/storage/ofd_packets [10:50:14]CheckFolder done [10:50:14]ProducePacketName [10:50:14]name=ofd_packets/00094878 [10:50:14]NVStorageSaveData ofd_packets/00094878 [10:50:14]File name is /storage/ofd_packets/00094878 [10:50:14]Write 301 bytes [10:50:14]NVStorageSaveData done [10:50:14]OFDSenderStorePacket done [10:50:14]KKMCreateOFDPacket done [10:50:14]NVStorageSaveData kkm_last_timestamp [10:50:14]File name is /storage/kkm_last_timestamp [10:50:14]Write 4 bytes [10:50:14]NVStorageSaveData done [10:50:14]ExternCall_PrintAddStr [10:50:14]wPrintStart [10:50:14]Write to MH i2c: 01 00 00 E5 86 6B [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: 01 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: 01 07 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: 01 07 00 E5 86 00 80 00 00 00 FF 0F 00 [10:50:14]RasterBufferAndPrint [10:50:14]line Счет N : (1)195827 [10:50:14]line ИНН: 02508201610067 [10:50:14]line Контрольно-Кассовый Чек [10:50:14]line ПРОДАЖА [10:50:14]line ТРК (МРК, ГНК) : 41 [10:50:14]line Товар: 2710124500 [10:50:14]line Аи-95-К-5 [10:50:14]line 43.170 * 69.50 [10:50:14]line = 3000.32 [10:50:14]line НДС 12% НСП 1% [10:50:14]line > о реализуемом товаре [10:50:14]line ОКРУГЛЕНИЕ: -0.32 [10:50:14]line ИТОГО: 3000.00 [10:50:14]line Внесено: 3000.00 [10:50:14]line СДАЧА: 0.00 [10:50:14]line НСП 1% : 26.55 [10:50:14]line НДС 12% : 318.62 [10:50:14]line Наличными: 3000.00 [10:50:14]line Безнал.: 0.00 [10:50:14]line Место: АЗС № 6 "Партнер Нефть" [10:50:14]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:50:14]line СНО: Общий режим [10:50:14]line Чек 53 11.03.2024 10:50 [10:50:14]line Смена: 326 ФФД: 1.0 [10:50:14]line ЗНМ: 0300000009 [10:50:14]line РНМ: 0000000000090555 [10:50:14]line Версия ККМ: 001 [10:50:14]line ФМ: 0000000000874811 [10:50:14]line ФД: 94878 [10:50:14]line ФПД: 76625832610989 [10:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T105027&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94878&fm=76625832610989&tin=02508201610067®Number=0000000000090555&sum=300000 [10:50:15]OFD Sender: Processing packet 94878 [packets to send 30, broken 29] [10:50:15]ProducePacketName [10:50:15]name=ofd_packets/00094878 [10:50:15]OFD Sender: To server: pG, [10:50:15]CommunicateWithHost lk.salyk.kg:30040 [10:50:15]ConnectInit lk.salyk.kg [10:50:15]written 0, free lines is 4095 [10:50:15]Connected sock=10 [10:50: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 31 31 0F 01 00 00 1C 49 07 01 96 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 F3 E1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 72 01 00 35 04 06 00 45 B0 D7 88 8C AD 7C 66 02 5A F4 C9 5C D7 [10:50: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 31 31 4F 00 00 00 D1 09 47 00 98 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 72 01 00 F4 03 04 00 4C 8D EE 65 B6 04 01 00 00 28 EA 45 E1 54 72 CF 9C [10:50:15]CommunicateWithHost err = 0 [10:50:15]CheckOFDResponse [10:50:15]1017 (14) - 77093643461234 [10:50:15]1041 (16) - 0000000000874811 [10:50:15]1040 (4) - 94878 [10:50:15]1012 (4) - 11.03.2024 04:49 [10:50:15]1206 (1) - 0 [10:50:15]OFD Sender: Remove packet 94878 [10:50:15]ProducePacketName [10:50:15]name=ofd_packets/00094878 [10:50:15]NVStorageDeleteData [10:50:15]Write to MH i2c: 01 00 00 10 87 97 [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: 01 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: 01 07 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: 01 07 00 10 87 00 80 00 00 00 58 0D 83 [10:50:15]RasterBufferAndPrint [10:50:15]line [10:50:15]line [10:50:15]line [10:50:15]line [10:50:15]line [10:50:15]written 0, free lines is 3422 [10:50:15]process_action close_receipt done [10:50:15]requested_data is exist [10:50:15]produce_requested_data [10:50:15]requested_item fm.sn is exist - process it [10:50:15]wFMCommunicate request_size=4 [10:50:15]MH_SAM_APDU [10:50:15]CAPDU: 80 11 00 00 [10:50:15]Write to MH i2c: E2 08 00 17 87 80 11 00 00 00 00 00 00 18 [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:15]Read from MH i2c: E2 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 17 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 17 00 17 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 68 [10:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:50:15]wFMCommunicate OK [10:50:15]requested_item fd.num is exist - process it [10:50:15]SAM_PROTO_GetFieldsCounters [10:50:15]wFMCommunicate request_size=4 [10:50:15]MH_SAM_APDU [10:50:15]CAPDU: 80 13 00 00 [10:50:15]Write to MH i2c: E2 08 00 18 87 80 13 00 00 00 00 00 00 1B [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:15]Read from MH i2c: E2 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 62 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 62 00 18 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [10:50: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:15]wFMCommunicate OK [10:50:15]SAM_PROTO_GetFieldsCounters done [10:50:15]requested_item shift.num is exist - process it [10:50:15]requested_item shift.opened is exist - process it [10:50:15]req_shift_opened [10:50:15]FM_GetShiftState [10:50:15]SAM_PROTO_GetShiftState [10:50:15]wFMCommunicate request_size=4 [10:50:15]MH_SAM_APDU [10:50:15]CAPDU: 80 13 01 00 [10:50:15]Write to MH i2c: E2 08 00 19 87 80 13 01 00 00 00 00 00 1D [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:15]OFD Sender: No OFD packet to send [10:50:15]Read from MH i2c: E2 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 0E 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 0E 00 19 87 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B9 [10:50:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [10:50:15]wFMCommunicate OK [10:50:15]SAM_PROTO_GetShiftState done [10:50:15]FM_GetShiftState done [10:50:15]req_shift_opened done [10:50:15]requested_item shift.open_date is exist - process it [10:50:15]req_shift_open_date [10:50:15]req_shift_open_date done [10:50:15]produce_requested_data done [10:50:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94878,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [10:50:15]process_action_free close_receipt [10:50:15]json_value_free [10:50:15]json_value_free done [10:50:15]process_json_proto returns [10:50:16]Send response to host [10:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94878,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [10:50:16]free response buf [10:50:16]execute_script done [10:50:16]execute_script returns [10:50:16]free content buf [10:50:16]Sock 9.Close socket [10:50:16]Sock 9.Thread stoped [10:50:20]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:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:49]accept exits with 7 [11:04:49]New connection [11:04:49]New thread 3066871140 created [11:04:49]Thread 3067014500 joined [11:04:49]Waiting for new connection... [11:04:49] Sock 7.Parse request [11:04:49]Sock 7.Check first char [11:04:49]Sock 7.First char is OK [11:04:49]request: POST /json_proto HTTP/1.0 [11:04:49]Method: POST [11:04:49]URL: /json_proto [11:04:49]Method is POST - this is cgi request [11:04:49]url: /json_proto [11:04:49]query_string will be loaded in cgi processing [11:04:49]execute_cgi json_proto POST (null) [11:04:49]execute_cgi path=json_proto method=POST [11:04:49]POST find Content-Length [11:04:49]Host: 172.17.62.67:8080 [11:04:49]Content-Length: 1182 [11:04:49]Content-Type: application/json [11:04:49] [11:04:49]POST finish read [11:04:49]Found Content-Length = 1182 [11:04:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195828\u000A11.03.2024 10:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3834543\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:49]execute_script... [11:04:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195828\u000A11.03.2024 10:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3834543\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:49]POST & json_proto [11:04:49]process_json_proto [11:04:49]json parsed OK: [11:04:49]protocol is kg_v1.0 [11:04:49]action value=print_text [11:04:49]process_action print_text [11:04:49]cmd_print_text [11:04:49]ExternCall_PrintAddStr [11:04:49]wPrintStart [11:04:49]Write to MH i2c: 01 00 00 1A 87 A1 [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 07 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 07 00 1A 87 00 80 00 00 00 FF 0F 36 [11:04:49]RasterBufferAndPrint [11:04:49]line *****ТОВАРНЫЙ ЧЕК***** [11:04:49]line АЗС 6 [11:04:49]line Партнер нефть [11:04:49]line 02508201610067 [11:04:49]line Кассир : Карыбаев Б. [11:04:49]line Счет N : (1)195828 [11:04:49]line 11.03.2024 10:59 [11:04:49]line ПРОДАЖА [11:04:49]line ТРК (МРК, ГНК): 22 [11:04:49]line Вид ГСМ : 2710124130 [11:04:49]line Аи-92-К-5 [11:04:49]line 10.000 x 62.90 [11:04:49]line ИТОГ: 629.00 [11:04:49]line Тип оплаты: Талоны: Партнер нефть [11:04:49]line 3834543 [11:04:49]line ______________________ [11:04:49]line (подпись) [11:04:49]written 0, free lines is 4095 [11:04:49]Write to MH i2c: 01 00 00 2E 87 B5 [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 07 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 07 00 2E 87 00 80 00 00 00 68 0E B2 [11:04:49]RasterBufferAndPrint [11:04:49]line [11:04:49]line [11:04:49]line [11:04:49]line [11:04:49]line [11:04:49]written 0, free lines is 3692 [11:04:49]process_action print_text done [11:04:49]requested_data is exist [11:04:49]produce_requested_data [11:04:49]requested_item fm.sn is exist - process it [11:04:49]wFMCommunicate request_size=4 [11:04:49]MH_SAM_APDU [11:04:49]CAPDU: 80 11 00 00 [11:04:49]Write to MH i2c: E2 08 00 35 87 80 11 00 00 00 00 00 00 36 [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:49]Read from MH i2c: E2 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: E2 17 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: E2 17 00 35 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 86 [11:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:04:49]wFMCommunicate OK [11:04:49]requested_item fd.num is exist - process it [11:04:49]SAM_PROTO_GetFieldsCounters [11:04:49]wFMCommunicate request_size=4 [11:04:49]MH_SAM_APDU [11:04:49]CAPDU: 80 13 00 00 [11:04:49]Write to MH i2c: E2 08 00 36 87 80 13 00 00 00 00 00 00 39 [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:50]Read from MH i2c: E2 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 62 00 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 62 00 36 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [11:04: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:50]wFMCommunicate OK [11:04:50]SAM_PROTO_GetFieldsCounters done [11:04:50]requested_item shift.num is exist - process it [11:04:50]requested_item shift.opened is exist - process it [11:04:50]req_shift_opened [11:04:50]FM_GetShiftState [11:04:50]SAM_PROTO_GetShiftState [11:04:50]wFMCommunicate request_size=4 [11:04:50]MH_SAM_APDU [11:04:50]CAPDU: 80 13 01 00 [11:04:50]Write to MH i2c: E2 08 00 37 87 80 13 01 00 00 00 00 00 3B [11:04:50]Write i2c OK [11:04:50]MH_I2C_Read... [11:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:50]Read from MH i2c: E2 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 0E 00 [11:04:50]MH_I2C_Read... [11:04:50]Read from MH i2c: E2 0E 00 37 87 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D7 [11:04:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:04:50]wFMCommunicate OK [11:04:50]SAM_PROTO_GetShiftState done [11:04:50]FM_GetShiftState done [11:04:50]req_shift_opened done [11:04:50]requested_item shift.open_date is exist - process it [11:04:50]req_shift_open_date [11:04:50]req_shift_open_date done [11:04:50]produce_requested_data done [11:04:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94878,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:04:50]process_action_free print_text [11:04:50]json_value_free [11:04:50]json_value_free done [11:04:50]process_json_proto returns [11:04:50]Send response to host [11:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94878,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:04:50]free response buf [11:04:50]execute_script done [11:04:50]execute_script returns [11:04:50]free content buf [11:04:50]Sock 7.Close socket [11:04:50]Sock 7.Thread stoped [11:04:51]OFD Sender: No OFD packet to send [11:04:53]accept exits with 9 [11:04:53]New connection [11:04:53]New thread 3067014500 created [11:04:53]Thread 3066871140 joined [11:04:53]Waiting for new connection... [11:04:53] Sock 9.Parse request [11:04:53]Sock 9.Check first char [11:04:53]Sock 9.First char is OK [11:04:53]request: POST /json_proto HTTP/1.0 [11:04:53]Method: POST [11:04:53]URL: /json_proto [11:04:53]Method is POST - this is cgi request [11:04:53]url: /json_proto [11:04:53]query_string will be loaded in cgi processing [11:04:53]execute_cgi json_proto POST (null) [11:04:53]execute_cgi path=json_proto method=POST [11:04:53]POST find Content-Length [11:04:53]Host: 172.17.62.67:8080 [11:04:53]Content-Length: 802 [11:04:53]Content-Type: application/json [11:04:53] [11:04:53]POST finish read [11:04:53]Found Content-Length = 802 [11:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:53]execute_script... [11:04: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)195829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:53]POST & json_proto [11:04:53]process_json_proto [11:04:53]json parsed OK: [11:04:53]protocol is kg_v1.0 [11:04:53]action value=close_receipt [11:04:53]process_action close_receipt [11:04:53]cmd_close_receipt [11:04:53]MH_GetDate [11:04:53]Write to MH i2c: F0 00 00 38 87 AE [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: F0 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: F0 05 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: F0 05 00 38 87 00 63 E5 EE 65 4E [11:04:53]GetLastDocTimeStamp 1710154227 [11:04:53]current date 1710155107 [11:04:53]FM_GetShiftState [11:04:53]SAM_PROTO_GetShiftState [11:04:53]wFMCommunicate request_size=4 [11:04:53]MH_SAM_APDU [11:04:53]CAPDU: 80 13 01 00 [11:04:53]Write to MH i2c: E2 08 00 39 87 80 13 01 00 00 00 00 00 3D [11:04:53]Write i2c OK [11:04:53]MH_I2C_Read... [11:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:53]Read from MH i2c: E2 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 0E 00 [11:04:53]MH_I2C_Read... [11:04:53]Read from MH i2c: E2 0E 00 39 87 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D9 [11:04:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:04:53]wFMCommunicate OK [11:04:53]SAM_PROTO_GetShiftState done [11:04:53]FM_GetShiftState done [11:04:53]opened in 1710115571 [11:04:53]opened+sec_in_day 1710201971 [11:04:53]quantity*price = 40058 [11:04:53]sum+1 = 40060 [11:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.59 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.59 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 54 11.03.2024 11:05 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94879 ФПД: 227212423740895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T110507&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94879&fm=227212423740895&tin=02508201610067®Number=0000000000090555&sum=40059 [11:04:54]StoreToDocumentArchive [11:04:54]shift 326 fd 94879 [11:04:54]save to /storage/0326/doc_00094879 [11:04:54]save last doc name /storage/0326/doc_00094879 to /storage/kkm_last_doc_name [11:04:54]save OK [11:04:54]Clear old archive folders... [11:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:04:54]tlvbuf is 00286340 [11:04:54]SAM_PROTO_ClearQueue [11:04:54]wFMCommunicate request_size=4 [11:04:54]MH_SAM_APDU [11:04:54]CAPDU: 80 09 00 00 [11:04:54]Write to MH i2c: E2 08 00 46 87 80 09 00 00 00 00 00 00 3F [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 [11:04:54]MH_I2C_Read... [11:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:54]Read from MH i2c: E2 03 00 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 03 00 46 87 00 90 00 41 [11:04:54]RAPDU: 90 00 [11:04:54]wFMCommunicate OK [11:04:54]SAM_PROTO_ClearQueue done [11:04:54]KKMCreateOFDPacket [11:04:54]OFDProtocolAddRootSTLVToBuf [11:04:54]FM_MakeSignedData [11:04:54]FM_MakeSignedData [11:04:54]SAM_PROTO_SignData [11:04:54]wFMCommunicate request_size=4 [11:04:54]MH_SAM_APDU [11:04:54]CAPDU: 80 0D 01 02 [11:04:54]Write to MH i2c: E2 08 00 47 87 80 0D 01 02 00 00 00 00 47 [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:54]Read from MH i2c: E2 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 03 00 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 03 00 47 87 00 90 00 42 [11:04:54]RAPDU: 90 00 [11:04:54]wFMCommunicate OK [11:04:54]wFMCommunicate request_size=255 [11:04:54]MH_SAM_APDU [11:04:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 63 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 72 01 00 35 04 06 00 CE A6 03 CE [11:04:54]Write to MH i2c: E2 02 01 48 87 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 63 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 72 01 00 35 04 06 00 CE A6 03 CE 00 00 5A [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:54]Read from MH i2c: E2 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 03 00 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 03 00 48 87 00 90 00 43 [11:04:54]RAPDU: 90 00 [11:04:54]wFMCommunicate OK [11:04:54]wFMCommunicate request_size=7 [11:04:54]MH_SAM_APDU [11:04:54]CAPDU: 80 0D 02 02 02 3D DF [11:04:54]Write to MH i2c: E2 0A 00 49 87 80 0D 02 02 02 00 3D DF 00 00 6A [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:54]Read from MH i2c: E2 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 03 00 [11:04:54]MH_I2C_Read... [11:04:54]Read from MH i2c: E2 03 00 49 87 00 90 00 44 [11:04:54]RAPDU: 90 00 [11:04:54]wFMCommunicate OK [11:04:54]wFMCommunicate request_size=4 [11:04:54]MH_SAM_APDU [11:04:54]CAPDU: 80 0D 03 02 [11:04:54]Write to MH i2c: E2 08 00 4A 87 80 0D 03 02 00 00 00 00 4C [11:04:54]Write i2c OK [11:04:54]MH_I2C_Read... [11:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:55]Read from MH i2c: E2 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: E2 0B 00 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: E2 0B 00 4A 87 00 C4 A7 97 73 C9 0F 38 7F 90 00 51 [11:04:55]RAPDU: C4 A7 97 73 C9 0F 38 7F 90 00 [11:04:55]wFMCommunicate OK [11:04:55]SAM_PROTO_SignData done [11:04:55]FM_MakeSignedData done [11:04:55]CreateOFDProtocolMessage [11:04:55]wFMCommunicate request_size=4 [11:04:55]MH_SAM_APDU [11:04:55]CAPDU: 80 11 00 00 [11:04:55]Write to MH i2c: E2 08 00 4B 87 80 11 00 00 00 00 00 00 4C [11:04:55]Write i2c OK [11:04:55]MH_I2C_Read... [11:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:55]Read from MH i2c: E2 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: E2 17 00 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: E2 17 00 4B 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [11:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:04:55]wFMCommunicate OK [11:04:55]CreateOFDProtocolMessage done [11:04:55]OFDSenderStorePacket 94879 [11:04:55]StoreOFDPacket docnum=94879 [11:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 39 42 04 01 76 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 63 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 72 01 00 35 04 06 00 CE A6 03 CE 3D DF C4 A7 97 73 C9 0F 38 7F [11:04:55]CheckFolder [11:04:55]dirname=/storage/ofd_packets [11:04:55]CheckFolder done [11:04:55]ProducePacketName [11:04:55]name=ofd_packets/00094879 [11:04:55]NVStorageSaveData ofd_packets/00094879 [11:04:55]File name is /storage/ofd_packets/00094879 [11:04:55]Write 298 bytes [11:04:55]NVStorageSaveData done [11:04:55]OFDSenderStorePacket done [11:04:55]KKMCreateOFDPacket done [11:04:55]NVStorageSaveData kkm_last_timestamp [11:04:55]File name is /storage/kkm_last_timestamp [11:04:55]Write 4 bytes [11:04:55]NVStorageSaveData done [11:04:55]ExternCall_PrintAddStr [11:04:55]wPrintStart [11:04:55]Write to MH i2c: 01 00 00 4C 87 D3 [11:04:55]Write i2c OK [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 07 00 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 07 00 4C 87 00 80 00 00 00 FF 0F 68 [11:04:55]RasterBufferAndPrint [11:04:55]line Счет N : (1)195829 [11:04:55]line ИНН: 02508201610067 [11:04:55]line Контрольно-Кассовый Чек [11:04:55]line ПРОДАЖА [11:04:55]line ТРК (МРК, ГНК) : 51 [11:04:55]line Товар: 2710194210 [11:04:55]line ДТ-К-5 [11:04:55]line 5.650 * 70.90 [11:04:55]line = 400.59 [11:04:55]line НДС 12% НСП 1% [11:04:55]line > о реализуемом товаре [11:04:55]line ИТОГО: 400.59 [11:04:55]line НСП 1% : 3.54 [11:04:55]line НДС 12% : 42.54 [11:04:55]line Наличными: 0.00 [11:04:55]line Безнал.: 400.59 [11:04:55]line Место: АЗС № 6 "Партнер Нефть" [11:04:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:04:55]line СНО: Общий режим [11:04:55]line Чек 54 11.03.2024 11:05 [11:04:55]line Смена: 326 ФФД: 1.0 [11:04:55]line ЗНМ: 0300000009 [11:04:55]line РНМ: 0000000000090555 [11:04:55]line Версия ККМ: 001 [11:04:55]line Платежная система: О! деньги [11:04:55]line ФМ: 0000000000874811 [11:04:55]line ФД: 94879 [11:04:55]line ФПД: 227212423740895 [11:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T110507&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94879&fm=227212423740895&tin=02508201610067®Number=0000000000090555&sum=40059 [11:04:55]OFD Sender: Processing packet 94879 [packets to send 30, broken 29] [11:04:55]ProducePacketName [11:04:55]name=ofd_packets/00094879 [11:04:55]OFD Sender: To server: pG, [11:04:55]CommunicateWithHost lk.salyk.kg:30040 [11:04:55]ConnectInit lk.salyk.kg [11:04:55]written 0, free lines is 4095 [11:04:55]Connected sock=10 [11:04: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 31 31 0C 01 00 00 39 42 04 01 76 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 63 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 72 01 00 35 04 06 00 CE A6 03 CE 3D DF C4 A7 97 73 C9 0F 38 7F [11:04:55]Write to MH i2c: 01 00 00 76 87 FD [11:04:55]Write i2c OK [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 07 00 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: 01 07 00 76 87 00 80 00 00 00 69 0D FA [11:04:55]RasterBufferAndPrint [11:04:55]line [11:04:55]line [11:04:55]line [11:04:55]line [11:04:55]line [11:04:55]written 0, free lines is 3439 [11:04:55]process_action close_receipt done [11:04:55]requested_data is exist [11:04:55]produce_requested_data [11:04:55]requested_item fm.sn is exist - process it [11:04:55]wFMCommunicate request_size=4 [11:04:55]MH_SAM_APDU [11:04:55]CAPDU: 80 11 00 00 [11:04:55]Write to MH i2c: E2 08 00 7D 87 80 11 00 00 00 00 00 00 7E [11:04:55]Write i2c OK [11:04:55]MH_I2C_Read... [11:04: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 31 31 4F 00 00 00 F6 65 47 00 FA FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 72 01 00 F4 03 04 00 BD 90 EE 65 B6 04 01 00 00 A7 AC 94 16 98 35 72 BA [11:04:55]CommunicateWithHost err = 0 [11:04:55]CheckOFDResponse [11:04:55]1017 (14) - 77093643461234 [11:04:55]1041 (16) - 0000000000874811 [11:04:55]1040 (4) - 94879 [11:04:55]1012 (4) - 11.03.2024 05:03 [11:04:55]1206 (1) - 0 [11:04:55]OFD Sender: Remove packet 94879 [11:04:55]ProducePacketName [11:04:55]name=ofd_packets/00094879 [11:04:55]NVStorageDeleteData [11:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:55]Read from MH i2c: E2 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: E2 17 00 [11:04:55]MH_I2C_Read... [11:04:55]Read from MH i2c: E2 17 00 7D 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CE [11:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:04:55]wFMCommunicate OK [11:04:55]requested_item fd.num is exist - process it [11:04:55]SAM_PROTO_GetFieldsCounters [11:04:55]wFMCommunicate request_size=4 [11:04:55]MH_SAM_APDU [11:04:55]CAPDU: 80 13 00 00 [11:04:55]Write to MH i2c: E2 08 00 7E 87 80 13 00 00 00 00 00 00 81 [11:04:55]Write i2c OK [11:04:55]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 62 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 62 00 7E 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [11:04: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9F 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:56]wFMCommunicate OK [11:04:56]SAM_PROTO_GetFieldsCounters done [11:04:56]requested_item shift.num is exist - process it [11:04:56]requested_item shift.opened is exist - process it [11:04:56]req_shift_opened [11:04:56]FM_GetShiftState [11:04:56]SAM_PROTO_GetShiftState [11:04:56]wFMCommunicate request_size=4 [11:04:56]MH_SAM_APDU [11:04:56]CAPDU: 80 13 01 00 [11:04:56]Write to MH i2c: E2 08 00 7F 87 80 13 01 00 00 00 00 00 83 [11:04:56]Write i2c OK [11:04:56]MH_I2C_Read... [11:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:56]Read from MH i2c: E2 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 0E 00 [11:04:56]MH_I2C_Read... [11:04:56]Read from MH i2c: E2 0E 00 7F 87 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 1F [11:04:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:04:56]wFMCommunicate OK [11:04:56]SAM_PROTO_GetShiftState done [11:04:56]FM_GetShiftState done [11:04:56]req_shift_opened done [11:04:56]requested_item shift.open_date is exist - process it [11:04:56]req_shift_open_date [11:04:56]req_shift_open_date done [11:04:56]produce_requested_data done [11:04:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94879,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:04:56]process_action_free close_receipt [11:04:56]json_value_free [11:04:56]json_value_free done [11:04:56]process_json_proto returns [11:04:56]Send response to host [11:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94879,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:04:56]free response buf [11:04:56]execute_script done [11:04:56]execute_script returns [11:04:56]free content buf [11:04:56]Sock 9.Close socket [11:04:56]Sock 9.Thread stoped [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:38]accept exits with 7 [11:05:38]New connection [11:05:38]New thread 3066871140 created [11:05:38]Thread 3067014500 joined [11:05:38]Waiting for new connection... [11:05:38] Sock 7.Parse request [11:05:38]Sock 7.Check first char [11:05:38]Sock 7.First char is OK [11:05:38]request: POST /json_proto HTTP/1.0 [11:05:38]Method: POST [11:05:38]URL: /json_proto [11:05:38]Method is POST - this is cgi request [11:05:38]url: /json_proto [11:05:38]query_string will be loaded in cgi processing [11:05:38]execute_cgi json_proto POST (null) [11:05:38]execute_cgi path=json_proto method=POST [11:05:38]POST find Content-Length [11:05:38]Host: 172.17.62.67:8080 [11:05:38]Content-Length: 674 [11:05:38]Content-Type: application/json [11:05:38] [11:05:38]POST finish read [11:05:38]Found Content-Length = 674 [11:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "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:05:38]execute_script... [11:05: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)195830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "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:05:38]POST & json_proto [11:05:38]process_json_proto [11:05:38]json parsed OK: [11:05:38]protocol is kg_v1.0 [11:05:38]action value=close_receipt [11:05:38]process_action close_receipt [11:05:38]cmd_close_receipt [11:05:38]MH_GetDate [11:05:38]Write to MH i2c: F0 00 00 80 87 F6 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: F0 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: F0 05 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: F0 05 00 80 87 00 90 E5 EE 65 C3 [11:05:38]GetLastDocTimeStamp 1710155107 [11:05:38]current date 1710155152 [11:05:38]FM_GetShiftState [11:05:38]SAM_PROTO_GetShiftState [11:05:38]wFMCommunicate request_size=4 [11:05:38]MH_SAM_APDU [11:05:38]CAPDU: 80 13 01 00 [11:05:38]Write to MH i2c: E2 08 00 81 87 80 13 01 00 00 00 00 00 85 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 0E 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 0E 00 81 87 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 21 [11:05:38]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:05:38]wFMCommunicate OK [11:05:38]SAM_PROTO_GetShiftState done [11:05:38]FM_GetShiftState done [11:05:38]opened in 1710115571 [11:05:38]opened+sec_in_day 1710201971 [11:05:38]quantity*price = 40058 [11:05:38]sum+1 = 40060 [11:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 55 11.03.2024 11:05 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94880 ФПД: 203368916463694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T110552&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94880&fm=203368916463694&tin=02508201610067®Number=0000000000090555&sum=40000 [11:05:39]StoreToDocumentArchive [11:05:39]shift 326 fd 94880 [11:05:39]save to /storage/0326/doc_00094880 [11:05:39]save last doc name /storage/0326/doc_00094880 to /storage/kkm_last_doc_name [11:05:39]save OK [11:05:39]Clear old archive folders... [11:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:39]tlvbuf is 002BCBA0 [11:05:39]SAM_PROTO_ClearQueue [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 09 00 00 [11:05:39]Write to MH i2c: E2 08 00 8E 87 80 09 00 00 00 00 00 00 87 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 8E 87 00 90 00 89 [11:05:39]RAPDU: 90 00 [11:05:39]wFMCommunicate OK [11:05:39]SAM_PROTO_ClearQueue done [11:05:39]KKMCreateOFDPacket [11:05:39]OFDProtocolAddRootSTLVToBuf [11:05:39]FM_MakeSignedData [11:05:39]FM_MakeSignedData [11:05:39]SAM_PROTO_SignData [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 0D 01 02 [11:05:39]Write to MH i2c: E2 08 00 8F 87 80 0D 01 02 00 00 00 00 8F [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 8F 87 00 90 00 8A [11:05:39]RAPDU: 90 00 [11:05:39]wFMCommunicate OK [11:05:39]wFMCommunicate request_size=255 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 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 9E 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 37 00 00 00 F4 03 04 00 90 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 72 01 00 35 04 06 00 B8 F6 84 06 [11:05:39]Write to MH i2c: E2 02 01 90 87 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 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 9E 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 37 00 00 00 F4 03 04 00 90 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 72 01 00 35 04 06 00 B8 F6 84 06 00 00 4E [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 90 87 00 90 00 8B [11:05:39]RAPDU: 90 00 [11:05:39]wFMCommunicate OK [11:05:39]wFMCommunicate request_size=7 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 0D 02 02 02 30 4E [11:05:39]Write to MH i2c: E2 0A 00 91 87 80 0D 02 02 02 00 30 4E 00 00 14 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 91 87 00 90 00 8C [11:05:39]RAPDU: 90 00 [11:05:39]wFMCommunicate OK [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 0D 03 02 [11:05:39]Write to MH i2c: E2 08 00 92 87 80 0D 03 02 00 00 00 00 94 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 0B 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 0B 00 92 87 00 AB D8 A0 1D 52 3A 36 43 90 00 DA [11:05:39]RAPDU: AB D8 A0 1D 52 3A 36 43 90 00 [11:05:39]wFMCommunicate OK [11:05:39]SAM_PROTO_SignData done [11:05:39]FM_MakeSignedData done [11:05:39]CreateOFDProtocolMessage [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 11 00 00 [11:05:39]Write to MH i2c: E2 08 00 93 87 80 11 00 00 00 00 00 00 94 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 17 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 17 00 93 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E4 [11:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:05:39]wFMCommunicate OK [11:05:39]CreateOFDProtocolMessage done [11:05:39]OFDSenderStorePacket 94880 [11:05:39]StoreOFDPacket docnum=94880 [11:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 B2 47 04 01 7B 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 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 9E 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 37 00 00 00 F4 03 04 00 90 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 72 01 00 35 04 06 00 B8 F6 84 06 30 4E AB D8 A0 1D 52 3A 36 43 [11:05:39]CheckFolder [11:05:39]dirname=/storage/ofd_packets [11:05:39]CheckFolder done [11:05:39]ProducePacketName [11:05:39]name=ofd_packets/00094880 [11:05:39]NVStorageSaveData ofd_packets/00094880 [11:05:39]File name is /storage/ofd_packets/00094880 [11:05:39]Write 298 bytes [11:05:39]NVStorageSaveData done [11:05:39]OFDSenderStorePacket done [11:05:39]KKMCreateOFDPacket done [11:05:39]NVStorageSaveData kkm_last_timestamp [11:05:39]File name is /storage/kkm_last_timestamp [11:05:39]Write 4 bytes [11:05:39]NVStorageSaveData done [11:05:39]ExternCall_PrintAddStr [11:05:39]wPrintStart [11:05:39]Write to MH i2c: 01 00 00 94 87 1B [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 07 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 07 00 94 87 00 80 00 00 00 FF 0F B0 [11:05:39]RasterBufferAndPrint [11:05:39]line Счет N : (1)195830 [11:05:39]line ИНН: 02508201610067 [11:05:39]line Контрольно-Кассовый Чек [11:05:39]line ПРОДАЖА [11:05:39]line ТРК (МРК, ГНК) : 61 [11:05:39]line Товар: 2710194210 [11:05:39]line ДТ-К-5 [11:05:39]line 5.650 * 70.90 [11:05:39]line = 400.59 [11:05:39]line НДС 12% НСП 1% [11:05:39]line > о реализуемом товаре [11:05:39]line ОКРУГЛЕНИЕ: -0.59 [11:05:39]line ИТОГО: 400.00 [11:05:39]line Внесено: 400.00 [11:05:39]line СДАЧА: 0.00 [11:05:39]line НСП 1% : 3.54 [11:05:39]line НДС 12% : 42.54 [11:05:39]line Наличными: 400.00 [11:05:39]line Безнал.: 0.00 [11:05:39]line Место: АЗС № 6 "Партнер Нефть" [11:05:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:05:39]line СНО: Общий режим [11:05:39]line Чек 55 11.03.2024 11:05 [11:05:39]line Смена: 326 ФФД: 1.0 [11:05:39]line ЗНМ: 0300000009 [11:05:39]line РНМ: 0000000000090555 [11:05:39]line Версия ККМ: 001 [11:05:39]line ФМ: 0000000000874811 [11:05:39]line ФД: 94880 [11:05:39]line ФПД: 203368916463694 [11:05:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T110552&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94880&fm=203368916463694&tin=02508201610067®Number=0000000000090555&sum=40000 [11:05:40]OFD Sender: Processing packet 94880 [packets to send 30, broken 29] [11:05:40]ProducePacketName [11:05:40]name=ofd_packets/00094880 [11:05:40]OFD Sender: To server: pG, [11:05:40]CommunicateWithHost lk.salyk.kg:30040 [11:05:40]ConnectInit lk.salyk.kg [11:05:40]written 0, free lines is 4095 [11:05:40]Connected sock=10 [11:05: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 31 31 0C 01 00 00 B2 47 04 01 7B 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 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 9E 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 37 00 00 00 F4 03 04 00 90 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 72 01 00 35 04 06 00 B8 F6 84 06 30 4E AB D8 A0 1D 52 3A 36 43 [11:05: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 31 31 4F 00 00 00 CA 88 47 00 E0 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 72 01 00 F4 03 04 00 E9 90 EE 65 B6 04 01 00 00 BE C8 3E B4 87 1A 80 BF [11:05:40]CommunicateWithHost err = 0 [11:05:40]CheckOFDResponse [11:05:40]1017 (14) - 77093643461234 [11:05:40]1041 (16) - 0000000000874811 [11:05:40]1040 (4) - 94880 [11:05:40]1012 (4) - 11.03.2024 05:04 [11:05:40]1206 (1) - 0 [11:05:40]OFD Sender: Remove packet 94880 [11:05:40]ProducePacketName [11:05:40]name=ofd_packets/00094880 [11:05:40]NVStorageDeleteData [11:05:40]Write to MH i2c: 01 00 00 BF 87 46 [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 BF 87 00 80 00 00 00 58 0D 32 [11:05:40]RasterBufferAndPrint [11:05:40]line [11:05:40]line [11:05:40]line [11:05:40]line [11:05:40]line [11:05:40]written 0, free lines is 3422 [11:05:40]process_action close_receipt done [11:05:40]requested_data is exist [11:05:40]produce_requested_data [11:05:40]requested_item fm.sn is exist - process it [11:05:40]wFMCommunicate request_size=4 [11:05:40]MH_SAM_APDU [11:05:40]CAPDU: 80 11 00 00 [11:05:40]Write to MH i2c: E2 08 00 C6 87 80 11 00 00 00 00 00 00 C7 [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:40]Read from MH i2c: E2 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 17 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 17 00 C6 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 17 [11:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:05:40]wFMCommunicate OK [11:05:40]requested_item fd.num is exist - process it [11:05:40]SAM_PROTO_GetFieldsCounters [11:05:40]wFMCommunicate request_size=4 [11:05:40]MH_SAM_APDU [11:05:40]CAPDU: 80 13 00 00 [11:05:40]Write to MH i2c: E2 08 00 C7 87 80 13 00 00 00 00 00 00 CA [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:40]Read from MH i2c: E2 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 62 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 62 00 C7 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [11:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:40]wFMCommunicate OK [11:05:40]SAM_PROTO_GetFieldsCounters done [11:05:40]requested_item shift.num is exist - process it [11:05:40]requested_item shift.opened is exist - process it [11:05:40]req_shift_opened [11:05:40]FM_GetShiftState [11:05:40]SAM_PROTO_GetShiftState [11:05:40]wFMCommunicate request_size=4 [11:05:40]MH_SAM_APDU [11:05:40]CAPDU: 80 13 01 00 [11:05:40]Write to MH i2c: E2 08 00 C8 87 80 13 01 00 00 00 00 00 CC [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:40]Read from MH i2c: E2 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 0E 00 [11:05:40]MH_I2C_Read... [11:05:40]OFD Sender: No OFD packet to send [11:05:40]Read from MH i2c: E2 0E 00 C8 87 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 68 [11:05:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:05:40]wFMCommunicate OK [11:05:40]SAM_PROTO_GetShiftState done [11:05:40]FM_GetShiftState done [11:05:40]req_shift_opened done [11:05:40]requested_item shift.open_date is exist - process it [11:05:40]req_shift_open_date [11:05:40]req_shift_open_date done [11:05:40]produce_requested_data done [11:05:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94880,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:05:40]process_action_free close_receipt [11:05:40]json_value_free [11:05:40]json_value_free done [11:05:40]process_json_proto returns [11:05:40]Send response to host [11:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94880,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:05:40]free response buf [11:05:40]execute_script done [11:05:40]execute_script returns [11:05:40]free content buf [11:05:40]Sock 7.Close socket [11:05:40]Sock 7.Thread stoped [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:22]accept exits with 9 [11:07:22]New connection [11:07:22]New thread 3067014500 created [11:07:22]Thread 3066871140 joined [11:07:22]Waiting for new connection... [11:07:22] Sock 9.Parse request [11:07:22]Sock 9.Check first char [11:07:22]Sock 9.First char is OK [11:07:22]request: POST /json_proto HTTP/1.0 [11:07:22]Method: POST [11:07:22]URL: /json_proto [11:07:22]Method is POST - this is cgi request [11:07:22]url: /json_proto [11:07:22]query_string will be loaded in cgi processing [11:07:22]execute_cgi json_proto POST (null) [11:07:22]execute_cgi path=json_proto method=POST [11:07:22]POST find Content-Length [11:07:22]Host: 172.17.62.67:8080 [11:07:22]Content-Length: 802 [11:07:22]Content-Type: application/json [11:07:22] [11:07:22]POST finish read [11:07:22]Found Content-Length = 802 [11:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 9.880, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:22]execute_script... [11:07: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)195831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 9.880, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:22]POST & json_proto [11:07:22]process_json_proto [11:07:22]json parsed OK: [11:07:22]protocol is kg_v1.0 [11:07:22]action value=close_receipt [11:07:22]process_action close_receipt [11:07:22]cmd_close_receipt [11:07:22]MH_GetDate [11:07:22]Write to MH i2c: F0 00 00 C9 87 3F [11:07:22]Write i2c OK [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: F0 [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: F0 05 00 [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: F0 05 00 C9 87 00 F8 E5 EE 65 74 [11:07:22]GetLastDocTimeStamp 1710155152 [11:07:22]current date 1710155256 [11:07:22]FM_GetShiftState [11:07:22]SAM_PROTO_GetShiftState [11:07:22]wFMCommunicate request_size=4 [11:07:22]MH_SAM_APDU [11:07:22]CAPDU: 80 13 01 00 [11:07:22]Write to MH i2c: E2 08 00 CA 87 80 13 01 00 00 00 00 00 CE [11:07:22]Write i2c OK [11:07:22]MH_I2C_Read... [11:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:22]Read from MH i2c: E2 [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: E2 0E 00 [11:07:22]MH_I2C_Read... [11:07:22]Read from MH i2c: E2 0E 00 CA 87 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 6A [11:07:22]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:07:22]wFMCommunicate OK [11:07:22]SAM_PROTO_GetShiftState done [11:07:22]FM_GetShiftState done [11:07:22]opened in 1710115571 [11:07:22]opened+sec_in_day 1710201971 [11:07:22]quantity*price = 70049 [11:07:22]sum+1 = 70050 [11:07:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.49 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.49 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 56 11.03.2024 11:07 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94881 ФПД: 6018419972563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T110736&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94881&fm=6018419972563&tin=02508201610067®Number=0000000000090555&sum=70049 [11:07:23]StoreToDocumentArchive [11:07:23]shift 326 fd 94881 [11:07:23]save to /storage/0326/doc_00094881 [11:07:23]save last doc name /storage/0326/doc_00094881 to /storage/kkm_last_doc_name [11:07:23]save OK [11:07:23]Clear old archive folders... [11:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:07:23]tlvbuf is 001E5380 [11:07:23]SAM_PROTO_ClearQueue [11:07:23]wFMCommunicate request_size=4 [11:07:23]MH_SAM_APDU [11:07:23]CAPDU: 80 09 00 00 [11:07:23]Write to MH i2c: E2 08 00 D7 87 80 09 00 00 00 00 00 00 D0 [11:07:23]Write i2c OK [11:07:23]MH_I2C_Read... [11:07:23]Read from MH i2c: E2 [11:07:23]MH_I2C_Read... [11:07:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:23]Read from MH i2c: E2 03 00 [11:07:23]MH_I2C_Read... [11:07:23]Read from MH i2c: E2 03 00 D7 87 00 90 00 D2 [11:07:23]RAPDU: 90 00 [11:07:23]wFMCommunicate OK [11:07:23]SAM_PROTO_ClearQueue done [11:07:23]KKMCreateOFDPacket [11:07:23]OFDProtocolAddRootSTLVToBuf [11:07:23]FM_MakeSignedData [11:07:23]FM_MakeSignedData [11:07:23]SAM_PROTO_SignData [11:07:23]wFMCommunicate request_size=4 [11:07:23]MH_SAM_APDU [11:07:23]CAPDU: 80 0D 01 02 [11:07:23]Write to MH i2c: E2 08 00 D8 87 80 0D 01 02 00 00 00 00 D8 [11:07:23]Write i2c OK [11:07:23]MH_I2C_Read... [11:07:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:23]Read from MH i2c: E2 [11:07:23]MH_I2C_Read... [11:07:23]Read from MH i2c: E2 03 00 [11:07:23]MH_I2C_Read... [11:07:23]Read from MH i2c: E2 03 00 D8 87 00 90 00 D3 [11:07:23]RAPDU: 90 00 [11:07:23]wFMCommunicate OK [11:07:23]wFMCommunicate request_size=255 [11:07:23]MH_SAM_APDU [11:07:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F8 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 72 01 00 35 04 06 00 05 79 45 C8 [11:07:23]Write to MH i2c: E2 02 01 D9 87 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F8 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 72 01 00 35 04 06 00 05 79 45 C8 00 00 BD [11:07:23]Write i2c OK [11:07:23]MH_I2C_Read... [11:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:24]Read from MH i2c: E2 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 03 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 03 00 D9 87 00 90 00 D4 [11:07:24]RAPDU: 90 00 [11:07:24]wFMCommunicate OK [11:07:24]wFMCommunicate request_size=7 [11:07:24]MH_SAM_APDU [11:07:24]CAPDU: 80 0D 02 02 02 D9 D3 [11:07:24]Write to MH i2c: E2 0A 00 DA 87 80 0D 02 02 02 00 D9 D3 00 00 8B [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:24]Read from MH i2c: E2 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 03 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 03 00 DA 87 00 90 00 D5 [11:07:24]RAPDU: 90 00 [11:07:24]wFMCommunicate OK [11:07:24]wFMCommunicate request_size=4 [11:07:24]MH_SAM_APDU [11:07:24]CAPDU: 80 0D 03 02 [11:07:24]Write to MH i2c: E2 08 00 DB 87 80 0D 03 02 00 00 00 00 DD [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:24]Read from MH i2c: E2 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 0B 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 0B 00 DB 87 00 D9 A7 4D 2B 92 68 C7 10 90 00 A7 [11:07:24]RAPDU: D9 A7 4D 2B 92 68 C7 10 90 00 [11:07:24]wFMCommunicate OK [11:07:24]SAM_PROTO_SignData done [11:07:24]FM_MakeSignedData done [11:07:24]CreateOFDProtocolMessage [11:07:24]wFMCommunicate request_size=4 [11:07:24]MH_SAM_APDU [11:07:24]CAPDU: 80 11 00 00 [11:07:24]Write to MH i2c: E2 08 00 DC 87 80 11 00 00 00 00 00 00 DD [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:24]Read from MH i2c: E2 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 17 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: E2 17 00 DC 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2D [11:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:07:24]wFMCommunicate OK [11:07:24]CreateOFDProtocolMessage done [11:07:24]OFDSenderStorePacket 94881 [11:07:24]StoreOFDPacket docnum=94881 [11:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 C3 4B 04 01 35 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F8 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 72 01 00 35 04 06 00 05 79 45 C8 D9 D3 D9 A7 4D 2B 92 68 C7 10 [11:07:24]CheckFolder [11:07:24]dirname=/storage/ofd_packets [11:07:24]CheckFolder done [11:07:24]ProducePacketName [11:07:24]name=ofd_packets/00094881 [11:07:24]NVStorageSaveData ofd_packets/00094881 [11:07:24]File name is /storage/ofd_packets/00094881 [11:07:24]Write 298 bytes [11:07:24]NVStorageSaveData done [11:07:24]OFDSenderStorePacket done [11:07:24]KKMCreateOFDPacket done [11:07:24]NVStorageSaveData kkm_last_timestamp [11:07:24]File name is /storage/kkm_last_timestamp [11:07:24]Write 4 bytes [11:07:24]NVStorageSaveData done [11:07:24]ExternCall_PrintAddStr [11:07:24]wPrintStart [11:07:24]Write to MH i2c: 01 00 00 DD 87 64 [11:07:24]Write i2c OK [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: 01 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: 01 07 00 [11:07:24]MH_I2C_Read... [11:07:24]Read from MH i2c: 01 07 00 DD 87 00 80 00 00 00 FF 0F F9 [11:07:24]RasterBufferAndPrint [11:07:24]line Счет N : (1)195831 [11:07:24]line ИНН: 02508201610067 [11:07:24]line Контрольно-Кассовый Чек [11:07:24]line ПРОДАЖА [11:07:24]line ТРК (МРК, ГНК) : 51 [11:07:24]line Товар: 2710194210 [11:07:24]line ДТ-К-5 [11:07:24]line 9.880 * 70.90 [11:07:24]line = 700.49 [11:07:24]line НДС 12% НСП 1% [11:07:24]line > о реализуемом товаре [11:07:24]line ИТОГО: 700.49 [11:07:24]line НСП 1% : 6.20 [11:07:24]line НДС 12% : 74.39 [11:07:24]line Наличными: 0.00 [11:07:24]line Безнал.: 700.49 [11:07:24]line Место: АЗС № 6 "Партнер Нефть" [11:07:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:07:24]line СНО: Общий режим [11:07:24]line Чек 56 11.03.2024 11:07 [11:07:24]line Смена: 326 ФФД: 1.0 [11:07:24]line ЗНМ: 0300000009 [11:07:24]line РНМ: 0000000000090555 [11:07:24]line Версия ККМ: 001 [11:07:24]line Платежная система: О! деньги [11:07:24]line ФМ: 0000000000874811 [11:07:24]line ФД: 94881 [11:07:24]line ФПД: 6018419972563 [11:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T110736&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94881&fm=6018419972563&tin=02508201610067®Number=0000000000090555&sum=70049 [11:07:24]OFD Sender: Processing packet 94881 [packets to send 30, broken 29] [11:07:24]ProducePacketName [11:07:24]name=ofd_packets/00094881 [11:07:24]OFD Sender: To server: pG, [11:07:24]CommunicateWithHost lk.salyk.kg:30040 [11:07:24]ConnectInit lk.salyk.kg [11:07:24]written 0, free lines is 4095 [11:07:24]Connected sock=10 [11:07: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 31 31 0C 01 00 00 C3 4B 04 01 35 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F8 E5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 72 01 00 35 04 06 00 05 79 45 C8 D9 D3 D9 A7 4D 2B 92 68 C7 10 [11:07: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 31 31 4F 00 00 00 C8 20 47 00 5D 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 31 31 10 04 04 00 A1 72 01 00 F4 03 04 00 52 91 EE 65 B6 04 01 00 00 F8 B9 75 BF D9 40 58 DF [11:07:24]CommunicateWithHost err = 0 [11:07:24]CheckOFDResponse [11:07:24]1017 (14) - 77093643461234 [11:07:24]1041 (16) - 0000000000874811 [11:07:24]1040 (4) - 94881 [11:07:24]1012 (4) - 11.03.2024 05:06 [11:07:24]1206 (1) - 0 [11:07:24]OFD Sender: Remove packet 94881 [11:07:24]ProducePacketName [11:07:24]name=ofd_packets/00094881 [11:07:24]NVStorageDeleteData [11:07:25]Write to MH i2c: 01 00 00 07 88 8F [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: 01 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: 01 07 00 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: 01 07 00 07 88 00 80 00 00 00 5D 0D 80 [11:07:25]RasterBufferAndPrint [11:07:25]line [11:07:25]line [11:07:25]line [11:07:25]line [11:07:25]line [11:07:25]written 0, free lines is 3427 [11:07:25]process_action close_receipt done [11:07:25]requested_data is exist [11:07:25]produce_requested_data [11:07:25]requested_item fm.sn is exist - process it [11:07:25]wFMCommunicate request_size=4 [11:07:25]MH_SAM_APDU [11:07:25]CAPDU: 80 11 00 00 [11:07:25]Write to MH i2c: E2 08 00 0E 88 80 11 00 00 00 00 00 00 10 [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:25]Read from MH i2c: E2 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 17 00 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 17 00 0E 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 60 [11:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:07:25]wFMCommunicate OK [11:07:25]requested_item fd.num is exist - process it [11:07:25]SAM_PROTO_GetFieldsCounters [11:07:25]wFMCommunicate request_size=4 [11:07:25]MH_SAM_APDU [11:07:25]CAPDU: 80 13 00 00 [11:07:25]Write to MH i2c: E2 08 00 0F 88 80 13 00 00 00 00 00 00 13 [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:25]Read from MH i2c: E2 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 62 00 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 62 00 0F 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [11:07:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:25]wFMCommunicate OK [11:07:25]SAM_PROTO_GetFieldsCounters done [11:07:25]requested_item shift.num is exist - process it [11:07:25]requested_item shift.opened is exist - process it [11:07:25]req_shift_opened [11:07:25]FM_GetShiftState [11:07:25]SAM_PROTO_GetShiftState [11:07:25]wFMCommunicate request_size=4 [11:07:25]MH_SAM_APDU [11:07:25]CAPDU: 80 13 01 00 [11:07:25]Write to MH i2c: E2 08 00 10 88 80 13 01 00 00 00 00 00 15 [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:25]Read from MH i2c: E2 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 0E 00 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 0E 00 10 88 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B1 [11:07:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:07:25]wFMCommunicate OK [11:07:25]SAM_PROTO_GetShiftState done [11:07:25]FM_GetShiftState done [11:07:25]req_shift_opened done [11:07:25]requested_item shift.open_date is exist - process it [11:07:25]req_shift_open_date [11:07:25]req_shift_open_date done [11:07:25]produce_requested_data done [11:07:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94881,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:07:25]process_action_free close_receipt [11:07:25]json_value_free [11:07:25]json_value_free done [11:07:25]process_json_proto returns [11:07:25]Send response to host [11:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94881,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:07:25]free response buf [11:07:25]execute_script done [11:07:25]execute_script returns [11:07:25]free content buf [11:07:25]Sock 9.Close socket [11:07:25]Sock 9.Thread stoped [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:20]accept exits with 7 [11:20:20]New connection [11:20:20]New thread 3066871140 created [11:20:20]Thread 3067014500 joined [11:20:20]Waiting for new connection... [11:20:20] Sock 7.Parse request [11:20:20]Sock 7.Check first char [11:20:20]Sock 7.First char is OK [11:20:20]request: POST /json_proto HTTP/1.0 [11:20:20]Method: POST [11:20:20]URL: /json_proto [11:20:20]Method is POST - this is cgi request [11:20:20]url: /json_proto [11:20:20]query_string will be loaded in cgi processing [11:20:20]execute_cgi json_proto POST (null) [11:20:20]execute_cgi path=json_proto method=POST [11:20:20]POST find Content-Length [11:20:20]Host: 172.17.62.67:8080 [11:20:20]Content-Length: 679 [11:20:20]Content-Type: application/json [11:20:20] [11:20:20]POST finish read [11:20:20]Found Content-Length = 679 [11:20:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:20:20]execute_script... [11:20:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:20:20]POST & json_proto [11:20:20]process_json_proto [11:20:20]json parsed OK: [11:20:20]protocol is kg_v1.0 [11:20:20]action value=close_receipt [11:20:20]process_action close_receipt [11:20:20]cmd_close_receipt [11:20:20]MH_GetDate [11:20:20]Write to MH i2c: F0 00 00 11 88 88 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: F0 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: F0 05 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: F0 05 00 11 88 00 02 E9 EE 65 CB [11:20:20]GetLastDocTimeStamp 1710155256 [11:20:20]current date 1710156034 [11:20:20]FM_GetShiftState [11:20:20]SAM_PROTO_GetShiftState [11:20:20]wFMCommunicate request_size=4 [11:20:20]MH_SAM_APDU [11:20:20]CAPDU: 80 13 01 00 [11:20:20]Write to MH i2c: E2 08 00 12 88 80 13 01 00 00 00 00 00 17 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:20]Read from MH i2c: E2 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 0E 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: E2 0E 00 12 88 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B3 [11:20:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:20:20]wFMCommunicate OK [11:20:20]SAM_PROTO_GetShiftState done [11:20:20]FM_GetShiftState done [11:20:20]opened in 1710115571 [11:20:20]opened+sec_in_day 1710201971 [11:20:20]quantity*price = 100039 [11:20:20]sum+1 = 100041 [11:20:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 57 11.03.2024 11:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94882 ФПД: 78577391841839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T112034&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94882&fm=78577391841839&tin=02508201610067®Number=0000000000090555&sum=100000 [11:20:21]StoreToDocumentArchive [11:20:21]shift 326 fd 94882 [11:20:21]save to /storage/0326/doc_00094882 [11:20:21]save last doc name /storage/0326/doc_00094882 to /storage/kkm_last_doc_name [11:20:21]save OK [11:20:21]Clear old archive folders... [11:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:20:21]tlvbuf is 0031E830 [11:20:21]SAM_PROTO_ClearQueue [11:20:21]wFMCommunicate request_size=4 [11:20:21]MH_SAM_APDU [11:20:21]CAPDU: 80 09 00 00 [11:20:21]Write to MH i2c: E2 08 00 1F 88 80 09 00 00 00 00 00 00 19 [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:21]Read from MH i2c: E2 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 03 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 03 00 1F 88 00 90 00 1B [11:20:21]RAPDU: 90 00 [11:20:21]wFMCommunicate OK [11:20:21]SAM_PROTO_ClearQueue done [11:20:21]KKMCreateOFDPacket [11:20:21]OFDProtocolAddRootSTLVToBuf [11:20:21]FM_MakeSignedData [11:20:21]FM_MakeSignedData [11:20:21]SAM_PROTO_SignData [11:20:21]wFMCommunicate request_size=4 [11:20:21]MH_SAM_APDU [11:20:21]CAPDU: 80 0D 01 02 [11:20:21]Write to MH i2c: E2 08 00 20 88 80 0D 01 02 00 00 00 00 21 [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:21]Read from MH i2c: E2 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 03 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 03 00 20 88 00 90 00 1C [11:20:21]RAPDU: 90 00 [11:20:21]wFMCommunicate OK [11:20:21]wFMCommunicate request_size=255 [11:20:21]MH_SAM_APDU [11:20:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 02 E9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 72 01 00 35 04 06 00 47 77 39 87 [11:20:21]Write to MH i2c: E2 02 01 21 88 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 02 E9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 72 01 00 35 04 06 00 47 77 39 87 00 00 AB [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 21 88 00 90 00 1D [11:20:22]RAPDU: 90 00 [11:20:22]wFMCommunicate OK [11:20:22]wFMCommunicate request_size=7 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 0D 02 02 02 32 2F [11:20:22]Write to MH i2c: E2 0A 00 22 88 80 0D 02 02 02 00 32 2F 00 00 89 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 03 00 22 88 00 90 00 1E [11:20:22]RAPDU: 90 00 [11:20:22]wFMCommunicate OK [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 0D 03 02 [11:20:22]Write to MH i2c: E2 08 00 23 88 80 0D 03 02 00 00 00 00 26 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 0B 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 0B 00 23 88 00 00 E2 AA 45 AD F2 70 CE 90 00 D5 [11:20:22]RAPDU: 00 E2 AA 45 AD F2 70 CE 90 00 [11:20:22]wFMCommunicate OK [11:20:22]SAM_PROTO_SignData done [11:20:22]FM_MakeSignedData done [11:20:22]CreateOFDProtocolMessage [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 11 00 00 [11:20:22]Write to MH i2c: E2 08 00 24 88 80 11 00 00 00 00 00 00 26 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 17 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 17 00 24 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 76 [11:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:20:22]wFMCommunicate OK [11:20:22]CreateOFDProtocolMessage done [11:20:22]OFDSenderStorePacket 94882 [11:20:22]StoreOFDPacket docnum=94882 [11:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 36 8B 04 01 11 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 02 E9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 72 01 00 35 04 06 00 47 77 39 87 32 2F 00 E2 AA 45 AD F2 70 CE [11:20:22]CheckFolder [11:20:22]dirname=/storage/ofd_packets [11:20:22]CheckFolder done [11:20:22]ProducePacketName [11:20:22]name=ofd_packets/00094882 [11:20:22]NVStorageSaveData ofd_packets/00094882 [11:20:22]File name is /storage/ofd_packets/00094882 [11:20:22]Write 298 bytes [11:20:22]NVStorageSaveData done [11:20:22]OFDSenderStorePacket done [11:20:22]KKMCreateOFDPacket done [11:20:22]NVStorageSaveData kkm_last_timestamp [11:20:22]File name is /storage/kkm_last_timestamp [11:20:22]Write 4 bytes [11:20:22]NVStorageSaveData done [11:20:22]ExternCall_PrintAddStr [11:20:22]wPrintStart [11:20:22]Write to MH i2c: 01 00 00 25 88 AD [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: 01 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: 01 07 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: 01 07 00 25 88 00 80 00 00 00 FF 0F 42 [11:20:22]RasterBufferAndPrint [11:20:22]line Счет N : (1)195832 [11:20:22]line ИНН: 02508201610067 [11:20:22]line Контрольно-Кассовый Чек [11:20:22]line ПРОДАЖА [11:20:22]line ТРК (МРК, ГНК) : 51 [11:20:22]line Товар: 2710194210 [11:20:22]line ДТ-К-5 [11:20:22]line 14.110 * 70.90 [11:20:22]line = 1000.40 [11:20:22]line НДС 12% НСП 1% [11:20:22]line > о реализуемом товаре [11:20:22]line ОКРУГЛЕНИЕ: -0.40 [11:20:22]line ИТОГО: 1000.00 [11:20:22]line Внесено: 1000.00 [11:20:22]line СДАЧА: 0.00 [11:20:22]line НСП 1% : 8.85 [11:20:22]line НДС 12% : 106.24 [11:20:22]line Наличными: 1000.00 [11:20:22]line Безнал.: 0.00 [11:20:22]line Место: АЗС № 6 "Партнер Нефть" [11:20:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:20:22]line СНО: Общий режим [11:20:22]line Чек 57 11.03.2024 11:20 [11:20:22]line Смена: 326 ФФД: 1.0 [11:20:22]line ЗНМ: 0300000009 [11:20:22]line РНМ: 0000000000090555 [11:20:22]line Версия ККМ: 001 [11:20:22]line ФМ: 0000000000874811 [11:20:22]line ФД: 94882 [11:20:22]line ФПД: 78577391841839 [11:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T112034&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94882&fm=78577391841839&tin=02508201610067®Number=0000000000090555&sum=100000 [11:20:22]OFD Sender: Processing packet 94882 [packets to send 30, broken 29] [11:20:22]ProducePacketName [11:20:22]name=ofd_packets/00094882 [11:20:22]OFD Sender: To server: pG, [11:20:22]CommunicateWithHost lk.salyk.kg:30040 [11:20:22]ConnectInit lk.salyk.kg [11:20:22]written 0, free lines is 4095 [11:20:22]Connected sock=10 [11:20:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 36 8B 04 01 11 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 02 E9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 72 01 00 35 04 06 00 47 77 39 87 32 2F 00 E2 AA 45 AD F2 70 CE [11:20: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 31 31 4F 00 00 00 73 FB 47 00 87 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 72 01 00 F4 03 04 00 5C 94 EE 65 B6 04 01 00 00 6C 07 8D D8 35 F4 4F 87 [11:20:22]CommunicateWithHost err = 0 [11:20:22]CheckOFDResponse [11:20:22]1017 (14) - 77093643461234 [11:20:22]1041 (16) - 0000000000874811 [11:20:22]1040 (4) - 94882 [11:20:22]1012 (4) - 11.03.2024 05:19 [11:20:22]1206 (1) - 0 [11:20:22]OFD Sender: Remove packet 94882 [11:20:22]ProducePacketName [11:20:22]name=ofd_packets/00094882 [11:20:22]NVStorageDeleteData [11:20:23]Write to MH i2c: 01 00 00 50 88 D8 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 07 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: 01 07 00 50 88 00 80 00 00 00 52 0D BE [11:20:23]RasterBufferAndPrint [11:20:23]line [11:20:23]line [11:20:23]line [11:20:23]line [11:20:23]line [11:20:23]written 0, free lines is 3416 [11:20:23]process_action close_receipt done [11:20:23]requested_data is exist [11:20:23]produce_requested_data [11:20:23]requested_item fm.sn is exist - process it [11:20:23]wFMCommunicate request_size=4 [11:20:23]MH_SAM_APDU [11:20:23]CAPDU: 80 11 00 00 [11:20:23]Write to MH i2c: E2 08 00 57 88 80 11 00 00 00 00 00 00 59 [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 17 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 17 00 57 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A9 [11:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:20:23]wFMCommunicate OK [11:20:23]requested_item fd.num is exist - process it [11:20:23]SAM_PROTO_GetFieldsCounters [11:20:23]wFMCommunicate request_size=4 [11:20:23]MH_SAM_APDU [11:20:23]CAPDU: 80 13 00 00 [11:20:23]Write to MH i2c: E2 08 00 58 88 80 13 00 00 00 00 00 00 5C [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 62 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 62 00 58 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:20:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:23]wFMCommunicate OK [11:20:23]SAM_PROTO_GetFieldsCounters done [11:20:23]requested_item shift.num is exist - process it [11:20:23]requested_item shift.opened is exist - process it [11:20:23]req_shift_opened [11:20:23]FM_GetShiftState [11:20:23]SAM_PROTO_GetShiftState [11:20:23]wFMCommunicate request_size=4 [11:20:23]MH_SAM_APDU [11:20:23]CAPDU: 80 13 01 00 [11:20:23]Write to MH i2c: E2 08 00 59 88 80 13 01 00 00 00 00 00 5E [11:20:23]Write i2c OK [11:20:23]MH_I2C_Read... [11:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:23]Read from MH i2c: E2 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 0E 00 [11:20:23]MH_I2C_Read... [11:20:23]Read from MH i2c: E2 0E 00 59 88 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FA [11:20:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:20:23]wFMCommunicate OK [11:20:23]SAM_PROTO_GetShiftState done [11:20:23]FM_GetShiftState done [11:20:23]req_shift_opened done [11:20:23]requested_item shift.open_date is exist - process it [11:20:23]req_shift_open_date [11:20:23]req_shift_open_date done [11:20:23]produce_requested_data done [11:20:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94882,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:20:23]process_action_free close_receipt [11:20:23]json_value_free [11:20:23]json_value_free done [11:20:23]process_json_proto returns [11:20:23]Send response to host [11:20:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94882,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:20:23]free response buf [11:20:23]execute_script done [11:20:23]execute_script returns [11:20:23]free content buf [11:20:23]Sock 7.Close socket [11:20:23]Sock 7.Thread stoped [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:47]accept exits with 9 [11:26:47]New connection [11:26:47]New thread 3067014500 created [11:26:47]Thread 3066871140 joined [11:26:47]Waiting for new connection... [11:26:47] Sock 9.Parse request [11:26:47]Sock 9.Check first char [11:26:47]Sock 9.First char is OK [11:26:47]request: POST /json_proto HTTP/1.0 [11:26:47]Method: POST [11:26:47]URL: /json_proto [11:26:47]Method is POST - this is cgi request [11:26:47]url: /json_proto [11:26:47]query_string will be loaded in cgi processing [11:26:47]execute_cgi json_proto POST (null) [11:26:47]execute_cgi path=json_proto method=POST [11:26:47]POST find Content-Length [11:26:47]Host: 172.17.62.67:8080 [11:26:47]Content-Length: 1182 [11:26:47]Content-Type: application/json [11:26:47] [11:26:47]POST finish read [11:26:47]Found Content-Length = 1182 [11:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195833\u000A11.03.2024 11:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3802978\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:47]execute_script... [11:26:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195833\u000A11.03.2024 11:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3802978\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:47]POST & json_proto [11:26:47]process_json_proto [11:26:47]json parsed OK: [11:26:47]protocol is kg_v1.0 [11:26:47]action value=print_text [11:26:47]process_action print_text [11:26:47]cmd_print_text [11:26:47]ExternCall_PrintAddStr [11:26:47]wPrintStart [11:26:47]Write to MH i2c: 01 00 00 5A 88 E2 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 5A 88 00 80 00 00 00 FF 0F 77 [11:26:47]RasterBufferAndPrint [11:26:47]line *****ТОВАРНЫЙ ЧЕК***** [11:26:47]line АЗС 6 [11:26:47]line Партнер нефть [11:26:47]line 02508201610067 [11:26:47]line Кассир : Карыбаев Б. [11:26:47]line Счет N : (1)195833 [11:26:47]line 11.03.2024 11:21 [11:26:47]line ПРОДАЖА [11:26:47]line ТРК (МРК, ГНК): 22 [11:26:47]line Вид ГСМ : 2710124130 [11:26:47]line Аи-92-К-5 [11:26:47]line 10.000 x 62.90 [11:26:47]line ИТОГ: 629.00 [11:26:47]line Тип оплаты: Талоны: Партнер нефть [11:26:47]line 3802978 [11:26:47]line ______________________ [11:26:47]line (подпись) [11:26:47]written 0, free lines is 4095 [11:26:47]Write to MH i2c: 01 00 00 6E 88 F6 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 6E 88 00 80 00 00 00 66 0E F1 [11:26:47]RasterBufferAndPrint [11:26:47]line [11:26:47]line [11:26:47]line [11:26:47]line [11:26:47]line [11:26:47]written 0, free lines is 3690 [11:26:47]process_action print_text done [11:26:47]requested_data is exist [11:26:47]produce_requested_data [11:26:47]requested_item fm.sn is exist - process it [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 11 00 00 [11:26:47]Write to MH i2c: E2 08 00 75 88 80 11 00 00 00 00 00 00 77 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 17 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 17 00 75 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [11:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:26:47]wFMCommunicate OK [11:26:47]requested_item fd.num is exist - process it [11:26:47]SAM_PROTO_GetFieldsCounters [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 13 00 00 [11:26:47]Write to MH i2c: E2 08 00 76 88 80 13 00 00 00 00 00 00 7A [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 62 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 62 00 76 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [11:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:47]wFMCommunicate OK [11:26:47]SAM_PROTO_GetFieldsCounters done [11:26:47]requested_item shift.num is exist - process it [11:26:47]requested_item shift.opened is exist - process it [11:26:47]req_shift_opened [11:26:47]FM_GetShiftState [11:26:47]SAM_PROTO_GetShiftState [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 13 01 00 [11:26:47]Write to MH i2c: E2 08 00 77 88 80 13 01 00 00 00 00 00 7C [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 0E 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 0E 00 77 88 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 18 [11:26:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:26:47]wFMCommunicate OK [11:26:47]SAM_PROTO_GetShiftState done [11:26:47]FM_GetShiftState done [11:26:47]req_shift_opened done [11:26:47]requested_item shift.open_date is exist - process it [11:26:47]req_shift_open_date [11:26:47]req_shift_open_date done [11:26:47]produce_requested_data done [11:26:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94882,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:26:47]process_action_free print_text [11:26:47]json_value_free [11:26:47]json_value_free done [11:26:47]process_json_proto returns [11:26:47]Send response to host [11:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94882,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:26:47]free response buf [11:26:47]execute_script done [11:26:47]execute_script returns [11:26:47]free content buf [11:26:47]Sock 9.Close socket [11:26:47]Sock 9.Thread stoped [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:33]accept exits with 7 [11:32:33]New connection [11:32:33]New thread 3066871140 created [11:32:33]Thread 3067014500 joined [11:32:33]Waiting for new connection... [11:32:33] Sock 7.Parse request [11:32:33]Sock 7.Check first char [11:32:33]Sock 7.First char is OK [11:32:33]request: POST /json_proto HTTP/1.0 [11:32:33]Method: POST [11:32:33]URL: /json_proto [11:32:33]Method is POST - this is cgi request [11:32:33]url: /json_proto [11:32:33]query_string will be loaded in cgi processing [11:32:33]execute_cgi json_proto POST (null) [11:32:33]execute_cgi path=json_proto method=POST [11:32:33]POST find Content-Length [11:32:33]Host: 172.17.62.67:8080 [11:32:33]Content-Length: 679 [11:32:33]Content-Type: application/json [11:32:33] [11:32:33]POST finish read [11:32:33]Found Content-Length = 679 [11:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:32:33]execute_script... [11:32: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)195834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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:32:33]POST & json_proto [11:32:33]process_json_proto [11:32:33]json parsed OK: [11:32:33]protocol is kg_v1.0 [11:32:33]action value=close_receipt [11:32:33]process_action close_receipt [11:32:33]cmd_close_receipt [11:32:33]MH_GetDate [11:32:33]Write to MH i2c: F0 00 00 78 88 EF [11:32:33]Write i2c OK [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: F0 [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: F0 05 00 [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: F0 05 00 78 88 00 DF EB EE 65 11 [11:32:33]GetLastDocTimeStamp 1710156034 [11:32:33]current date 1710156767 [11:32:33]FM_GetShiftState [11:32:33]SAM_PROTO_GetShiftState [11:32:33]wFMCommunicate request_size=4 [11:32:33]MH_SAM_APDU [11:32:33]CAPDU: 80 13 01 00 [11:32:33]Write to MH i2c: E2 08 00 79 88 80 13 01 00 00 00 00 00 7E [11:32:33]Write i2c OK [11:32:33]MH_I2C_Read... [11:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:33]Read from MH i2c: E2 [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: E2 0E 00 [11:32:33]MH_I2C_Read... [11:32:33]Read from MH i2c: E2 0E 00 79 88 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 1A [11:32:33]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:32:33]wFMCommunicate OK [11:32:33]SAM_PROTO_GetShiftState done [11:32:33]FM_GetShiftState done [11:32:33]opened in 1710115571 [11:32:33]opened+sec_in_day 1710201971 [11:32:33]quantity*price = 100039 [11:32:33]sum+1 = 100041 [11:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 58 11.03.2024 11:32 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94883 ФПД: 8950140592737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T113247&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94883&fm=8950140592737&tin=02508201610067®Number=0000000000090555&sum=100000 [11:32:34]StoreToDocumentArchive [11:32:34]shift 326 fd 94883 [11:32:34]save to /storage/0326/doc_00094883 [11:32:34]save last doc name /storage/0326/doc_00094883 to /storage/kkm_last_doc_name [11:32:34]save OK [11:32:34]Clear old archive folders... [11:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:32:34]tlvbuf is 00320A40 [11:32:34]SAM_PROTO_ClearQueue [11:32:34]wFMCommunicate request_size=4 [11:32:34]MH_SAM_APDU [11:32:34]CAPDU: 80 09 00 00 [11:32:34]Write to MH i2c: E2 08 00 86 88 80 09 00 00 00 00 00 00 80 [11:32:34]Write i2c OK [11:32:34]MH_I2C_Read... [11:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:34]Read from MH i2c: E2 [11:32:34]MH_I2C_Read... [11:32:34]Read from MH i2c: E2 03 00 [11:32:34]MH_I2C_Read... [11:32:34]Read from MH i2c: E2 03 00 86 88 00 90 00 82 [11:32:34]RAPDU: 90 00 [11:32:34]wFMCommunicate OK [11:32:34]SAM_PROTO_ClearQueue done [11:32:34]KKMCreateOFDPacket [11:32:34]OFDProtocolAddRootSTLVToBuf [11:32:34]FM_MakeSignedData [11:32:34]FM_MakeSignedData [11:32:34]SAM_PROTO_SignData [11:32:34]wFMCommunicate request_size=4 [11:32:34]MH_SAM_APDU [11:32:34]CAPDU: 80 0D 01 02 [11:32:34]Write to MH i2c: E2 08 00 87 88 80 0D 01 02 00 00 00 00 88 [11:32:34]Write i2c OK [11:32:34]MH_I2C_Read... [11:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:34]Read from MH i2c: E2 [11:32:34]MH_I2C_Read... [11:32:34]Read from MH i2c: E2 03 00 [11:32:34]MH_I2C_Read... [11:32:34]Read from MH i2c: E2 03 00 87 88 00 90 00 83 [11:32:34]RAPDU: 90 00 [11:32:34]wFMCommunicate OK [11:32:34]wFMCommunicate request_size=255 [11:32:34]MH_SAM_APDU [11:32:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 DF EB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 72 01 00 35 04 06 00 08 23 DD F3 [11:32:34]Write to MH i2c: E2 02 01 88 88 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 DF EB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 72 01 00 35 04 06 00 08 23 DD F3 00 00 70 [11:32:34]Write i2c OK [11:32:34]MH_I2C_Read... [11:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:34]Read from MH i2c: E2 [11:32:34]MH_I2C_Read... [11:32:34]Read from MH i2c: E2 03 00 [11:32:34]MH_I2C_Read... [11:32:34]Read from MH i2c: E2 03 00 88 88 00 90 00 84 [11:32:34]RAPDU: 90 00 [11:32:34]wFMCommunicate OK [11:32:34]wFMCommunicate request_size=7 [11:32:34]MH_SAM_APDU [11:32:34]CAPDU: 80 0D 02 02 02 62 61 [11:32:34]Write to MH i2c: E2 0A 00 89 88 80 0D 02 02 02 00 62 61 00 00 52 [11:32:34]Write i2c OK [11:32:34]MH_I2C_Read... [11:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:34]Read from MH i2c: E2 [11:32:34]MH_I2C_Read... [11:32:34]Read from MH i2c: E2 03 00 [11:32:34]MH_I2C_Read... [11:32:34]Read from MH i2c: E2 03 00 89 88 00 90 00 85 [11:32:34]RAPDU: 90 00 [11:32:34]wFMCommunicate OK [11:32:34]wFMCommunicate request_size=4 [11:32:34]MH_SAM_APDU [11:32:34]CAPDU: 80 0D 03 02 [11:32:34]Write to MH i2c: E2 08 00 8A 88 80 0D 03 02 00 00 00 00 8D [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:35]Read from MH i2c: E2 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: E2 0B 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: E2 0B 00 8A 88 00 3F E2 6F EB 43 C0 05 1D 90 00 2E [11:32:35]RAPDU: 3F E2 6F EB 43 C0 05 1D 90 00 [11:32:35]wFMCommunicate OK [11:32:35]SAM_PROTO_SignData done [11:32:35]FM_MakeSignedData done [11:32:35]CreateOFDProtocolMessage [11:32:35]wFMCommunicate request_size=4 [11:32:35]MH_SAM_APDU [11:32:35]CAPDU: 80 11 00 00 [11:32:35]Write to MH i2c: E2 08 00 8B 88 80 11 00 00 00 00 00 00 8D [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:35]Read from MH i2c: E2 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: E2 17 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: E2 17 00 8B 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DD [11:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:32:35]wFMCommunicate OK [11:32:35]CreateOFDProtocolMessage done [11:32:35]OFDSenderStorePacket 94883 [11:32:35]StoreOFDPacket docnum=94883 [11:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 73 15 04 01 C3 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 DF EB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 72 01 00 35 04 06 00 08 23 DD F3 62 61 3F E2 6F EB 43 C0 05 1D [11:32:35]CheckFolder [11:32:35]dirname=/storage/ofd_packets [11:32:35]CheckFolder done [11:32:35]ProducePacketName [11:32:35]name=ofd_packets/00094883 [11:32:35]NVStorageSaveData ofd_packets/00094883 [11:32:35]File name is /storage/ofd_packets/00094883 [11:32:35]Write 298 bytes [11:32:35]NVStorageSaveData done [11:32:35]OFDSenderStorePacket done [11:32:35]KKMCreateOFDPacket done [11:32:35]NVStorageSaveData kkm_last_timestamp [11:32:35]File name is /storage/kkm_last_timestamp [11:32:35]Write 4 bytes [11:32:35]NVStorageSaveData done [11:32:35]ExternCall_PrintAddStr [11:32:35]wPrintStart [11:32:35]Write to MH i2c: 01 00 00 8C 88 14 [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 07 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 07 00 8C 88 00 80 00 00 00 FF 0F A9 [11:32:35]RasterBufferAndPrint [11:32:35]line Счет N : (1)195834 [11:32:35]line ИНН: 02508201610067 [11:32:35]line Контрольно-Кассовый Чек [11:32:35]line ПРОДАЖА [11:32:35]line ТРК (МРК, ГНК) : 51 [11:32:35]line Товар: 2710194210 [11:32:35]line ДТ-К-5 [11:32:35]line 14.110 * 70.90 [11:32:35]line = 1000.40 [11:32:35]line НДС 12% НСП 1% [11:32:35]line > о реализуемом товаре [11:32:35]line ОКРУГЛЕНИЕ: -0.40 [11:32:35]line ИТОГО: 1000.00 [11:32:35]line Внесено: 1000.00 [11:32:35]line СДАЧА: 0.00 [11:32:35]line НСП 1% : 8.85 [11:32:35]line НДС 12% : 106.24 [11:32:35]line Наличными: 1000.00 [11:32:35]line Безнал.: 0.00 [11:32:35]line Место: АЗС № 6 "Партнер Нефть" [11:32:35]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:32:35]line СНО: Общий режим [11:32:35]line Чек 58 11.03.2024 11:32 [11:32:35]line Смена: 326 ФФД: 1.0 [11:32:35]line ЗНМ: 0300000009 [11:32:35]line РНМ: 0000000000090555 [11:32:35]line Версия ККМ: 001 [11:32:35]line ФМ: 0000000000874811 [11:32:35]line ФД: 94883 [11:32:35]line ФПД: 8950140592737 [11:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T113247&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94883&fm=8950140592737&tin=02508201610067®Number=0000000000090555&sum=100000 [11:32:35]OFD Sender: Processing packet 94883 [packets to send 30, broken 29] [11:32:35]ProducePacketName [11:32:35]name=ofd_packets/00094883 [11:32:35]OFD Sender: To server: pG, [11:32:35]CommunicateWithHost lk.salyk.kg:30040 [11:32:35]ConnectInit lk.salyk.kg [11:32:35]written 0, free lines is 4095 [11:32:35]Connected sock=11 [11:32:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 73 15 04 01 C3 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 DF EB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 72 01 00 35 04 06 00 08 23 DD F3 62 61 3F E2 6F EB 43 C0 05 1D [11:32: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 31 31 4F 00 00 00 E7 F3 47 00 E7 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 72 01 00 F4 03 04 00 39 97 EE 65 B6 04 01 00 00 F9 BF B7 81 C3 87 72 E3 [11:32:35]CommunicateWithHost err = 0 [11:32:35]CheckOFDResponse [11:32:35]1017 (14) - 77093643461234 [11:32:35]1041 (16) - 0000000000874811 [11:32:35]1040 (4) - 94883 [11:32:35]1012 (4) - 11.03.2024 05:31 [11:32:35]1206 (1) - 0 [11:32:35]OFD Sender: Remove packet 94883 [11:32:35]ProducePacketName [11:32:35]name=ofd_packets/00094883 [11:32:35]NVStorageDeleteData [11:32:35]Write to MH i2c: 01 00 00 B7 88 3F [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 07 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: 01 07 00 B7 88 00 80 00 00 00 4E 0D 21 [11:32:35]RasterBufferAndPrint [11:32:35]line [11:32:35]line [11:32:35]line [11:32:35]line [11:32:35]line [11:32:35]written 0, free lines is 3412 [11:32:35]process_action close_receipt done [11:32:35]requested_data is exist [11:32:35]produce_requested_data [11:32:35]requested_item fm.sn is exist - process it [11:32:35]wFMCommunicate request_size=4 [11:32:35]MH_SAM_APDU [11:32:35]CAPDU: 80 11 00 00 [11:32:35]Write to MH i2c: E2 08 00 BE 88 80 11 00 00 00 00 00 00 C0 [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:35]Read from MH i2c: E2 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: E2 17 00 [11:32:35]MH_I2C_Read... [11:32:35]Read from MH i2c: E2 17 00 BE 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [11:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:32:35]wFMCommunicate OK [11:32:35]requested_item fd.num is exist - process it [11:32:35]SAM_PROTO_GetFieldsCounters [11:32:35]wFMCommunicate request_size=4 [11:32:35]MH_SAM_APDU [11:32:35]CAPDU: 80 13 00 00 [11:32:35]Write to MH i2c: E2 08 00 BF 88 80 13 00 00 00 00 00 00 C3 [11:32:35]Write i2c OK [11:32:35]MH_I2C_Read... [11:32:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:36]Read from MH i2c: E2 [11:32:36]MH_I2C_Read... [11:32:36]Read from MH i2c: E2 62 00 [11:32:36]MH_I2C_Read... [11:32:36]Read from MH i2c: E2 62 00 BF 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [11:32:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:36]wFMCommunicate OK [11:32:36]SAM_PROTO_GetFieldsCounters done [11:32:36]requested_item shift.num is exist - process it [11:32:36]requested_item shift.opened is exist - process it [11:32:36]req_shift_opened [11:32:36]FM_GetShiftState [11:32:36]SAM_PROTO_GetShiftState [11:32:36]wFMCommunicate request_size=4 [11:32:36]MH_SAM_APDU [11:32:36]CAPDU: 80 13 01 00 [11:32:36]Write to MH i2c: E2 08 00 C0 88 80 13 01 00 00 00 00 00 C5 [11:32:36]Write i2c OK [11:32:36]MH_I2C_Read... [11:32:36]OFD Sender: No OFD packet to send [11:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:36]Read from MH i2c: E2 [11:32:36]MH_I2C_Read... [11:32:36]Read from MH i2c: E2 0E 00 [11:32:36]MH_I2C_Read... [11:32:36]Read from MH i2c: E2 0E 00 C0 88 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 61 [11:32:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:32:36]wFMCommunicate OK [11:32:36]SAM_PROTO_GetShiftState done [11:32:36]FM_GetShiftState done [11:32:36]req_shift_opened done [11:32:36]requested_item shift.open_date is exist - process it [11:32:36]req_shift_open_date [11:32:36]req_shift_open_date done [11:32:36]produce_requested_data done [11:32:36]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94883,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:32:36]process_action_free close_receipt [11:32:36]json_value_free [11:32:36]json_value_free done [11:32:36]process_json_proto returns [11:32:36]Send response to host [11:32:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94883,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:32:36]free response buf [11:32:36]execute_script done [11:32:36]execute_script returns [11:32:36]free content buf [11:32:36]Sock 7.Close socket [11:32:36]Sock 7.Thread stoped [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:44]accept exits with 9 [11:34:44]New connection [11:34:44]New thread 3067014500 created [11:34:44]Thread 3066871140 joined [11:34:44]Waiting for new connection... [11:34:44] Sock 9.Parse request [11:34:44]Sock 9.Check first char [11:34:44]Sock 9.First char is OK [11:34:44]request: POST /json_proto HTTP/1.0 [11:34:44]Method: POST [11:34:44]URL: /json_proto [11:34:44]Method is POST - this is cgi request [11:34:44]url: /json_proto [11:34:44]query_string will be loaded in cgi processing [11:34:44]execute_cgi json_proto POST (null) [11:34:44]execute_cgi path=json_proto method=POST [11:34:44]POST find Content-Length [11:34:44]Host: 172.17.62.67:8080 [11:34:44]Content-Length: 661 [11:34:44]Content-Type: application/json [11:34:44] [11:34:44]POST finish read [11:34:44]Found Content-Length = 661 [11:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:44]execute_script... [11:34: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)195835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:44]POST & json_proto [11:34:44]process_json_proto [11:34:44]json parsed OK: [11:34:44]protocol is kg_v1.0 [11:34:44]action value=close_receipt [11:34:44]process_action close_receipt [11:34:44]cmd_close_receipt [11:34:44]MH_GetDate [11:34:44]Write to MH i2c: F0 00 00 C1 88 38 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: F0 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: F0 05 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: F0 05 00 C1 88 00 62 EC EE 65 DE [11:34:44]GetLastDocTimeStamp 1710156767 [11:34:44]current date 1710156898 [11:34:44]FM_GetShiftState [11:34:44]SAM_PROTO_GetShiftState [11:34:44]wFMCommunicate request_size=4 [11:34:44]MH_SAM_APDU [11:34:44]CAPDU: 80 13 01 00 [11:34:44]Write to MH i2c: E2 08 00 C2 88 80 13 01 00 00 00 00 00 C7 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:44]Read from MH i2c: E2 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 0E 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 0E 00 C2 88 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 63 [11:34:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:34:44]wFMCommunicate OK [11:34:44]SAM_PROTO_GetShiftState done [11:34:44]FM_GetShiftState done [11:34:44]opened in 1710115571 [11:34:44]opened+sec_in_day 1710201971 [11:34:44]quantity*price = 62900 [11:34:44]sum+1 = 62901 [11:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 5000.00 СДАЧА: 4371.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 59 11.03.2024 11:34 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94884 ФПД: 61951659398069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T113458&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94884&fm=61951659398069&tin=02508201610067®Number=0000000000090555&sum=62900 [11:34:46]StoreToDocumentArchive [11:34:46]shift 326 fd 94884 [11:34:46]save to /storage/0326/doc_00094884 [11:34:46]save last doc name /storage/0326/doc_00094884 to /storage/kkm_last_doc_name [11:34:46]save OK [11:34:46]Clear old archive folders... [11:34:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:46]tlvbuf is 0021F7B0 [11:34:46]SAM_PROTO_ClearQueue [11:34:46]wFMCommunicate request_size=4 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 09 00 00 [11:34:46]Write to MH i2c: E2 08 00 CF 88 80 09 00 00 00 00 00 00 C9 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 CF 88 00 90 00 CB [11:34:46]RAPDU: 90 00 [11:34:46]wFMCommunicate OK [11:34:46]SAM_PROTO_ClearQueue done [11:34:46]KKMCreateOFDPacket [11:34:46]OFDProtocolAddRootSTLVToBuf [11:34:46]FM_MakeSignedData [11:34:46]FM_MakeSignedData [11:34:46]SAM_PROTO_SignData [11:34:46]wFMCommunicate request_size=4 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 0D 01 02 [11:34:46]Write to MH i2c: E2 08 00 D0 88 80 0D 01 02 00 00 00 00 D1 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 D0 88 00 90 00 CC [11:34:46]RAPDU: 90 00 [11:34:46]wFMCommunicate OK [11:34:46]wFMCommunicate request_size=255 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 62 EC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 72 01 00 35 04 06 00 38 [11:34:46]Write to MH i2c: E2 02 01 D1 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 62 EC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 72 01 00 35 04 06 00 38 00 00 86 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]OFD Sender: No OFD packet to send [11:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 D1 88 00 90 00 CD [11:34:46]RAPDU: 90 00 [11:34:46]wFMCommunicate OK [11:34:46]wFMCommunicate request_size=10 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 0D 02 02 05 58 3E A6 D3 B5 [11:34:46]Write to MH i2c: E2 0D 00 D2 88 80 0D 02 02 05 00 58 3E A6 D3 B5 00 00 A2 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 03 00 D2 88 00 90 00 CE [11:34:46]RAPDU: 90 00 [11:34:46]wFMCommunicate OK [11:34:46]wFMCommunicate request_size=4 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 0D 03 02 [11:34:46]Write to MH i2c: E2 08 00 D3 88 80 0D 03 02 00 00 00 00 D6 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 0B 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 0B 00 D3 88 00 33 31 06 EF A7 92 EC 65 90 00 BA [11:34:46]RAPDU: 33 31 06 EF A7 92 EC 65 90 00 [11:34:46]wFMCommunicate OK [11:34:46]SAM_PROTO_SignData done [11:34:46]FM_MakeSignedData done [11:34:46]CreateOFDProtocolMessage [11:34:46]wFMCommunicate request_size=4 [11:34:46]MH_SAM_APDU [11:34:46]CAPDU: 80 11 00 00 [11:34:46]Write to MH i2c: E2 08 00 D4 88 80 11 00 00 00 00 00 00 D6 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:46]Read from MH i2c: E2 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 17 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: E2 17 00 D4 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 26 [11:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:34:46]wFMCommunicate OK [11:34:46]CreateOFDProtocolMessage done [11:34:46]OFDSenderStorePacket 94884 [11:34:46]StoreOFDPacket docnum=94884 [11:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EC 0D 07 01 C3 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 62 EC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 72 01 00 35 04 06 00 38 58 3E A6 D3 B5 33 31 06 EF A7 92 EC 65 [11:34:46]CheckFolder [11:34:46]dirname=/storage/ofd_packets [11:34:46]CheckFolder done [11:34:46]ProducePacketName [11:34:46]name=ofd_packets/00094884 [11:34:46]NVStorageSaveData ofd_packets/00094884 [11:34:46]File name is /storage/ofd_packets/00094884 [11:34:46]Write 301 bytes [11:34:46]NVStorageSaveData done [11:34:46]OFDSenderStorePacket done [11:34:46]KKMCreateOFDPacket done [11:34:46]NVStorageSaveData kkm_last_timestamp [11:34:46]File name is /storage/kkm_last_timestamp [11:34:46]Write 4 bytes [11:34:46]NVStorageSaveData done [11:34:46]ExternCall_PrintAddStr [11:34:46]wPrintStart [11:34:46]Write to MH i2c: 01 00 00 D5 88 5D [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 07 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 07 00 D5 88 00 80 00 00 00 FF 0F F2 [11:34:46]RasterBufferAndPrint [11:34:46]line Счет N : (1)195835 [11:34:46]line ИНН: 02508201610067 [11:34:46]line Контрольно-Кассовый Чек [11:34:46]line ПРОДАЖА [11:34:46]line ТРК (МРК, ГНК) : 22 [11:34:46]line Товар: 2710124130 [11:34:46]line Аи-92-К-5 [11:34:46]line 10.000 * 62.90 [11:34:46]line = 629.00 [11:34:46]line НДС 12% НСП 1% [11:34:46]line > о реализуемом товаре [11:34:46]line ИТОГО: 629.00 [11:34:46]line Внесено: 5000.00 [11:34:46]line СДАЧА: 4371.00 [11:34:46]line НСП 1% : 5.57 [11:34:46]line НДС 12% : 66.80 [11:34:46]line Наличными: 629.00 [11:34:46]line Безнал.: 0.00 [11:34:46]line Место: АЗС № 6 "Партнер Нефть" [11:34:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:34:46]line СНО: Общий режим [11:34:46]line Чек 59 11.03.2024 11:34 [11:34:46]line Смена: 326 ФФД: 1.0 [11:34:46]line ЗНМ: 0300000009 [11:34:46]line РНМ: 0000000000090555 [11:34:46]line Версия ККМ: 001 [11:34:46]line ФМ: 0000000000874811 [11:34:46]line ФД: 94884 [11:34:46]line ФПД: 61951659398069 [11:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T113458&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94884&fm=61951659398069&tin=02508201610067®Number=0000000000090555&sum=62900 [11:34:46]OFD Sender: Processing packet 94884 [packets to send 30, broken 29] [11:34:46]ProducePacketName [11:34:46]name=ofd_packets/00094884 [11:34:46]OFD Sender: To server: pG, [11:34:46]CommunicateWithHost lk.salyk.kg:30040 [11:34:46]ConnectInit lk.salyk.kg [11:34:46]written 0, free lines is 4095 [11:34:46]Connected sock=10 [11:34: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 31 31 0F 01 00 00 EC 0D 07 01 C3 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 62 EC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 72 01 00 35 04 06 00 38 58 3E A6 D3 B5 33 31 06 EF A7 92 EC 65 [11:34: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 31 31 4F 00 00 00 99 12 47 00 35 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 31 31 10 04 04 00 A4 72 01 00 F4 03 04 00 BC 97 EE 65 B6 04 01 00 00 66 1A B5 B1 F7 57 0A F2 [11:34:47]CommunicateWithHost err = 0 [11:34:47]CheckOFDResponse [11:34:47]1017 (14) - 77093643461234 [11:34:47]1041 (16) - 0000000000874811 [11:34:47]1040 (4) - 94884 [11:34:47]1012 (4) - 11.03.2024 05:33 [11:34:47]1206 (1) - 0 [11:34:47]OFD Sender: Remove packet 94884 [11:34:47]ProducePacketName [11:34:47]name=ofd_packets/00094884 [11:34:47]NVStorageDeleteData [11:34:47]Write to MH i2c: 01 00 00 FF 88 87 [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: 01 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: 01 07 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: 01 07 00 FF 88 00 80 00 00 00 67 0D 82 [11:34:47]RasterBufferAndPrint [11:34:47]line [11:34:47]line [11:34:47]line [11:34:47]line [11:34:47]line [11:34:47]written 0, free lines is 3437 [11:34:47]process_action close_receipt done [11:34:47]requested_data is exist [11:34:47]produce_requested_data [11:34:47]requested_item fm.sn is exist - process it [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 11 00 00 [11:34:47]Write to MH i2c: E2 08 00 06 89 80 11 00 00 00 00 00 00 09 [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 17 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 17 00 06 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 59 [11:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:34:47]wFMCommunicate OK [11:34:47]requested_item fd.num is exist - process it [11:34:47]SAM_PROTO_GetFieldsCounters [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 13 00 00 [11:34:47]Write to MH i2c: E2 08 00 07 89 80 13 00 00 00 00 00 00 0C [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 62 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 62 00 07 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [11:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:47]wFMCommunicate OK [11:34:47]SAM_PROTO_GetFieldsCounters done [11:34:47]requested_item shift.num is exist - process it [11:34:47]requested_item shift.opened is exist - process it [11:34:47]req_shift_opened [11:34:47]FM_GetShiftState [11:34:47]SAM_PROTO_GetShiftState [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 13 01 00 [11:34:47]Write to MH i2c: E2 08 00 08 89 80 13 01 00 00 00 00 00 0E [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 0E 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 0E 00 08 89 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AA [11:34:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:34:47]wFMCommunicate OK [11:34:47]SAM_PROTO_GetShiftState done [11:34:47]FM_GetShiftState done [11:34:47]req_shift_opened done [11:34:47]requested_item shift.open_date is exist - process it [11:34:47]req_shift_open_date [11:34:47]req_shift_open_date done [11:34:47]produce_requested_data done [11:34:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94884,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:34:47]process_action_free close_receipt [11:34:47]json_value_free [11:34:47]json_value_free done [11:34:47]process_json_proto returns [11:34:47]Send response to host [11:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94884,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:34:47]free response buf [11:34:47]execute_script done [11:34:47]execute_script returns [11:34:47]free content buf [11:34:47]Sock 9.Close socket [11:34:47]Sock 9.Thread stoped [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [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:08]accept exits with 7 [11:39:08]New connection [11:39:08]New thread 3066871140 created [11:39:08]Thread 3067014500 joined [11:39:08]Waiting for new connection... [11:39:08] Sock 7.Parse request [11:39:08]Sock 7.Check first char [11:39:08]Sock 7.First char is OK [11:39:08]request: POST /json_proto HTTP/1.0 [11:39:08]Method: POST [11:39:08]URL: /json_proto [11:39:08]Method is POST - this is cgi request [11:39:08]url: /json_proto [11:39:08]query_string will be loaded in cgi processing [11:39:08]execute_cgi json_proto POST (null) [11:39:08]execute_cgi path=json_proto method=POST [11:39:08]POST find Content-Length [11:39:08]Host: 172.17.62.67:8080 [11:39:08]Content-Length: 675 [11:39:08]Content-Type: application/json [11:39:08] [11:39:08]POST finish read [11:39:08]Found Content-Length = 675 [11:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 20.350, "sum" : 1300.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:08]execute_script... [11:39: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)195836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 20.350, "sum" : 1300.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:08]POST & json_proto [11:39:08]process_json_proto [11:39:08]json parsed OK: [11:39:08]protocol is kg_v1.0 [11:39:08]action value=close_receipt [11:39:08]process_action close_receipt [11:39:08]cmd_close_receipt [11:39:08]MH_GetDate [11:39:08]Write to MH i2c: F0 00 00 09 89 81 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 05 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: F0 05 00 09 89 00 6A ED EE 65 30 [11:39:08]GetLastDocTimeStamp 1710156898 [11:39:08]current date 1710157162 [11:39:08]FM_GetShiftState [11:39:08]SAM_PROTO_GetShiftState [11:39:08]wFMCommunicate request_size=4 [11:39:08]MH_SAM_APDU [11:39:08]CAPDU: 80 13 01 00 [11:39:08]Write to MH i2c: E2 08 00 0A 89 80 13 01 00 00 00 00 00 10 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:08]Read from MH i2c: E2 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 0E 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 0E 00 0A 89 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AC [11:39:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:39:08]wFMCommunicate OK [11:39:08]SAM_PROTO_GetShiftState done [11:39:08]FM_GetShiftState done [11:39:08]opened in 1710115571 [11:39:08]opened+sec_in_day 1710201971 [11:39:08]quantity*price = 130036 [11:39:08]sum+1 = 130038 [11:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.09 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 60 11.03.2024 11:39 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94885 ФПД: 135218555564589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T113922&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94885&fm=135218555564589&tin=02508201610067®Number=0000000000090555&sum=130000 [11:39:09]StoreToDocumentArchive [11:39:09]shift 326 fd 94885 [11:39:09]save to /storage/0326/doc_00094885 [11:39:09]save last doc name /storage/0326/doc_00094885 to /storage/kkm_last_doc_name [11:39:09]save OK [11:39:09]Clear old archive folders... [11:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:39:09]tlvbuf is 004698F0 [11:39:09]SAM_PROTO_ClearQueue [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 09 00 00 [11:39:09]Write to MH i2c: E2 08 00 17 89 80 09 00 00 00 00 00 00 12 [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 17 89 00 90 00 14 [11:39:10]RAPDU: 90 00 [11:39:10]wFMCommunicate OK [11:39:10]SAM_PROTO_ClearQueue done [11:39:10]KKMCreateOFDPacket [11:39:10]OFDProtocolAddRootSTLVToBuf [11:39:10]FM_MakeSignedData [11:39:10]FM_MakeSignedData [11:39:10]SAM_PROTO_SignData [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 0D 01 02 [11:39:10]Write to MH i2c: E2 08 00 18 89 80 0D 01 02 00 00 00 00 1A [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 18 89 00 90 00 15 [11:39:10]RAPDU: 90 00 [11:39:10]wFMCommunicate OK [11:39:10]wFMCommunicate request_size=255 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 F5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6A ED EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 72 01 00 35 04 06 00 [11:39:10]Write to MH i2c: E2 02 01 19 89 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 F5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6A ED EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 72 01 00 35 04 06 00 00 00 0F [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 19 89 00 90 00 16 [11:39:10]RAPDU: 90 00 [11:39:10]wFMCommunicate OK [11:39:10]wFMCommunicate request_size=11 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 0D 02 02 06 7A FB 05 F8 B2 2D [11:39:10]Write to MH i2c: E2 0E 00 1A 89 80 0D 02 02 06 00 7A FB 05 F8 B2 2D 00 00 7A [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 03 00 1A 89 00 90 00 17 [11:39:10]RAPDU: 90 00 [11:39:10]wFMCommunicate OK [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 0D 03 02 [11:39:10]Write to MH i2c: E2 08 00 1B 89 80 0D 03 02 00 00 00 00 1F [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 0B 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 0B 00 1B 89 00 1A AA F4 6A AC 4F 41 BB 90 00 39 [11:39:10]RAPDU: 1A AA F4 6A AC 4F 41 BB 90 00 [11:39:10]wFMCommunicate OK [11:39:10]SAM_PROTO_SignData done [11:39:10]FM_MakeSignedData done [11:39:10]CreateOFDProtocolMessage [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 11 00 00 [11:39:10]Write to MH i2c: E2 08 00 1C 89 80 11 00 00 00 00 00 00 1F [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 17 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 17 00 1C 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [11:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:39:10]wFMCommunicate OK [11:39:10]CreateOFDProtocolMessage done [11:39:10]OFDSenderStorePacket 94885 [11:39:10]StoreOFDPacket docnum=94885 [11:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 34 F3 08 01 CD 3E 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 F5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6A ED EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 72 01 00 35 04 06 00 7A FB 05 F8 B2 2D 1A AA F4 6A AC 4F 41 BB [11:39:10]CheckFolder [11:39:10]dirname=/storage/ofd_packets [11:39:10]CheckFolder done [11:39:10]ProducePacketName [11:39:10]name=ofd_packets/00094885 [11:39:10]NVStorageSaveData ofd_packets/00094885 [11:39:10]File name is /storage/ofd_packets/00094885 [11:39:10]Write 302 bytes [11:39:10]NVStorageSaveData done [11:39:10]OFDSenderStorePacket done [11:39:10]KKMCreateOFDPacket done [11:39:10]NVStorageSaveData kkm_last_timestamp [11:39:10]File name is /storage/kkm_last_timestamp [11:39:10]Write 4 bytes [11:39:10]NVStorageSaveData done [11:39:10]ExternCall_PrintAddStr [11:39:10]wPrintStart [11:39:10]Write to MH i2c: 01 00 00 1D 89 A6 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 1D 89 00 80 00 00 00 FF 0F 3B [11:39:10]RasterBufferAndPrint [11:39:10]line Счет N : (1)195836 [11:39:10]line ИНН: 02508201610067 [11:39:10]line Контрольно-Кассовый Чек [11:39:10]line ПРОДАЖА [11:39:10]line ТРК (МРК, ГНК) : 23 [11:39:10]line Товар: 2710124130 [11:39:10]line SUPER 92-К-5 [11:39:10]line 20.350 * 63.90 [11:39:10]line = 1300.37 [11:39:10]line НДС 12% НСП 1% [11:39:10]line > о реализуемом товаре [11:39:10]line ОКРУГЛЕНИЕ: -0.37 [11:39:10]line ИТОГО: 1300.00 [11:39:10]line Внесено: 1300.00 [11:39:10]line СДАЧА: 0.00 [11:39:10]line НСП 1% : 11.51 [11:39:10]line НДС 12% : 138.09 [11:39:10]line Наличными: 1300.00 [11:39:10]line Безнал.: 0.00 [11:39:10]line Место: АЗС № 6 "Партнер Нефть" [11:39:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:39:10]line СНО: Общий режим [11:39:10]line Чек 60 11.03.2024 11:39 [11:39:10]line Смена: 326 ФФД: 1.0 [11:39:10]line ЗНМ: 0300000009 [11:39:10]line РНМ: 0000000000090555 [11:39:10]line Версия ККМ: 001 [11:39:10]line ФМ: 0000000000874811 [11:39:10]line ФД: 94885 [11:39:10]line ФПД: 135218555564589 [11:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T113922&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94885&fm=135218555564589&tin=02508201610067®Number=0000000000090555&sum=130000 [11:39:10]OFD Sender: Processing packet 94885 [packets to send 30, broken 29] [11:39:10]ProducePacketName [11:39:10]name=ofd_packets/00094885 [11:39:10]OFD Sender: To server: pG, [11:39:10]CommunicateWithHost lk.salyk.kg:30040 [11:39:10]ConnectInit lk.salyk.kg [11:39:10]written 0, free lines is 4095 [11:39:10]Connected sock=10 [11:39: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 31 31 10 01 00 00 34 F3 08 01 CD 3E 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 F5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 6A ED EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 72 01 00 35 04 06 00 7A FB 05 F8 B2 2D 1A AA F4 6A AC 4F 41 BB [11:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 43 20 47 00 AB 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 72 01 00 F4 03 04 00 C4 98 EE 65 B6 04 01 00 00 F0 9D 88 93 26 57 07 6C [11:39:11]CommunicateWithHost err = 0 [11:39:11]CheckOFDResponse [11:39:11]1017 (14) - 77093643461234 [11:39:11]1041 (16) - 0000000000874811 [11:39:11]1040 (4) - 94885 [11:39:11]1012 (4) - 11.03.2024 05:38 [11:39:11]1206 (1) - 0 [11:39:11]OFD Sender: Remove packet 94885 [11:39:11]ProducePacketName [11:39:11]name=ofd_packets/00094885 [11:39:11]NVStorageDeleteData [11:39:11]Write to MH i2c: 01 00 00 48 89 D1 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 07 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 07 00 48 89 00 80 00 00 00 57 0D BC [11:39:11]RasterBufferAndPrint [11:39:11]line [11:39:11]line [11:39:11]line [11:39:11]line [11:39:11]line [11:39:11]written 0, free lines is 3421 [11:39:11]process_action close_receipt done [11:39:11]requested_data is exist [11:39:11]produce_requested_data [11:39:11]requested_item fm.sn is exist - process it [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 11 00 00 [11:39:11]Write to MH i2c: E2 08 00 4F 89 80 11 00 00 00 00 00 00 52 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 17 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 17 00 4F 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A2 [11:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:39:11]wFMCommunicate OK [11:39:11]requested_item fd.num is exist - process it [11:39:11]SAM_PROTO_GetFieldsCounters [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 13 00 00 [11:39:11]Write to MH i2c: E2 08 00 50 89 80 13 00 00 00 00 00 00 55 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 62 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 62 00 50 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:11]wFMCommunicate OK [11:39:11]SAM_PROTO_GetFieldsCounters done [11:39:11]requested_item shift.num is exist - process it [11:39:11]requested_item shift.opened is exist - process it [11:39:11]req_shift_opened [11:39:11]FM_GetShiftState [11:39:11]SAM_PROTO_GetShiftState [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 13 01 00 [11:39:11]Write to MH i2c: E2 08 00 51 89 80 13 01 00 00 00 00 00 57 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:11]OFD Sender: No OFD packet to send [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 0E 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 0E 00 51 89 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F3 [11:39:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:39:11]wFMCommunicate OK [11:39:11]SAM_PROTO_GetShiftState done [11:39:11]FM_GetShiftState done [11:39:11]req_shift_opened done [11:39:11]requested_item shift.open_date is exist - process it [11:39:11]req_shift_open_date [11:39:11]req_shift_open_date done [11:39:11]produce_requested_data done [11:39:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94885,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:39:11]process_action_free close_receipt [11:39:11]json_value_free [11:39:11]json_value_free done [11:39:11]process_json_proto returns [11:39:11]Send response to host [11:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94885,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:39:11]free response buf [11:39:11]execute_script done [11:39:11]execute_script returns [11:39:11]free content buf [11:39:11]Sock 7.Close socket [11:39:11]Sock 7.Thread stoped [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:55]accept exits with 9 [11:41:55]New connection [11:41:55]New thread 3067014500 created [11:41:55]Thread 3066871140 joined [11:41:55]Waiting for new connection... [11:41:55] Sock 9.Parse request [11:41:55]Sock 9.Check first char [11:41:55]Sock 9.First char is OK [11:41:55]request: POST /json_proto HTTP/1.0 [11:41:55]Method: POST [11:41:55]URL: /json_proto [11:41:55]Method is POST - this is cgi request [11:41:55]url: /json_proto [11:41:55]query_string will be loaded in cgi processing [11:41:55]execute_cgi json_proto POST (null) [11:41:55]execute_cgi path=json_proto method=POST [11:41:55]POST find Content-Length [11:41:55]Host: 172.17.62.67:8080 [11:41:55]Content-Length: 1189 [11:41:55]Content-Type: application/json [11:41:55] [11:41:55]POST finish read [11:41:55]Found Content-Length = 1189 [11:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195837\u000A11.03.2024 11:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3827513:12:11\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:55]execute_script... [11:41:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195837\u000A11.03.2024 11:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3827513:12:11\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:55]POST & json_proto [11:41:55]process_json_proto [11:41:55]json parsed OK: [11:41:55]protocol is kg_v1.0 [11:41:55]action value=print_text [11:41:55]process_action print_text [11:41:55]cmd_print_text [11:41:55]ExternCall_PrintAddStr [11:41:55]wPrintStart [11:41:55]Write to MH i2c: 01 00 00 52 89 DB [11:41:55]Write i2c OK [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 07 00 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 07 00 52 89 00 80 00 00 00 FF 0F 70 [11:41:55]RasterBufferAndPrint [11:41:55]line *****ТОВАРНЫЙ ЧЕК***** [11:41:55]line АЗС 6 [11:41:55]line Партнер нефть [11:41:55]line 02508201610067 [11:41:55]line Кассир : Карыбаев Б. [11:41:55]line Счет N : (1)195837 [11:41:55]line 11.03.2024 11:36 [11:41:55]line ПРОДАЖА [11:41:55]line ТРК (МРК, ГНК): 42 [11:41:55]line Вид ГСМ : 2710124130 [11:41:55]line Аи-92-К-5 [11:41:55]line 30.000 x 62.90 [11:41:55]line ИТОГ: 1887.00 [11:41:55]line Тип оплаты: Талоны: Партнер нефть [11:41:55]line 3827513:12:11 [11:41:55]line ______________________ [11:41:55]line (подпись) [11:41:55]written 0, free lines is 4095 [11:41:55]Write to MH i2c: 01 00 00 66 89 EF [11:41:55]Write i2c OK [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 07 00 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 07 00 66 89 00 80 00 00 00 69 0E ED [11:41:55]RasterBufferAndPrint [11:41:55]line [11:41:55]line [11:41:55]line [11:41:55]line [11:41:55]line [11:41:55]written 0, free lines is 3693 [11:41:55]process_action print_text done [11:41:55]requested_data is exist [11:41:55]produce_requested_data [11:41:55]requested_item fm.sn is exist - process it [11:41:55]wFMCommunicate request_size=4 [11:41:55]MH_SAM_APDU [11:41:55]CAPDU: 80 11 00 00 [11:41:55]Write to MH i2c: E2 08 00 6D 89 80 11 00 00 00 00 00 00 70 [11:41:55]Write i2c OK [11:41:55]MH_I2C_Read... [11:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:56]Read from MH i2c: E2 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 17 00 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 17 00 6D 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C0 [11:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:41:56]wFMCommunicate OK [11:41:56]requested_item fd.num is exist - process it [11:41:56]SAM_PROTO_GetFieldsCounters [11:41:56]wFMCommunicate request_size=4 [11:41:56]MH_SAM_APDU [11:41:56]CAPDU: 80 13 00 00 [11:41:56]Write to MH i2c: E2 08 00 6E 89 80 13 00 00 00 00 00 00 73 [11:41:56]Write i2c OK [11:41:56]MH_I2C_Read... [11:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:56]Read from MH i2c: E2 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 62 00 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 62 00 6E 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [11:41: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:56]wFMCommunicate OK [11:41:56]SAM_PROTO_GetFieldsCounters done [11:41:56]requested_item shift.num is exist - process it [11:41:56]requested_item shift.opened is exist - process it [11:41:56]req_shift_opened [11:41:56]FM_GetShiftState [11:41:56]SAM_PROTO_GetShiftState [11:41:56]wFMCommunicate request_size=4 [11:41:56]MH_SAM_APDU [11:41:56]CAPDU: 80 13 01 00 [11:41:56]Write to MH i2c: E2 08 00 6F 89 80 13 01 00 00 00 00 00 75 [11:41:56]Write i2c OK [11:41:56]MH_I2C_Read... [11:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:56]Read from MH i2c: E2 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 0E 00 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 0E 00 6F 89 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 11 [11:41:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:41:56]wFMCommunicate OK [11:41:56]SAM_PROTO_GetShiftState done [11:41:56]FM_GetShiftState done [11:41:56]req_shift_opened done [11:41:56]requested_item shift.open_date is exist - process it [11:41:56]req_shift_open_date [11:41:56]req_shift_open_date done [11:41:56]produce_requested_data done [11:41:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94885,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:41:56]process_action_free print_text [11:41:56]json_value_free [11:41:56]json_value_free done [11:41:56]process_json_proto returns [11:41:56]Send response to host [11:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94885,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:41:56]free response buf [11:41:56]execute_script done [11:41:56]execute_script returns [11:41:56]free content buf [11:41:56]Sock 9.Close socket [11:41:56]Sock 9.Thread stoped [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:50]accept exits with 7 [11:45:50]New connection [11:45:50]New thread 3066871140 created [11:45:50]Thread 3067014500 joined [11:45:50]Waiting for new connection... [11:45:50] Sock 7.Parse request [11:45:50]Sock 7.Check first char [11:45:50]Sock 7.First char is OK [11:45:50]request: POST /json_proto HTTP/1.0 [11:45:50]Method: POST [11:45:50]URL: /json_proto [11:45:50]Method is POST - this is cgi request [11:45:50]url: /json_proto [11:45:50]query_string will be loaded in cgi processing [11:45:50]execute_cgi json_proto POST (null) [11:45:50]execute_cgi path=json_proto method=POST [11:45:50]POST find Content-Length [11:45:50]Host: 172.17.62.67:8080 [11:45:50]Content-Length: 678 [11:45:50]Content-Type: application/json [11:45:50] [11:45:50]POST finish read [11:45:50]Found Content-Length = 678 [11:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.340, "sum" : 650.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:50]execute_script... [11:45: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)195838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.340, "sum" : 650.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:50]POST & json_proto [11:45:50]process_json_proto [11:45:50]json parsed OK: [11:45:50]protocol is kg_v1.0 [11:45:50]action value=close_receipt [11:45:50]process_action close_receipt [11:45:50]cmd_close_receipt [11:45:50]MH_GetDate [11:45:50]Write to MH i2c: F0 00 00 70 89 E8 [11:45:50]Write i2c OK [11:45:50]MH_I2C_Read... [11:45:50]Read from MH i2c: F0 [11:45:50]MH_I2C_Read... [11:45:50]Read from MH i2c: F0 05 00 [11:45:50]MH_I2C_Read... [11:45:50]Read from MH i2c: F0 05 00 70 89 00 FC EE EE 65 2A [11:45:50]GetLastDocTimeStamp 1710157162 [11:45:50]current date 1710157564 [11:45:50]FM_GetShiftState [11:45:50]SAM_PROTO_GetShiftState [11:45:50]wFMCommunicate request_size=4 [11:45:50]MH_SAM_APDU [11:45:50]CAPDU: 80 13 01 00 [11:45:50]Write to MH i2c: E2 08 00 71 89 80 13 01 00 00 00 00 00 77 [11:45:50]Write i2c OK [11:45:50]MH_I2C_Read... [11:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:50]Read from MH i2c: E2 [11:45:50]MH_I2C_Read... [11:45:50]Read from MH i2c: E2 0E 00 [11:45:50]MH_I2C_Read... [11:45:50]Read from MH i2c: E2 0E 00 71 89 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 13 [11:45:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:45:50]wFMCommunicate OK [11:45:50]SAM_PROTO_GetShiftState done [11:45:50]FM_GetShiftState done [11:45:50]opened in 1710115571 [11:45:50]opened+sec_in_day 1710201971 [11:45:50]quantity*price = 65038 [11:45:50]sum+1 = 65040 [11:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 61 11.03.2024 11:46 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94886 ФПД: 44301829612977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T114605&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94886&fm=44301829612977&tin=02508201610067®Number=0000000000090555&sum=65000 [11:45:52]StoreToDocumentArchive [11:45:52]shift 326 fd 94886 [11:45:52]save to /storage/0326/doc_00094886 [11:45:52]save last doc name /storage/0326/doc_00094886 to /storage/kkm_last_doc_name [11:45:52]save OK [11:45:52]Clear old archive folders... [11:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:52]tlvbuf is 00286B90 [11:45:52]SAM_PROTO_ClearQueue [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 09 00 00 [11:45:52]Write to MH i2c: E2 08 00 7E 89 80 09 00 00 00 00 00 00 79 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:52]Read from MH i2c: E2 03 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 7E 89 00 90 00 7B [11:45:52]RAPDU: 90 00 [11:45:52]wFMCommunicate OK [11:45:52]SAM_PROTO_ClearQueue done [11:45:52]KKMCreateOFDPacket [11:45:52]OFDProtocolAddRootSTLVToBuf [11:45:52]FM_MakeSignedData [11:45:52]FM_MakeSignedData [11:45:52]SAM_PROTO_SignData [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 0D 01 02 [11:45:52]Write to MH i2c: E2 08 00 7F 89 80 0D 01 02 00 00 00 00 81 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 7F 89 00 90 00 7C [11:45:52]RAPDU: 90 00 [11:45:52]wFMCommunicate OK [11:45:52]wFMCommunicate request_size=255 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 FD EE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 72 01 00 35 04 06 00 28 [11:45:52]Write to MH i2c: E2 02 01 80 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 FD EE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 72 01 00 35 04 06 00 28 00 00 EE [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 80 89 00 90 00 7D [11:45:52]RAPDU: 90 00 [11:45:52]wFMCommunicate OK [11:45:52]wFMCommunicate request_size=10 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 0D 02 02 05 4A D2 D1 25 B1 [11:45:52]Write to MH i2c: E2 0D 00 81 89 80 0D 02 02 05 00 4A D2 D1 25 B1 00 00 51 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 81 89 00 90 00 7E [11:45:52]RAPDU: 90 00 [11:45:52]wFMCommunicate OK [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 0D 03 02 [11:45:52]Write to MH i2c: E2 08 00 82 89 80 0D 03 02 00 00 00 00 86 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 0B 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 0B 00 82 89 00 55 77 16 6F 5F 13 1A D9 90 00 3D [11:45:52]RAPDU: 55 77 16 6F 5F 13 1A D9 90 00 [11:45:52]wFMCommunicate OK [11:45:52]SAM_PROTO_SignData done [11:45:52]FM_MakeSignedData done [11:45:52]CreateOFDProtocolMessage [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 11 00 00 [11:45:52]Write to MH i2c: E2 08 00 83 89 80 11 00 00 00 00 00 00 86 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 17 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 17 00 83 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [11:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:45:52]wFMCommunicate OK [11:45:52]CreateOFDProtocolMessage done [11:45:52]OFDSenderStorePacket 94886 [11:45:52]StoreOFDPacket docnum=94886 [11:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A1 D0 07 01 62 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 FD EE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 72 01 00 35 04 06 00 28 4A D2 D1 25 B1 55 77 16 6F 5F 13 1A D9 [11:45:52]CheckFolder [11:45:52]dirname=/storage/ofd_packets [11:45:52]CheckFolder done [11:45:52]ProducePacketName [11:45:52]name=ofd_packets/00094886 [11:45:52]NVStorageSaveData ofd_packets/00094886 [11:45:52]File name is /storage/ofd_packets/00094886 [11:45:52]Write 301 bytes [11:45:52]NVStorageSaveData done [11:45:52]OFDSenderStorePacket done [11:45:52]KKMCreateOFDPacket done [11:45:52]NVStorageSaveData kkm_last_timestamp [11:45:52]File name is /storage/kkm_last_timestamp [11:45:52]Write 4 bytes [11:45:52]NVStorageSaveData done [11:45:52]ExternCall_PrintAddStr [11:45:52]wPrintStart [11:45:52]Write to MH i2c: 01 00 00 84 89 0D [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: 01 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: 01 07 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: 01 07 00 84 89 00 80 00 00 00 FF 0F A2 [11:45:52]RasterBufferAndPrint [11:45:52]line Счет N : (1)195838 [11:45:52]line ИНН: 02508201610067 [11:45:52]line Контрольно-Кассовый Чек [11:45:52]line ПРОДАЖА [11:45:52]line ТРК (МРК, ГНК) : 22 [11:45:52]line Товар: 2710124130 [11:45:52]line Аи-92-К-5 [11:45:52]line 10.340 * 62.90 [11:45:52]line = 650.39 [11:45:52]line НДС 12% НСП 1% [11:45:52]line > о реализуемом товаре [11:45:52]line ОКРУГЛЕНИЕ: -0.39 [11:45:52]line ИТОГО: 650.00 [11:45:52]line Внесено: 650.00 [11:45:52]line СДАЧА: 0.00 [11:45:52]line НСП 1% : 5.76 [11:45:52]line НДС 12% : 69.07 [11:45:52]line Наличными: 650.00 [11:45:52]line Безнал.: 0.00 [11:45:52]line Место: АЗС № 6 "Партнер Нефть" [11:45:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:45:52]line СНО: Общий режим [11:45:52]line Чек 61 11.03.2024 11:46 [11:45:52]line Смена: 326 ФФД: 1.0 [11:45:52]line ЗНМ: 0300000009 [11:45:52]line РНМ: 0000000000090555 [11:45:52]line Версия ККМ: 001 [11:45:52]line ФМ: 0000000000874811 [11:45:52]line ФД: 94886 [11:45:52]line ФПД: 44301829612977 [11:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T114605&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94886&fm=44301829612977&tin=02508201610067®Number=0000000000090555&sum=65000 [11:45:52]OFD Sender: Processing packet 94886 [packets to send 30, broken 29] [11:45:52]ProducePacketName [11:45:52]name=ofd_packets/00094886 [11:45:52]OFD Sender: To server: pG, [11:45:52]CommunicateWithHost lk.salyk.kg:30040 [11:45:52]ConnectInit lk.salyk.kg [11:45:52]written 0, free lines is 4095 [11:45:52]Connected sock=10 [11:45: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 31 31 0F 01 00 00 A1 D0 07 01 62 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 FD EE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 72 01 00 35 04 06 00 28 4A D2 D1 25 B1 55 77 16 6F 5F 13 1A D9 [11:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D6 16 47 00 5B 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 72 01 00 F4 03 04 00 56 9A EE 65 B6 04 01 00 00 84 86 19 35 F8 44 DF 53 [11:45:53]CommunicateWithHost err = 0 [11:45:53]CheckOFDResponse [11:45:53]1017 (14) - 77093643461234 [11:45:53]1041 (16) - 0000000000874811 [11:45:53]1040 (4) - 94886 [11:45:53]1012 (4) - 11.03.2024 05:44 [11:45:53]1206 (1) - 0 [11:45:53]OFD Sender: Remove packet 94886 [11:45:53]ProducePacketName [11:45:53]name=ofd_packets/00094886 [11:45:53]NVStorageDeleteData [11:45:53]Write to MH i2c: 01 00 00 AF 89 38 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 AF 89 00 80 00 00 00 51 0D 1D [11:45:53]RasterBufferAndPrint [11:45:53]line [11:45:53]line [11:45:53]line [11:45:53]line [11:45:53]line [11:45:53]written 0, free lines is 3415 [11:45:53]process_action close_receipt done [11:45:53]requested_data is exist [11:45:53]produce_requested_data [11:45:53]requested_item fm.sn is exist - process it [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 11 00 00 [11:45:53]Write to MH i2c: E2 08 00 B6 89 80 11 00 00 00 00 00 00 B9 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 B6 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 09 [11:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:45:53]wFMCommunicate OK [11:45:53]requested_item fd.num is exist - process it [11:45:53]SAM_PROTO_GetFieldsCounters [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 13 00 00 [11:45:53]Write to MH i2c: E2 08 00 B7 89 80 13 00 00 00 00 00 00 BC [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 62 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 62 00 B7 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [11:45:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:53]wFMCommunicate OK [11:45:53]SAM_PROTO_GetFieldsCounters done [11:45:53]requested_item shift.num is exist - process it [11:45:53]requested_item shift.opened is exist - process it [11:45:53]req_shift_opened [11:45:53]FM_GetShiftState [11:45:53]SAM_PROTO_GetShiftState [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 13 01 00 [11:45:53]Write to MH i2c: E2 08 00 B8 89 80 13 01 00 00 00 00 00 BE [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 0E 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 0E 00 B8 89 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5A [11:45:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:45:53]wFMCommunicate OK [11:45:53]SAM_PROTO_GetShiftState done [11:45:53]FM_GetShiftState done [11:45:53]req_shift_opened done [11:45:53]requested_item shift.open_date is exist - process it [11:45:53]req_shift_open_date [11:45:53]req_shift_open_date done [11:45:53]produce_requested_data done [11:45:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94886,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:45:53]process_action_free close_receipt [11:45:53]json_value_free [11:45:53]json_value_free done [11:45:53]process_json_proto returns [11:45:53]Send response to host [11:45:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94886,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:45:53]free response buf [11:45:53]execute_script done [11:45:53]execute_script returns [11:45:53]free content buf [11:45:53]Sock 7.Close socket [11:45:53]Sock 7.Thread stoped [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51: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:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:34]accept exits with 9 [11:57:34]New connection [11:57:34]New thread 3067014500 created [11:57:34]Thread 3066871140 joined [11:57:34]Waiting for new connection... [11:57:34] Sock 9.Parse request [11:57:34]Sock 9.Check first char [11:57:34]Sock 9.First char is OK [11:57:34]request: POST /json_proto HTTP/1.0 [11:57:34]Method: POST [11:57:34]URL: /json_proto [11:57:34]Method is POST - this is cgi request [11:57:34]url: /json_proto [11:57:34]query_string will be loaded in cgi processing [11:57:34]execute_cgi json_proto POST (null) [11:57:34]execute_cgi path=json_proto method=POST [11:57:34]POST find Content-Length [11:57:34]Host: 172.17.62.67:8080 [11:57:34]Content-Length: 682 [11:57:34]Content-Type: application/json [11:57:34] [11:57:34]POST finish read [11:57:34]Found Content-Length = 682 [11:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:57:34]execute_script... [11:57: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)195839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:57:34]POST & json_proto [11:57:34]process_json_proto [11:57:34]json parsed OK: [11:57:34]protocol is kg_v1.0 [11:57:34]action value=close_receipt [11:57:34]process_action close_receipt [11:57:34]cmd_close_receipt [11:57:34]MH_GetDate [11:57:34]Write to MH i2c: F0 00 00 B9 89 31 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: F0 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: F0 05 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: F0 05 00 B9 89 00 BC F1 EE 65 36 [11:57:34]GetLastDocTimeStamp 1710157565 [11:57:34]current date 1710158268 [11:57:34]FM_GetShiftState [11:57:34]SAM_PROTO_GetShiftState [11:57:34]wFMCommunicate request_size=4 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 13 01 00 [11:57:34]Write to MH i2c: E2 08 00 BA 89 80 13 01 00 00 00 00 00 C0 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 0E 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 0E 00 BA 89 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5C [11:57:34]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:57:34]wFMCommunicate OK [11:57:34]SAM_PROTO_GetShiftState done [11:57:34]FM_GetShiftState done [11:57:34]opened in 1710115571 [11:57:34]opened+sec_in_day 1710201971 [11:57:34]quantity*price = 100011 [11:57:34]sum+1 = 100012 [11:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 62 11.03.2024 11:57 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94887 ФПД: 277313823966266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T115748&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94887&fm=277313823966266&tin=02508201610067®Number=0000000000090555&sum=100000 [11:57:35]StoreToDocumentArchive [11:57:35]shift 326 fd 94887 [11:57:35]save to /storage/0326/doc_00094887 [11:57:35]save last doc name /storage/0326/doc_00094887 to /storage/kkm_last_doc_name [11:57:35]save OK [11:57:35]Clear old archive folders... [11:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:35]tlvbuf is 001CE610 [11:57:35]SAM_PROTO_ClearQueue [11:57:35]wFMCommunicate request_size=4 [11:57:35]MH_SAM_APDU [11:57:35]CAPDU: 80 09 00 00 [11:57:35]Write to MH i2c: E2 08 00 C7 89 80 09 00 00 00 00 00 00 C2 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:35]Read from MH i2c: E2 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 03 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 03 00 C7 89 00 90 00 C4 [11:57:35]RAPDU: 90 00 [11:57:35]wFMCommunicate OK [11:57:35]SAM_PROTO_ClearQueue done [11:57:35]KKMCreateOFDPacket [11:57:35]OFDProtocolAddRootSTLVToBuf [11:57:35]FM_MakeSignedData [11:57:35]FM_MakeSignedData [11:57:35]SAM_PROTO_SignData [11:57:35]wFMCommunicate request_size=4 [11:57:35]MH_SAM_APDU [11:57:35]CAPDU: 80 0D 01 02 [11:57:35]Write to MH i2c: E2 08 00 C8 89 80 0D 01 02 00 00 00 00 CA [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:35]Read from MH i2c: E2 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 03 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 03 00 C8 89 00 90 00 C5 [11:57:35]RAPDU: 90 00 [11:57:35]wFMCommunicate OK [11:57:35]wFMCommunicate request_size=255 [11:57:35]MH_SAM_APDU [11:57:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BC F1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 72 01 00 35 04 06 00 FC [11:57:35]Write to MH i2c: E2 02 01 C9 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BC F1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 72 01 00 35 04 06 00 FC 00 00 0D [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 C9 89 00 90 00 C6 [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=10 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 02 02 05 37 27 F8 04 3A [11:57:36]Write to MH i2c: E2 0D 00 CA 89 80 0D 02 02 05 00 37 27 F8 04 3A 00 00 6B [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 CA 89 00 90 00 C7 [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 03 02 [11:57:36]Write to MH i2c: E2 08 00 CB 89 80 0D 03 02 00 00 00 00 CF [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 0B 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 0B 00 CB 89 00 B8 A6 62 F5 2A E3 12 97 90 00 3B [11:57:36]RAPDU: B8 A6 62 F5 2A E3 12 97 90 00 [11:57:36]wFMCommunicate OK [11:57:36]SAM_PROTO_SignData done [11:57:36]FM_MakeSignedData done [11:57:36]CreateOFDProtocolMessage [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 11 00 00 [11:57:36]Write to MH i2c: E2 08 00 CC 89 80 11 00 00 00 00 00 00 CF [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 17 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 17 00 CC 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1F [11:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:57:36]wFMCommunicate OK [11:57:36]CreateOFDProtocolMessage done [11:57:36]OFDSenderStorePacket 94887 [11:57:36]StoreOFDPacket docnum=94887 [11:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 E3 07 01 67 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BC F1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 72 01 00 35 04 06 00 FC 37 27 F8 04 3A B8 A6 62 F5 2A E3 12 97 [11:57:36]CheckFolder [11:57:36]dirname=/storage/ofd_packets [11:57:36]CheckFolder done [11:57:36]ProducePacketName [11:57:36]name=ofd_packets/00094887 [11:57:36]NVStorageSaveData ofd_packets/00094887 [11:57:36]File name is /storage/ofd_packets/00094887 [11:57:36]Write 301 bytes [11:57:36]NVStorageSaveData done [11:57:36]OFDSenderStorePacket done [11:57:36]KKMCreateOFDPacket done [11:57:36]NVStorageSaveData kkm_last_timestamp [11:57:36]File name is /storage/kkm_last_timestamp [11:57:36]Write 4 bytes [11:57:36]NVStorageSaveData done [11:57:36]ExternCall_PrintAddStr [11:57:36]wPrintStart [11:57:36]Write to MH i2c: 01 00 00 CD 89 56 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 CD 89 00 80 00 00 00 FF 0F EB [11:57:36]RasterBufferAndPrint [11:57:36]line Счет N : (1)195839 [11:57:36]line ИНН: 02508201610067 [11:57:36]line Контрольно-Кассовый Чек [11:57:36]line ПРОДАЖА [11:57:36]line ТРК (МРК, ГНК) : 22 [11:57:36]line Товар: 2710124130 [11:57:36]line Аи-92-К-5 [11:57:36]line 15.900 * 62.90 [11:57:36]line = 1000.11 [11:57:36]line НДС 12% НСП 1% [11:57:36]line > о реализуемом товаре [11:57:36]line ОКРУГЛЕНИЕ: -0.11 [11:57:36]line ИТОГО: 1000.00 [11:57:36]line Внесено: 1000.00 [11:57:36]line СДАЧА: 0.00 [11:57:36]line НСП 1% : 8.85 [11:57:36]line НДС 12% : 106.21 [11:57:36]line Наличными: 1000.00 [11:57:36]line Безнал.: 0.00 [11:57:36]line Место: АЗС № 6 "Партнер Нефть" [11:57:36]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:57:36]line СНО: Общий режим [11:57:36]line Чек 62 11.03.2024 11:57 [11:57:36]line Смена: 326 ФФД: 1.0 [11:57:36]line ЗНМ: 0300000009 [11:57:36]line РНМ: 0000000000090555 [11:57:36]line Версия ККМ: 001 [11:57:36]line ФМ: 0000000000874811 [11:57:36]line ФД: 94887 [11:57:36]line ФПД: 277313823966266 [11:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T115748&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94887&fm=277313823966266&tin=02508201610067®Number=0000000000090555&sum=100000 [11:57:36]OFD Sender: Processing packet 94887 [packets to send 30, broken 29] [11:57:36]ProducePacketName [11:57:36]name=ofd_packets/00094887 [11:57:36]OFD Sender: To server: pG, [11:57:36]CommunicateWithHost lk.salyk.kg:30040 [11:57:36]ConnectInit lk.salyk.kg [11:57:36]written 0, free lines is 4095 [11:57:36]Connected sock=7 [11:57: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 31 31 0F 01 00 00 58 E3 07 01 67 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 BC F1 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 72 01 00 35 04 06 00 FC 37 27 F8 04 3A B8 A6 62 F5 2A E3 12 97 [11:57: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 31 31 4F 00 00 00 6C 2D 47 00 7F 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 72 01 00 F4 03 04 00 16 9D EE 65 B6 04 01 00 00 1E F5 31 9C B8 49 23 8C [11:57:37]CommunicateWithHost err = 0 [11:57:37]CheckOFDResponse [11:57:37]1017 (14) - 77093643461234 [11:57:37]1041 (16) - 0000000000874811 [11:57:37]1040 (4) - 94887 [11:57:37]1012 (4) - 11.03.2024 05:56 [11:57:37]1206 (1) - 0 [11:57:37]OFD Sender: Remove packet 94887 [11:57:37]ProducePacketName [11:57:37]name=ofd_packets/00094887 [11:57:37]NVStorageDeleteData [11:57:37]Write to MH i2c: 01 00 00 F8 89 81 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 F8 89 00 80 00 00 00 5C 0D 71 [11:57:37]RasterBufferAndPrint [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]written 0, free lines is 3428 [11:57:37]process_action close_receipt done [11:57:37]requested_data is exist [11:57:37]produce_requested_data [11:57:37]requested_item fm.sn is exist - process it [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 11 00 00 [11:57:37]Write to MH i2c: E2 08 00 FF 89 80 11 00 00 00 00 00 00 02 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 FF 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 52 [11:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:57:37]wFMCommunicate OK [11:57:37]requested_item fd.num is exist - process it [11:57:37]SAM_PROTO_GetFieldsCounters [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 00 00 [11:57:37]Write to MH i2c: E2 08 00 00 8A 80 13 00 00 00 00 00 00 06 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:37]Read from MH i2c: E2 62 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 62 00 00 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A7 72 01 00 0E 04 04 00 46 01 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 3E [11:57: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A7 72 01 00 0E 04 04 00 46 01 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:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_GetFieldsCounters done [11:57:37]requested_item shift.num is exist - process it [11:57:37]requested_item shift.opened is exist - process it [11:57:37]req_shift_opened [11:57:37]FM_GetShiftState [11:57:37]SAM_PROTO_GetShiftState [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 01 00 [11:57:37]Write to MH i2c: E2 08 00 01 8A 80 13 01 00 00 00 00 00 08 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]OFD Sender: No OFD packet to send [11:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0E 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0E 00 01 8A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A4 [11:57:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_GetShiftState done [11:57:37]FM_GetShiftState done [11:57:37]req_shift_opened done [11:57:37]requested_item shift.open_date is exist - process it [11:57:37]req_shift_open_date [11:57:37]req_shift_open_date done [11:57:37]produce_requested_data done [11:57:37]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94887,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [11:57:37]process_action_free close_receipt [11:57:37]json_value_free [11:57:37]json_value_free done [11:57:37]process_json_proto returns [11:57:37]Send response to host [11:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94887,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [11:57:37]free response buf [11:57:37]execute_script done [11:57:37]execute_script returns [11:57:37]free content buf [11:57:37]Sock 9.Close socket [11:57:37]Sock 9.Thread stoped [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:36]accept exits with 10 [12:14:36]New connection [12:14:36]New thread 3066871140 created [12:14:36]Thread 3067014500 joined [12:14:36]Waiting for new connection... [12:14:36] Sock 10.Parse request [12:14:36]Sock 10.Check first char [12:14:36]Sock 10.First char is OK [12:14:36]request: POST /json_proto HTTP/1.0 [12:14:36]Method: POST [12:14:36]URL: /json_proto [12:14:36]Method is POST - this is cgi request [12:14:36]url: /json_proto [12:14:36]query_string will be loaded in cgi processing [12:14:36]execute_cgi json_proto POST (null) [12:14:36]execute_cgi path=json_proto method=POST [12:14:36]POST find Content-Length [12:14:36]Host: 172.17.62.67:8080 [12:14:36]Content-Length: 682 [12:14:36]Content-Type: application/json [12:14:36] [12:14:36]POST finish read [12:14:36]Found Content-Length = 682 [12:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:14:36]execute_script... [12:14: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)195840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:14:36]POST & json_proto [12:14:36]process_json_proto [12:14:36]json parsed OK: [12:14:36]protocol is kg_v1.0 [12:14:36]action value=close_receipt [12:14:36]process_action close_receipt [12:14:36]cmd_close_receipt [12:14:36]MH_GetDate [12:14:36]Write to MH i2c: F0 00 00 02 8A 7B [12:14:36]Write i2c OK [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: F0 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: F0 05 00 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: F0 05 00 02 8A 00 BA F5 EE 65 82 [12:14:36]GetLastDocTimeStamp 1710158268 [12:14:36]current date 1710159290 [12:14:36]FM_GetShiftState [12:14:36]SAM_PROTO_GetShiftState [12:14:36]wFMCommunicate request_size=4 [12:14:36]MH_SAM_APDU [12:14:36]CAPDU: 80 13 01 00 [12:14:36]Write to MH i2c: E2 08 00 03 8A 80 13 01 00 00 00 00 00 0A [12:14:36]Write i2c OK [12:14:36]MH_I2C_Read... [12:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:36]Read from MH i2c: E2 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 0E 00 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 0E 00 03 8A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A6 [12:14:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:14:36]wFMCommunicate OK [12:14:36]SAM_PROTO_GetShiftState done [12:14:36]FM_GetShiftState done [12:14:36]opened in 1710115571 [12:14:36]opened+sec_in_day 1710201971 [12:14:36]quantity*price = 100011 [12:14:36]sum+1 = 100012 [12:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 63 11.03.2024 12:14 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94888 ФПД: 26091216617542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T121450&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94888&fm=26091216617542&tin=02508201610067®Number=0000000000090555&sum=100000 [12:14:37]StoreToDocumentArchive [12:14:37]shift 326 fd 94888 [12:14:37]save to /storage/0326/doc_00094888 [12:14:37]save last doc name /storage/0326/doc_00094888 to /storage/kkm_last_doc_name [12:14:37]save OK [12:14:37]Clear old archive folders... [12:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:37]tlvbuf is 0033D270 [12:14:37]SAM_PROTO_ClearQueue [12:14:37]wFMCommunicate request_size=4 [12:14:37]MH_SAM_APDU [12:14:37]CAPDU: 80 09 00 00 [12:14:37]Write to MH i2c: E2 08 00 10 8A 80 09 00 00 00 00 00 00 0C [12:14:37]Write i2c OK [12:14:37]MH_I2C_Read... [12:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:37]Read from MH i2c: E2 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: E2 03 00 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: E2 03 00 10 8A 00 90 00 0E [12:14:37]RAPDU: 90 00 [12:14:37]wFMCommunicate OK [12:14:37]SAM_PROTO_ClearQueue done [12:14:37]KKMCreateOFDPacket [12:14:37]OFDProtocolAddRootSTLVToBuf [12:14:37]FM_MakeSignedData [12:14:37]FM_MakeSignedData [12:14:37]SAM_PROTO_SignData [12:14:37]wFMCommunicate request_size=4 [12:14:37]MH_SAM_APDU [12:14:37]CAPDU: 80 0D 01 02 [12:14:37]Write to MH i2c: E2 08 00 11 8A 80 0D 01 02 00 00 00 00 14 [12:14:37]Write i2c OK [12:14:37]MH_I2C_Read... [12:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:37]Read from MH i2c: E2 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: E2 03 00 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: E2 03 00 11 8A 00 90 00 0F [12:14:37]RAPDU: 90 00 [12:14:37]wFMCommunicate OK [12:14:37]wFMCommunicate request_size=255 [12:14:37]MH_SAM_APDU [12:14:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BA F5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 72 01 00 35 04 06 00 17 [12:14:37]Write to MH i2c: E2 02 01 12 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BA F5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 72 01 00 35 04 06 00 17 00 00 76 [12:14:37]Write i2c OK [12:14:37]MH_I2C_Read... [12:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:37]Read from MH i2c: E2 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: E2 03 00 [12:14:37]MH_I2C_Read... [12:14:37]Read from MH i2c: E2 03 00 12 8A 00 90 00 10 [12:14:37]RAPDU: 90 00 [12:14:37]wFMCommunicate OK [12:14:37]wFMCommunicate request_size=10 [12:14:37]MH_SAM_APDU [12:14:37]CAPDU: 80 0D 02 02 05 BA D5 B2 C0 46 [12:14:37]Write to MH i2c: E2 0D 00 13 8A 80 0D 02 02 05 00 BA D5 B2 C0 46 00 00 68 [12:14:37]Write i2c OK [12:14:37]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 03 00 13 8A 00 90 00 11 [12:14:38]RAPDU: 90 00 [12:14:38]wFMCommunicate OK [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 0D 03 02 [12:14:38]Write to MH i2c: E2 08 00 14 8A 80 0D 03 02 00 00 00 00 19 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 0B 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 0B 00 14 8A 00 D4 D9 ED A9 F6 F4 BE 96 90 00 9B [12:14:38]RAPDU: D4 D9 ED A9 F6 F4 BE 96 90 00 [12:14:38]wFMCommunicate OK [12:14:38]SAM_PROTO_SignData done [12:14:38]FM_MakeSignedData done [12:14:38]CreateOFDProtocolMessage [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 11 00 00 [12:14:38]Write to MH i2c: E2 08 00 15 8A 80 11 00 00 00 00 00 00 19 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 17 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 17 00 15 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [12:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:14:38]wFMCommunicate OK [12:14:38]CreateOFDProtocolMessage done [12:14:38]OFDSenderStorePacket 94888 [12:14:38]StoreOFDPacket docnum=94888 [12:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 13 1F 07 01 92 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BA F5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 72 01 00 35 04 06 00 17 BA D5 B2 C0 46 D4 D9 ED A9 F6 F4 BE 96 [12:14:38]CheckFolder [12:14:38]dirname=/storage/ofd_packets [12:14:38]CheckFolder done [12:14:38]ProducePacketName [12:14:38]name=ofd_packets/00094888 [12:14:38]NVStorageSaveData ofd_packets/00094888 [12:14:38]File name is /storage/ofd_packets/00094888 [12:14:38]Write 301 bytes [12:14:38]NVStorageSaveData done [12:14:38]OFDSenderStorePacket done [12:14:38]KKMCreateOFDPacket done [12:14:38]NVStorageSaveData kkm_last_timestamp [12:14:38]File name is /storage/kkm_last_timestamp [12:14:38]Write 4 bytes [12:14:38]NVStorageSaveData done [12:14:38]ExternCall_PrintAddStr [12:14:38]wPrintStart [12:14:38]Write to MH i2c: 01 00 00 16 8A A0 [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 07 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 07 00 16 8A 00 80 00 00 00 FF 0F 35 [12:14:38]RasterBufferAndPrint [12:14:38]line Счет N : (1)195840 [12:14:38]line ИНН: 02508201610067 [12:14:38]line Контрольно-Кассовый Чек [12:14:38]line ПРОДАЖА [12:14:38]line ТРК (МРК, ГНК) : 22 [12:14:38]line Товар: 2710124130 [12:14:38]line Аи-92-К-5 [12:14:38]line 15.900 * 62.90 [12:14:38]line = 1000.11 [12:14:38]line НДС 12% НСП 1% [12:14:38]line > о реализуемом товаре [12:14:38]line ОКРУГЛЕНИЕ: -0.11 [12:14:38]line ИТОГО: 1000.00 [12:14:38]line Внесено: 1000.00 [12:14:38]line СДАЧА: 0.00 [12:14:38]line НСП 1% : 8.85 [12:14:38]line НДС 12% : 106.21 [12:14:38]line Наличными: 1000.00 [12:14:38]line Безнал.: 0.00 [12:14:38]line Место: АЗС № 6 "Партнер Нефть" [12:14:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:14:38]line СНО: Общий режим [12:14:38]line Чек 63 11.03.2024 12:14 [12:14:38]line Смена: 326 ФФД: 1.0 [12:14:38]line ЗНМ: 0300000009 [12:14:38]line РНМ: 0000000000090555 [12:14:38]line Версия ККМ: 001 [12:14:38]line ФМ: 0000000000874811 [12:14:38]line ФД: 94888 [12:14:38]line ФПД: 26091216617542 [12:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T121450&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94888&fm=26091216617542&tin=02508201610067®Number=0000000000090555&sum=100000 [12:14:38]OFD Sender: Processing packet 94888 [packets to send 30, broken 29] [12:14:38]ProducePacketName [12:14:38]name=ofd_packets/00094888 [12:14:38]OFD Sender: To server: pG, [12:14:38]CommunicateWithHost lk.salyk.kg:30040 [12:14:38]ConnectInit lk.salyk.kg [12:14:38]written 0, free lines is 4095 [12:14:38]Connected sock=9 [12:14: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 31 31 0F 01 00 00 13 1F 07 01 92 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 BA F5 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 72 01 00 35 04 06 00 17 BA D5 B2 C0 46 D4 D9 ED A9 F6 F4 BE 96 [12:14: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 31 31 4F 00 00 00 66 39 47 00 8B BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 72 01 00 F4 03 04 00 14 A1 EE 65 B6 04 01 00 00 4B C2 56 25 FB AE CC 34 [12:14:38]CommunicateWithHost err = 0 [12:14:38]CheckOFDResponse [12:14:38]1017 (14) - 77093643461234 [12:14:38]1041 (16) - 0000000000874811 [12:14:38]1040 (4) - 94888 [12:14:38]1012 (4) - 11.03.2024 06:13 [12:14:38]1206 (1) - 0 [12:14:38]OFD Sender: Remove packet 94888 [12:14:38]ProducePacketName [12:14:38]name=ofd_packets/00094888 [12:14:38]NVStorageDeleteData [12:14:38]Write to MH i2c: 01 00 00 41 8A CB [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 07 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: 01 07 00 41 8A 00 80 00 00 00 48 0D A7 [12:14:38]RasterBufferAndPrint [12:14:38]line [12:14:38]line [12:14:38]line [12:14:38]line [12:14:38]line [12:14:38]written 0, free lines is 3406 [12:14:38]process_action close_receipt done [12:14:38]requested_data is exist [12:14:38]produce_requested_data [12:14:38]requested_item fm.sn is exist - process it [12:14:38]wFMCommunicate request_size=4 [12:14:38]MH_SAM_APDU [12:14:38]CAPDU: 80 11 00 00 [12:14:38]Write to MH i2c: E2 08 00 48 8A 80 11 00 00 00 00 00 00 4C [12:14:38]Write i2c OK [12:14:38]MH_I2C_Read... [12:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:38]Read from MH i2c: E2 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 17 00 [12:14:38]MH_I2C_Read... [12:14:38]Read from MH i2c: E2 17 00 48 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [12:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:14:39]wFMCommunicate OK [12:14:39]requested_item fd.num is exist - process it [12:14:39]SAM_PROTO_GetFieldsCounters [12:14:39]wFMCommunicate request_size=4 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 13 00 00 [12:14:39]Write to MH i2c: E2 08 00 49 8A 80 13 00 00 00 00 00 00 4F [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 62 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 62 00 49 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A8 72 01 00 0E 04 04 00 46 01 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 8B [12:14: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A8 72 01 00 0E 04 04 00 46 01 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 [12:14:39]wFMCommunicate OK [12:14:39]SAM_PROTO_GetFieldsCounters done [12:14:39]requested_item shift.num is exist - process it [12:14:39]requested_item shift.opened is exist - process it [12:14:39]req_shift_opened [12:14:39]FM_GetShiftState [12:14:39]SAM_PROTO_GetShiftState [12:14:39]wFMCommunicate request_size=4 [12:14:39]MH_SAM_APDU [12:14:39]CAPDU: 80 13 01 00 [12:14:39]Write to MH i2c: E2 08 00 4A 8A 80 13 01 00 00 00 00 00 51 [12:14:39]Write i2c OK [12:14:39]MH_I2C_Read... [12:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:39]Read from MH i2c: E2 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 0E 00 [12:14:39]MH_I2C_Read... [12:14:39]Read from MH i2c: E2 0E 00 4A 8A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 ED [12:14:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:14:39]wFMCommunicate OK [12:14:39]SAM_PROTO_GetShiftState done [12:14:39]FM_GetShiftState done [12:14:39]req_shift_opened done [12:14:39]requested_item shift.open_date is exist - process it [12:14:39]req_shift_open_date [12:14:39]req_shift_open_date done [12:14:39]produce_requested_data done [12:14:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94888,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:14:39]process_action_free close_receipt [12:14:39]json_value_free [12:14:39]json_value_free done [12:14:39]process_json_proto returns [12:14:39]Send response to host [12:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94888,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:14:39]free response buf [12:14:39]execute_script done [12:14:39]execute_script returns [12:14:39]free content buf [12:14:39]Sock 10.Close socket [12:14:39]Sock 10.Thread stoped [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:36]accept exits with 7 [12:17:36]New connection [12:17:36]New thread 3067014500 created [12:17:36]Thread 3066871140 joined [12:17:36]Waiting for new connection... [12:17:36] Sock 7.Parse request [12:17:36]Sock 7.Check first char [12:17:36]Sock 7.First char is OK [12:17:36]request: POST /json_proto HTTP/1.0 [12:17:36]Method: POST [12:17:36]URL: /json_proto [12:17:36]Method is POST - this is cgi request [12:17:36]url: /json_proto [12:17:36]query_string will be loaded in cgi processing [12:17:36]execute_cgi json_proto POST (null) [12:17:36]execute_cgi path=json_proto method=POST [12:17:36]POST find Content-Length [12:17:36]Host: 172.17.62.67:8080 [12:17:36]Content-Length: 678 [12:17:36]Content-Type: application/json [12:17:36] [12:17:36]POST finish read [12:17:36]Found Content-Length = 678 [12:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [12:17:36]execute_script... [12:17:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [12:17:36]POST & json_proto [12:17:36]process_json_proto [12:17:36]json parsed OK: [12:17:36]protocol is kg_v1.0 [12:17:36]action value=close_receipt [12:17:36]process_action close_receipt [12:17:36]cmd_close_receipt [12:17:36]MH_GetDate [12:17:36]Write to MH i2c: F0 00 00 4B 8A C4 [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: F0 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: F0 05 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: F0 05 00 4B 8A 00 6E F6 EE 65 80 [12:17:36]GetLastDocTimeStamp 1710159290 [12:17:36]current date 1710159470 [12:17:36]FM_GetShiftState [12:17:36]SAM_PROTO_GetShiftState [12:17:36]wFMCommunicate request_size=4 [12:17:36]MH_SAM_APDU [12:17:36]CAPDU: 80 13 01 00 [12:17:36]Write to MH i2c: E2 08 00 4C 8A 80 13 01 00 00 00 00 00 53 [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:36]Read from MH i2c: E2 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 0E 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 0E 00 4C 8A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EF [12:17:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:17:36]wFMCommunicate OK [12:17:36]SAM_PROTO_GetShiftState done [12:17:36]FM_GetShiftState done [12:17:36]opened in 1710115571 [12:17:36]opened+sec_in_day 1710201971 [12:17:36]quantity*price = 70007 [12:17:36]sum+1 = 70009 [12:17:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 64 11.03.2024 12:17 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94889 ФПД: 110640656191215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T121750&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94889&fm=110640656191215&tin=02508201610067®Number=0000000000090555&sum=70000 [12:17:37]StoreToDocumentArchive [12:17:37]shift 326 fd 94889 [12:17:37]save to /storage/0326/doc_00094889 [12:17:37]save last doc name /storage/0326/doc_00094889 to /storage/kkm_last_doc_name [12:17:37]save OK [12:17:37]Clear old archive folders... [12:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:37]tlvbuf is 00266D50 [12:17:37]SAM_PROTO_ClearQueue [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 09 00 00 [12:17:37]Write to MH i2c: E2 08 00 59 8A 80 09 00 00 00 00 00 00 55 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 59 8A 00 90 00 57 [12:17:37]RAPDU: 90 00 [12:17:37]wFMCommunicate OK [12:17:37]SAM_PROTO_ClearQueue done [12:17:37]KKMCreateOFDPacket [12:17:37]OFDProtocolAddRootSTLVToBuf [12:17:37]FM_MakeSignedData [12:17:37]FM_MakeSignedData [12:17:37]SAM_PROTO_SignData [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 0D 01 02 [12:17:37]Write to MH i2c: E2 08 00 5A 8A 80 0D 01 02 00 00 00 00 5D [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 5A 8A 00 90 00 58 [12:17:37]RAPDU: 90 00 [12:17:37]wFMCommunicate OK [12:17:37]wFMCommunicate request_size=255 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 6E F6 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 72 01 00 35 04 06 00 64 [12:17:37]Write to MH i2c: E2 02 01 5B 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 6E F6 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 72 01 00 35 04 06 00 64 00 00 92 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 5B 8A 00 90 00 59 [12:17:37]RAPDU: 90 00 [12:17:37]wFMCommunicate OK [12:17:37]wFMCommunicate request_size=10 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 0D 02 02 05 A0 89 02 8E EF [12:17:37]Write to MH i2c: E2 0D 00 5C 8A 80 0D 02 02 05 00 A0 89 02 8E EF 00 00 12 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 5C 8A 00 90 00 5A [12:17:37]RAPDU: 90 00 [12:17:37]wFMCommunicate OK [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 0D 03 02 [12:17:37]Write to MH i2c: E2 08 00 5D 8A 80 0D 03 02 00 00 00 00 62 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 0B 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 0B 00 5D 8A 00 61 A7 91 5C 1A 3F 21 56 90 00 28 [12:17:37]RAPDU: 61 A7 91 5C 1A 3F 21 56 90 00 [12:17:37]wFMCommunicate OK [12:17:37]SAM_PROTO_SignData done [12:17:37]FM_MakeSignedData done [12:17:37]CreateOFDProtocolMessage [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 11 00 00 [12:17:37]Write to MH i2c: E2 08 00 5E 8A 80 11 00 00 00 00 00 00 62 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:38]Read from MH i2c: E2 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 17 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 17 00 5E 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [12:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:17:38]wFMCommunicate OK [12:17:38]CreateOFDProtocolMessage done [12:17:38]OFDSenderStorePacket 94889 [12:17:38]StoreOFDPacket docnum=94889 [12:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 D9 07 01 5A D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 6E F6 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 72 01 00 35 04 06 00 64 A0 89 02 8E EF 61 A7 91 5C 1A 3F 21 56 [12:17:38]CheckFolder [12:17:38]dirname=/storage/ofd_packets [12:17:38]CheckFolder done [12:17:38]ProducePacketName [12:17:38]name=ofd_packets/00094889 [12:17:38]NVStorageSaveData ofd_packets/00094889 [12:17:38]File name is /storage/ofd_packets/00094889 [12:17:38]Write 301 bytes [12:17:38]NVStorageSaveData done [12:17:38]OFDSenderStorePacket done [12:17:38]KKMCreateOFDPacket done [12:17:38]NVStorageSaveData kkm_last_timestamp [12:17:38]File name is /storage/kkm_last_timestamp [12:17:38]Write 4 bytes [12:17:38]NVStorageSaveData done [12:17:38]ExternCall_PrintAddStr [12:17:38]wPrintStart [12:17:38]Write to MH i2c: 01 00 00 5F 8A E9 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 07 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 07 00 5F 8A 00 80 00 00 00 FF 0F 7E [12:17:38]RasterBufferAndPrint [12:17:38]line Счет N : (1)195841 [12:17:38]line ИНН: 02508201610067 [12:17:38]line Контрольно-Кассовый Чек [12:17:38]line ПРОДАЖА [12:17:38]line ТРК (МРК, ГНК) : 22 [12:17:38]line Товар: 2710124130 [12:17:38]line Аи-92-К-5 [12:17:38]line 11.130 * 62.90 [12:17:38]line = 700.08 [12:17:38]line НДС 12% НСП 1% [12:17:38]line > о реализуемом товаре [12:17:38]line ОКРУГЛЕНИЕ: -0.08 [12:17:38]line ИТОГО: 700.00 [12:17:38]line Внесено: 700.00 [12:17:38]line СДАЧА: 0.00 [12:17:38]line НСП 1% : 6.19 [12:17:38]line НДС 12% : 74.34 [12:17:38]line Наличными: 700.00 [12:17:38]line Безнал.: 0.00 [12:17:38]line Место: АЗС № 6 "Партнер Нефть" [12:17:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:17:38]line СНО: Общий режим [12:17:38]line Чек 64 11.03.2024 12:17 [12:17:38]line Смена: 326 ФФД: 1.0 [12:17:38]line ЗНМ: 0300000009 [12:17:38]line РНМ: 0000000000090555 [12:17:38]line Версия ККМ: 001 [12:17:38]line ФМ: 0000000000874811 [12:17:38]line ФД: 94889 [12:17:38]line ФПД: 110640656191215 [12:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T121750&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94889&fm=110640656191215&tin=02508201610067®Number=0000000000090555&sum=70000 [12:17:38]OFD Sender: Processing packet 94889 [packets to send 30, broken 29] [12:17:38]ProducePacketName [12:17:38]name=ofd_packets/00094889 [12:17:38]OFD Sender: To server: pG, [12:17:38]CommunicateWithHost lk.salyk.kg:30040 [12:17:38]ConnectInit lk.salyk.kg [12:17:38]written 0, free lines is 4095 [12:17:38]Connected sock=10 [12:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 D9 07 01 5A D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 6E F6 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 72 01 00 35 04 06 00 64 A0 89 02 8E EF 61 A7 91 5C 1A 3F 21 56 [12:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F5 65 47 00 18 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 72 01 00 F4 03 04 00 C8 A1 EE 65 B6 04 01 00 00 75 E1 92 74 7B 1C 65 87 [12:17:38]CommunicateWithHost err = 0 [12:17:38]CheckOFDResponse [12:17:38]1017 (14) - 77093643461234 [12:17:38]1041 (16) - 0000000000874811 [12:17:38]1040 (4) - 94889 [12:17:38]1012 (4) - 11.03.2024 06:16 [12:17:38]1206 (1) - 0 [12:17:38]OFD Sender: Remove packet 94889 [12:17:38]ProducePacketName [12:17:38]name=ofd_packets/00094889 [12:17:38]NVStorageDeleteData [12:17:38]Write to MH i2c: 01 00 00 8A 8A 14 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 07 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 07 00 8A 8A 00 80 00 00 00 44 0D EC [12:17:38]RasterBufferAndPrint [12:17:38]line [12:17:38]line [12:17:38]line [12:17:38]line [12:17:38]line [12:17:38]written 0, free lines is 3402 [12:17:38]process_action close_receipt done [12:17:38]requested_data is exist [12:17:38]produce_requested_data [12:17:38]requested_item fm.sn is exist - process it [12:17:38]wFMCommunicate request_size=4 [12:17:38]MH_SAM_APDU [12:17:38]CAPDU: 80 11 00 00 [12:17:38]Write to MH i2c: E2 08 00 91 8A 80 11 00 00 00 00 00 00 95 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:38]Read from MH i2c: E2 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 17 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 17 00 91 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E5 [12:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:17:38]wFMCommunicate OK [12:17:38]requested_item fd.num is exist - process it [12:17:38]SAM_PROTO_GetFieldsCounters [12:17:38]wFMCommunicate request_size=4 [12:17:38]MH_SAM_APDU [12:17:38]CAPDU: 80 13 00 00 [12:17:38]Write to MH i2c: E2 08 00 92 8A 80 13 00 00 00 00 00 00 98 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:39]Read from MH i2c: E2 [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: E2 62 00 [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: E2 62 00 92 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:17: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:39]wFMCommunicate OK [12:17:39]SAM_PROTO_GetFieldsCounters done [12:17:39]requested_item shift.num is exist - process it [12:17:39]requested_item shift.opened is exist - process it [12:17:39]req_shift_opened [12:17:39]FM_GetShiftState [12:17:39]SAM_PROTO_GetShiftState [12:17:39]wFMCommunicate request_size=4 [12:17:39]MH_SAM_APDU [12:17:39]CAPDU: 80 13 01 00 [12:17:39]Write to MH i2c: E2 08 00 93 8A 80 13 01 00 00 00 00 00 9A [12:17:39]Write i2c OK [12:17:39]MH_I2C_Read... [12:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:39]Read from MH i2c: E2 [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: E2 0E 00 [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: E2 0E 00 93 8A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 36 [12:17:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:17:39]wFMCommunicate OK [12:17:39]SAM_PROTO_GetShiftState done [12:17:39]FM_GetShiftState done [12:17:39]req_shift_opened done [12:17:39]requested_item shift.open_date is exist - process it [12:17:39]req_shift_open_date [12:17:39]req_shift_open_date done [12:17:39]produce_requested_data done [12:17:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94889,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:17:39]process_action_free close_receipt [12:17:39]json_value_free [12:17:39]json_value_free done [12:17:39]process_json_proto returns [12:17:39]Send response to host [12:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94889,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:17:39]free response buf [12:17:39]execute_script done [12:17:39]execute_script returns [12:17:39]free content buf [12:17:39]Sock 7.Close socket [12:17:39]Sock 7.Thread stoped [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:33]accept exits with 9 [12:25:33]New connection [12:25:33]New thread 3066871140 created [12:25:33]Thread 3067014500 joined [12:25:33]Waiting for new connection... [12:25:33] Sock 9.Parse request [12:25:33]Sock 9.Check first char [12:25:33]Sock 9.First char is OK [12:25:33]request: POST /json_proto HTTP/1.0 [12:25:33]Method: POST [12:25:33]URL: /json_proto [12:25:33]Method is POST - this is cgi request [12:25:33]url: /json_proto [12:25:33]query_string will be loaded in cgi processing [12:25:33]execute_cgi json_proto POST (null) [12:25:33]execute_cgi path=json_proto method=POST [12:25:33]POST find Content-Length [12:25:33]Host: 172.17.62.67:8080 [12:25:33]Content-Length: 1193 [12:25:33]Content-Type: application/json [12:25:33] [12:25:33]POST finish read [12:25:33]Found Content-Length = 1193 [12:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195842\u000A11.03.2024 12:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53283\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:33]execute_script... [12:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195842\u000A11.03.2024 12:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53283\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:33]POST & json_proto [12:25:33]process_json_proto [12:25:33]json parsed OK: [12:25:33]protocol is kg_v1.0 [12:25:33]action value=print_text [12:25:33]process_action print_text [12:25:33]cmd_print_text [12:25:33]ExternCall_PrintAddStr [12:25:33]wPrintStart [12:25:33]Write to MH i2c: 01 00 00 94 8A 1E [12:25:33]Write i2c OK [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: 01 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: 01 07 00 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: 01 07 00 94 8A 00 80 00 00 00 FF 0F B3 [12:25:33]RasterBufferAndPrint [12:25:33]line *****ТОВАРНЫЙ ЧЕК***** [12:25:33]line АЗС 6 [12:25:33]line Партнер нефть [12:25:33]line 02508201610067 [12:25:33]line Кассир : Карыбаев Б. [12:25:33]line Счет N : (1)195842 [12:25:33]line 11.03.2024 12:19 [12:25:33]line ПРОДАЖА [12:25:33]line ТРК (МРК, ГНК): 22 [12:25:33]line Вид ГСМ : 2710124130 [12:25:33]line Аи-92-К-5 [12:25:33]line 30.000 x 62.90 [12:25:33]line ИТОГ: 1887.00 [12:25:33]line Тип оплаты: Талоны: Топливная Карта [12:25:33]line 53283 [12:25:33]line ______________________ [12:25:33]line (подпись) [12:25:33]written 0, free lines is 4095 [12:25:33]Write to MH i2c: 01 00 00 A8 8A 32 [12:25:33]Write i2c OK [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: 01 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: 01 07 00 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: 01 07 00 A8 8A 00 80 00 00 00 63 0E 2A [12:25:33]RasterBufferAndPrint [12:25:33]line [12:25:33]line [12:25:33]line [12:25:33]line [12:25:33]line [12:25:33]written 0, free lines is 3687 [12:25:33]process_action print_text done [12:25:33]requested_data is exist [12:25:33]produce_requested_data [12:25:33]requested_item fm.sn is exist - process it [12:25:33]wFMCommunicate request_size=4 [12:25:33]MH_SAM_APDU [12:25:33]CAPDU: 80 11 00 00 [12:25:33]Write to MH i2c: E2 08 00 AF 8A 80 11 00 00 00 00 00 00 B3 [12:25:33]Write i2c OK [12:25:33]MH_I2C_Read... [12:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:33]Read from MH i2c: E2 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: E2 17 00 [12:25:33]MH_I2C_Read... [12:25:33]Read from MH i2c: E2 17 00 AF 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [12:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:25:33]wFMCommunicate OK [12:25:33]requested_item fd.num is exist - process it [12:25:33]SAM_PROTO_GetFieldsCounters [12:25:33]wFMCommunicate request_size=4 [12:25:33]MH_SAM_APDU [12:25:33]CAPDU: 80 13 00 00 [12:25:33]Write to MH i2c: E2 08 00 B0 8A 80 13 00 00 00 00 00 00 B6 [12:25:33]Write i2c OK [12:25:33]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 62 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 62 00 B0 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [12:25: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:34]wFMCommunicate OK [12:25:34]SAM_PROTO_GetFieldsCounters done [12:25:34]requested_item shift.num is exist - process it [12:25:34]requested_item shift.opened is exist - process it [12:25:34]req_shift_opened [12:25:34]FM_GetShiftState [12:25:34]SAM_PROTO_GetShiftState [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 13 01 00 [12:25:34]Write to MH i2c: E2 08 00 B1 8A 80 13 01 00 00 00 00 00 B8 [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0E 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0E 00 B1 8A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 54 [12:25:34]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:25:34]wFMCommunicate OK [12:25:34]SAM_PROTO_GetShiftState done [12:25:34]FM_GetShiftState done [12:25:34]req_shift_opened done [12:25:34]requested_item shift.open_date is exist - process it [12:25:34]req_shift_open_date [12:25:34]req_shift_open_date done [12:25:34]produce_requested_data done [12:25:34]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94889,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:25:34]process_action_free print_text [12:25:34]json_value_free [12:25:34]json_value_free done [12:25:34]process_json_proto returns [12:25:34]Send response to host [12:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94889,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:25:34]free response buf [12:25:34]execute_script done [12:25:34]execute_script returns [12:25:34]free content buf [12:25:34]Sock 9.Close socket [12:25:34]Sock 9.Thread stoped [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:36]accept exits with 7 [12:27:36]New connection [12:27:36]New thread 3067014500 created [12:27:36]Thread 3066871140 joined [12:27:36]Waiting for new connection... [12:27:36] Sock 7.Parse request [12:27:36]Sock 7.Check first char [12:27:36]Sock 7.First char is OK [12:27:36]request: POST /json_proto HTTP/1.0 [12:27:36]Method: POST [12:27:36]URL: /json_proto [12:27:36]Method is POST - this is cgi request [12:27:36]url: /json_proto [12:27:36]query_string will be loaded in cgi processing [12:27:36]execute_cgi json_proto POST (null) [12:27:36]execute_cgi path=json_proto method=POST [12:27:36]POST find Content-Length [12:27:36]Host: 172.17.62.67:8080 [12:27:36]Content-Length: 1193 [12:27:36]Content-Type: application/json [12:27:36] [12:27:36]POST finish read [12:27:36]Found Content-Length = 1193 [12:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195843\u000A11.03.2024 12:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53310\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:36]execute_script... [12:27:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195843\u000A11.03.2024 12:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53310\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:36]POST & json_proto [12:27:36]process_json_proto [12:27:36]json parsed OK: [12:27:36]protocol is kg_v1.0 [12:27:36]action value=print_text [12:27:36]process_action print_text [12:27:36]cmd_print_text [12:27:36]ExternCall_PrintAddStr [12:27:36]wPrintStart [12:27:36]Write to MH i2c: 01 00 00 B2 8A 3C [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: 01 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: 01 07 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: 01 07 00 B2 8A 00 80 00 00 00 FF 0F D1 [12:27:36]RasterBufferAndPrint [12:27:36]line *****ТОВАРНЫЙ ЧЕК***** [12:27:36]line АЗС 6 [12:27:36]line Партнер нефть [12:27:36]line 02508201610067 [12:27:36]line Кассир : Карыбаев Б. [12:27:36]line Счет N : (1)195843 [12:27:36]line 11.03.2024 12:21 [12:27:36]line ПРОДАЖА [12:27:36]line ТРК (МРК, ГНК): 12 [12:27:36]line Вид ГСМ : 2710124130 [12:27:36]line Аи-92-К-5 [12:27:36]line 30.000 x 62.90 [12:27:36]line ИТОГ: 1887.00 [12:27:36]line Тип оплаты: Талоны: Топливная Карта [12:27:36]line 53310 [12:27:36]line ______________________ [12:27:36]line (подпись) [12:27:36]written 0, free lines is 4095 [12:27:36]Write to MH i2c: 01 00 00 C6 8A 50 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: 01 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: 01 07 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: 01 07 00 C6 8A 00 80 00 00 00 61 0E 46 [12:27:36]RasterBufferAndPrint [12:27:36]line [12:27:36]line [12:27:36]line [12:27:36]line [12:27:36]line [12:27:36]written 0, free lines is 3685 [12:27:36]process_action print_text done [12:27:36]requested_data is exist [12:27:36]produce_requested_data [12:27:36]requested_item fm.sn is exist - process it [12:27:36]wFMCommunicate request_size=4 [12:27:36]MH_SAM_APDU [12:27:36]CAPDU: 80 11 00 00 [12:27:36]Write to MH i2c: E2 08 00 CD 8A 80 11 00 00 00 00 00 00 D1 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 17 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 17 00 CD 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 21 [12:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:27:36]wFMCommunicate OK [12:27:36]requested_item fd.num is exist - process it [12:27:36]SAM_PROTO_GetFieldsCounters [12:27:36]wFMCommunicate request_size=4 [12:27:36]MH_SAM_APDU [12:27:36]CAPDU: 80 13 00 00 [12:27:36]Write to MH i2c: E2 08 00 CE 8A 80 13 00 00 00 00 00 00 D4 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 62 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 62 00 CE 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [12:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:36]wFMCommunicate OK [12:27:36]SAM_PROTO_GetFieldsCounters done [12:27:36]requested_item shift.num is exist - process it [12:27:36]requested_item shift.opened is exist - process it [12:27:36]req_shift_opened [12:27:36]FM_GetShiftState [12:27:36]SAM_PROTO_GetShiftState [12:27:36]wFMCommunicate request_size=4 [12:27:36]MH_SAM_APDU [12:27:36]CAPDU: 80 13 01 00 [12:27:36]Write to MH i2c: E2 08 00 CF 8A 80 13 01 00 00 00 00 00 D6 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 0E 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 0E 00 CF 8A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 72 [12:27:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:27:36]wFMCommunicate OK [12:27:36]SAM_PROTO_GetShiftState done [12:27:36]FM_GetShiftState done [12:27:36]req_shift_opened done [12:27:36]requested_item shift.open_date is exist - process it [12:27:36]req_shift_open_date [12:27:36]req_shift_open_date done [12:27:36]produce_requested_data done [12:27:36]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94889,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:27:36]process_action_free print_text [12:27:36]json_value_free [12:27:36]json_value_free done [12:27:36]process_json_proto returns [12:27:36]Send response to host [12:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94889,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:27:36]free response buf [12:27:36]execute_script done [12:27:36]execute_script returns [12:27:36]free content buf [12:27:36]Sock 7.Close socket [12:27:36]Sock 7.Thread stoped [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:45]accept exits with 9 [12:27:45]New connection [12:27:45]New thread 3066871140 created [12:27:45]Thread 3067014500 joined [12:27:45]Waiting for new connection... [12:27:45] Sock 9.Parse request [12:27:45]Sock 9.Check first char [12:27:45]Sock 9.First char is OK [12:27:45]request: POST /json_proto HTTP/1.0 [12:27:45]Method: POST [12:27:45]URL: /json_proto [12:27:45]Method is POST - this is cgi request [12:27:45]url: /json_proto [12:27:45]query_string will be loaded in cgi processing [12:27:45]execute_cgi json_proto POST (null) [12:27:45]execute_cgi path=json_proto method=POST [12:27:45]POST find Content-Length [12:27:45]Host: 172.17.62.67:8080 [12:27:45]Content-Length: 682 [12:27:45]Content-Type: application/json [12:27:45] [12:27:45]POST finish read [12:27:45]Found Content-Length = 682 [12:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:27:45]execute_script... [12:27: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)195844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:27:45]POST & json_proto [12:27:45]process_json_proto [12:27:45]json parsed OK: [12:27:45]protocol is kg_v1.0 [12:27:45]action value=close_receipt [12:27:45]process_action close_receipt [12:27:45]cmd_close_receipt [12:27:45]MH_GetDate [12:27:45]Write to MH i2c: F0 00 00 D0 8A 49 [12:27:45]Write i2c OK [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 05 00 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 05 00 D0 8A 00 CF F8 EE 65 68 [12:27:45]GetLastDocTimeStamp 1710159470 [12:27:45]current date 1710160079 [12:27:45]FM_GetShiftState [12:27:45]SAM_PROTO_GetShiftState [12:27:45]wFMCommunicate request_size=4 [12:27:45]MH_SAM_APDU [12:27:45]CAPDU: 80 13 01 00 [12:27:45]Write to MH i2c: E2 08 00 D1 8A 80 13 01 00 00 00 00 00 D8 [12:27:45]Write i2c OK [12:27:45]MH_I2C_Read... [12:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:45]Read from MH i2c: E2 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: E2 0E 00 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: E2 0E 00 D1 8A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 74 [12:27:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:27:45]wFMCommunicate OK [12:27:45]SAM_PROTO_GetShiftState done [12:27:45]FM_GetShiftState done [12:27:45]opened in 1710115571 [12:27:45]opened+sec_in_day 1710201971 [12:27:45]quantity*price = 100011 [12:27:45]sum+1 = 100012 [12:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 65 11.03.2024 12:27 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94890 ФПД: 114554216202319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T122759&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94890&fm=114554216202319&tin=02508201610067®Number=0000000000090555&sum=100000 [12:27:46]StoreToDocumentArchive [12:27:46]shift 326 fd 94890 [12:27:46]save to /storage/0326/doc_00094890 [12:27:46]save last doc name /storage/0326/doc_00094890 to /storage/kkm_last_doc_name [12:27:46]save OK [12:27:46]Clear old archive folders... [12:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:46]tlvbuf is 00298720 [12:27:46]SAM_PROTO_ClearQueue [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 09 00 00 [12:27:46]Write to MH i2c: E2 08 00 DE 8A 80 09 00 00 00 00 00 00 DA [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 DE 8A 00 90 00 DC [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]SAM_PROTO_ClearQueue done [12:27:46]KKMCreateOFDPacket [12:27:46]OFDProtocolAddRootSTLVToBuf [12:27:46]FM_MakeSignedData [12:27:46]FM_MakeSignedData [12:27:46]SAM_PROTO_SignData [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 01 02 [12:27:46]Write to MH i2c: E2 08 00 DF 8A 80 0D 01 02 00 00 00 00 E2 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 DF 8A 00 90 00 DD [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]wFMCommunicate request_size=255 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CF F8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 72 01 00 35 04 06 00 68 [12:27:46]Write to MH i2c: E2 02 01 E0 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CF F8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 72 01 00 35 04 06 00 68 00 00 B1 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 E0 8A 00 90 00 DE [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]wFMCommunicate request_size=10 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 02 02 05 2F BB 5D 40 4F [12:27:46]Write to MH i2c: E2 0D 00 E1 8A 80 0D 02 02 05 00 2F BB 5D 40 4F 00 00 C5 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 E1 8A 00 90 00 DF [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 03 02 [12:27:46]Write to MH i2c: E2 08 00 E2 8A 80 0D 03 02 00 00 00 00 E7 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 0B 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 0B 00 E2 8A 00 BD 14 96 50 E3 11 01 8A 90 00 1E [12:27:46]RAPDU: BD 14 96 50 E3 11 01 8A 90 00 [12:27:46]wFMCommunicate OK [12:27:46]SAM_PROTO_SignData done [12:27:46]FM_MakeSignedData done [12:27:46]CreateOFDProtocolMessage [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 11 00 00 [12:27:46]Write to MH i2c: E2 08 00 E3 8A 80 11 00 00 00 00 00 00 E7 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 17 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 17 00 E3 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [12:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:27:46]wFMCommunicate OK [12:27:46]CreateOFDProtocolMessage done [12:27:46]OFDSenderStorePacket 94890 [12:27:46]StoreOFDPacket docnum=94890 [12:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 10 86 07 01 17 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CF F8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 72 01 00 35 04 06 00 68 2F BB 5D 40 4F BD 14 96 50 E3 11 01 8A [12:27:46]CheckFolder [12:27:46]dirname=/storage/ofd_packets [12:27:46]CheckFolder done [12:27:46]ProducePacketName [12:27:46]name=ofd_packets/00094890 [12:27:46]NVStorageSaveData ofd_packets/00094890 [12:27:46]File name is /storage/ofd_packets/00094890 [12:27:46]Write 301 bytes [12:27:46]NVStorageSaveData done [12:27:46]OFDSenderStorePacket done [12:27:46]KKMCreateOFDPacket done [12:27:46]NVStorageSaveData kkm_last_timestamp [12:27:46]File name is /storage/kkm_last_timestamp [12:27:46]Write 4 bytes [12:27:46]NVStorageSaveData done [12:27:46]ExternCall_PrintAddStr [12:27:46]wPrintStart [12:27:46]Write to MH i2c: 01 00 00 E4 8A 6E [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 07 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: 01 07 00 E4 8A 00 80 00 00 00 FF 0F 03 [12:27:46]RasterBufferAndPrint [12:27:46]line Счет N : (1)195844 [12:27:46]line ИНН: 02508201610067 [12:27:46]line Контрольно-Кассовый Чек [12:27:46]line ПРОДАЖА [12:27:46]line ТРК (МРК, ГНК) : 32 [12:27:46]line Товар: 2710124130 [12:27:46]line Аи-92-К-5 [12:27:46]line 15.900 * 62.90 [12:27:46]line = 1000.11 [12:27:46]line НДС 12% НСП 1% [12:27:46]line > о реализуемом товаре [12:27:46]line ОКРУГЛЕНИЕ: -0.11 [12:27:46]line ИТОГО: 1000.00 [12:27:46]line Внесено: 1000.00 [12:27:46]line СДАЧА: 0.00 [12:27:46]line НСП 1% : 8.85 [12:27:46]line НДС 12% : 106.21 [12:27:46]line Наличными: 1000.00 [12:27:46]line Безнал.: 0.00 [12:27:46]line Место: АЗС № 6 "Партнер Нефть" [12:27:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:27:46]line СНО: Общий режим [12:27:46]line Чек 65 11.03.2024 12:27 [12:27:46]line Смена: 326 ФФД: 1.0 [12:27:46]line ЗНМ: 0300000009 [12:27:46]line РНМ: 0000000000090555 [12:27:46]line Версия ККМ: 001 [12:27:46]line ФМ: 0000000000874811 [12:27:46]line ФД: 94890 [12:27:46]line ФПД: 114554216202319 [12:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T122759&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94890&fm=114554216202319&tin=02508201610067®Number=0000000000090555&sum=100000 [12:27:47]OFD Sender: Processing packet 94890 [packets to send 30, broken 29] [12:27:47]ProducePacketName [12:27:47]name=ofd_packets/00094890 [12:27:47]OFD Sender: To server: pG, [12:27:47]CommunicateWithHost lk.salyk.kg:30040 [12:27:47]ConnectInit lk.salyk.kg [12:27:47]written 0, free lines is 4095 [12:27:47]Connected sock=10 [12:27: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 31 31 0F 01 00 00 10 86 07 01 17 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CF F8 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 72 01 00 35 04 06 00 68 2F BB 5D 40 4F BD 14 96 50 E3 11 01 8A [12:27: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 31 31 4F 00 00 00 BC F1 47 00 7C 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 31 31 10 04 04 00 AA 72 01 00 F4 03 04 00 28 A4 EE 65 B6 04 01 00 00 92 82 46 39 FA 14 E8 7F [12:27:47]CommunicateWithHost err = 0 [12:27:47]CheckOFDResponse [12:27:47]1017 (14) - 77093643461234 [12:27:47]1041 (16) - 0000000000874811 [12:27:47]1040 (4) - 94890 [12:27:47]1012 (4) - 11.03.2024 06:26 [12:27:47]1206 (1) - 0 [12:27:47]OFD Sender: Remove packet 94890 [12:27:47]ProducePacketName [12:27:47]name=ofd_packets/00094890 [12:27:47]NVStorageDeleteData [12:27:47]Write to MH i2c: 01 00 00 0F 8B 9A [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 07 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 07 00 0F 8B 00 80 00 00 00 49 0D 77 [12:27:47]RasterBufferAndPrint [12:27:47]line [12:27:47]line [12:27:47]line [12:27:47]line [12:27:47]line [12:27:47]written 0, free lines is 3407 [12:27:47]process_action close_receipt done [12:27:47]requested_data is exist [12:27:47]produce_requested_data [12:27:47]requested_item fm.sn is exist - process it [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 11 00 00 [12:27:47]Write to MH i2c: E2 08 00 16 8B 80 11 00 00 00 00 00 00 1B [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 17 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 17 00 16 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6B [12:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:27:47]wFMCommunicate OK [12:27:47]requested_item fd.num is exist - process it [12:27:47]SAM_PROTO_GetFieldsCounters [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 13 00 00 [12:27:47]Write to MH i2c: E2 08 00 17 8B 80 13 00 00 00 00 00 00 1E [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 62 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 62 00 17 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AA 72 01 00 0E 04 04 00 46 01 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 [12:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AA 72 01 00 0E 04 04 00 46 01 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 [12:27:47]wFMCommunicate OK [12:27:47]SAM_PROTO_GetFieldsCounters done [12:27:47]requested_item shift.num is exist - process it [12:27:47]requested_item shift.opened is exist - process it [12:27:47]req_shift_opened [12:27:47]FM_GetShiftState [12:27:47]SAM_PROTO_GetShiftState [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 13 01 00 [12:27:47]Write to MH i2c: E2 08 00 18 8B 80 13 01 00 00 00 00 00 20 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 0E 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 0E 00 18 8B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BC [12:27:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:27:47]wFMCommunicate OK [12:27:47]SAM_PROTO_GetShiftState done [12:27:47]FM_GetShiftState done [12:27:47]req_shift_opened done [12:27:47]requested_item shift.open_date is exist - process it [12:27:47]req_shift_open_date [12:27:47]req_shift_open_date done [12:27:47]produce_requested_data done [12:27:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94890,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:27:47]process_action_free close_receipt [12:27:47]json_value_free [12:27:47]json_value_free done [12:27:47]process_json_proto returns [12:27:47]Send response to host [12:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94890,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:27:47]free response buf [12:27:47]execute_script done [12:27:47]execute_script returns [12:27:47]free content buf [12:27:47]Sock 9.Close socket [12:27:47]Sock 9.Thread stoped [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:29:58]accept exits with 7 [12:29:58]New connection [12:29:58]New thread 3067014500 created [12:29:58]Thread 3066871140 joined [12:29:58]Waiting for new connection... [12:29:58] Sock 7.Parse request [12:29:58]Sock 7.Check first char [12:29:58]Sock 7.First char is OK [12:29:58]request: POST /json_proto HTTP/1.0 [12:29:58]Method: POST [12:29:58]URL: /json_proto [12:29:58]Method is POST - this is cgi request [12:29:58]url: /json_proto [12:29:58]query_string will be loaded in cgi processing [12:29:58]execute_cgi json_proto POST (null) [12:29:58]execute_cgi path=json_proto method=POST [12:29:58]POST find Content-Length [12:29:58]Host: 172.17.62.67:8080 [12:29:58]Content-Length: 816 [12:29:58]Content-Type: application/json [12:29:58] [12:29:58]POST finish read [12:29:58]Found Content-Length = 816 [12:29:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 22.570, "sum" : 1600.21, "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" : 1600.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:58]execute_script... [12:29: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)195845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 22.570, "sum" : 1600.21, "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" : 1600.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:58]POST & json_proto [12:29:58]process_json_proto [12:29:58]json parsed OK: [12:29:58]protocol is kg_v1.0 [12:29:58]action value=close_receipt [12:29:58]process_action close_receipt [12:29:58]cmd_close_receipt [12:29:58]MH_GetDate [12:29:58]Write to MH i2c: F0 00 00 19 8B 93 [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: F0 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: F0 05 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: F0 05 00 19 8B 00 54 F9 EE 65 38 [12:29:58]GetLastDocTimeStamp 1710160079 [12:29:58]current date 1710160212 [12:29:58]FM_GetShiftState [12:29:58]SAM_PROTO_GetShiftState [12:29:58]wFMCommunicate request_size=4 [12:29:58]MH_SAM_APDU [12:29:58]CAPDU: 80 13 01 00 [12:29:58]Write to MH i2c: E2 08 00 1A 8B 80 13 01 00 00 00 00 00 22 [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:58]Read from MH i2c: E2 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 0E 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 0E 00 1A 8B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BE [12:29:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:29:58]wFMCommunicate OK [12:29:58]SAM_PROTO_GetShiftState done [12:29:58]FM_GetShiftState done [12:29:58]opened in 1710115571 [12:29:58]opened+sec_in_day 1710201971 [12:29:58]quantity*price = 160021 [12:29:58]sum+1 = 160022 [12:29:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.21 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 0.00 Безнал.: 1600.21 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 66 11.03.2024 12:30 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94891 ФПД: 63610046138996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123012&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94891&fm=63610046138996&tin=02508201610067®Number=0000000000090555&sum=160021 [12:29:59]StoreToDocumentArchive [12:29:59]shift 326 fd 94891 [12:29:59]save to /storage/0326/doc_00094891 [12:29:59]save last doc name /storage/0326/doc_00094891 to /storage/kkm_last_doc_name [12:29:59]save OK [12:29:59]Clear old archive folders... [12:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:59]tlvbuf is 001E6040 [12:29:59]SAM_PROTO_ClearQueue [12:29:59]wFMCommunicate request_size=4 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 09 00 00 [12:29:59]Write to MH i2c: E2 08 00 27 8B 80 09 00 00 00 00 00 00 24 [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:29:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:59]Read from MH i2c: E2 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 27 8B 00 90 00 26 [12:29:59]RAPDU: 90 00 [12:29:59]wFMCommunicate OK [12:29:59]SAM_PROTO_ClearQueue done [12:29:59]KKMCreateOFDPacket [12:29:59]OFDProtocolAddRootSTLVToBuf [12:29:59]FM_MakeSignedData [12:29:59]FM_MakeSignedData [12:29:59]SAM_PROTO_SignData [12:29:59]wFMCommunicate request_size=4 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 0D 01 02 [12:29:59]Write to MH i2c: E2 08 00 28 8B 80 0D 01 02 00 00 00 00 2C [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:29:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:59]Read from MH i2c: E2 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 28 8B 00 90 00 27 [12:29:59]RAPDU: 90 00 [12:29:59]wFMCommunicate OK [12:29:59]wFMCommunicate request_size=255 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 58 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 15 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 54 F9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 72 01 00 35 04 06 00 39 DA 5E 34 [12:29:59]Write to MH i2c: E2 02 01 29 8B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 58 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 15 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 54 F9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 72 01 00 35 04 06 00 39 DA 5E 34 00 00 88 [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:59]Read from MH i2c: E2 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 29 8B 00 90 00 28 [12:29:59]RAPDU: 90 00 [12:29:59]wFMCommunicate OK [12:29:59]wFMCommunicate request_size=7 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 0D 02 02 02 4A 74 [12:29:59]Write to MH i2c: E2 0A 00 2A 8B 80 0D 02 02 02 00 4A 74 00 00 F1 [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:59]Read from MH i2c: E2 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 2A 8B 00 90 00 29 [12:29:59]RAPDU: 90 00 [12:29:59]wFMCommunicate OK [12:29:59]wFMCommunicate request_size=4 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 0D 03 02 [12:29:59]Write to MH i2c: E2 08 00 2B 8B 80 0D 03 02 00 00 00 00 31 [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 0B 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 0B 00 2B 8B 00 E1 23 9F 0C F0 5C EC B0 90 00 C9 [12:30:00]RAPDU: E1 23 9F 0C F0 5C EC B0 90 00 [12:30:00]wFMCommunicate OK [12:30:00]SAM_PROTO_SignData done [12:30:00]FM_MakeSignedData done [12:30:00]CreateOFDProtocolMessage [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 11 00 00 [12:30:00]Write to MH i2c: E2 08 00 2C 8B 80 11 00 00 00 00 00 00 31 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 2C 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 81 [12:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:30:00]wFMCommunicate OK [12:30:00]CreateOFDProtocolMessage done [12:30:00]OFDSenderStorePacket 94891 [12:30:00]StoreOFDPacket docnum=94891 [12:30:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 FB 08 04 01 3E 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 58 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 15 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 54 F9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 72 01 00 35 04 06 00 39 DA 5E 34 4A 74 E1 23 9F 0C F0 5C EC B0 [12:30:00]CheckFolder [12:30:00]dirname=/storage/ofd_packets [12:30:00]CheckFolder done [12:30:00]ProducePacketName [12:30:00]name=ofd_packets/00094891 [12:30:00]NVStorageSaveData ofd_packets/00094891 [12:30:00]File name is /storage/ofd_packets/00094891 [12:30:00]Write 298 bytes [12:30:00]NVStorageSaveData done [12:30:00]OFDSenderStorePacket done [12:30:00]KKMCreateOFDPacket done [12:30:00]NVStorageSaveData kkm_last_timestamp [12:30:00]File name is /storage/kkm_last_timestamp [12:30:00]Write 4 bytes [12:30:00]NVStorageSaveData done [12:30:00]ExternCall_PrintAddStr [12:30:00]wPrintStart [12:30:00]Write to MH i2c: 01 00 00 2D 8B B8 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 2D 8B 00 80 00 00 00 FF 0F 4D [12:30:00]RasterBufferAndPrint [12:30:00]line Счет N : (1)195845 [12:30:00]line ИНН: 02508201610067 [12:30:00]line Контрольно-Кассовый Чек [12:30:00]line ПРОДАЖА [12:30:00]line ТРК (МРК, ГНК) : 61 [12:30:00]line Товар: 2710194210 [12:30:00]line ДТ-К-5 [12:30:00]line 22.570 * 70.90 [12:30:00]line = 1600.21 [12:30:00]line НДС 12% НСП 1% [12:30:00]line > о реализуемом товаре [12:30:00]line ИТОГО: 1600.21 [12:30:00]line НСП 1% : 14.16 [12:30:00]line НДС 12% : 169.93 [12:30:00]line Наличными: 0.00 [12:30:00]line Безнал.: 1600.21 [12:30:00]line Место: АЗС № 6 "Партнер Нефть" [12:30:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:30:00]line СНО: Общий режим [12:30:00]line Чек 66 11.03.2024 12:30 [12:30:00]line Смена: 326 ФФД: 1.0 [12:30:00]line ЗНМ: 0300000009 [12:30:00]line РНМ: 0000000000090555 [12:30:00]line Версия ККМ: 001 [12:30:00]line Платежная система: Бакай Банк [12:30:00]line ФМ: 0000000000874811 [12:30:00]line ФД: 94891 [12:30:00]line ФПД: 63610046138996 [12:30:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123012&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94891&fm=63610046138996&tin=02508201610067®Number=0000000000090555&sum=160021 [12:30:00]OFD Sender: Processing packet 94891 [packets to send 30, broken 29] [12:30:00]ProducePacketName [12:30:00]name=ofd_packets/00094891 [12:30:00]OFD Sender: To server: pG, [12:30:00]CommunicateWithHost lk.salyk.kg:30040 [12:30:00]ConnectInit lk.salyk.kg [12:30:00]written 0, free lines is 4095 [12:30:00]Connected sock=10 [12:30: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 31 31 0C 01 00 00 FB 08 04 01 3E 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 58 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 15 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 54 F9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 72 01 00 35 04 06 00 39 DA 5E 34 4A 74 E1 23 9F 0C F0 5C EC B0 [12:30: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 31 31 4F 00 00 00 2E CF 47 00 B5 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 31 31 10 04 04 00 AB 72 01 00 F4 03 04 00 AE A4 EE 65 B6 04 01 00 00 B4 96 72 23 FF 1E F4 95 [12:30:00]CommunicateWithHost err = 0 [12:30:00]CheckOFDResponse [12:30:00]1017 (14) - 77093643461234 [12:30:00]1041 (16) - 0000000000874811 [12:30:00]1040 (4) - 94891 [12:30:00]1012 (4) - 11.03.2024 06:29 [12:30:00]1206 (1) - 0 [12:30:00]OFD Sender: Remove packet 94891 [12:30:00]ProducePacketName [12:30:00]name=ofd_packets/00094891 [12:30:00]NVStorageDeleteData [12:30:00]Write to MH i2c: 01 00 00 57 8B E2 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 57 8B 00 80 00 00 00 55 0D CB [12:30:00]RasterBufferAndPrint [12:30:00]line [12:30:00]line [12:30:00]line [12:30:00]line [12:30:00]line [12:30:00]written 0, free lines is 3421 [12:30:00]process_action close_receipt done [12:30:00]requested_data is exist [12:30:00]produce_requested_data [12:30:00]requested_item fm.sn is exist - process it [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 11 00 00 [12:30:00]Write to MH i2c: E2 08 00 5E 8B 80 11 00 00 00 00 00 00 63 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:00]Read from MH i2c: E2 17 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 5E 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B3 [12:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:30:00]wFMCommunicate OK [12:30:00]requested_item fd.num is exist - process it [12:30:00]SAM_PROTO_GetFieldsCounters [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 13 00 00 [12:30:00]Write to MH i2c: E2 08 00 5F 8B 80 13 00 00 00 00 00 00 66 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:01]Read from MH i2c: E2 [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: E2 62 00 [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: E2 62 00 5F 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AB 72 01 00 0E 04 04 00 46 01 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 AE [12:30: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AB 72 01 00 0E 04 04 00 46 01 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 [12:30:01]wFMCommunicate OK [12:30:01]SAM_PROTO_GetFieldsCounters done [12:30:01]requested_item shift.num is exist - process it [12:30:01]requested_item shift.opened is exist - process it [12:30:01]req_shift_opened [12:30:01]FM_GetShiftState [12:30:01]SAM_PROTO_GetShiftState [12:30:01]wFMCommunicate request_size=4 [12:30:01]MH_SAM_APDU [12:30:01]CAPDU: 80 13 01 00 [12:30:01]Write to MH i2c: E2 08 00 60 8B 80 13 01 00 00 00 00 00 68 [12:30:01]Write i2c OK [12:30:01]MH_I2C_Read... [12:30:01]OFD Sender: No OFD packet to send [12:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:01]Read from MH i2c: E2 [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: E2 0E 00 [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: E2 0E 00 60 8B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 04 [12:30:01]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:30:01]wFMCommunicate OK [12:30:01]SAM_PROTO_GetShiftState done [12:30:01]FM_GetShiftState done [12:30:01]req_shift_opened done [12:30:01]requested_item shift.open_date is exist - process it [12:30:01]req_shift_open_date [12:30:01]req_shift_open_date done [12:30:01]produce_requested_data done [12:30:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94891,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:30:01]process_action_free close_receipt [12:30:01]json_value_free [12:30:01]json_value_free done [12:30:01]process_json_proto returns [12:30:01]Send response to host [12:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94891,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:30:01]free response buf [12:30:01]execute_script done [12:30:01]execute_script returns [12:30:01]free content buf [12:30:01]Sock 7.Close socket [12:30:01]Sock 7.Thread stoped [12:30:01]accept exits with 9 [12:30:01]New connection [12:30:01]New thread 3066871140 created [12:30:01]Thread 3067014500 joined [12:30:01]Waiting for new connection... [12:30:01] Sock 9.Parse request [12:30:01]Sock 9.Check first char [12:30:01]Sock 9.First char is OK [12:30:01]request: POST /json_proto HTTP/1.0 [12:30:01]Method: POST [12:30:01]URL: /json_proto [12:30:01]Method is POST - this is cgi request [12:30:01]url: /json_proto [12:30:01]query_string will be loaded in cgi processing [12:30:01]execute_cgi json_proto POST (null) [12:30:01]execute_cgi path=json_proto method=POST [12:30:01]POST find Content-Length [12:30:01]Host: 172.17.62.67:8080 [12:30:01]Content-Length: 677 [12:30:01]Content-Type: application/json [12:30:01] [12:30:01]POST finish read [12:30:01]Found Content-Length = 677 [12:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [12:30:01]execute_script... [12:30:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [12:30:01]POST & json_proto [12:30:01]process_json_proto [12:30:01]json parsed OK: [12:30:01]protocol is kg_v1.0 [12:30:01]action value=close_receipt [12:30:01]process_action close_receipt [12:30:01]cmd_close_receipt [12:30:01]MH_GetDate [12:30:01]Write to MH i2c: F0 00 00 61 8B DB [12:30:01]Write i2c OK [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: F0 [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: F0 05 00 [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: F0 05 00 61 8B 00 57 F9 EE 65 83 [12:30:01]GetLastDocTimeStamp 1710160212 [12:30:01]current date 1710160215 [12:30:01]FM_GetShiftState [12:30:01]SAM_PROTO_GetShiftState [12:30:01]wFMCommunicate request_size=4 [12:30:01]MH_SAM_APDU [12:30:01]CAPDU: 80 13 01 00 [12:30:01]Write to MH i2c: E2 08 00 62 8B 80 13 01 00 00 00 00 00 6A [12:30:01]Write i2c OK [12:30:01]MH_I2C_Read... [12:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:01]Read from MH i2c: E2 [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: E2 0E 00 [12:30:01]MH_I2C_Read... [12:30:01]Read from MH i2c: E2 0E 00 62 8B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 06 [12:30:01]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:30:01]wFMCommunicate OK [12:30:01]SAM_PROTO_GetShiftState done [12:30:01]FM_GetShiftState done [12:30:01]opened in 1710115571 [12:30:01]opened+sec_in_day 1710201971 [12:30:01]quantity*price = 50005 [12:30:01]sum+1 = 50007 [12:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 67 11.03.2024 12:30 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94892 ФПД: 214021364451219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123015&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94892&fm=214021364451219&tin=02508201610067®Number=0000000000090555&sum=50000 [12:30:03]StoreToDocumentArchive [12:30:03]shift 326 fd 94892 [12:30:03]save to /storage/0326/doc_00094892 [12:30:03]save last doc name /storage/0326/doc_00094892 to /storage/kkm_last_doc_name [12:30:03]save OK [12:30:03]Clear old archive folders... [12:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:03]tlvbuf is 001EFF30 [12:30:03]SAM_PROTO_ClearQueue [12:30:03]wFMCommunicate request_size=4 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 09 00 00 [12:30:03]Write to MH i2c: E2 08 00 6F 8B 80 09 00 00 00 00 00 00 6C [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:03]Read from MH i2c: E2 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 6F 8B 00 90 00 6E [12:30:03]RAPDU: 90 00 [12:30:03]wFMCommunicate OK [12:30:03]SAM_PROTO_ClearQueue done [12:30:03]KKMCreateOFDPacket [12:30:03]OFDProtocolAddRootSTLVToBuf [12:30:03]FM_MakeSignedData [12:30:03]FM_MakeSignedData [12:30:03]SAM_PROTO_SignData [12:30:03]wFMCommunicate request_size=4 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 0D 01 02 [12:30:03]Write to MH i2c: E2 08 00 70 8B 80 0D 01 02 00 00 00 00 74 [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:03]Read from MH i2c: E2 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 70 8B 00 90 00 6F [12:30:03]RAPDU: 90 00 [12:30:03]wFMCommunicate OK [12:30:03]wFMCommunicate request_size=255 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 57 F9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 72 01 00 35 04 06 00 C2 [12:30:03]Write to MH i2c: E2 02 01 71 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 57 F9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 72 01 00 35 04 06 00 C2 00 00 2B [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:03]Read from MH i2c: E2 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 71 8B 00 90 00 70 [12:30:03]RAPDU: 90 00 [12:30:03]wFMCommunicate OK [12:30:03]wFMCommunicate request_size=10 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 0D 02 02 05 A6 BB 67 07 93 [12:30:03]Write to MH i2c: E2 0D 00 72 8B 80 0D 02 02 05 00 A6 BB 67 07 93 00 00 E3 [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:03]Read from MH i2c: E2 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 72 8B 00 90 00 71 [12:30:03]RAPDU: 90 00 [12:30:03]wFMCommunicate OK [12:30:03]wFMCommunicate request_size=4 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 0D 03 02 [12:30:03]Write to MH i2c: E2 08 00 73 8B 80 0D 03 02 00 00 00 00 79 [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:03]Read from MH i2c: E2 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 0B 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 0B 00 73 8B 00 AB F0 A1 90 FF CA E8 C0 90 00 B7 [12:30:03]RAPDU: AB F0 A1 90 FF CA E8 C0 90 00 [12:30:03]wFMCommunicate OK [12:30:03]SAM_PROTO_SignData done [12:30:03]FM_MakeSignedData done [12:30:03]CreateOFDProtocolMessage [12:30:03]wFMCommunicate request_size=4 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 11 00 00 [12:30:03]Write to MH i2c: E2 08 00 74 8B 80 11 00 00 00 00 00 00 79 [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:03]Read from MH i2c: E2 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 17 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 17 00 74 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C9 [12:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:30:03]wFMCommunicate OK [12:30:03]CreateOFDProtocolMessage done [12:30:03]OFDSenderStorePacket 94892 [12:30:03]StoreOFDPacket docnum=94892 [12:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F1 C7 07 01 6F 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 57 F9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 72 01 00 35 04 06 00 C2 A6 BB 67 07 93 AB F0 A1 90 FF CA E8 C0 [12:30:03]CheckFolder [12:30:03]dirname=/storage/ofd_packets [12:30:03]CheckFolder done [12:30:03]ProducePacketName [12:30:03]name=ofd_packets/00094892 [12:30:03]NVStorageSaveData ofd_packets/00094892 [12:30:03]File name is /storage/ofd_packets/00094892 [12:30:03]Write 301 bytes [12:30:03]NVStorageSaveData done [12:30:03]OFDSenderStorePacket done [12:30:03]KKMCreateOFDPacket done [12:30:03]NVStorageSaveData kkm_last_timestamp [12:30:03]File name is /storage/kkm_last_timestamp [12:30:03]Write 4 bytes [12:30:03]NVStorageSaveData done [12:30:03]ExternCall_PrintAddStr [12:30:03]wPrintStart [12:30:03]Write to MH i2c: 01 00 00 75 8B 00 [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: 01 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: 01 07 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: 01 07 00 75 8B 00 80 00 00 00 FF 0F 95 [12:30:03]RasterBufferAndPrint [12:30:03]line Счет N : (1)195846 [12:30:03]line ИНН: 02508201610067 [12:30:03]line Контрольно-Кассовый Чек [12:30:03]line ПРОДАЖА [12:30:03]line ТРК (МРК, ГНК) : 42 [12:30:03]line Товар: 2710124130 [12:30:03]line Аи-92-К-5 [12:30:03]line 7.950 * 62.90 [12:30:03]line = 500.06 [12:30:03]line НДС 12% НСП 1% [12:30:03]line > о реализуемом товаре [12:30:03]line ОКРУГЛЕНИЕ: -0.06 [12:30:03]line ИТОГО: 500.00 [12:30:03]line Внесено: 500.00 [12:30:03]line СДАЧА: 0.00 [12:30:03]line НСП 1% : 4.42 [12:30:03]line НДС 12% : 53.10 [12:30:03]line Наличными: 500.00 [12:30:03]line Безнал.: 0.00 [12:30:03]line Место: АЗС № 6 "Партнер Нефть" [12:30:03]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:30:03]line СНО: Общий режим [12:30:03]line Чек 67 11.03.2024 12:30 [12:30:03]line Смена: 326 ФФД: 1.0 [12:30:03]line ЗНМ: 0300000009 [12:30:03]line РНМ: 0000000000090555 [12:30:03]line Версия ККМ: 001 [12:30:03]line ФМ: 0000000000874811 [12:30:03]line ФД: 94892 [12:30:03]line ФПД: 214021364451219 [12:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123015&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94892&fm=214021364451219&tin=02508201610067®Number=0000000000090555&sum=50000 [12:30:03]written 0, free lines is 4095 [12:30:03]OFD Sender: Processing packet 94892 [packets to send 30, broken 29] [12:30:03]ProducePacketName [12:30:03]name=ofd_packets/00094892 [12:30:03]OFD Sender: To server: pG, [12:30:03]CommunicateWithHost lk.salyk.kg:30040 [12:30:03]ConnectInit lk.salyk.kg [12:30:03]Connected sock=10 [12:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F1 C7 07 01 6F 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 57 F9 EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 72 01 00 35 04 06 00 C2 A6 BB 67 07 93 AB F0 A1 90 FF CA E8 C0 [12:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 25 20 47 00 7D 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 72 01 00 F4 03 04 00 B1 A4 EE 65 B6 04 01 00 00 31 34 D3 FD B0 25 A8 CF [12:30:04]CommunicateWithHost err = 0 [12:30:04]CheckOFDResponse [12:30:04]1017 (14) - 77093643461234 [12:30:04]1041 (16) - 0000000000874811 [12:30:04]1040 (4) - 94892 [12:30:04]1012 (4) - 11.03.2024 06:29 [12:30:04]1206 (1) - 0 [12:30:04]OFD Sender: Remove packet 94892 [12:30:04]ProducePacketName [12:30:04]name=ofd_packets/00094892 [12:30:04]NVStorageDeleteData [12:30:04]Write to MH i2c: 01 00 00 A0 8B 2B [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 07 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 07 00 A0 8B 00 80 00 00 00 53 0D 12 [12:30:04]RasterBufferAndPrint [12:30:04]line [12:30:04]line [12:30:04]line [12:30:04]line [12:30:04]line [12:30:04]written 0, free lines is 3425 [12:30:04]process_action close_receipt done [12:30:04]requested_data is exist [12:30:04]produce_requested_data [12:30:04]requested_item fm.sn is exist - process it [12:30:04]wFMCommunicate request_size=4 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 11 00 00 [12:30:04]Write to MH i2c: E2 08 00 A7 8B 80 11 00 00 00 00 00 00 AC [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 17 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 17 00 A7 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FC [12:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:30:04]wFMCommunicate OK [12:30:04]requested_item fd.num is exist - process it [12:30:04]SAM_PROTO_GetFieldsCounters [12:30:04]wFMCommunicate request_size=4 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 13 00 00 [12:30:04]Write to MH i2c: E2 08 00 A8 8B 80 13 00 00 00 00 00 00 AF [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 62 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 62 00 A8 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AC 72 01 00 0E 04 04 00 46 01 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 FB [12:30: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AC 72 01 00 0E 04 04 00 46 01 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 [12:30:04]wFMCommunicate OK [12:30:04]SAM_PROTO_GetFieldsCounters done [12:30:04]requested_item shift.num is exist - process it [12:30:04]requested_item shift.opened is exist - process it [12:30:04]req_shift_opened [12:30:04]FM_GetShiftState [12:30:04]SAM_PROTO_GetShiftState [12:30:04]wFMCommunicate request_size=4 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 13 01 00 [12:30:04]Write to MH i2c: E2 08 00 A9 8B 80 13 01 00 00 00 00 00 B1 [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 0E 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 0E 00 A9 8B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4D [12:30:04]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:30:04]wFMCommunicate OK [12:30:04]SAM_PROTO_GetShiftState done [12:30:04]FM_GetShiftState done [12:30:04]req_shift_opened done [12:30:04]requested_item shift.open_date is exist - process it [12:30:04]req_shift_open_date [12:30:04]req_shift_open_date done [12:30:04]produce_requested_data done [12:30:04]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94892,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:30:04]process_action_free close_receipt [12:30:04]json_value_free [12:30:04]json_value_free done [12:30:04]process_json_proto returns [12:30:04]Send response to host [12:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94892,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:30:04]free response buf [12:30:04]execute_script done [12:30:04]execute_script returns [12:30:04]free content buf [12:30:04]Sock 9.Close socket [12:30:04]Sock 9.Thread stoped [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [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:32]accept exits with 7 [12:36:32]New connection [12:36:32]New thread 3067014500 created [12:36:32]Thread 3066871140 joined [12:36:32]Waiting for new connection... [12:36:32] Sock 7.Parse request [12:36:32]Sock 7.Check first char [12:36:32]Sock 7.First char is OK [12:36:32]request: POST /json_proto HTTP/1.0 [12:36:32]Method: POST [12:36:32]URL: /json_proto [12:36:32]Method is POST - this is cgi request [12:36:32]url: /json_proto [12:36:32]query_string will be loaded in cgi processing [12:36:32]execute_cgi json_proto POST (null) [12:36:32]execute_cgi path=json_proto method=POST [12:36:32]POST find Content-Length [12:36:32]Host: 172.17.62.67:8080 [12:36:32]Content-Length: 675 [12:36:32]Content-Type: application/json [12:36:32] [12:36:32]POST finish read [12:36:32]Found Content-Length = 675 [12:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 13.290, "sum" : 942.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 942.00, "total" : 942.00, "payments": [ { "type": 0, "sum" : 942.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:32]execute_script... [12:36:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 13.290, "sum" : 942.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 942.00, "total" : 942.00, "payments": [ { "type": 0, "sum" : 942.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:32]POST & json_proto [12:36:32]process_json_proto [12:36:32]json parsed OK: [12:36:32]protocol is kg_v1.0 [12:36:32]action value=close_receipt [12:36:32]process_action close_receipt [12:36:32]cmd_close_receipt [12:36:32]MH_GetDate [12:36:32]Write to MH i2c: F0 00 00 AA 8B 24 [12:36:32]Write i2c OK [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: F0 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: F0 05 00 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: F0 05 00 AA 8B 00 DE FA EE 65 54 [12:36:32]GetLastDocTimeStamp 1710160215 [12:36:32]current date 1710160606 [12:36:32]FM_GetShiftState [12:36:32]SAM_PROTO_GetShiftState [12:36:32]wFMCommunicate request_size=4 [12:36:32]MH_SAM_APDU [12:36:32]CAPDU: 80 13 01 00 [12:36:32]Write to MH i2c: E2 08 00 AB 8B 80 13 01 00 00 00 00 00 B3 [12:36:32]Write i2c OK [12:36:32]MH_I2C_Read... [12:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:32]Read from MH i2c: E2 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 0E 00 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 0E 00 AB 8B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4F [12:36:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:36:32]wFMCommunicate OK [12:36:32]SAM_PROTO_GetShiftState done [12:36:32]FM_GetShiftState done [12:36:32]opened in 1710115571 [12:36:32]opened+sec_in_day 1710201971 [12:36:32]quantity*price = 94226 [12:36:32]sum+1 = 94227 [12:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 942.00 Внесено: 942.00 СДАЧА: 0.00 НСП 1% : 8.34 НДС 12% : 100.06 Наличными: 942.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 68 11.03.2024 12:36 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94893 ФПД: 220938008021854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123646&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94893&fm=220938008021854&tin=02508201610067®Number=0000000000090555&sum=94200 [12:36:33]StoreToDocumentArchive [12:36:33]shift 326 fd 94893 [12:36:33]save to /storage/0326/doc_00094893 [12:36:33]save last doc name /storage/0326/doc_00094893 to /storage/kkm_last_doc_name [12:36:33]save OK [12:36:33]Clear old archive folders... [12:36:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:36:33]tlvbuf is 004B3230 [12:36:33]SAM_PROTO_ClearQueue [12:36:33]wFMCommunicate request_size=4 [12:36:33]MH_SAM_APDU [12:36:33]CAPDU: 80 09 00 00 [12:36:33]Write to MH i2c: E2 08 00 B8 8B 80 09 00 00 00 00 00 00 B5 [12:36:33]Write i2c OK [12:36:33]MH_I2C_Read... [12:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:33]Read from MH i2c: E2 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 03 00 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 03 00 B8 8B 00 90 00 B7 [12:36:33]RAPDU: 90 00 [12:36:33]wFMCommunicate OK [12:36:33]SAM_PROTO_ClearQueue done [12:36:33]KKMCreateOFDPacket [12:36:33]OFDProtocolAddRootSTLVToBuf [12:36:33]FM_MakeSignedData [12:36:33]FM_MakeSignedData [12:36:33]SAM_PROTO_SignData [12:36:33]wFMCommunicate request_size=4 [12:36:33]MH_SAM_APDU [12:36:33]CAPDU: 80 0D 01 02 [12:36:33]Write to MH i2c: E2 08 00 B9 8B 80 0D 01 02 00 00 00 00 BD [12:36:33]Write i2c OK [12:36:33]MH_I2C_Read... [12:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:33]Read from MH i2c: E2 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 03 00 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 03 00 B9 8B 00 90 00 B8 [12:36:33]RAPDU: 90 00 [12:36:33]wFMCommunicate OK [12:36:33]wFMCommunicate request_size=255 [12:36:33]MH_SAM_APDU [12:36:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 33 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 12 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 27 00 00 00 00 07 04 06 00 F8 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 44 00 00 00 F4 03 04 00 DE FA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 72 01 00 35 04 06 00 C8 F1 23 7C [12:36:33]Write to MH i2c: E2 02 01 BA 8B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 33 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 12 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 27 00 00 00 00 07 04 06 00 F8 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 44 00 00 00 F4 03 04 00 DE FA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 72 01 00 35 04 06 00 C8 F1 23 7C 00 00 03 [12:36:33]Write i2c OK [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 [12:36:33]MH_I2C_Read... [12:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:33]Read from MH i2c: E2 03 00 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 03 00 BA 8B 00 90 00 B9 [12:36:33]RAPDU: 90 00 [12:36:33]wFMCommunicate OK [12:36:33]wFMCommunicate request_size=7 [12:36:33]MH_SAM_APDU [12:36:33]CAPDU: 80 0D 02 02 02 4B 5E [12:36:33]Write to MH i2c: E2 0A 00 BB 8B 80 0D 02 02 02 00 4B 5E 00 00 6D [12:36:33]Write i2c OK [12:36:33]MH_I2C_Read... [12:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:33]Read from MH i2c: E2 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 03 00 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 03 00 BB 8B 00 90 00 BA [12:36:33]RAPDU: 90 00 [12:36:33]wFMCommunicate OK [12:36:33]wFMCommunicate request_size=4 [12:36:33]MH_SAM_APDU [12:36:33]CAPDU: 80 0D 03 02 [12:36:33]Write to MH i2c: E2 08 00 BC 8B 80 0D 03 02 00 00 00 00 C2 [12:36:33]Write i2c OK [12:36:33]MH_I2C_Read... [12:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:33]Read from MH i2c: E2 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 0B 00 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 0B 00 BC 8B 00 D3 12 F8 8D 97 FA 87 2F 90 00 74 [12:36:33]RAPDU: D3 12 F8 8D 97 FA 87 2F 90 00 [12:36:33]wFMCommunicate OK [12:36:33]SAM_PROTO_SignData done [12:36:33]FM_MakeSignedData done [12:36:33]CreateOFDProtocolMessage [12:36:33]wFMCommunicate request_size=4 [12:36:33]MH_SAM_APDU [12:36:33]CAPDU: 80 11 00 00 [12:36:33]Write to MH i2c: E2 08 00 BD 8B 80 11 00 00 00 00 00 00 C2 [12:36:33]Write i2c OK [12:36:33]MH_I2C_Read... [12:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:33]Read from MH i2c: E2 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 17 00 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: E2 17 00 BD 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [12:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:36:33]wFMCommunicate OK [12:36:33]CreateOFDProtocolMessage done [12:36:33]OFDSenderStorePacket 94893 [12:36:33]StoreOFDPacket docnum=94893 [12:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 34 AB 04 01 31 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 33 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 12 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 27 00 00 00 00 07 04 06 00 F8 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 44 00 00 00 F4 03 04 00 DE FA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 72 01 00 35 04 06 00 C8 F1 23 7C 4B 5E D3 12 F8 8D 97 FA 87 2F [12:36:33]CheckFolder [12:36:33]dirname=/storage/ofd_packets [12:36:33]CheckFolder done [12:36:33]ProducePacketName [12:36:33]name=ofd_packets/00094893 [12:36:33]NVStorageSaveData ofd_packets/00094893 [12:36:33]File name is /storage/ofd_packets/00094893 [12:36:33]Write 298 bytes [12:36:33]NVStorageSaveData done [12:36:33]OFDSenderStorePacket done [12:36:33]KKMCreateOFDPacket done [12:36:33]NVStorageSaveData kkm_last_timestamp [12:36:33]File name is /storage/kkm_last_timestamp [12:36:33]Write 4 bytes [12:36:33]NVStorageSaveData done [12:36:33]ExternCall_PrintAddStr [12:36:33]wPrintStart [12:36:33]Write to MH i2c: 01 00 00 BE 8B 49 [12:36:33]Write i2c OK [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: 01 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: 01 07 00 [12:36:33]MH_I2C_Read... [12:36:33]Read from MH i2c: 01 07 00 BE 8B 00 80 00 00 00 FF 0F DE [12:36:33]RasterBufferAndPrint [12:36:33]line Счет N : (1)195847 [12:36:33]line ИНН: 02508201610067 [12:36:33]line Контрольно-Кассовый Чек [12:36:33]line ПРОДАЖА [12:36:33]line ТРК (МРК, ГНК) : 51 [12:36:33]line Товар: 2710194210 [12:36:33]line ДТ-К-5 [12:36:33]line 13.290 * 70.90 [12:36:33]line = 942.26 [12:36:33]line НДС 12% НСП 1% [12:36:33]line > о реализуемом товаре [12:36:33]line ОКРУГЛЕНИЕ: -0.26 [12:36:33]line ИТОГО: 942.00 [12:36:33]line Внесено: 942.00 [12:36:33]line СДАЧА: 0.00 [12:36:33]line НСП 1% : 8.34 [12:36:33]line НДС 12% : 100.06 [12:36:33]line Наличными: 942.00 [12:36:33]line Безнал.: 0.00 [12:36:33]line Место: АЗС № 6 "Партнер Нефть" [12:36:33]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:36:33]line СНО: Общий режим [12:36:33]line Чек 68 11.03.2024 12:36 [12:36:33]line Смена: 326 ФФД: 1.0 [12:36:33]line ЗНМ: 0300000009 [12:36:33]line РНМ: 0000000000090555 [12:36:33]line Версия ККМ: 001 [12:36:33]line ФМ: 0000000000874811 [12:36:33]line ФД: 94893 [12:36:33]line ФПД: 220938008021854 [12:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123646&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94893&fm=220938008021854&tin=02508201610067®Number=0000000000090555&sum=94200 [12:36:34]OFD Sender: Processing packet 94893 [packets to send 30, broken 29] [12:36:34]ProducePacketName [12:36:34]name=ofd_packets/00094893 [12:36:34]OFD Sender: To server: pG, [12:36:34]CommunicateWithHost lk.salyk.kg:30040 [12:36:34]ConnectInit lk.salyk.kg [12:36:34]written 0, free lines is 4095 [12:36:34]Connected sock=10 [12:36: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 31 31 0C 01 00 00 34 AB 04 01 31 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 33 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 12 70 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 27 00 00 00 00 07 04 06 00 F8 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 44 00 00 00 F4 03 04 00 DE FA EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 72 01 00 35 04 06 00 C8 F1 23 7C 4B 5E D3 12 F8 8D 97 FA 87 2F [12:36:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 31 B0 47 00 64 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 72 01 00 F4 03 04 00 37 A6 EE 65 B6 04 01 00 00 B3 87 D1 E1 24 38 FD 72 [12:36:34]CommunicateWithHost err = 0 [12:36:34]CheckOFDResponse [12:36:34]1017 (14) - 77093643461234 [12:36:34]1041 (16) - 0000000000874811 [12:36:34]1040 (4) - 94893 [12:36:34]1012 (4) - 11.03.2024 06:35 [12:36:34]1206 (1) - 0 [12:36:34]OFD Sender: Remove packet 94893 [12:36:34]ProducePacketName [12:36:34]name=ofd_packets/00094893 [12:36:34]NVStorageDeleteData [12:36:34]Write to MH i2c: 01 00 00 E9 8B 74 [12:36:34]Write i2c OK [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: 01 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: 01 07 00 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: 01 07 00 E9 8B 00 80 00 00 00 56 0D 5E [12:36:34]RasterBufferAndPrint [12:36:34]line [12:36:34]line [12:36:34]line [12:36:34]line [12:36:34]line [12:36:34]written 0, free lines is 3420 [12:36:34]process_action close_receipt done [12:36:34]requested_data is exist [12:36:34]produce_requested_data [12:36:34]requested_item fm.sn is exist - process it [12:36:34]wFMCommunicate request_size=4 [12:36:34]MH_SAM_APDU [12:36:34]CAPDU: 80 11 00 00 [12:36:34]Write to MH i2c: E2 08 00 F0 8B 80 11 00 00 00 00 00 00 F5 [12:36:34]Write i2c OK [12:36:34]MH_I2C_Read... [12:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:34]Read from MH i2c: E2 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: E2 17 00 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: E2 17 00 F0 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [12:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:36:34]wFMCommunicate OK [12:36:34]requested_item fd.num is exist - process it [12:36:34]SAM_PROTO_GetFieldsCounters [12:36:34]wFMCommunicate request_size=4 [12:36:34]MH_SAM_APDU [12:36:34]CAPDU: 80 13 00 00 [12:36:34]Write to MH i2c: E2 08 00 F1 8B 80 13 00 00 00 00 00 00 F8 [12:36:34]Write i2c OK [12:36:34]MH_I2C_Read... [12:36:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:34]Read from MH i2c: E2 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: E2 62 00 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: E2 62 00 F1 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AD 72 01 00 0E 04 04 00 46 01 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 48 [12:36: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AD 72 01 00 0E 04 04 00 46 01 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 [12:36:34]wFMCommunicate OK [12:36:34]SAM_PROTO_GetFieldsCounters done [12:36:34]requested_item shift.num is exist - process it [12:36:34]requested_item shift.opened is exist - process it [12:36:34]req_shift_opened [12:36:34]FM_GetShiftState [12:36:34]SAM_PROTO_GetShiftState [12:36:34]wFMCommunicate request_size=4 [12:36:34]MH_SAM_APDU [12:36:34]CAPDU: 80 13 01 00 [12:36:34]Write to MH i2c: E2 08 00 F2 8B 80 13 01 00 00 00 00 00 FA [12:36:34]Write i2c OK [12:36:34]MH_I2C_Read... [12:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:34]Read from MH i2c: E2 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: E2 0E 00 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: E2 0E 00 F2 8B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 96 [12:36:34]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:36:34]wFMCommunicate OK [12:36:34]SAM_PROTO_GetShiftState done [12:36:34]FM_GetShiftState done [12:36:34]req_shift_opened done [12:36:34]requested_item shift.open_date is exist - process it [12:36:34]req_shift_open_date [12:36:34]req_shift_open_date done [12:36:34]produce_requested_data done [12:36:34]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94893,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:36:34]process_action_free close_receipt [12:36:34]json_value_free [12:36:34]json_value_free done [12:36:34]process_json_proto returns [12:36:34]Send response to host [12:36:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94893,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:36:34]free response buf [12:36:34]execute_script done [12:36:34]execute_script returns [12:36:34]free content buf [12:36:34]Sock 7.Close socket [12:36:34]Sock 7.Thread stoped [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:12]accept exits with 9 [12:37:12]New connection [12:37:12]New thread 3066871140 created [12:37:12]Thread 3067014500 joined [12:37:12]Waiting for new connection... [12:37:12] Sock 9.Parse request [12:37:12]Sock 9.Check first char [12:37:12]Sock 9.First char is OK [12:37:12]request: POST /json_proto HTTP/1.0 [12:37:12]Method: POST [12:37:12]URL: /json_proto [12:37:12]Method is POST - this is cgi request [12:37:12]url: /json_proto [12:37:12]query_string will be loaded in cgi processing [12:37:12]execute_cgi json_proto POST (null) [12:37:12]execute_cgi path=json_proto method=POST [12:37:12]POST find Content-Length [12:37:12]Host: 172.17.62.67:8080 [12:37:12]Content-Length: 673 [12:37:12]Content-Type: application/json [12:37:12] [12:37:12]POST finish read [12:37:12]Found Content-Length = 673 [12:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11522", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 58.00, "quantity" : 1.000, "sum" : 58.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 58.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:12]execute_script... [12:37:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11522", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 58.00, "quantity" : 1.000, "sum" : 58.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 58.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:12]POST & json_proto [12:37:12]process_json_proto [12:37:12]json parsed OK: [12:37:12]protocol is kg_v1.0 [12:37:12]action value=close_receipt [12:37:12]process_action close_receipt [12:37:12]cmd_close_receipt [12:37:12]MH_GetDate [12:37:12]Write to MH i2c: F0 00 00 F3 8B 6D [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: F0 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: F0 05 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: F0 05 00 F3 8B 00 06 FB EE 65 C6 [12:37:12]GetLastDocTimeStamp 1710160606 [12:37:12]current date 1710160646 [12:37:12]FM_GetShiftState [12:37:12]SAM_PROTO_GetShiftState [12:37:12]wFMCommunicate request_size=4 [12:37:12]MH_SAM_APDU [12:37:12]CAPDU: 80 13 01 00 [12:37:12]Write to MH i2c: E2 08 00 F4 8B 80 13 01 00 00 00 00 00 FC [12:37:12]Write i2c OK [12:37:12]MH_I2C_Read... [12:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:12]Read from MH i2c: E2 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 0E 00 [12:37:12]MH_I2C_Read... [12:37:12]Read from MH i2c: E2 0E 00 F4 8B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 98 [12:37:12]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:37:12]wFMCommunicate OK [12:37:12]SAM_PROTO_GetShiftState done [12:37:12]FM_GetShiftState done [12:37:12]opened in 1710115571 [12:37:12]opened+sec_in_day 1710201971 [12:37:12]quantity*price = 5800 [12:37:12]sum+1 = 5801 [12:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 58.00 НСП 1% : 0.51 НДС 12% : 6.16 Наличными: 58.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 69 11.03.2024 12:37 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94894 ФПД: 196551220846063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123726&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94894&fm=196551220846063&tin=02508201610067®Number=0000000000090555&sum=5800 0 [12:37:13]StoreToDocumentArchive [12:37:13]shift 326 fd 94894 [12:37:13]save to /storage/0326/doc_00094894 [12:37:13]save last doc name /storage/0326/doc_00094894 to /storage/kkm_last_doc_name [12:37:13]save OK [12:37:13]Clear old archive folders... [12:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=289 [12:37:13]tlvbuf is 0030D750 [12:37:13]SAM_PROTO_ClearQueue [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 09 00 00 [12:37:13]Write to MH i2c: E2 08 00 01 8C 80 09 00 00 00 00 00 00 FF [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 01 8C 00 90 00 01 [12:37:13]RAPDU: 90 00 [12:37:13]wFMCommunicate OK [12:37:13]SAM_PROTO_ClearQueue done [12:37:13]KKMCreateOFDPacket [12:37:13]OFDProtocolAddRootSTLVToBuf [12:37:13]FM_MakeSignedData [12:37:13]FM_MakeSignedData [12:37:13]SAM_PROTO_SignData [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 0D 01 02 [12:37:13]Write to MH i2c: E2 08 00 02 8C 80 0D 01 02 00 00 00 00 07 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 02 8C 00 90 00 02 [12:37:13]RAPDU: 90 00 [12:37:13]wFMCommunicate OK [12:37:13]wFMCommunicate request_size=255 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 16 00 00 00 00 13 04 06 00 A8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 16 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 02 00 00 00 00 07 04 06 00 A8 16 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 06 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [12:37:13]Write to MH i2c: E2 02 01 03 8C 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 16 00 00 00 00 13 04 06 00 A8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 16 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 02 00 00 00 00 07 04 06 00 A8 16 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 06 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 DE [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 03 8C 00 90 00 03 [12:37:13]RAPDU: 90 00 [12:37:13]wFMCommunicate OK [12:37:13]wFMCommunicate request_size=48 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 0D 02 02 2B 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 72 01 00 35 04 06 00 B2 C3 25 B2 DD EF [12:37:13]Write to MH i2c: E2 33 00 04 8C 80 0D 02 02 2B 00 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 72 01 00 35 04 06 00 B2 C3 25 B2 DD EF 00 00 3A [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 03 00 04 8C 00 90 00 04 [12:37:13]RAPDU: 90 00 [12:37:13]wFMCommunicate OK [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 0D 03 02 [12:37:13]Write to MH i2c: E2 08 00 05 8C 80 0D 03 02 00 00 00 00 0C [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 0B 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 0B 00 05 8C 00 FA 0C 9A 9F 34 59 0A 48 90 00 2B [12:37:13]RAPDU: FA 0C 9A 9F 34 59 0A 48 90 00 [12:37:13]wFMCommunicate OK [12:37:13]SAM_PROTO_SignData done [12:37:13]FM_MakeSignedData done [12:37:13]CreateOFDProtocolMessage [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 11 00 00 [12:37:13]Write to MH i2c: E2 08 00 06 8C 80 11 00 00 00 00 00 00 0C [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:13]Read from MH i2c: E2 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 17 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: E2 17 00 06 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5C [12:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:37:13]wFMCommunicate OK [12:37:13]CreateOFDProtocolMessage done [12:37:13]OFDSenderStorePacket 94894 [12:37:13]StoreOFDPacket docnum=94894 [12:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 01 00 00 14 11 2D 01 F6 1B 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 16 00 00 00 00 13 04 06 00 A8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 16 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 02 00 00 00 00 07 04 06 00 A8 16 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 06 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 72 01 00 35 04 06 00 B2 C3 25 B2 DD EF FA 0C 9A 9F 34 59 0A 48 [12:37:13]CheckFolder [12:37:13]dirname=/storage/ofd_packets [12:37:13]CheckFolder done [12:37:13]ProducePacketName [12:37:13]name=ofd_packets/00094894 [12:37:13]NVStorageSaveData ofd_packets/00094894 [12:37:13]File name is /storage/ofd_packets/00094894 [12:37:13]Write 339 bytes [12:37:13]NVStorageSaveData done [12:37:13]OFDSenderStorePacket done [12:37:13]KKMCreateOFDPacket done [12:37:13]NVStorageSaveData kkm_last_timestamp [12:37:13]File name is /storage/kkm_last_timestamp [12:37:13]Write 4 bytes [12:37:13]NVStorageSaveData done [12:37:13]ExternCall_PrintAddStr [12:37:13]wPrintStart [12:37:13]Write to MH i2c: 01 00 00 07 8C 93 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: 01 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: 01 07 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: 01 07 00 07 8C 00 80 00 00 00 FF 0F 28 [12:37:13]RasterBufferAndPrint [12:37:13]line Счет N : (3)11522 [12:37:13]line ИНН: 02508201610067 [12:37:13]line Контрольно-Кассовый Чек [12:37:13]line ПРОДАЖА [12:37:13]line Товар: 5449000189325 [12:37:13]line Холодный чай Fuse персик 0,5л [12:37:13]line 1.000 * 58.00 [12:37:13]line = 58.00 [12:37:13]line НДС 12% НСП 1% [12:37:13]line > о реализуемом товаре [12:37:13]line ИТОГО: 58.00 [12:37:13]line НСП 1% : 0.51 [12:37:13]line НДС 12% : 6.16 [12:37:13]line Наличными: 58.00 [12:37:13]line Безнал.: 0.00 [12:37:13]line Место: АЗС № 6 "Партнер Нефть" [12:37:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:37:13]line СНО: Общий режим [12:37:13]line Чек 69 11.03.2024 12:37 [12:37:13]line Смена: 326 ФФД: 1.0 [12:37:13]line ЗНМ: 0300000009 [12:37:13]line РНМ: 0000000000090555 [12:37:13]line Версия ККМ: 001 [12:37:13]line ФМ: 0000000000874811 [12:37:13]line ФД: 94894 [12:37:13]line ФПД: 196551220846063 [12:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123726&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94894&fm=196551220846063&tin=02508201610067®Number=0000000000090555&sum=5800 [12:37:14]line 0 [12:37:14]OFD Sender: Processing packet 94894 [packets to send 30, broken 29] [12:37:14]ProducePacketName [12:37:14]name=ofd_packets/00094894 [12:37:14]OFD Sender: To server: pG, [12:37:14]CommunicateWithHost lk.salyk.kg:30040 [12:37:14]ConnectInit lk.salyk.kg [12:37:14]written 0, free lines is 4095 [12:37:14]Connected sock=10 [12:37: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 31 31 35 01 00 00 14 11 2D 01 F6 1B 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 16 00 00 00 00 13 04 06 00 A8 16 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 16 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 02 00 00 00 00 07 04 06 00 A8 16 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 06 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 72 01 00 35 04 06 00 B2 C3 25 B2 DD EF FA 0C 9A 9F 34 59 0A 48 [12:37: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 31 31 4F 00 00 00 AE 67 47 00 83 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 72 01 00 F4 03 04 00 60 A6 EE 65 B6 04 01 00 00 A4 73 16 55 1A 91 5F D1 [12:37:14]CommunicateWithHost err = 0 [12:37:14]CheckOFDResponse [12:37:14]1017 (14) - 77093643461234 [12:37:14]1041 (16) - 0000000000874811 [12:37:14]1040 (4) - 94894 [12:37:14]1012 (4) - 11.03.2024 06:36 [12:37:14]1206 (1) - 0 [12:37:14]OFD Sender: Remove packet 94894 [12:37:14]ProducePacketName [12:37:14]name=ofd_packets/00094894 [12:37:14]NVStorageDeleteData [12:37:14]Write to MH i2c: 01 00 00 30 8C BC [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: 01 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: 01 07 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: 01 07 00 30 8C 00 80 00 00 00 64 0D B4 [12:37:14]RasterBufferAndPrint [12:37:14]line [12:37:14]line [12:37:14]line [12:37:14]line [12:37:14]line [12:37:14]written 0, free lines is 3433 [12:37:14]process_action close_receipt done [12:37:14]requested_data is exist [12:37:14]produce_requested_data [12:37:14]requested_item fm.sn is exist - process it [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 11 00 00 [12:37:14]Write to MH i2c: E2 08 00 37 8C 80 11 00 00 00 00 00 00 3D [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 17 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 17 00 37 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8D [12:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:37:14]wFMCommunicate OK [12:37:14]requested_item fd.num is exist - process it [12:37:14]SAM_PROTO_GetFieldsCounters [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 13 00 00 [12:37:14]Write to MH i2c: E2 08 00 38 8C 80 13 00 00 00 00 00 00 40 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 62 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 62 00 38 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AE 72 01 00 0E 04 04 00 46 01 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 94 [12:37: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AE 72 01 00 0E 04 04 00 46 01 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 [12:37:14]wFMCommunicate OK [12:37:14]SAM_PROTO_GetFieldsCounters done [12:37:14]requested_item shift.num is exist - process it [12:37:14]requested_item shift.opened is exist - process it [12:37:14]req_shift_opened [12:37:14]FM_GetShiftState [12:37:14]SAM_PROTO_GetShiftState [12:37:14]wFMCommunicate request_size=4 [12:37:14]MH_SAM_APDU [12:37:14]CAPDU: 80 13 01 00 [12:37:14]Write to MH i2c: E2 08 00 39 8C 80 13 01 00 00 00 00 00 42 [12:37:14]Write i2c OK [12:37:14]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 0E 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 0E 00 39 8C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DE [12:37:14]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:37:14]wFMCommunicate OK [12:37:14]SAM_PROTO_GetShiftState done [12:37:14]FM_GetShiftState done [12:37:14]req_shift_opened done [12:37:14]requested_item shift.open_date is exist - process it [12:37:14]req_shift_open_date [12:37:14]req_shift_open_date done [12:37:14]produce_requested_data done [12:37:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94894,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:37:14]process_action_free close_receipt [12:37:14]json_value_free [12:37:14]json_value_free done [12:37:14]process_json_proto returns [12:37:14]Send response to host [12:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94894,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:37:14]free response buf [12:37:14]execute_script done [12:37:14]execute_script returns [12:37:14]free content buf [12:37:14]Sock 9.Close socket [12:37:14]Sock 9.Thread stoped [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:49]accept exits with 7 [12:38:49]New connection [12:38:49]New thread 3067014500 created [12:38:49]Thread 3066871140 joined [12:38:49]Waiting for new connection... [12:38:49] Sock 7.Parse request [12:38:49]Sock 7.Check first char [12:38:49]Sock 7.First char is OK [12:38:49]request: POST /json_proto HTTP/1.0 [12:38:49]Method: POST [12:38:49]URL: /json_proto [12:38:49]Method is POST - this is cgi request [12:38:49]url: /json_proto [12:38:49]query_string will be loaded in cgi processing [12:38:49]execute_cgi json_proto POST (null) [12:38:49]execute_cgi path=json_proto method=POST [12:38:49]POST find Content-Length [12:38:49]Host: 172.17.62.67:8080 [12:38:49]Content-Length: 677 [12:38:49]Content-Type: application/json [12:38:49] [12:38:49]POST finish read [12:38:49]Found Content-Length = 677 [12:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.980, "sum" : 250.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:49]execute_script... [12:38: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)195848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.980, "sum" : 250.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:49]POST & json_proto [12:38:49]process_json_proto [12:38:49]json parsed OK: [12:38:49]protocol is kg_v1.0 [12:38:49]action value=close_receipt [12:38:49]process_action close_receipt [12:38:49]cmd_close_receipt [12:38:49]MH_GetDate [12:38:49]Write to MH i2c: F0 00 00 3A 8C B5 [12:38:49]Write i2c OK [12:38:49]MH_I2C_Read... [12:38:49]Read from MH i2c: F0 [12:38:49]MH_I2C_Read... [12:38:49]Read from MH i2c: F0 05 00 [12:38:49]MH_I2C_Read... [12:38:49]Read from MH i2c: F0 05 00 3A 8C 00 67 FB EE 65 6F [12:38:49]GetLastDocTimeStamp 1710160646 [12:38:49]current date 1710160743 [12:38:49]FM_GetShiftState [12:38:49]SAM_PROTO_GetShiftState [12:38:49]wFMCommunicate request_size=4 [12:38:49]MH_SAM_APDU [12:38:49]CAPDU: 80 13 01 00 [12:38:49]Write to MH i2c: E2 08 00 3B 8C 80 13 01 00 00 00 00 00 44 [12:38:49]Write i2c OK [12:38:49]MH_I2C_Read... [12:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:49]Read from MH i2c: E2 [12:38:49]MH_I2C_Read... [12:38:49]Read from MH i2c: E2 0E 00 [12:38:49]MH_I2C_Read... [12:38:49]Read from MH i2c: E2 0E 00 3B 8C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E0 [12:38:49]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:38:49]wFMCommunicate OK [12:38:49]SAM_PROTO_GetShiftState done [12:38:49]FM_GetShiftState done [12:38:49]opened in 1710115571 [12:38:49]opened+sec_in_day 1710201971 [12:38:49]quantity*price = 25034 [12:38:49]sum+1 = 25035 [12:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 70 11.03.2024 12:39 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94895 ФПД: 22607446332327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123903&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94895&fm=22607446332327&tin=02508201610067®Number=0000000000090555&sum=25000 [12:38:50]StoreToDocumentArchive [12:38:50]shift 326 fd 94895 [12:38:50]save to /storage/0326/doc_00094895 [12:38:50]save last doc name /storage/0326/doc_00094895 to /storage/kkm_last_doc_name [12:38:50]save OK [12:38:50]Clear old archive folders... [12:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:50]tlvbuf is 0030D610 [12:38:50]SAM_PROTO_ClearQueue [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 09 00 00 [12:38:50]Write to MH i2c: E2 08 00 48 8C 80 09 00 00 00 00 00 00 46 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 03 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 03 00 48 8C 00 90 00 48 [12:38:50]RAPDU: 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_ClearQueue done [12:38:50]KKMCreateOFDPacket [12:38:50]OFDProtocolAddRootSTLVToBuf [12:38:50]FM_MakeSignedData [12:38:50]FM_MakeSignedData [12:38:50]SAM_PROTO_SignData [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 0D 01 02 [12:38:50]Write to MH i2c: E2 08 00 49 8C 80 0D 01 02 00 00 00 00 4E [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 03 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 03 00 49 8C 00 90 00 49 [12:38:50]RAPDU: 90 00 [12:38:50]wFMCommunicate OK [12:38:50]wFMCommunicate request_size=255 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 67 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 72 01 00 35 04 06 00 14 [12:38:50]Write to MH i2c: E2 02 01 4A 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 67 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 72 01 00 35 04 06 00 14 00 00 97 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 03 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 03 00 4A 8C 00 90 00 4A [12:38:50]RAPDU: 90 00 [12:38:50]wFMCommunicate OK [12:38:50]wFMCommunicate request_size=10 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 0D 02 02 05 8F B4 CE D3 A7 [12:38:50]Write to MH i2c: E2 0D 00 4B 8C 80 0D 02 02 05 00 8F B4 CE D3 A7 00 00 E6 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:51]Read from MH i2c: E2 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 03 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 03 00 4B 8C 00 90 00 4B [12:38:51]RAPDU: 90 00 [12:38:51]wFMCommunicate OK [12:38:51]wFMCommunicate request_size=4 [12:38:51]MH_SAM_APDU [12:38:51]CAPDU: 80 0D 03 02 [12:38:51]Write to MH i2c: E2 08 00 4C 8C 80 0D 03 02 00 00 00 00 53 [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:51]Read from MH i2c: E2 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 0B 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 0B 00 4C 8C 00 D0 4D B2 95 6A 0F 76 DE 90 00 85 [12:38:51]RAPDU: D0 4D B2 95 6A 0F 76 DE 90 00 [12:38:51]wFMCommunicate OK [12:38:51]SAM_PROTO_SignData done [12:38:51]FM_MakeSignedData done [12:38:51]CreateOFDProtocolMessage [12:38:51]wFMCommunicate request_size=4 [12:38:51]MH_SAM_APDU [12:38:51]CAPDU: 80 11 00 00 [12:38:51]Write to MH i2c: E2 08 00 4D 8C 80 11 00 00 00 00 00 00 53 [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:51]Read from MH i2c: E2 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 17 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 17 00 4D 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [12:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:38:51]wFMCommunicate OK [12:38:51]CreateOFDProtocolMessage done [12:38:51]OFDSenderStorePacket 94895 [12:38:51]StoreOFDPacket docnum=94895 [12:38:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 9F 36 07 01 B9 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 67 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 72 01 00 35 04 06 00 14 8F B4 CE D3 A7 D0 4D B2 95 6A 0F 76 DE [12:38:51]CheckFolder [12:38:51]dirname=/storage/ofd_packets [12:38:51]CheckFolder done [12:38:51]ProducePacketName [12:38:51]name=ofd_packets/00094895 [12:38:51]NVStorageSaveData ofd_packets/00094895 [12:38:51]File name is /storage/ofd_packets/00094895 [12:38:51]Write 301 bytes [12:38:51]NVStorageSaveData done [12:38:51]OFDSenderStorePacket done [12:38:51]KKMCreateOFDPacket done [12:38:51]NVStorageSaveData kkm_last_timestamp [12:38:51]File name is /storage/kkm_last_timestamp [12:38:51]Write 4 bytes [12:38:51]NVStorageSaveData done [12:38:51]ExternCall_PrintAddStr [12:38:51]wPrintStart [12:38:51]Write to MH i2c: 01 00 00 4E 8C DA [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: 01 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: 01 07 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: 01 07 00 4E 8C 00 80 00 00 00 FF 0F 6F [12:38:51]RasterBufferAndPrint [12:38:51]line Счет N : (1)195848 [12:38:51]line ИНН: 02508201610067 [12:38:51]line Контрольно-Кассовый Чек [12:38:51]line ПРОДАЖА [12:38:51]line ТРК (МРК, ГНК) : 22 [12:38:51]line Товар: 2710124130 [12:38:51]line Аи-92-К-5 [12:38:51]line 3.980 * 62.90 [12:38:51]line = 250.34 [12:38:51]line НДС 12% НСП 1% [12:38:51]line > о реализуемом товаре [12:38:51]line ОКРУГЛЕНИЕ: -0.34 [12:38:51]line ИТОГО: 250.00 [12:38:51]line Внесено: 250.00 [12:38:51]line СДАЧА: 0.00 [12:38:51]line НСП 1% : 2.21 [12:38:51]line НДС 12% : 26.58 [12:38:51]line Наличными: 250.00 [12:38:51]line Безнал.: 0.00 [12:38:51]line Место: АЗС № 6 "Партнер Нефть" [12:38:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:38:51]line СНО: Общий режим [12:38:51]line Чек 70 11.03.2024 12:39 [12:38:51]line Смена: 326 ФФД: 1.0 [12:38:51]line ЗНМ: 0300000009 [12:38:51]line РНМ: 0000000000090555 [12:38:51]line Версия ККМ: 001 [12:38:51]line ФМ: 0000000000874811 [12:38:51]line ФД: 94895 [12:38:51]line ФПД: 22607446332327 [12:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T123903&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94895&fm=22607446332327&tin=02508201610067®Number=0000000000090555&sum=25000 [12:38:51]OFD Sender: Processing packet 94895 [packets to send 30, broken 29] [12:38:51]ProducePacketName [12:38:51]name=ofd_packets/00094895 [12:38:51]OFD Sender: To server: pG, [12:38:51]CommunicateWithHost lk.salyk.kg:30040 [12:38:51]ConnectInit lk.salyk.kg [12:38:51]written 0, free lines is 4095 [12:38:51]Connected sock=10 [12:38: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 31 31 0F 01 00 00 9F 36 07 01 B9 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 0F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 67 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 72 01 00 35 04 06 00 14 8F B4 CE D3 A7 D0 4D B2 95 6A 0F 76 DE [12:38: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 31 31 4F 00 00 00 90 41 47 00 6D 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 31 31 10 04 04 00 AF 72 01 00 F4 03 04 00 C1 A6 EE 65 B6 04 01 00 00 79 D6 87 EA 88 D4 7F 4C [12:38:51]CommunicateWithHost err = 0 [12:38:51]CheckOFDResponse [12:38:51]1017 (14) - 77093643461234 [12:38:51]1041 (16) - 0000000000874811 [12:38:51]1040 (4) - 94895 [12:38:51]1012 (4) - 11.03.2024 06:37 [12:38:51]1206 (1) - 0 [12:38:51]OFD Sender: Remove packet 94895 [12:38:51]ProducePacketName [12:38:51]name=ofd_packets/00094895 [12:38:51]NVStorageDeleteData [12:38:51]Write to MH i2c: 01 00 00 79 8C 05 [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: 01 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: 01 07 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: 01 07 00 79 8C 00 80 00 00 00 48 0D E1 [12:38:51]RasterBufferAndPrint [12:38:51]line [12:38:51]line [12:38:51]line [12:38:51]line [12:38:51]line [12:38:51]written 0, free lines is 3406 [12:38:51]process_action close_receipt done [12:38:51]requested_data is exist [12:38:51]produce_requested_data [12:38:51]requested_item fm.sn is exist - process it [12:38:51]wFMCommunicate request_size=4 [12:38:51]MH_SAM_APDU [12:38:51]CAPDU: 80 11 00 00 [12:38:51]Write to MH i2c: E2 08 00 80 8C 80 11 00 00 00 00 00 00 86 [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:51]Read from MH i2c: E2 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 17 00 [12:38:51]MH_I2C_Read... [12:38:51]Read from MH i2c: E2 17 00 80 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [12:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:38:51]wFMCommunicate OK [12:38:51]requested_item fd.num is exist - process it [12:38:51]SAM_PROTO_GetFieldsCounters [12:38:51]wFMCommunicate request_size=4 [12:38:51]MH_SAM_APDU [12:38:51]CAPDU: 80 13 00 00 [12:38:51]Write to MH i2c: E2 08 00 81 8C 80 13 00 00 00 00 00 00 89 [12:38:51]Write i2c OK [12:38:51]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 62 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 62 00 81 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AF 72 01 00 0E 04 04 00 46 01 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 E1 [12:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AF 72 01 00 0E 04 04 00 46 01 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 [12:38:52]wFMCommunicate OK [12:38:52]SAM_PROTO_GetFieldsCounters done [12:38:52]requested_item shift.num is exist - process it [12:38:52]requested_item shift.opened is exist - process it [12:38:52]req_shift_opened [12:38:52]FM_GetShiftState [12:38:52]SAM_PROTO_GetShiftState [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 13 01 00 [12:38:52]Write to MH i2c: E2 08 00 82 8C 80 13 01 00 00 00 00 00 8B [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:52]OFD Sender: No OFD packet to send [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 0E 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 0E 00 82 8C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 27 [12:38:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:38:52]wFMCommunicate OK [12:38:52]SAM_PROTO_GetShiftState done [12:38:52]FM_GetShiftState done [12:38:52]req_shift_opened done [12:38:52]requested_item shift.open_date is exist - process it [12:38:52]req_shift_open_date [12:38:52]req_shift_open_date done [12:38:52]produce_requested_data done [12:38:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94895,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:38:52]process_action_free close_receipt [12:38:52]json_value_free [12:38:52]json_value_free done [12:38:52]process_json_proto returns [12:38:52]Send response to host [12:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94895,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:38:52]free response buf [12:38:52]execute_script done [12:38:52]execute_script returns [12:38:52]free content buf [12:38:52]Sock 7.Close socket [12:38:52]Sock 7.Thread stoped [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:42]int [12:39:42]Write to MH i2c: 01 00 00 83 8C 0F [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 07 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 07 00 83 8C 00 88 00 00 00 FF 0F AC [12:39:42]state=0 [12:39:42]Key pressed [12:39:42]Feed [12:39:42]Write to MH i2c: D8 00 00 84 8C E7 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: D8 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: D8 01 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: D8 01 00 84 8C 00 E8 [12:39:42]int [12:39:42]Write to MH i2c: 01 00 00 85 8C 11 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 07 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 07 00 85 8C 00 80 00 00 00 FF 0F A6 [12:39:42]state=2 [12:39:42]Stop feed [12:39:42]int [12:39:42]Write to MH i2c: 01 00 00 86 8C 12 [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 07 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: 01 07 00 86 8C 00 88 00 00 00 FF 0F AF [12:39:42]state=0 [12:39:42]Key pressed [12:39:42]Feed [12:39:42]Write to MH i2c: D8 00 00 87 8C EA [12:39:42]Write i2c OK [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: D8 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: D8 01 00 [12:39:42]MH_I2C_Read... [12:39:42]Read from MH i2c: D8 01 00 87 8C 00 EB [12:39:43]int [12:39:43]Write to MH i2c: 01 00 00 88 8C 14 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 88 8C 00 80 00 00 00 FF 0F A9 [12:39:43]state=2 [12:39:43]Stop feed [12:39:43]int [12:39:43]Write to MH i2c: 01 00 00 89 8C 15 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 89 8C 00 88 00 00 00 FF 0F B2 [12:39:43]state=0 [12:39:43]Key pressed [12:39:43]Feed [12:39:43]Write to MH i2c: D8 00 00 8A 8C ED [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 01 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 01 00 8A 8C 00 EE [12:39:43]int [12:39:43]Write to MH i2c: 01 00 00 8B 8C 17 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 8B 8C 00 80 00 00 00 F5 0F A2 [12:39:43]state=2 [12:39:43]Stop feed [12:39:43]int [12:39:43]Write to MH i2c: 01 00 00 8C 8C 18 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 8C 8C 00 88 00 00 00 F6 0F AC [12:39:43]state=0 [12:39:43]Key pressed [12:39:43]Feed [12:39:43]Write to MH i2c: D8 00 00 8D 8C F0 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 01 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 01 00 8D 8C 00 F1 [12:39:43]int [12:39:43]Write to MH i2c: 01 00 00 8E 8C 1A [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 8E 8C 00 80 00 00 00 FF 0F AF [12:39:43]state=2 [12:39:43]Stop feed [12:39:43]int [12:39:43]Write to MH i2c: 01 00 00 8F 8C 1B [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: 01 07 00 8F 8C 00 88 00 00 00 FF 0F B8 [12:39:43]state=0 [12:39:43]Key pressed [12:39:43]Feed [12:39:43]Write to MH i2c: D8 00 00 90 8C F3 [12:39:43]Write i2c OK [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 01 00 [12:39:43]MH_I2C_Read... [12:39:43]Read from MH i2c: D8 01 00 90 8C 00 F4 [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 91 8C 1D [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 91 8C 00 80 00 00 00 F5 0F A8 [12:39:44]state=2 [12:39:44]Stop feed [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 92 8C 1E [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 92 8C 00 88 00 00 00 F5 0F B1 [12:39:44]state=0 [12:39:44]Key pressed [12:39:44]Feed [12:39:44]Write to MH i2c: D8 00 00 93 8C F6 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 01 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 01 00 93 8C 00 F7 [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 94 8C 20 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 94 8C 00 80 00 00 00 FF 0F B5 [12:39:44]state=2 [12:39:44]Stop feed [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 95 8C 21 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 95 8C 00 88 00 00 00 FF 0F BE [12:39:44]state=0 [12:39:44]Key pressed [12:39:44]Feed [12:39:44]Write to MH i2c: D8 00 00 96 8C F9 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 01 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 01 00 96 8C 00 FA [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 97 8C 23 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 97 8C 00 80 00 00 00 F5 0F AE [12:39:44]state=2 [12:39:44]Stop feed [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 98 8C 24 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 98 8C 00 88 00 00 00 F5 0F B7 [12:39:44]state=0 [12:39:44]Key pressed [12:39:44]Feed [12:39:44]Write to MH i2c: D8 00 00 99 8C FC [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 01 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 01 00 99 8C 00 FD [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 9A 8C 26 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 9A 8C 00 80 00 00 00 F5 0F B1 [12:39:44]state=2 [12:39:44]Stop feed [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 9B 8C 27 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: 01 07 00 9B 8C 00 88 00 00 00 F5 0F BA [12:39:44]state=0 [12:39:44]Key pressed [12:39:44]Feed [12:39:44]Write to MH i2c: D8 00 00 9C 8C FF [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 01 00 [12:39:44]MH_I2C_Read... [12:39:44]Read from MH i2c: D8 01 00 9C 8C 00 00 [12:39:44]int [12:39:44]Write to MH i2c: 01 00 00 9D 8C 29 [12:39:44]Write i2c OK [12:39:44]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 07 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 07 00 9D 8C 00 80 00 00 00 F6 0F B5 [12:39:45]state=2 [12:39:45]Stop feed [12:39:45]int [12:39:45]Write to MH i2c: 01 00 00 9E 8C 2A [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 07 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 07 00 9E 8C 00 88 00 00 00 F8 0F C0 [12:39:45]state=0 [12:39:45]Key pressed [12:39:45]Feed [12:39:45]Write to MH i2c: D8 00 00 9F 8C 02 [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: D8 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: D8 01 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: D8 01 00 9F 8C 00 03 [12:39:45]int [12:39:45]Write to MH i2c: 01 00 00 A0 8C 2C [12:39:45]Write i2c OK [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 07 00 [12:39:45]MH_I2C_Read... [12:39:45]Read from MH i2c: 01 07 00 A0 8C 00 80 00 00 00 FF 0F C1 [12:39:45]state=2 [12:39:45]Stop feed [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:19]accept exits with 9 [12:40:19]New connection [12:40:19]New thread 3066871140 created [12:40:19]Thread 3067014500 joined [12:40:19]Waiting for new connection... [12:40:19] Sock 9.Parse request [12:40:19]Sock 9.Check first char [12:40:19]Sock 9.First char is OK [12:40:19]request: POST /json_proto HTTP/1.0 [12:40:19]Method: POST [12:40:19]URL: /json_proto [12:40:19]Method is POST - this is cgi request [12:40:19]url: /json_proto [12:40:19]query_string will be loaded in cgi processing [12:40:19]execute_cgi json_proto POST (null) [12:40:19]execute_cgi path=json_proto method=POST [12:40:19]POST find Content-Length [12:40:19]Host: 172.17.62.67:8080 [12:40:19]Content-Length: 677 [12:40:19]Content-Type: application/json [12:40:19] [12:40:19]POST finish read [12:40:19]Found Content-Length = 677 [12:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [12:40:19]execute_script... [12:40: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)195849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [12:40:19]POST & json_proto [12:40:19]process_json_proto [12:40:19]json parsed OK: [12:40:19]protocol is kg_v1.0 [12:40:19]action value=close_receipt [12:40:19]process_action close_receipt [12:40:19]cmd_close_receipt [12:40:19]MH_GetDate [12:40:19]Write to MH i2c: F0 00 00 A1 8C 1C [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: F0 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: F0 05 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: F0 05 00 A1 8C 00 C2 FB EE 65 31 [12:40:19]GetLastDocTimeStamp 1710160743 [12:40:19]current date 1710160834 [12:40:19]FM_GetShiftState [12:40:19]SAM_PROTO_GetShiftState [12:40:19]wFMCommunicate request_size=4 [12:40:19]MH_SAM_APDU [12:40:19]CAPDU: 80 13 01 00 [12:40:19]Write to MH i2c: E2 08 00 A2 8C 80 13 01 00 00 00 00 00 AB [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:19]Read from MH i2c: E2 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 0E 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 0E 00 A2 8C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 47 [12:40:19]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:40:19]wFMCommunicate OK [12:40:19]SAM_PROTO_GetShiftState done [12:40:19]FM_GetShiftState done [12:40:19]opened in 1710115571 [12:40:19]opened+sec_in_day 1710201971 [12:40:19]quantity*price = 50005 [12:40:19]sum+1 = 50007 [12:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 71 11.03.2024 12:40 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94896 ФПД: 230208991687666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T124034&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94896&fm=230208991687666&tin=02508201610067®Number=0000000000090555&sum=50000 [12:40:20]StoreToDocumentArchive [12:40:20]shift 326 fd 94896 [12:40:20]save to /storage/0326/doc_00094896 [12:40:20]save last doc name /storage/0326/doc_00094896 to /storage/kkm_last_doc_name [12:40:20]save OK [12:40:20]Clear old archive folders... [12:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:20]tlvbuf is 0026EE10 [12:40:20]SAM_PROTO_ClearQueue [12:40:20]wFMCommunicate request_size=4 [12:40:20]MH_SAM_APDU [12:40:20]CAPDU: 80 09 00 00 [12:40:20]Write to MH i2c: E2 08 00 AF 8C 80 09 00 00 00 00 00 00 AD [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:20]Read from MH i2c: E2 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 03 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 03 00 AF 8C 00 90 00 AF [12:40:20]RAPDU: 90 00 [12:40:20]wFMCommunicate OK [12:40:20]SAM_PROTO_ClearQueue done [12:40:20]KKMCreateOFDPacket [12:40:20]OFDProtocolAddRootSTLVToBuf [12:40:20]FM_MakeSignedData [12:40:20]FM_MakeSignedData [12:40:20]SAM_PROTO_SignData [12:40:20]wFMCommunicate request_size=4 [12:40:20]MH_SAM_APDU [12:40:20]CAPDU: 80 0D 01 02 [12:40:20]Write to MH i2c: E2 08 00 B0 8C 80 0D 01 02 00 00 00 00 B5 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:20]Read from MH i2c: E2 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 03 00 [12:40:20]MH_I2C_Read... [12:40:20]Read from MH i2c: E2 03 00 B0 8C 00 90 00 B0 [12:40:20]RAPDU: 90 00 [12:40:20]wFMCommunicate OK [12:40:20]wFMCommunicate request_size=255 [12:40:20]MH_SAM_APDU [12:40: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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 C2 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 72 01 00 35 04 06 00 D1 [12:40:20]Write to MH i2c: E2 02 01 B1 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 C2 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 72 01 00 35 04 06 00 D1 00 00 F0 [12:40:20]Write i2c OK [12:40:20]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 03 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 03 00 B1 8C 00 90 00 B1 [12:40:21]RAPDU: 90 00 [12:40:21]wFMCommunicate OK [12:40:21]wFMCommunicate request_size=10 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 0D 02 02 05 5F B5 2C 73 F2 [12:40:21]Write to MH i2c: E2 0D 00 B2 8C 80 0D 02 02 05 00 5F B5 2C 73 F2 00 00 67 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 03 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 03 00 B2 8C 00 90 00 B2 [12:40:21]RAPDU: 90 00 [12:40:21]wFMCommunicate OK [12:40:21]wFMCommunicate request_size=4 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 0D 03 02 [12:40:21]Write to MH i2c: E2 08 00 B3 8C 80 0D 03 02 00 00 00 00 BA [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 0B 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 0B 00 B3 8C 00 01 0A F3 19 F7 F4 84 21 90 00 62 [12:40:21]RAPDU: 01 0A F3 19 F7 F4 84 21 90 00 [12:40:21]wFMCommunicate OK [12:40:21]SAM_PROTO_SignData done [12:40:21]FM_MakeSignedData done [12:40:21]CreateOFDProtocolMessage [12:40:21]wFMCommunicate request_size=4 [12:40:21]MH_SAM_APDU [12:40:21]CAPDU: 80 11 00 00 [12:40:21]Write to MH i2c: E2 08 00 B4 8C 80 11 00 00 00 00 00 00 BA [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:21]Read from MH i2c: E2 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 17 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: E2 17 00 B4 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0A [12:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:40:21]wFMCommunicate OK [12:40:21]CreateOFDProtocolMessage done [12:40:21]OFDSenderStorePacket 94896 [12:40:21]StoreOFDPacket docnum=94896 [12:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E6 A8 07 01 9D 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 C2 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 72 01 00 35 04 06 00 D1 5F B5 2C 73 F2 01 0A F3 19 F7 F4 84 21 [12:40:21]CheckFolder [12:40:21]dirname=/storage/ofd_packets [12:40:21]CheckFolder done [12:40:21]ProducePacketName [12:40:21]name=ofd_packets/00094896 [12:40:21]NVStorageSaveData ofd_packets/00094896 [12:40:21]File name is /storage/ofd_packets/00094896 [12:40:21]Write 301 bytes [12:40:21]NVStorageSaveData done [12:40:21]OFDSenderStorePacket done [12:40:21]KKMCreateOFDPacket done [12:40:21]NVStorageSaveData kkm_last_timestamp [12:40:21]File name is /storage/kkm_last_timestamp [12:40:21]Write 4 bytes [12:40:21]NVStorageSaveData done [12:40:21]ExternCall_PrintAddStr [12:40:21]wPrintStart [12:40:21]Write to MH i2c: 01 00 00 B5 8C 41 [12:40:21]Write i2c OK [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: 01 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: 01 07 00 [12:40:21]MH_I2C_Read... [12:40:21]Read from MH i2c: 01 07 00 B5 8C 00 80 00 00 00 FF 0F D6 [12:40:21]RasterBufferAndPrint [12:40:21]line Счет N : (1)195849 [12:40:21]line ИНН: 02508201610067 [12:40:21]line Контрольно-Кассовый Чек [12:40:21]line ПРОДАЖА [12:40:21]line ТРК (МРК, ГНК) : 22 [12:40:21]line Товар: 2710124130 [12:40:21]line Аи-92-К-5 [12:40:21]line 7.950 * 62.90 [12:40:21]line = 500.06 [12:40:21]line НДС 12% НСП 1% [12:40:21]line > о реализуемом товаре [12:40:21]line ОКРУГЛЕНИЕ: -0.06 [12:40:21]line ИТОГО: 500.00 [12:40:21]line Внесено: 500.00 [12:40:21]line СДАЧА: 0.00 [12:40:21]line НСП 1% : 4.42 [12:40:21]line НДС 12% : 53.10 [12:40:21]line Наличными: 500.00 [12:40:21]line Безнал.: 0.00 [12:40:21]line Место: АЗС № 6 "Партнер Нефть" [12:40:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:40:21]line СНО: Общий режим [12:40:21]line Чек 71 11.03.2024 12:40 [12:40:21]line Смена: 326 ФФД: 1.0 [12:40:21]line ЗНМ: 0300000009 [12:40:21]line РНМ: 0000000000090555 [12:40:21]line Версия ККМ: 001 [12:40:21]line ФМ: 0000000000874811 [12:40:21]line ФД: 94896 [12:40:21]line ФПД: 230208991687666 [12:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T124034&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94896&fm=230208991687666&tin=02508201610067®Number=0000000000090555&sum=50000 [12:40:21]OFD Sender: Processing packet 94896 [packets to send 30, broken 29] [12:40:21]ProducePacketName [12:40:21]name=ofd_packets/00094896 [12:40:21]OFD Sender: To server: pG, [12:40:21]CommunicateWithHost lk.salyk.kg:30040 [12:40:21]ConnectInit lk.salyk.kg [12:40:21]written 0, free lines is 4095 [12:40:21]Connected sock=10 [12:40: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 31 31 0F 01 00 00 E6 A8 07 01 9D 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 C2 FB EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 72 01 00 35 04 06 00 D1 5F B5 2C 73 F2 01 0A F3 19 F7 F4 84 21 [12:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6F 65 47 00 59 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 72 01 00 F4 03 04 00 1B A7 EE 65 B6 04 01 00 00 52 61 69 88 42 DA 49 04 [12:40:21]CommunicateWithHost err = 0 [12:40:21]CheckOFDResponse [12:40:21]1017 (14) - 77093643461234 [12:40:21]1041 (16) - 0000000000874811 [12:40:21]1040 (4) - 94896 [12:40:21]1012 (4) - 11.03.2024 06:39 [12:40:21]1206 (1) - 0 [12:40:21]OFD Sender: Remove packet 94896 [12:40:21]ProducePacketName [12:40:22]name=ofd_packets/00094896 [12:40:22]NVStorageDeleteData [12:40:22]Write to MH i2c: 01 00 00 E0 8C 6C [12:40:22]Write i2c OK [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: 01 [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: 01 07 00 [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: 01 07 00 E0 8C 00 80 00 00 00 4B 0D 4B [12:40:22]RasterBufferAndPrint [12:40:22]line [12:40:22]line [12:40:22]line [12:40:22]line [12:40:22]line [12:40:22]written 0, free lines is 3409 [12:40:22]process_action close_receipt done [12:40:22]requested_data is exist [12:40:22]produce_requested_data [12:40:22]requested_item fm.sn is exist - process it [12:40:22]wFMCommunicate request_size=4 [12:40:22]MH_SAM_APDU [12:40:22]CAPDU: 80 11 00 00 [12:40:22]Write to MH i2c: E2 08 00 E7 8C 80 11 00 00 00 00 00 00 ED [12:40:22]Write i2c OK [12:40:22]MH_I2C_Read... [12:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:22]Read from MH i2c: E2 [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: E2 17 00 [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: E2 17 00 E7 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3D [12:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:40:22]wFMCommunicate OK [12:40:22]requested_item fd.num is exist - process it [12:40:22]SAM_PROTO_GetFieldsCounters [12:40:22]wFMCommunicate request_size=4 [12:40:22]MH_SAM_APDU [12:40:22]CAPDU: 80 13 00 00 [12:40:22]Write to MH i2c: E2 08 00 E8 8C 80 13 00 00 00 00 00 00 F0 [12:40:22]Write i2c OK [12:40:22]MH_I2C_Read... [12:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:22]Read from MH i2c: E2 [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: E2 62 00 [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: E2 62 00 E8 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B0 72 01 00 0E 04 04 00 46 01 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 4C [12:40: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B0 72 01 00 0E 04 04 00 46 01 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 [12:40:22]wFMCommunicate OK [12:40:22]SAM_PROTO_GetFieldsCounters done [12:40:22]requested_item shift.num is exist - process it [12:40:22]requested_item shift.opened is exist - process it [12:40:22]req_shift_opened [12:40:22]FM_GetShiftState [12:40:22]SAM_PROTO_GetShiftState [12:40:22]wFMCommunicate request_size=4 [12:40:22]MH_SAM_APDU [12:40:22]CAPDU: 80 13 01 00 [12:40:22]Write to MH i2c: E2 08 00 E9 8C 80 13 01 00 00 00 00 00 F2 [12:40:22]Write i2c OK [12:40:22]MH_I2C_Read... [12:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:22]Read from MH i2c: E2 [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: E2 0E 00 [12:40:22]MH_I2C_Read... [12:40:22]Read from MH i2c: E2 0E 00 E9 8C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 8E [12:40:22]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:40:22]wFMCommunicate OK [12:40:22]SAM_PROTO_GetShiftState done [12:40:22]FM_GetShiftState done [12:40:22]req_shift_opened done [12:40:22]requested_item shift.open_date is exist - process it [12:40:22]req_shift_open_date [12:40:22]req_shift_open_date done [12:40:22]produce_requested_data done [12:40:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94896,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:40:22]process_action_free close_receipt [12:40:22]json_value_free [12:40:22]json_value_free done [12:40:22]process_json_proto returns [12:40:22]Send response to host [12:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94896,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:40:22]free response buf [12:40:22]execute_script done [12:40:22]execute_script returns [12:40:22]free content buf [12:40:22]Sock 9.Close socket [12:40:22]Sock 9.Thread stoped [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:40]accept exits with 7 [12:44:40]New connection [12:44:40]New thread 3067014500 created [12:44:40]Thread 3066871140 joined [12:44:40]Waiting for new connection... [12:44:40] Sock 7.Parse request [12:44:40]Sock 7.Check first char [12:44:40]Sock 7.First char is OK [12:44:40]request: POST /json_proto HTTP/1.0 [12:44:40]Method: POST [12:44:40]URL: /json_proto [12:44:40]Method is POST - this is cgi request [12:44:40]url: /json_proto [12:44:40]query_string will be loaded in cgi processing [12:44:40]execute_cgi json_proto POST (null) [12:44:40]execute_cgi path=json_proto method=POST [12:44:40]POST find Content-Length [12:44:40]Host: 172.17.62.67:8080 [12:44:40]Content-Length: 677 [12:44:40]Content-Type: application/json [12:44:40] [12:44:40]POST finish read [12:44:40]Found Content-Length = 677 [12:44:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "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" ] } } [12:44:40]execute_script... [12:44: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)195850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "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" ] } } [12:44:40]POST & json_proto [12:44:40]process_json_proto [12:44:40]json parsed OK: [12:44:40]protocol is kg_v1.0 [12:44:40]action value=close_receipt [12:44:40]process_action close_receipt [12:44:40]cmd_close_receipt [12:44:40]MH_GetDate [12:44:40]Write to MH i2c: F0 00 00 EA 8C 65 [12:44:40]Write i2c OK [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: F0 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: F0 05 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: F0 05 00 EA 8C 00 C7 FC EE 65 80 [12:44:40]GetLastDocTimeStamp 1710160834 [12:44:40]current date 1710161095 [12:44:40]FM_GetShiftState [12:44:40]SAM_PROTO_GetShiftState [12:44:40]wFMCommunicate request_size=4 [12:44:40]MH_SAM_APDU [12:44:40]CAPDU: 80 13 01 00 [12:44:40]Write to MH i2c: E2 08 00 EB 8C 80 13 01 00 00 00 00 00 F4 [12:44:40]Write i2c OK [12:44:40]MH_I2C_Read... [12:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:40]Read from MH i2c: E2 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 0E 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 0E 00 EB 8C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 90 [12:44:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:44:40]wFMCommunicate OK [12:44:40]SAM_PROTO_GetShiftState done [12:44:40]FM_GetShiftState done [12:44:40]opened in 1710115571 [12:44:40]opened+sec_in_day 1710201971 [12:44:40]quantity*price = 30003 [12:44:40]sum+1 = 30004 [12:44:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 72 11.03.2024 12:44 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94897 ФПД: 231760919186682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T124455&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94897&fm=231760919186682&tin=02508201610067®Number=0000000000090555&sum=30000 [12:44:42]StoreToDocumentArchive [12:44:42]shift 326 fd 94897 [12:44:42]save to /storage/0326/doc_00094897 [12:44:42]save last doc name /storage/0326/doc_00094897 to /storage/kkm_last_doc_name [12:44:42]save OK [12:44:42]Clear old archive folders... [12:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:42]tlvbuf is 0032CC00 [12:44:42]SAM_PROTO_ClearQueue [12:44:42]wFMCommunicate request_size=4 [12:44:42]MH_SAM_APDU [12:44:42]CAPDU: 80 09 00 00 [12:44:42]Write to MH i2c: E2 08 00 F8 8C 80 09 00 00 00 00 00 00 F6 [12:44:42]Write i2c OK [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 [12:44:42]MH_I2C_Read... [12:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:42]Read from MH i2c: E2 03 00 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 03 00 F8 8C 00 90 00 F8 [12:44:42]RAPDU: 90 00 [12:44:42]wFMCommunicate OK [12:44:42]SAM_PROTO_ClearQueue done [12:44:42]KKMCreateOFDPacket [12:44:42]OFDProtocolAddRootSTLVToBuf [12:44:42]FM_MakeSignedData [12:44:42]FM_MakeSignedData [12:44:42]SAM_PROTO_SignData [12:44:42]wFMCommunicate request_size=4 [12:44:42]MH_SAM_APDU [12:44:42]CAPDU: 80 0D 01 02 [12:44:42]Write to MH i2c: E2 08 00 F9 8C 80 0D 01 02 00 00 00 00 FE [12:44:42]Write i2c OK [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 [12:44:42]MH_I2C_Read... [12:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:42]Read from MH i2c: E2 03 00 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 03 00 F9 8C 00 90 00 F9 [12:44:42]RAPDU: 90 00 [12:44:42]wFMCommunicate OK [12:44:42]wFMCommunicate request_size=255 [12:44:42]MH_SAM_APDU [12:44:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C7 FC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 72 01 00 35 04 06 00 D2 [12:44:42]Write to MH i2c: E2 02 01 FA 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C7 FC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 72 01 00 35 04 06 00 D2 00 00 77 [12:44:42]Write i2c OK [12:44:42]MH_I2C_Read... [12:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:42]Read from MH i2c: E2 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 03 00 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 03 00 FA 8C 00 90 00 FA [12:44:42]RAPDU: 90 00 [12:44:42]wFMCommunicate OK [12:44:42]wFMCommunicate request_size=10 [12:44:42]MH_SAM_APDU [12:44:42]CAPDU: 80 0D 02 02 05 C9 0B 42 CC FA [12:44:42]Write to MH i2c: E2 0D 00 FB 8C 80 0D 02 02 05 00 C9 0B 42 CC FA 00 00 E7 [12:44:42]Write i2c OK [12:44:42]MH_I2C_Read... [12:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:42]Read from MH i2c: E2 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 03 00 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 03 00 FB 8C 00 90 00 FB [12:44:42]RAPDU: 90 00 [12:44:42]wFMCommunicate OK [12:44:42]wFMCommunicate request_size=4 [12:44:42]MH_SAM_APDU [12:44:42]CAPDU: 80 0D 03 02 [12:44:42]Write to MH i2c: E2 08 00 FC 8C 80 0D 03 02 00 00 00 00 03 [12:44:42]Write i2c OK [12:44:42]MH_I2C_Read... [12:44:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:42]Read from MH i2c: E2 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 0B 00 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 0B 00 FC 8C 00 09 EC CF D2 3F F3 0D E7 90 00 C0 [12:44:42]RAPDU: 09 EC CF D2 3F F3 0D E7 90 00 [12:44:42]wFMCommunicate OK [12:44:42]SAM_PROTO_SignData done [12:44:42]FM_MakeSignedData done [12:44:42]CreateOFDProtocolMessage [12:44:42]wFMCommunicate request_size=4 [12:44:42]MH_SAM_APDU [12:44:42]CAPDU: 80 11 00 00 [12:44:42]Write to MH i2c: E2 08 00 FD 8C 80 11 00 00 00 00 00 00 03 [12:44:42]Write i2c OK [12:44:42]MH_I2C_Read... [12:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:42]Read from MH i2c: E2 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 17 00 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: E2 17 00 FD 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 53 [12:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:44:42]wFMCommunicate OK [12:44:42]CreateOFDProtocolMessage done [12:44:42]OFDSenderStorePacket 94897 [12:44:42]StoreOFDPacket docnum=94897 [12:44:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AB 7C 07 01 4A 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C7 FC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 72 01 00 35 04 06 00 D2 C9 0B 42 CC FA 09 EC CF D2 3F F3 0D E7 [12:44:42]CheckFolder [12:44:42]dirname=/storage/ofd_packets [12:44:42]CheckFolder done [12:44:42]ProducePacketName [12:44:42]name=ofd_packets/00094897 [12:44:42]NVStorageSaveData ofd_packets/00094897 [12:44:42]File name is /storage/ofd_packets/00094897 [12:44:42]Write 301 bytes [12:44:42]NVStorageSaveData done [12:44:42]OFDSenderStorePacket done [12:44:42]KKMCreateOFDPacket done [12:44:42]NVStorageSaveData kkm_last_timestamp [12:44:42]File name is /storage/kkm_last_timestamp [12:44:42]Write 4 bytes [12:44:42]NVStorageSaveData done [12:44:42]ExternCall_PrintAddStr [12:44:42]wPrintStart [12:44:42]Write to MH i2c: 01 00 00 FE 8C 8A [12:44:42]Write i2c OK [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: 01 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: 01 07 00 [12:44:42]MH_I2C_Read... [12:44:42]Read from MH i2c: 01 07 00 FE 8C 00 80 00 00 00 FF 0F 1F [12:44:42]RasterBufferAndPrint [12:44:42]line Счет N : (1)195850 [12:44:42]line ИНН: 02508201610067 [12:44:42]line Контрольно-Кассовый Чек [12:44:42]line ПРОДАЖА [12:44:42]line ТРК (МРК, ГНК) : 22 [12:44:42]line Товар: 2710124130 [12:44:42]line Аи-92-К-5 [12:44:42]line 4.770 * 62.90 [12:44:42]line = 300.03 [12:44:42]line НДС 12% НСП 1% [12:44:42]line > о реализуемом товаре [12:44:42]line ОКРУГЛЕНИЕ: -0.03 [12:44:42]line ИТОГО: 300.00 [12:44:42]line Внесено: 300.00 [12:44:42]line СДАЧА: 0.00 [12:44:42]line НСП 1% : 2.65 [12:44:42]line НДС 12% : 31.86 [12:44:42]line Наличными: 300.00 [12:44:42]line Безнал.: 0.00 [12:44:42]line Место: АЗС № 6 "Партнер Нефть" [12:44:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:44:42]line СНО: Общий режим [12:44:42]line Чек 72 11.03.2024 12:44 [12:44:42]line Смена: 326 ФФД: 1.0 [12:44:42]line ЗНМ: 0300000009 [12:44:42]line РНМ: 0000000000090555 [12:44:42]line Версия ККМ: 001 [12:44:42]line ФМ: 0000000000874811 [12:44:42]line ФД: 94897 [12:44:42]line ФПД: 231760919186682 [12:44:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T124455&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94897&fm=231760919186682&tin=02508201610067®Number=0000000000090555&sum=30000 [12:44:42]OFD Sender: Processing packet 94897 [packets to send 30, broken 29] [12:44:42]ProducePacketName [12:44:42]name=ofd_packets/00094897 [12:44:42]OFD Sender: To server: pG, [12:44:42]CommunicateWithHost lk.salyk.kg:30040 [12:44:42]ConnectInit lk.salyk.kg [12:44:42]written 0, free lines is 4095 [12:44:42]Connected sock=9 [12:44: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 31 31 0F 01 00 00 AB 7C 07 01 4A 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C7 FC EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 72 01 00 35 04 06 00 D2 C9 0B 42 CC FA 09 EC CF D2 3F F3 0D E7 [12:44: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 31 31 4F 00 00 00 4D F9 47 00 0B 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 72 01 00 F4 03 04 00 20 A8 EE 65 B6 04 01 00 00 A5 0C 67 D0 01 1C FE D4 [12:44:43]CommunicateWithHost err = 0 [12:44:43]CheckOFDResponse [12:44:43]1017 (14) - 77093643461234 [12:44:43]1041 (16) - 0000000000874811 [12:44:43]1040 (4) - 94897 [12:44:43]1012 (4) - 11.03.2024 06:43 [12:44:43]1206 (1) - 0 [12:44:43]OFD Sender: Remove packet 94897 [12:44:43]ProducePacketName [12:44:43]name=ofd_packets/00094897 [12:44:43]NVStorageDeleteData [12:44:43]Write to MH i2c: 01 00 00 29 8D B6 [12:44:43]Write i2c OK [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: 01 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: 01 07 00 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: 01 07 00 29 8D 00 80 00 00 00 4B 0D 95 [12:44:43]RasterBufferAndPrint [12:44:43]line [12:44:43]line [12:44:43]line [12:44:43]line [12:44:43]line [12:44:43]written 0, free lines is 3409 [12:44:43]process_action close_receipt done [12:44:43]requested_data is exist [12:44:43]produce_requested_data [12:44:43]requested_item fm.sn is exist - process it [12:44:43]wFMCommunicate request_size=4 [12:44:43]MH_SAM_APDU [12:44:43]CAPDU: 80 11 00 00 [12:44:43]Write to MH i2c: E2 08 00 30 8D 80 11 00 00 00 00 00 00 37 [12:44:43]Write i2c OK [12:44:43]MH_I2C_Read... [12:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:43]Read from MH i2c: E2 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: E2 17 00 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: E2 17 00 30 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 87 [12:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:44:43]wFMCommunicate OK [12:44:43]requested_item fd.num is exist - process it [12:44:43]SAM_PROTO_GetFieldsCounters [12:44:43]wFMCommunicate request_size=4 [12:44:43]MH_SAM_APDU [12:44:43]CAPDU: 80 13 00 00 [12:44:43]Write to MH i2c: E2 08 00 31 8D 80 13 00 00 00 00 00 00 3A [12:44:43]Write i2c OK [12:44:43]MH_I2C_Read... [12:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:43]Read from MH i2c: E2 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: E2 62 00 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: E2 62 00 31 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 72 01 00 0E 04 04 00 46 01 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 9A [12:44: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 72 01 00 0E 04 04 00 46 01 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 [12:44:43]wFMCommunicate OK [12:44:43]SAM_PROTO_GetFieldsCounters done [12:44:43]requested_item shift.num is exist - process it [12:44:43]requested_item shift.opened is exist - process it [12:44:43]req_shift_opened [12:44:43]FM_GetShiftState [12:44:43]SAM_PROTO_GetShiftState [12:44:43]wFMCommunicate request_size=4 [12:44:43]MH_SAM_APDU [12:44:43]CAPDU: 80 13 01 00 [12:44:43]Write to MH i2c: E2 08 00 32 8D 80 13 01 00 00 00 00 00 3C [12:44:43]Write i2c OK [12:44:43]MH_I2C_Read... [12:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:43]OFD Sender: No OFD packet to send [12:44:43]Read from MH i2c: E2 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: E2 0E 00 [12:44:43]MH_I2C_Read... [12:44:43]Read from MH i2c: E2 0E 00 32 8D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D8 [12:44:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:44:43]wFMCommunicate OK [12:44:43]SAM_PROTO_GetShiftState done [12:44:43]FM_GetShiftState done [12:44:43]req_shift_opened done [12:44:43]requested_item shift.open_date is exist - process it [12:44:43]req_shift_open_date [12:44:43]req_shift_open_date done [12:44:43]produce_requested_data done [12:44:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94897,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:44:43]process_action_free close_receipt [12:44:43]json_value_free [12:44:43]json_value_free done [12:44:43]process_json_proto returns [12:44:43]Send response to host [12:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94897,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:44:43]free response buf [12:44:43]execute_script done [12:44:43]execute_script returns [12:44:43]free content buf [12:44:43]Sock 7.Close socket [12:44:43]Sock 7.Thread stoped [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:06]accept exits with 10 [12:46:06]New connection [12:46:06]New thread 3066871140 created [12:46:06]Thread 3067014500 joined [12:46:06]Waiting for new connection... [12:46:06] Sock 10.Parse request [12:46:06]Sock 10.Check first char [12:46:06]Sock 10.First char is OK [12:46:06]request: POST /json_proto HTTP/1.0 [12:46:06]Method: POST [12:46:06]URL: /json_proto [12:46:06]Method is POST - this is cgi request [12:46:06]url: /json_proto [12:46:06]query_string will be loaded in cgi processing [12:46:06]execute_cgi json_proto POST (null) [12:46:06]execute_cgi path=json_proto method=POST [12:46:06]POST find Content-Length [12:46:06]Host: 172.17.62.67:8080 [12:46:06]Content-Length: 1182 [12:46:06]Content-Type: application/json [12:46:06] [12:46:06]POST finish read [12:46:06]Found Content-Length = 1182 [12:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195851\u000A11.03.2024 12:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3821918\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:06]execute_script... [12:46:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195851\u000A11.03.2024 12:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3821918\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:06]POST & json_proto [12:46:06]process_json_proto [12:46:06]json parsed OK: [12:46:06]protocol is kg_v1.0 [12:46:06]action value=print_text [12:46:06]process_action print_text [12:46:06]cmd_print_text [12:46:06]ExternCall_PrintAddStr [12:46:06]wPrintStart [12:46:06]Write to MH i2c: 01 00 00 33 8D C0 [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 07 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 07 00 33 8D 00 80 00 00 00 FF 0F 55 [12:46:06]RasterBufferAndPrint [12:46:06]line *****ТОВАРНЫЙ ЧЕК***** [12:46:06]line АЗС 6 [12:46:06]line Партнер нефть [12:46:06]line 02508201610067 [12:46:06]line Кассир : Карыбаев Б. [12:46:06]line Счет N : (1)195851 [12:46:06]line 11.03.2024 12:40 [12:46:06]line ПРОДАЖА [12:46:06]line ТРК (МРК, ГНК): 42 [12:46:06]line Вид ГСМ : 2710124130 [12:46:06]line Аи-92-К-5 [12:46:06]line 10.000 x 62.90 [12:46:06]line ИТОГ: 629.00 [12:46:06]line Тип оплаты: Талоны: Партнер нефть [12:46:06]line 3821918 [12:46:06]line ______________________ [12:46:06]line (подпись) [12:46:06]written 0, free lines is 4095 [12:46:06]Write to MH i2c: 01 00 00 47 8D D4 [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 07 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 07 00 47 8D 00 80 00 00 00 63 0E CC [12:46:06]RasterBufferAndPrint [12:46:06]line [12:46:06]line [12:46:06]line [12:46:06]line [12:46:06]line [12:46:06]written 0, free lines is 3687 [12:46:06]process_action print_text done [12:46:06]requested_data is exist [12:46:06]produce_requested_data [12:46:06]requested_item fm.sn is exist - process it [12:46:06]wFMCommunicate request_size=4 [12:46:06]MH_SAM_APDU [12:46:06]CAPDU: 80 11 00 00 [12:46:06]Write to MH i2c: E2 08 00 4E 8D 80 11 00 00 00 00 00 00 55 [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:06]Read from MH i2c: E2 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 17 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 17 00 4E 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [12:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:46:06]wFMCommunicate OK [12:46:06]requested_item fd.num is exist - process it [12:46:06]SAM_PROTO_GetFieldsCounters [12:46:06]wFMCommunicate request_size=4 [12:46:06]MH_SAM_APDU [12:46:06]CAPDU: 80 13 00 00 [12:46:06]Write to MH i2c: E2 08 00 4F 8D 80 13 00 00 00 00 00 00 58 [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:06]Read from MH i2c: E2 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 62 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 62 00 4F 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 72 01 00 0E 04 04 00 46 01 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 B8 [12:46: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 72 01 00 0E 04 04 00 46 01 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 [12:46:06]wFMCommunicate OK [12:46:06]SAM_PROTO_GetFieldsCounters done [12:46:06]requested_item shift.num is exist - process it [12:46:06]requested_item shift.opened is exist - process it [12:46:06]req_shift_opened [12:46:06]FM_GetShiftState [12:46:06]SAM_PROTO_GetShiftState [12:46:06]wFMCommunicate request_size=4 [12:46:06]MH_SAM_APDU [12:46:06]CAPDU: 80 13 01 00 [12:46:06]Write to MH i2c: E2 08 00 50 8D 80 13 01 00 00 00 00 00 5A [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:06]Read from MH i2c: E2 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 0E 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 0E 00 50 8D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F6 [12:46:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:46:06]wFMCommunicate OK [12:46:06]SAM_PROTO_GetShiftState done [12:46:06]FM_GetShiftState done [12:46:06]req_shift_opened done [12:46:06]requested_item shift.open_date is exist - process it [12:46:06]req_shift_open_date [12:46:06]req_shift_open_date done [12:46:06]produce_requested_data done [12:46:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94897,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:46:06]process_action_free print_text [12:46:06]json_value_free [12:46:06]json_value_free done [12:46:06]process_json_proto returns [12:46:06]Send response to host [12:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94897,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:46:06]free response buf [12:46:06]execute_script done [12:46:06]execute_script returns [12:46:06]free content buf [12:46:06]Sock 10.Close socket [12:46:06]Sock 10.Thread stoped [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:50]accept exits with 7 [12:51:50]New connection [12:51:50]New thread 3067014500 created [12:51:50]Thread 3066871140 joined [12:51:50]Waiting for new connection... [12:51:50] Sock 7.Parse request [12:51:50]Sock 7.Check first char [12:51:50]Sock 7.First char is OK [12:51:50]request: POST /json_proto HTTP/1.0 [12:51:50]Method: POST [12:51:50]URL: /json_proto [12:51:50]Method is POST - this is cgi request [12:51:50]url: /json_proto [12:51:50]query_string will be loaded in cgi processing [12:51:50]execute_cgi json_proto POST (null) [12:51:50]execute_cgi path=json_proto method=POST [12:51:50]POST find Content-Length [12:51:50]Host: 172.17.62.67:8080 [12:51:50]Content-Length: 682 [12:51:50]Content-Type: application/json [12:51:50] [12:51:50]POST finish read [12:51:50]Found Content-Length = 682 [12:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:51:50]execute_script... [12:51: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)195852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:51:50]POST & json_proto [12:51:50]process_json_proto [12:51:50]json parsed OK: [12:51:50]protocol is kg_v1.0 [12:51:50]action value=close_receipt [12:51:50]process_action close_receipt [12:51:50]cmd_close_receipt [12:51:50]MH_GetDate [12:51:50]Write to MH i2c: F0 00 00 51 8D CD [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: F0 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: F0 05 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: F0 05 00 51 8D 00 75 FE EE 65 98 [12:51:50]GetLastDocTimeStamp 1710161095 [12:51:50]current date 1710161525 [12:51:50]FM_GetShiftState [12:51:50]SAM_PROTO_GetShiftState [12:51:50]wFMCommunicate request_size=4 [12:51:50]MH_SAM_APDU [12:51:50]CAPDU: 80 13 01 00 [12:51:50]Write to MH i2c: E2 08 00 52 8D 80 13 01 00 00 00 00 00 5C [12:51:50]Write i2c OK [12:51:50]MH_I2C_Read... [12:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:50]Read from MH i2c: E2 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 0E 00 [12:51:50]MH_I2C_Read... [12:51:50]Read from MH i2c: E2 0E 00 52 8D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F8 [12:51:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:51:50]wFMCommunicate OK [12:51:50]SAM_PROTO_GetShiftState done [12:51:50]FM_GetShiftState done [12:51:50]opened in 1710115571 [12:51:50]opened+sec_in_day 1710201971 [12:51:50]quantity*price = 100010 [12:51:50]sum+1 = 100012 [12:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 73 11.03.2024 12:52 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94898 ФПД: 31598973631076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T125205&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94898&fm=31598973631076&tin=02508201610067®Number=0000000000090555&sum=100000 [12:51:52]StoreToDocumentArchive [12:51:52]shift 326 fd 94898 [12:51:52]save to /storage/0326/doc_00094898 [12:51:52]save last doc name /storage/0326/doc_00094898 to /storage/kkm_last_doc_name [12:51:52]save OK [12:51:52]Clear old archive folders... [12:51:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:52]tlvbuf is 003F6AE0 [12:51:52]SAM_PROTO_ClearQueue [12:51:52]wFMCommunicate request_size=4 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 09 00 00 [12:51:52]Write to MH i2c: E2 08 00 5F 8D 80 09 00 00 00 00 00 00 5E [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 5F 8D 00 90 00 60 [12:51:52]RAPDU: 90 00 [12:51:52]wFMCommunicate OK [12:51:52]SAM_PROTO_ClearQueue done [12:51:52]KKMCreateOFDPacket [12:51:52]OFDProtocolAddRootSTLVToBuf [12:51:52]FM_MakeSignedData [12:51:52]FM_MakeSignedData [12:51:52]SAM_PROTO_SignData [12:51:52]wFMCommunicate request_size=4 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 0D 01 02 [12:51:52]Write to MH i2c: E2 08 00 60 8D 80 0D 01 02 00 00 00 00 66 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 60 8D 00 90 00 61 [12:51:52]RAPDU: 90 00 [12:51:52]wFMCommunicate OK [12:51:52]wFMCommunicate request_size=255 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 75 FE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 72 01 00 35 04 06 00 1C [12:51:52]Write to MH i2c: E2 02 01 61 8D 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 75 FE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 72 01 00 35 04 06 00 1C 00 00 54 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 61 8D 00 90 00 62 [12:51:52]RAPDU: 90 00 [12:51:52]wFMCommunicate OK [12:51:52]wFMCommunicate request_size=10 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 0D 02 02 05 BD 35 99 3A 64 [12:51:52]Write to MH i2c: E2 0D 00 62 8D 80 0D 02 02 05 00 BD 35 99 3A 64 00 00 9C [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 62 8D 00 90 00 63 [12:51:52]RAPDU: 90 00 [12:51:52]wFMCommunicate OK [12:51:52]wFMCommunicate request_size=4 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 0D 03 02 [12:51:52]Write to MH i2c: E2 08 00 63 8D 80 0D 03 02 00 00 00 00 6B [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 0B 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 0B 00 63 8D 00 81 9F D9 2C A6 C8 19 1C 90 00 34 [12:51:52]RAPDU: 81 9F D9 2C A6 C8 19 1C 90 00 [12:51:52]wFMCommunicate OK [12:51:52]SAM_PROTO_SignData done [12:51:52]FM_MakeSignedData done [12:51:52]CreateOFDProtocolMessage [12:51:52]wFMCommunicate request_size=4 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 11 00 00 [12:51:52]Write to MH i2c: E2 08 00 64 8D 80 11 00 00 00 00 00 00 6B [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 17 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 17 00 64 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BB [12:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:51:52]wFMCommunicate OK [12:51:52]CreateOFDProtocolMessage done [12:51:52]OFDSenderStorePacket 94898 [12:51:52]StoreOFDPacket docnum=94898 [12:51:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 15 43 07 01 84 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 75 FE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 72 01 00 35 04 06 00 1C BD 35 99 3A 64 81 9F D9 2C A6 C8 19 1C [12:51:52]CheckFolder [12:51:52]dirname=/storage/ofd_packets [12:51:52]CheckFolder done [12:51:52]ProducePacketName [12:51:52]name=ofd_packets/00094898 [12:51:52]NVStorageSaveData ofd_packets/00094898 [12:51:52]File name is /storage/ofd_packets/00094898 [12:51:52]Write 301 bytes [12:51:52]NVStorageSaveData done [12:51:52]OFDSenderStorePacket done [12:51:52]KKMCreateOFDPacket done [12:51:52]NVStorageSaveData kkm_last_timestamp [12:51:52]File name is /storage/kkm_last_timestamp [12:51:52]Write 4 bytes [12:51:52]NVStorageSaveData done [12:51:52]ExternCall_PrintAddStr [12:51:52]wPrintStart [12:51:52]Write to MH i2c: 01 00 00 65 8D F2 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 65 8D 00 80 00 00 00 FF 0F 87 [12:51:52]RasterBufferAndPrint [12:51:52]line Счет N : (1)195852 [12:51:52]line ИНН: 02508201610067 [12:51:52]line Контрольно-Кассовый Чек [12:51:52]line ПРОДАЖА [12:51:52]line ТРК (МРК, ГНК) : 31 [12:51:52]line Товар: 2710124500 [12:51:52]line Аи-95-К-5 [12:51:52]line 14.390 * 69.50 [12:51:52]line = 1000.11 [12:51:52]line НДС 12% НСП 1% [12:51:52]line > о реализуемом товаре [12:51:52]line ОКРУГЛЕНИЕ: -0.11 [12:51:52]line ИТОГО: 1000.00 [12:51:52]line Внесено: 1000.00 [12:51:52]line СДАЧА: 0.00 [12:51:52]line НСП 1% : 8.85 [12:51:52]line НДС 12% : 106.21 [12:51:52]line Наличными: 1000.00 [12:51:52]line Безнал.: 0.00 [12:51:52]line Место: АЗС № 6 "Партнер Нефть" [12:51:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:51:52]line СНО: Общий режим [12:51:52]line Чек 73 11.03.2024 12:52 [12:51:52]line Смена: 326 ФФД: 1.0 [12:51:52]line ЗНМ: 0300000009 [12:51:52]line РНМ: 0000000000090555 [12:51:52]line Версия ККМ: 001 [12:51:52]line ФМ: 0000000000874811 [12:51:52]line ФД: 94898 [12:51:52]line ФПД: 31598973631076 [12:51:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T125205&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94898&fm=31598973631076&tin=02508201610067®Number=0000000000090555&sum=100000 [12:51:52]OFD Sender: Processing packet 94898 [packets to send 30, broken 29] [12:51:52]ProducePacketName [12:51:52]name=ofd_packets/00094898 [12:51:52]OFD Sender: To server: pG, [12:51:52]CommunicateWithHost lk.salyk.kg:30040 [12:51:52]ConnectInit lk.salyk.kg [12:51:52]written 0, free lines is 4095 [12:51:53]Connected sock=10 [12:51:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 15 43 07 01 84 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 75 FE EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 72 01 00 35 04 06 00 1C BD 35 99 3A 64 81 9F D9 2C A6 C8 19 1C [12:51:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 43 FE 47 00 83 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 31 31 10 04 04 00 B2 72 01 00 F4 03 04 00 CE A9 EE 65 B6 04 01 00 00 5D E9 4E 0D 1F 3D 18 05 [12:51:53]CommunicateWithHost err = 0 [12:51:53]CheckOFDResponse [12:51:53]1017 (14) - 77093643461234 [12:51:53]1041 (16) - 0000000000874811 [12:51:53]1040 (4) - 94898 [12:51:53]1012 (4) - 11.03.2024 06:50 [12:51:53]1206 (1) - 0 [12:51:53]OFD Sender: Remove packet 94898 [12:51:53]ProducePacketName [12:51:53]name=ofd_packets/00094898 [12:51:53]NVStorageDeleteData [12:51:53]Write to MH i2c: 01 00 00 90 8D 1D [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 07 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 07 00 90 8D 00 80 00 00 00 52 0D 03 [12:51:53]RasterBufferAndPrint [12:51:53]line [12:51:53]line [12:51:53]line [12:51:53]line [12:51:53]line [12:51:53]written 0, free lines is 3417 [12:51:53]process_action close_receipt done [12:51:53]requested_data is exist [12:51:53]produce_requested_data [12:51:53]requested_item fm.sn is exist - process it [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 11 00 00 [12:51:53]Write to MH i2c: E2 08 00 97 8D 80 11 00 00 00 00 00 00 9E [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 97 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [12:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:51:53]wFMCommunicate OK [12:51:53]requested_item fd.num is exist - process it [12:51:53]SAM_PROTO_GetFieldsCounters [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 13 00 00 [12:51:53]Write to MH i2c: E2 08 00 98 8D 80 13 00 00 00 00 00 00 A1 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 62 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 62 00 98 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B2 72 01 00 0E 04 04 00 46 01 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 05 [12:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B2 72 01 00 0E 04 04 00 46 01 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 [12:51:53]wFMCommunicate OK [12:51:53]SAM_PROTO_GetFieldsCounters done [12:51:53]requested_item shift.num is exist - process it [12:51:53]requested_item shift.opened is exist - process it [12:51:53]req_shift_opened [12:51:53]FM_GetShiftState [12:51:53]SAM_PROTO_GetShiftState [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 13 01 00 [12:51:53]Write to MH i2c: E2 08 00 99 8D 80 13 01 00 00 00 00 00 A3 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0E 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0E 00 99 8D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3F [12:51:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:51:53]wFMCommunicate OK [12:51:53]SAM_PROTO_GetShiftState done [12:51:53]FM_GetShiftState done [12:51:53]req_shift_opened done [12:51:53]requested_item shift.open_date is exist - process it [12:51:53]req_shift_open_date [12:51:53]req_shift_open_date done [12:51:53]produce_requested_data done [12:51:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94898,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:51:53]process_action_free close_receipt [12:51:53]json_value_free [12:51:53]json_value_free done [12:51:53]process_json_proto returns [12:51:53]Send response to host [12:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94898,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:51:53]free response buf [12:51:53]execute_script done [12:51:53]execute_script returns [12:51:53]free content buf [12:51:53]Sock 7.Close socket [12:51:53]Sock 7.Thread stoped [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:09]accept exits with 9 [12:53:09]New connection [12:53:09]New thread 3066871140 created [12:53:09]Thread 3067014500 joined [12:53:09]Waiting for new connection... [12:53:09] Sock 9.Parse request [12:53:09]Sock 9.Check first char [12:53:09]Sock 9.First char is OK [12:53:09]request: POST /json_proto HTTP/1.0 [12:53:09]Method: POST [12:53:09]URL: /json_proto [12:53:09]Method is POST - this is cgi request [12:53:09]url: /json_proto [12:53:09]query_string will be loaded in cgi processing [12:53:09]execute_cgi json_proto POST (null) [12:53:09]execute_cgi path=json_proto method=POST [12:53:09]POST find Content-Length [12:53:09]Host: 172.17.62.67:8080 [12:53:09]Content-Length: 1180 [12:53:09]Content-Type: application/json [12:53:09] [12:53:09]POST finish read [12:53:09]Found Content-Length = 1180 [12:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195853\u000A11.03.2024 12:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3430910\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:09]execute_script... [12:53:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195853\u000A11.03.2024 12:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3430910\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:09]POST & json_proto [12:53:09]process_json_proto [12:53:09]json parsed OK: [12:53:09]protocol is kg_v1.0 [12:53:09]action value=print_text [12:53:09]process_action print_text [12:53:09]cmd_print_text [12:53:09]ExternCall_PrintAddStr [12:53:09]wPrintStart [12:53:09]Write to MH i2c: 01 00 00 9A 8D 27 [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 07 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 07 00 9A 8D 00 80 00 00 00 FF 0F BC [12:53:09]RasterBufferAndPrint [12:53:09]line *****ТОВАРНЫЙ ЧЕК***** [12:53:09]line АЗС 6 [12:53:09]line Партнер нефть [12:53:09]line 02508201610067 [12:53:09]line Кассир : Карыбаев Б. [12:53:09]line Счет N : (1)195853 [12:53:09]line 11.03.2024 12:47 [12:53:09]line ПРОДАЖА [12:53:09]line ТРК (МРК, ГНК): 51 [12:53:09]line Вид ГСМ : 2710194210 [12:53:09]line ДТ-К-5 [12:53:09]line 20.000 x 70.90 [12:53:09]line ИТОГ: 1418.00 [12:53:09]line Тип оплаты: Талоны: Партнер нефть [12:53:09]line 3430910 [12:53:09]line ______________________ [12:53:09]line (подпись) [12:53:09]written 0, free lines is 4095 [12:53:09]Write to MH i2c: 01 00 00 AE 8D 3B [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 07 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: 01 07 00 AE 8D 00 80 00 00 00 61 0E 31 [12:53:09]RasterBufferAndPrint [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]line [12:53:09]written 0, free lines is 3685 [12:53:09]process_action print_text done [12:53:09]requested_data is exist [12:53:09]produce_requested_data [12:53:09]requested_item fm.sn is exist - process it [12:53:09]wFMCommunicate request_size=4 [12:53:09]MH_SAM_APDU [12:53:09]CAPDU: 80 11 00 00 [12:53:09]Write to MH i2c: E2 08 00 B5 8D 80 11 00 00 00 00 00 00 BC [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:09]Read from MH i2c: E2 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: E2 17 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: E2 17 00 B5 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0C [12:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:53:09]wFMCommunicate OK [12:53:09]requested_item fd.num is exist - process it [12:53:09]SAM_PROTO_GetFieldsCounters [12:53:09]wFMCommunicate request_size=4 [12:53:09]MH_SAM_APDU [12:53:09]CAPDU: 80 13 00 00 [12:53:09]Write to MH i2c: E2 08 00 B6 8D 80 13 00 00 00 00 00 00 BF [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:09]Read from MH i2c: E2 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: E2 62 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: E2 62 00 B6 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B2 72 01 00 0E 04 04 00 46 01 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 23 [12:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B2 72 01 00 0E 04 04 00 46 01 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 [12:53:09]wFMCommunicate OK [12:53:09]SAM_PROTO_GetFieldsCounters done [12:53:09]requested_item shift.num is exist - process it [12:53:09]requested_item shift.opened is exist - process it [12:53:09]req_shift_opened [12:53:09]FM_GetShiftState [12:53:09]SAM_PROTO_GetShiftState [12:53:09]wFMCommunicate request_size=4 [12:53:09]MH_SAM_APDU [12:53:09]CAPDU: 80 13 01 00 [12:53:09]Write to MH i2c: E2 08 00 B7 8D 80 13 01 00 00 00 00 00 C1 [12:53:09]Write i2c OK [12:53:09]MH_I2C_Read... [12:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:09]Read from MH i2c: E2 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: E2 0E 00 [12:53:09]MH_I2C_Read... [12:53:09]Read from MH i2c: E2 0E 00 B7 8D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5D [12:53:09]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:53:09]wFMCommunicate OK [12:53:09]SAM_PROTO_GetShiftState done [12:53:09]FM_GetShiftState done [12:53:09]req_shift_opened done [12:53:09]requested_item shift.open_date is exist - process it [12:53:09]req_shift_open_date [12:53:09]req_shift_open_date done [12:53:09]produce_requested_data done [12:53:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94898,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:53:09]process_action_free print_text [12:53:09]json_value_free [12:53:09]json_value_free done [12:53:09]process_json_proto returns [12:53:09]Send response to host [12:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94898,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:53:09]free response buf [12:53:09]execute_script done [12:53:09]execute_script returns [12:53:09]free content buf [12:53:09]Sock 9.Close socket [12:53:09]Sock 9.Thread stoped [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:44]accept exits with 10 [12:55:44]New connection [12:55:44]New thread 3067014500 created [12:55:44]Thread 3066871140 joined [12:55:44]Waiting for new connection... [12:55:44] Sock 10.Parse request [12:55:44]Sock 10.Check first char [12:55:44]Sock 10.First char is OK [12:55:44]request: POST /json_proto HTTP/1.0 [12:55:44]Method: POST [12:55:44]URL: /json_proto [12:55:44]Method is POST - this is cgi request [12:55:44]url: /json_proto [12:55:44]query_string will be loaded in cgi processing [12:55:44]execute_cgi json_proto POST (null) [12:55:44]execute_cgi path=json_proto method=POST [12:55:44]POST find Content-Length [12:55:44]Host: 172.17.62.67:8080 [12:55:44]Content-Length: 679 [12:55:44]Content-Type: application/json [12:55:44] [12:55:44]POST finish read [12:55:44]Found Content-Length = 679 [12:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:44]execute_script... [12:55: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)195854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 21.160, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:44]POST & json_proto [12:55:44]process_json_proto [12:55:44]json parsed OK: [12:55:44]protocol is kg_v1.0 [12:55:44]action value=close_receipt [12:55:44]process_action close_receipt [12:55:44]cmd_close_receipt [12:55:44]MH_GetDate [12:55:44]Write to MH i2c: F0 00 00 B8 8D 34 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: F0 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: F0 05 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: F0 05 00 B8 8D 00 5F FF EE 65 EA [12:55:44]GetLastDocTimeStamp 1710161525 [12:55:44]current date 1710161759 [12:55:44]FM_GetShiftState [12:55:44]SAM_PROTO_GetShiftState [12:55:44]wFMCommunicate request_size=4 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 13 01 00 [12:55:44]Write to MH i2c: E2 08 00 B9 8D 80 13 01 00 00 00 00 00 C3 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 0E 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 0E 00 B9 8D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5F [12:55:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:55:44]wFMCommunicate OK [12:55:44]SAM_PROTO_GetShiftState done [12:55:44]FM_GetShiftState done [12:55:44]opened in 1710115571 [12:55:44]opened+sec_in_day 1710201971 [12:55:44]quantity*price = 150024 [12:55:44]sum+1 = 150025 [12:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 74 11.03.2024 12:55 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94899 ФПД: 75622451743224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T125559&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94899&fm=75622451743224&tin=02508201610067®Number=0000000000090555&sum=150000 [12:55:45]StoreToDocumentArchive [12:55:45]shift 326 fd 94899 [12:55:45]save to /storage/0326/doc_00094899 [12:55:45]save last doc name /storage/0326/doc_00094899 to /storage/kkm_last_doc_name [12:55:45]save OK [12:55:45]Clear old archive folders... [12:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:55:45]tlvbuf is 00235E70 [12:55:45]SAM_PROTO_ClearQueue [12:55:45]wFMCommunicate request_size=4 [12:55:45]MH_SAM_APDU [12:55:45]CAPDU: 80 09 00 00 [12:55:45]Write to MH i2c: E2 08 00 C6 8D 80 09 00 00 00 00 00 00 C5 [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:45]Read from MH i2c: E2 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: E2 03 00 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: E2 03 00 C6 8D 00 90 00 C7 [12:55:45]RAPDU: 90 00 [12:55:45]wFMCommunicate OK [12:55:45]SAM_PROTO_ClearQueue done [12:55:45]KKMCreateOFDPacket [12:55:45]OFDProtocolAddRootSTLVToBuf [12:55:45]FM_MakeSignedData [12:55:45]FM_MakeSignedData [12:55:45]SAM_PROTO_SignData [12:55:45]wFMCommunicate request_size=4 [12:55:45]MH_SAM_APDU [12:55:45]CAPDU: 80 0D 01 02 [12:55:45]Write to MH i2c: E2 08 00 C7 8D 80 0D 01 02 00 00 00 00 CD [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:45]Read from MH i2c: E2 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: E2 03 00 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: E2 03 00 C7 8D 00 90 00 C8 [12:55:45]RAPDU: 90 00 [12:55:45]wFMCommunicate OK [12:55:45]wFMCommunicate request_size=255 [12:55:45]MH_SAM_APDU [12:55:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 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 4A 00 00 00 F4 03 04 00 5F FF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 72 01 00 35 04 06 00 44 C7 39 5F [12:55:45]Write to MH i2c: E2 02 01 C8 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 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 4A 00 00 00 F4 03 04 00 5F FF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 72 01 00 35 04 06 00 44 C7 39 5F 00 00 71 [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:46]Read from MH i2c: E2 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 03 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 03 00 C8 8D 00 90 00 C9 [12:55:46]RAPDU: 90 00 [12:55:46]wFMCommunicate OK [12:55:46]wFMCommunicate request_size=7 [12:55:46]MH_SAM_APDU [12:55:46]CAPDU: 80 0D 02 02 02 89 F8 [12:55:46]Write to MH i2c: E2 0A 00 C9 8D 80 0D 02 02 02 00 89 F8 00 00 55 [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:46]Read from MH i2c: E2 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 03 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 03 00 C9 8D 00 90 00 CA [12:55:46]RAPDU: 90 00 [12:55:46]wFMCommunicate OK [12:55:46]wFMCommunicate request_size=4 [12:55:46]MH_SAM_APDU [12:55:46]CAPDU: 80 0D 03 02 [12:55:46]Write to MH i2c: E2 08 00 CA 8D 80 0D 03 02 00 00 00 00 D2 [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:46]Read from MH i2c: E2 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 0B 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 0B 00 CA 8D 00 E7 4B 83 AA 5A 59 47 30 90 00 5C [12:55:46]RAPDU: E7 4B 83 AA 5A 59 47 30 90 00 [12:55:46]wFMCommunicate OK [12:55:46]SAM_PROTO_SignData done [12:55:46]FM_MakeSignedData done [12:55:46]CreateOFDProtocolMessage [12:55:46]wFMCommunicate request_size=4 [12:55:46]MH_SAM_APDU [12:55:46]CAPDU: 80 11 00 00 [12:55:46]Write to MH i2c: E2 08 00 CB 8D 80 11 00 00 00 00 00 00 D2 [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:46]Read from MH i2c: E2 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 17 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 17 00 CB 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 22 [12:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:55:46]wFMCommunicate OK [12:55:46]CreateOFDProtocolMessage done [12:55:46]OFDSenderStorePacket 94899 [12:55:46]StoreOFDPacket docnum=94899 [12:55:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 C6 14 04 01 2A D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 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 4A 00 00 00 F4 03 04 00 5F FF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 72 01 00 35 04 06 00 44 C7 39 5F 89 F8 E7 4B 83 AA 5A 59 47 30 [12:55:46]CheckFolder [12:55:46]dirname=/storage/ofd_packets [12:55:46]CheckFolder done [12:55:46]ProducePacketName [12:55:46]name=ofd_packets/00094899 [12:55:46]NVStorageSaveData ofd_packets/00094899 [12:55:46]File name is /storage/ofd_packets/00094899 [12:55:46]Write 298 bytes [12:55:46]NVStorageSaveData done [12:55:46]OFDSenderStorePacket done [12:55:46]KKMCreateOFDPacket done [12:55:46]NVStorageSaveData kkm_last_timestamp [12:55:46]File name is /storage/kkm_last_timestamp [12:55:46]Write 4 bytes [12:55:46]NVStorageSaveData done [12:55:46]ExternCall_PrintAddStr [12:55:46]wPrintStart [12:55:46]Write to MH i2c: 01 00 00 CC 8D 59 [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: 01 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: 01 07 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: 01 07 00 CC 8D 00 80 00 00 00 FF 0F EE [12:55:46]RasterBufferAndPrint [12:55:46]line Счет N : (1)195854 [12:55:46]line ИНН: 02508201610067 [12:55:46]line Контрольно-Кассовый Чек [12:55:46]line ПРОДАЖА [12:55:46]line ТРК (МРК, ГНК) : 51 [12:55:46]line Товар: 2710194210 [12:55:46]line ДТ-К-5 [12:55:46]line 21.160 * 70.90 [12:55:46]line = 1500.24 [12:55:46]line НДС 12% НСП 1% [12:55:46]line > о реализуемом товаре [12:55:46]line ОКРУГЛЕНИЕ: -0.24 [12:55:46]line ИТОГО: 1500.00 [12:55:46]line Внесено: 1500.00 [12:55:46]line СДАЧА: 0.00 [12:55:46]line НСП 1% : 13.28 [12:55:46]line НДС 12% : 159.32 [12:55:46]line Наличными: 1500.00 [12:55:46]line Безнал.: 0.00 [12:55:46]line Место: АЗС № 6 "Партнер Нефть" [12:55:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:55:46]line СНО: Общий режим [12:55:46]line Чек 74 11.03.2024 12:55 [12:55:46]line Смена: 326 ФФД: 1.0 [12:55:46]line ЗНМ: 0300000009 [12:55:46]line РНМ: 0000000000090555 [12:55:46]line Версия ККМ: 001 [12:55:46]line ФМ: 0000000000874811 [12:55:46]line ФД: 94899 [12:55:46]line ФПД: 75622451743224 [12:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T125559&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94899&fm=75622451743224&tin=02508201610067®Number=0000000000090555&sum=150000 [12:55:46]OFD Sender: Processing packet 94899 [packets to send 30, broken 29] [12:55:46]ProducePacketName [12:55:46]name=ofd_packets/00094899 [12:55:46]OFD Sender: To server: pG, [12:55:46]CommunicateWithHost lk.salyk.kg:30040 [12:55:46]ConnectInit lk.salyk.kg [12:55:46]written 0, free lines is 4095 [12:55:46]Connected sock=9 [12:55: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 31 31 0C 01 00 00 C6 14 04 01 2A D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 52 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 08 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 4A 00 00 00 F4 03 04 00 5F FF EE 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 72 01 00 35 04 06 00 44 C7 39 5F 89 F8 E7 4B 83 AA 5A 59 47 30 [12:55: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 31 31 4F 00 00 00 54 83 47 00 C8 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 72 01 00 F4 03 04 00 B8 AA EE 65 B6 04 01 00 00 0A 57 46 00 BD 51 BA 6A [12:55:46]CommunicateWithHost err = 0 [12:55:46]CheckOFDResponse [12:55:46]1017 (14) - 77093643461234 [12:55:46]1041 (16) - 0000000000874811 [12:55:46]1040 (4) - 94899 [12:55:46]1012 (4) - 11.03.2024 06:54 [12:55:46]1206 (1) - 0 [12:55:46]OFD Sender: Remove packet 94899 [12:55:46]ProducePacketName [12:55:46]name=ofd_packets/00094899 [12:55:46]NVStorageDeleteData [12:55:47]Write to MH i2c: 01 00 00 F7 8D 84 [12:55:47]Write i2c OK [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: 01 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: 01 07 00 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: 01 07 00 F7 8D 00 80 00 00 00 55 0D 6D [12:55:47]RasterBufferAndPrint [12:55:47]line [12:55:47]line [12:55:47]line [12:55:47]line [12:55:47]line [12:55:47]written 0, free lines is 3419 [12:55:47]process_action close_receipt done [12:55:47]requested_data is exist [12:55:47]produce_requested_data [12:55:47]requested_item fm.sn is exist - process it [12:55:47]wFMCommunicate request_size=4 [12:55:47]MH_SAM_APDU [12:55:47]CAPDU: 80 11 00 00 [12:55:47]Write to MH i2c: E2 08 00 FE 8D 80 11 00 00 00 00 00 00 05 [12:55:47]Write i2c OK [12:55:47]MH_I2C_Read... [12:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:47]Read from MH i2c: E2 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 17 00 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 17 00 FE 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 55 [12:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:55:47]wFMCommunicate OK [12:55:47]requested_item fd.num is exist - process it [12:55:47]SAM_PROTO_GetFieldsCounters [12:55:47]wFMCommunicate request_size=4 [12:55:47]MH_SAM_APDU [12:55:47]CAPDU: 80 13 00 00 [12:55:47]Write to MH i2c: E2 08 00 FF 8D 80 13 00 00 00 00 00 00 08 [12:55:47]Write i2c OK [12:55:47]MH_I2C_Read... [12:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:47]Read from MH i2c: E2 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 62 00 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 62 00 FF 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B3 72 01 00 0E 04 04 00 46 01 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 70 [12:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B3 72 01 00 0E 04 04 00 46 01 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 [12:55:47]wFMCommunicate OK [12:55:47]SAM_PROTO_GetFieldsCounters done [12:55:47]requested_item shift.num is exist - process it [12:55:47]requested_item shift.opened is exist - process it [12:55:47]req_shift_opened [12:55:47]FM_GetShiftState [12:55:47]SAM_PROTO_GetShiftState [12:55:47]wFMCommunicate request_size=4 [12:55:47]MH_SAM_APDU [12:55:47]CAPDU: 80 13 01 00 [12:55:47]Write to MH i2c: E2 08 00 00 8E 80 13 01 00 00 00 00 00 0B [12:55:47]Write i2c OK [12:55:47]MH_I2C_Read... [12:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:47]Read from MH i2c: E2 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 0E 00 [12:55:47]MH_I2C_Read... [12:55:47]OFD Sender: No OFD packet to send [12:55:47]Read from MH i2c: E2 0E 00 00 8E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A7 [12:55:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [12:55:47]wFMCommunicate OK [12:55:47]SAM_PROTO_GetShiftState done [12:55:47]FM_GetShiftState done [12:55:47]req_shift_opened done [12:55:47]requested_item shift.open_date is exist - process it [12:55:47]req_shift_open_date [12:55:47]req_shift_open_date done [12:55:47]produce_requested_data done [12:55:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94899,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [12:55:47]process_action_free close_receipt [12:55:47]json_value_free [12:55:47]json_value_free done [12:55:47]process_json_proto returns [12:55:47]Send response to host [12:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94899,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [12:55:47]free response buf [12:55:47]execute_script done [12:55:47]execute_script returns [12:55:47]free content buf [12:55:47]Sock 10.Close socket [12:55:47]Sock 10.Thread stoped [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:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:14]accept exits with 7 [13:00:14]New connection [13:00:14]New thread 3066871140 created [13:00:14]Thread 3067014500 joined [13:00:14]Waiting for new connection... [13:00:14] Sock 7.Parse request [13:00:14]Sock 7.Check first char [13:00:14]Sock 7.First char is OK [13:00:14]request: POST /json_proto HTTP/1.0 [13:00:14]Method: POST [13:00:14]URL: /json_proto [13:00:14]Method is POST - this is cgi request [13:00:14]url: /json_proto [13:00:14]query_string will be loaded in cgi processing [13:00:14]execute_cgi json_proto POST (null) [13:00:14]execute_cgi path=json_proto method=POST [13:00:14]POST find Content-Length [13:00:14]Host: 172.17.62.67:8080 [13:00:14]Content-Length: 677 [13:00:14]Content-Type: application/json [13:00:14] [13:00:14]POST finish read [13:00:14]Found Content-Length = 677 [13:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:00:14]execute_script... [13:00: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)195855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:00:14]POST & json_proto [13:00:14]process_json_proto [13:00:14]json parsed OK: [13:00:14]protocol is kg_v1.0 [13:00:14]action value=close_receipt [13:00:14]process_action close_receipt [13:00:14]cmd_close_receipt [13:00:14]MH_GetDate [13:00:14]Write to MH i2c: F0 00 00 01 8E 7E [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: F0 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: F0 05 00 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: F0 05 00 01 8E 00 6C 00 EF 65 43 [13:00:14]GetLastDocTimeStamp 1710161759 [13:00:14]current date 1710162028 [13:00:14]FM_GetShiftState [13:00:14]SAM_PROTO_GetShiftState [13:00:14]wFMCommunicate request_size=4 [13:00:14]MH_SAM_APDU [13:00:14]CAPDU: 80 13 01 00 [13:00:14]Write to MH i2c: E2 08 00 02 8E 80 13 01 00 00 00 00 00 0D [13:00:14]Write i2c OK [13:00:14]MH_I2C_Read... [13:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:14]Read from MH i2c: E2 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: E2 0E 00 [13:00:14]MH_I2C_Read... [13:00:14]Read from MH i2c: E2 0E 00 02 8E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A9 [13:00:14]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:00:14]wFMCommunicate OK [13:00:14]SAM_PROTO_GetShiftState done [13:00:14]FM_GetShiftState done [13:00:14]opened in 1710115571 [13:00:14]opened+sec_in_day 1710201971 [13:00:14]quantity*price = 50005 [13:00:14]sum+1 = 50007 [13:00:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 75 11.03.2024 13:00 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94900 ФПД: 256934880163930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T130028&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94900&fm=256934880163930&tin=02508201610067®Number=0000000000090555&sum=50000 [13:00:15]StoreToDocumentArchive [13:00:15]shift 326 fd 94900 [13:00:15]save to /storage/0326/doc_00094900 [13:00:15]save last doc name /storage/0326/doc_00094900 to /storage/kkm_last_doc_name [13:00:15]save OK [13:00:15]Clear old archive folders... [13:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:15]tlvbuf is 004415D0 [13:00:15]SAM_PROTO_ClearQueue [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 09 00 00 [13:00:15]Write to MH i2c: E2 08 00 0F 8E 80 09 00 00 00 00 00 00 0F [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 0F 8E 00 90 00 11 [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]SAM_PROTO_ClearQueue done [13:00:15]KKMCreateOFDPacket [13:00:15]OFDProtocolAddRootSTLVToBuf [13:00:15]FM_MakeSignedData [13:00:15]FM_MakeSignedData [13:00:15]SAM_PROTO_SignData [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 01 02 [13:00:15]Write to MH i2c: E2 08 00 10 8E 80 0D 01 02 00 00 00 00 17 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 10 8E 00 90 00 12 [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]wFMCommunicate request_size=255 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 6C 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 72 01 00 35 04 06 00 E9 [13:00:15]Write to MH i2c: E2 02 01 11 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 6C 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 72 01 00 35 04 06 00 E9 00 00 22 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 11 8E 00 90 00 13 [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]wFMCommunicate request_size=10 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 02 02 05 AE 50 43 38 5A [13:00:15]Write to MH i2c: E2 0D 00 12 8E 80 0D 02 02 05 00 AE 50 43 38 5A 00 00 F7 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 03 00 12 8E 00 90 00 14 [13:00:15]RAPDU: 90 00 [13:00:15]wFMCommunicate OK [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 0D 03 02 [13:00:15]Write to MH i2c: E2 08 00 13 8E 80 0D 03 02 00 00 00 00 1C [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 0B 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 0B 00 13 8E 00 0A C9 84 16 64 B6 37 37 90 00 12 [13:00:15]RAPDU: 0A C9 84 16 64 B6 37 37 90 00 [13:00:15]wFMCommunicate OK [13:00:15]SAM_PROTO_SignData done [13:00:15]FM_MakeSignedData done [13:00:15]CreateOFDProtocolMessage [13:00:15]wFMCommunicate request_size=4 [13:00:15]MH_SAM_APDU [13:00:15]CAPDU: 80 11 00 00 [13:00:15]Write to MH i2c: E2 08 00 14 8E 80 11 00 00 00 00 00 00 1C [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:15]Read from MH i2c: E2 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 17 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: E2 17 00 14 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6C [13:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:00:15]wFMCommunicate OK [13:00:15]CreateOFDProtocolMessage done [13:00:15]OFDSenderStorePacket 94900 [13:00:15]StoreOFDPacket docnum=94900 [13:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1E 96 07 01 F6 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 6C 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 72 01 00 35 04 06 00 E9 AE 50 43 38 5A 0A C9 84 16 64 B6 37 37 [13:00:15]CheckFolder [13:00:15]dirname=/storage/ofd_packets [13:00:15]CheckFolder done [13:00:15]ProducePacketName [13:00:15]name=ofd_packets/00094900 [13:00:15]NVStorageSaveData ofd_packets/00094900 [13:00:15]File name is /storage/ofd_packets/00094900 [13:00:15]Write 301 bytes [13:00:15]NVStorageSaveData done [13:00:15]OFDSenderStorePacket done [13:00:15]KKMCreateOFDPacket done [13:00:15]NVStorageSaveData kkm_last_timestamp [13:00:15]File name is /storage/kkm_last_timestamp [13:00:15]Write 4 bytes [13:00:15]NVStorageSaveData done [13:00:15]ExternCall_PrintAddStr [13:00:15]wPrintStart [13:00:15]Write to MH i2c: 01 00 00 15 8E A3 [13:00:15]Write i2c OK [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 07 00 [13:00:15]MH_I2C_Read... [13:00:15]Read from MH i2c: 01 07 00 15 8E 00 80 00 00 00 FF 0F 38 [13:00:15]RasterBufferAndPrint [13:00:15]line Счет N : (1)195855 [13:00:15]line ИНН: 02508201610067 [13:00:15]line Контрольно-Кассовый Чек [13:00:15]line ПРОДАЖА [13:00:15]line ТРК (МРК, ГНК) : 12 [13:00:15]line Товар: 2710124130 [13:00:15]line Аи-92-К-5 [13:00:15]line 7.950 * 62.90 [13:00:15]line = 500.06 [13:00:15]line НДС 12% НСП 1% [13:00:15]line > о реализуемом товаре [13:00:15]line ОКРУГЛЕНИЕ: -0.06 [13:00:15]line ИТОГО: 500.00 [13:00:15]line Внесено: 500.00 [13:00:15]line СДАЧА: 0.00 [13:00:15]line НСП 1% : 4.42 [13:00:15]line НДС 12% : 53.10 [13:00:15]line Наличными: 500.00 [13:00:15]line Безнал.: 0.00 [13:00:15]line Место: АЗС № 6 "Партнер Нефть" [13:00:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:00:15]line СНО: Общий режим [13:00:15]line Чек 75 11.03.2024 13:00 [13:00:15]line Смена: 326 ФФД: 1.0 [13:00:15]line ЗНМ: 0300000009 [13:00:15]line РНМ: 0000000000090555 [13:00:15]line Версия ККМ: 001 [13:00:15]line ФМ: 0000000000874811 [13:00:15]line ФД: 94900 [13:00:15]line ФПД: 256934880163930 [13:00:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T130028&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94900&fm=256934880163930&tin=02508201610067®Number=0000000000090555&sum=50000 [13:00:16]OFD Sender: Processing packet 94900 [packets to send 30, broken 29] [13:00:16]ProducePacketName [13:00:16]name=ofd_packets/00094900 [13:00:16]OFD Sender: To server: pG, [13:00:16]CommunicateWithHost lk.salyk.kg:30040 [13:00:16]ConnectInit lk.salyk.kg [13:00:16]written 0, free lines is 4095 [13:00:16]Connected sock=10 [13:00: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 31 31 0F 01 00 00 1E 96 07 01 F6 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 6C 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 72 01 00 35 04 06 00 E9 AE 50 43 38 5A 0A C9 84 16 64 B6 37 37 [13:00: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 31 31 4F 00 00 00 9D A8 47 00 26 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 72 01 00 F4 03 04 00 C6 AB EE 65 B6 04 01 00 00 7F E5 DA 9E CE E2 53 B7 [13:00:16]CommunicateWithHost err = 0 [13:00:16]CheckOFDResponse [13:00:16]1017 (14) - 77093643461234 [13:00:16]1041 (16) - 0000000000874811 [13:00:16]1040 (4) - 94900 [13:00:16]1012 (4) - 11.03.2024 06:59 [13:00:16]1206 (1) - 0 [13:00:16]OFD Sender: Remove packet 94900 [13:00:16]ProducePacketName [13:00:16]name=ofd_packets/00094900 [13:00:16]NVStorageDeleteData [13:00:16]Write to MH i2c: 01 00 00 40 8E CE [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 07 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: 01 07 00 40 8E 00 80 00 00 00 53 0D B5 [13:00:16]RasterBufferAndPrint [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]line [13:00:16]written 0, free lines is 3415 [13:00:16]process_action close_receipt done [13:00:16]requested_data is exist [13:00:16]produce_requested_data [13:00:16]requested_item fm.sn is exist - process it [13:00:16]wFMCommunicate request_size=4 [13:00:16]MH_SAM_APDU [13:00:16]CAPDU: 80 11 00 00 [13:00:16]Write to MH i2c: E2 08 00 47 8E 80 11 00 00 00 00 00 00 4F [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:16]Read from MH i2c: E2 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: E2 17 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: E2 17 00 47 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9F [13:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:00:16]wFMCommunicate OK [13:00:16]requested_item fd.num is exist - process it [13:00:16]SAM_PROTO_GetFieldsCounters [13:00:16]wFMCommunicate request_size=4 [13:00:16]MH_SAM_APDU [13:00:16]CAPDU: 80 13 00 00 [13:00:16]Write to MH i2c: E2 08 00 48 8E 80 13 00 00 00 00 00 00 52 [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:16]Read from MH i2c: E2 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: E2 62 00 [13:00:16]MH_I2C_Read... [13:00:16]Read from MH i2c: E2 62 00 48 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B4 72 01 00 0E 04 04 00 46 01 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 BE [13:00: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:16]wFMCommunicate OK [13:00:16]SAM_PROTO_GetFieldsCounters done [13:00:16]requested_item shift.num is exist - process it [13:00:16]requested_item shift.opened is exist - process it [13:00:16]req_shift_opened [13:00:16]FM_GetShiftState [13:00:16]SAM_PROTO_GetShiftState [13:00:16]wFMCommunicate request_size=4 [13:00:16]MH_SAM_APDU [13:00:16]CAPDU: 80 13 01 00 [13:00:16]Write to MH i2c: E2 08 00 49 8E 80 13 01 00 00 00 00 00 54 [13:00:16]Write i2c OK [13:00:16]MH_I2C_Read... [13:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:17]Read from MH i2c: E2 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 0E 00 [13:00:17]MH_I2C_Read... [13:00:17]Read from MH i2c: E2 0E 00 49 8E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F0 [13:00:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:00:17]wFMCommunicate OK [13:00:17]SAM_PROTO_GetShiftState done [13:00:17]FM_GetShiftState done [13:00:17]req_shift_opened done [13:00:17]requested_item shift.open_date is exist - process it [13:00:17]req_shift_open_date [13:00:17]req_shift_open_date done [13:00:17]produce_requested_data done [13:00:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94900,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:00:17]process_action_free close_receipt [13:00:17]json_value_free [13:00:17]json_value_free done [13:00:17]process_json_proto returns [13:00:17]Send response to host [13:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94900,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:00:17]free response buf [13:00:17]execute_script done [13:00:17]execute_script returns [13:00:17]free content buf [13:00:17]Sock 7.Close socket [13:00:17]Sock 7.Thread stoped [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:26]accept exits with 9 [13:00:26]New connection [13:00:26]New thread 3067014500 created [13:00:26]Thread 3066871140 joined [13:00:26]Waiting for new connection... [13:00:26] Sock 9.Parse request [13:00:26]Sock 9.Check first char [13:00:26]Sock 9.First char is OK [13:00:26]request: POST /json_proto HTTP/1.0 [13:00:26]Method: POST [13:00:26]URL: /json_proto [13:00:26]Method is POST - this is cgi request [13:00:26]url: /json_proto [13:00:26]query_string will be loaded in cgi processing [13:00:26]execute_cgi json_proto POST (null) [13:00:26]execute_cgi path=json_proto method=POST [13:00:26]POST find Content-Length [13:00:26]Host: 172.17.62.67:8080 [13:00:26]Content-Length: 682 [13:00:26]Content-Type: application/json [13:00:26] [13:00:26]POST finish read [13:00:26]Found Content-Length = 682 [13:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:26]execute_script... [13:00: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)195856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:26]POST & json_proto [13:00:26]process_json_proto [13:00:26]json parsed OK: [13:00:26]protocol is kg_v1.0 [13:00:26]action value=close_receipt [13:00:26]process_action close_receipt [13:00:26]cmd_close_receipt [13:00:26]MH_GetDate [13:00:26]Write to MH i2c: F0 00 00 4A 8E C7 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: F0 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: F0 05 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: F0 05 00 4A 8E 00 78 00 EF 65 98 [13:00:26]GetLastDocTimeStamp 1710162028 [13:00:26]current date 1710162040 [13:00:26]FM_GetShiftState [13:00:26]SAM_PROTO_GetShiftState [13:00:26]wFMCommunicate request_size=4 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 13 01 00 [13:00:26]Write to MH i2c: E2 08 00 4B 8E 80 13 01 00 00 00 00 00 56 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 0E 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 0E 00 4B 8E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F2 [13:00:26]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:00:26]wFMCommunicate OK [13:00:26]SAM_PROTO_GetShiftState done [13:00:26]FM_GetShiftState done [13:00:26]opened in 1710115571 [13:00:26]opened+sec_in_day 1710201971 [13:00:26]quantity*price = 200021 [13:00:26]sum+1 = 200022 [13:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 76 11.03.2024 13:00 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94901 ФПД: 220493995910732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T130040&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94901&fm=220493995910732&tin=02508201610067®Number=0000000000090555&sum=200000 [13:00:27]StoreToDocumentArchive [13:00:27]shift 326 fd 94901 [13:00:27]save to /storage/0326/doc_00094901 [13:00:27]save last doc name /storage/0326/doc_00094901 to /storage/kkm_last_doc_name [13:00:27]save OK [13:00:27]Clear old archive folders... [13:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:27]tlvbuf is 004CDEE0 [13:00:27]SAM_PROTO_ClearQueue [13:00:27]wFMCommunicate request_size=4 [13:00:27]MH_SAM_APDU [13:00:27]CAPDU: 80 09 00 00 [13:00:27]Write to MH i2c: E2 08 00 58 8E 80 09 00 00 00 00 00 00 58 [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:27]Read from MH i2c: E2 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 03 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 03 00 58 8E 00 90 00 5A [13:00:27]RAPDU: 90 00 [13:00:27]wFMCommunicate OK [13:00:27]SAM_PROTO_ClearQueue done [13:00:27]KKMCreateOFDPacket [13:00:27]OFDProtocolAddRootSTLVToBuf [13:00:27]FM_MakeSignedData [13:00:27]FM_MakeSignedData [13:00:27]SAM_PROTO_SignData [13:00:27]wFMCommunicate request_size=4 [13:00:27]MH_SAM_APDU [13:00:27]CAPDU: 80 0D 01 02 [13:00:27]Write to MH i2c: E2 08 00 59 8E 80 0D 01 02 00 00 00 00 60 [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:27]Read from MH i2c: E2 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 03 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 03 00 59 8E 00 90 00 5B [13:00:27]RAPDU: 90 00 [13:00:27]wFMCommunicate OK [13:00:27]wFMCommunicate request_size=255 [13:00:27]MH_SAM_APDU [13:00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 78 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 72 01 00 35 04 06 00 C8 [13:00:27]Write to MH i2c: E2 02 01 5A 8E 80 0D 02 02 FA 00 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 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 78 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 72 01 00 35 04 06 00 C8 00 00 16 [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:27]Read from MH i2c: E2 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 03 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 03 00 5A 8E 00 90 00 5C [13:00:27]RAPDU: 90 00 [13:00:27]wFMCommunicate OK [13:00:27]wFMCommunicate request_size=10 [13:00:27]MH_SAM_APDU [13:00:27]CAPDU: 80 0D 02 02 05 89 C2 4D 26 4C [13:00:27]Write to MH i2c: E2 0D 00 5B 8E 80 0D 02 02 05 00 89 C2 4D 26 4C 00 00 77 [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:27]Read from MH i2c: E2 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 03 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 03 00 5B 8E 00 90 00 5D [13:00:27]RAPDU: 90 00 [13:00:27]wFMCommunicate OK [13:00:27]wFMCommunicate request_size=4 [13:00:27]MH_SAM_APDU [13:00:27]CAPDU: 80 0D 03 02 [13:00:27]Write to MH i2c: E2 08 00 5C 8E 80 0D 03 02 00 00 00 00 65 [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:27]Read from MH i2c: E2 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 0B 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 0B 00 5C 8E 00 3B D6 82 31 09 F1 F5 F9 90 00 12 [13:00:27]RAPDU: 3B D6 82 31 09 F1 F5 F9 90 00 [13:00:27]wFMCommunicate OK [13:00:27]SAM_PROTO_SignData done [13:00:27]FM_MakeSignedData done [13:00:27]CreateOFDProtocolMessage [13:00:27]wFMCommunicate request_size=4 [13:00:27]MH_SAM_APDU [13:00:27]CAPDU: 80 11 00 00 [13:00:27]Write to MH i2c: E2 08 00 5D 8E 80 11 00 00 00 00 00 00 65 [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:27]Read from MH i2c: E2 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 17 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: E2 17 00 5D 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B5 [13:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:00:27]wFMCommunicate OK [13:00:27]CreateOFDProtocolMessage done [13:00:27]OFDSenderStorePacket 94901 [13:00:27]StoreOFDPacket docnum=94901 [13:00:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 75 4F 07 01 7E BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 78 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 72 01 00 35 04 06 00 C8 89 C2 4D 26 4C 3B D6 82 31 09 F1 F5 F9 [13:00:27]CheckFolder [13:00:27]dirname=/storage/ofd_packets [13:00:27]CheckFolder done [13:00:27]ProducePacketName [13:00:27]name=ofd_packets/00094901 [13:00:27]NVStorageSaveData ofd_packets/00094901 [13:00:27]File name is /storage/ofd_packets/00094901 [13:00:27]Write 301 bytes [13:00:27]NVStorageSaveData done [13:00:27]OFDSenderStorePacket done [13:00:27]KKMCreateOFDPacket done [13:00:27]NVStorageSaveData kkm_last_timestamp [13:00:27]File name is /storage/kkm_last_timestamp [13:00:27]Write 4 bytes [13:00:27]NVStorageSaveData done [13:00:27]ExternCall_PrintAddStr [13:00:27]wPrintStart [13:00:27]Write to MH i2c: 01 00 00 5E 8E EC [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: 01 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: 01 07 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: 01 07 00 5E 8E 00 80 00 00 00 FF 0F 81 [13:00:27]RasterBufferAndPrint [13:00:27]line Счет N : (1)195856 [13:00:27]line ИНН: 02508201610067 [13:00:27]line Контрольно-Кассовый Чек [13:00:27]line ПРОДАЖА [13:00:27]line ТРК (МРК, ГНК) : 31 [13:00:27]line Товар: 2710124500 [13:00:27]line Аи-95-К-5 [13:00:27]line 28.780 * 69.50 [13:00:27]line = 2000.21 [13:00:27]line НДС 12% НСП 1% [13:00:27]line > о реализуемом товаре [13:00:27]line ОКРУГЛЕНИЕ: -0.21 [13:00:27]line ИТОГО: 2000.00 [13:00:27]line Внесено: 2000.00 [13:00:27]line СДАЧА: 0.00 [13:00:27]line НСП 1% : 17.70 [13:00:27]line НДС 12% : 212.41 [13:00:27]line Наличными: 2000.00 [13:00:27]line Безнал.: 0.00 [13:00:27]line Место: АЗС № 6 "Партнер Нефть" [13:00:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:00:27]line СНО: Общий режим [13:00:27]line Чек 76 11.03.2024 13:00 [13:00:27]line Смена: 326 ФФД: 1.0 [13:00:27]line ЗНМ: 0300000009 [13:00:27]line РНМ: 0000000000090555 [13:00:27]line Версия ККМ: 001 [13:00:27]line ФМ: 0000000000874811 [13:00:27]line ФД: 94901 [13:00:27]line ФПД: 220493995910732 [13:00:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T130040&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94901&fm=220493995910732&tin=02508201610067®Number=0000000000090555&sum=200000 [13:00:28]OFD Sender: Processing packet 94901 [packets to send 30, broken 29] [13:00:28]ProducePacketName [13:00:28]name=ofd_packets/00094901 [13:00:28]OFD Sender: To server: pG, [13:00:28]CommunicateWithHost lk.salyk.kg:30040 [13:00:28]ConnectInit lk.salyk.kg [13:00:28]written 0, free lines is 4095 [13:00:28]Connected sock=10 [13:00: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 31 31 0F 01 00 00 75 4F 07 01 7E BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 78 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 72 01 00 35 04 06 00 C8 89 C2 4D 26 4C 3B D6 82 31 09 F1 F5 F9 [13:00: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 31 31 4F 00 00 00 FC 05 47 00 D8 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 72 01 00 F4 03 04 00 D1 AB EE 65 B6 04 01 00 00 5B A1 07 DA 98 88 47 DD [13:00:28]CommunicateWithHost err = 0 [13:00:28]CheckOFDResponse [13:00:28]1017 (14) - 77093643461234 [13:00:28]1041 (16) - 0000000000874811 [13:00:28]1040 (4) - 94901 [13:00:28]1012 (4) - 11.03.2024 06:59 [13:00:28]1206 (1) - 0 [13:00:28]OFD Sender: Remove packet 94901 [13:00:28]ProducePacketName [13:00:28]name=ofd_packets/00094901 [13:00:28]NVStorageDeleteData [13:00:28]Write to MH i2c: 01 00 00 89 8E 17 [13:00:28]Write i2c OK [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: 01 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: 01 07 00 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: 01 07 00 89 8E 00 80 00 00 00 5C 0D 07 [13:00:28]RasterBufferAndPrint [13:00:28]line [13:00:28]line [13:00:28]line [13:00:28]line [13:00:28]line [13:00:28]written 0, free lines is 3426 [13:00:28]process_action close_receipt done [13:00:28]requested_data is exist [13:00:28]produce_requested_data [13:00:28]requested_item fm.sn is exist - process it [13:00:28]wFMCommunicate request_size=4 [13:00:28]MH_SAM_APDU [13:00:28]CAPDU: 80 11 00 00 [13:00:28]Write to MH i2c: E2 08 00 90 8E 80 11 00 00 00 00 00 00 98 [13:00:28]Write i2c OK [13:00:28]MH_I2C_Read... [13:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:28]Read from MH i2c: E2 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 17 00 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 17 00 90 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E8 [13:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:00:28]wFMCommunicate OK [13:00:28]requested_item fd.num is exist - process it [13:00:28]SAM_PROTO_GetFieldsCounters [13:00:28]wFMCommunicate request_size=4 [13:00:28]MH_SAM_APDU [13:00:28]CAPDU: 80 13 00 00 [13:00:28]Write to MH i2c: E2 08 00 91 8E 80 13 00 00 00 00 00 00 9B [13:00:28]Write i2c OK [13:00:28]MH_I2C_Read... [13:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:28]Read from MH i2c: E2 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 62 00 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 62 00 91 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B5 72 01 00 0E 04 04 00 46 01 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 0B [13:00:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:28]wFMCommunicate OK [13:00:28]SAM_PROTO_GetFieldsCounters done [13:00:28]requested_item shift.num is exist - process it [13:00:28]requested_item shift.opened is exist - process it [13:00:28]req_shift_opened [13:00:28]FM_GetShiftState [13:00:28]SAM_PROTO_GetShiftState [13:00:28]wFMCommunicate request_size=4 [13:00:28]MH_SAM_APDU [13:00:28]CAPDU: 80 13 01 00 [13:00:28]Write to MH i2c: E2 08 00 92 8E 80 13 01 00 00 00 00 00 9D [13:00:28]Write i2c OK [13:00:28]MH_I2C_Read... [13:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:28]OFD Sender: No OFD packet to send [13:00:28]Read from MH i2c: E2 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 0E 00 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 0E 00 92 8E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 39 [13:00:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:00:28]wFMCommunicate OK [13:00:28]SAM_PROTO_GetShiftState done [13:00:28]FM_GetShiftState done [13:00:28]req_shift_opened done [13:00:28]requested_item shift.open_date is exist - process it [13:00:28]req_shift_open_date [13:00:28]req_shift_open_date done [13:00:28]produce_requested_data done [13:00:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94901,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:00:28]process_action_free close_receipt [13:00:28]json_value_free [13:00:28]json_value_free done [13:00:28]process_json_proto returns [13:00:28]Send response to host [13:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94901,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:00:28]free response buf [13:00:28]execute_script done [13:00:28]execute_script returns [13:00:28]free content buf [13:00:28]Sock 9.Close socket [13:00:28]Sock 9.Thread stoped [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:10]accept exits with 7 [13:01:10]New connection [13:01:10]New thread 3066871140 created [13:01:10]Thread 3067014500 joined [13:01:10]Waiting for new connection... [13:01:10] Sock 7.Parse request [13:01:10]Sock 7.Check first char [13:01:10]Sock 7.First char is OK [13:01:10]request: POST /json_proto HTTP/1.0 [13:01:10]Method: POST [13:01:10]URL: /json_proto [13:01:10]Method is POST - this is cgi request [13:01:10]url: /json_proto [13:01:10]query_string will be loaded in cgi processing [13:01:10]execute_cgi json_proto POST (null) [13:01:10]execute_cgi path=json_proto method=POST [13:01:10]POST find Content-Length [13:01:10]Host: 172.17.62.67:8080 [13:01:10]Content-Length: 677 [13:01:10]Content-Type: application/json [13:01:10] [13:01:10]POST finish read [13:01:10]Found Content-Length = 677 [13:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:10]execute_script... [13:01: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)195857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:10]POST & json_proto [13:01:10]process_json_proto [13:01:10]json parsed OK: [13:01:10]protocol is kg_v1.0 [13:01:10]action value=close_receipt [13:01:10]process_action close_receipt [13:01:10]cmd_close_receipt [13:01:10]MH_GetDate [13:01:10]Write to MH i2c: F0 00 00 93 8E 10 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: F0 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: F0 05 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: F0 05 00 93 8E 00 A4 00 EF 65 0D [13:01:10]GetLastDocTimeStamp 1710162040 [13:01:10]current date 1710162084 [13:01:10]FM_GetShiftState [13:01:10]SAM_PROTO_GetShiftState [13:01:10]wFMCommunicate request_size=4 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 13 01 00 [13:01:10]Write to MH i2c: E2 08 00 94 8E 80 13 01 00 00 00 00 00 9F [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 0E 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 0E 00 94 8E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3B [13:01:10]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:01:10]wFMCommunicate OK [13:01:10]SAM_PROTO_GetShiftState done [13:01:10]FM_GetShiftState done [13:01:10]opened in 1710115571 [13:01:10]opened+sec_in_day 1710201971 [13:01:10]quantity*price = 20002 [13:01:10]sum+1 = 20003 [13:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 77 11.03.2024 13:01 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94902 ФПД: 10208966973264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T130124&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94902&fm=10208966973264&tin=02508201610067®Number=0000000000090555&sum=20000 [13:01:11]StoreToDocumentArchive [13:01:11]shift 326 fd 94902 [13:01:11]save to /storage/0326/doc_00094902 [13:01:11]save last doc name /storage/0326/doc_00094902 to /storage/kkm_last_doc_name [13:01:11]save OK [13:01:11]Clear old archive folders... [13:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:11]tlvbuf is 0041C7D0 [13:01:11]SAM_PROTO_ClearQueue [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 09 00 00 [13:01:11]Write to MH i2c: E2 08 00 A1 8E 80 09 00 00 00 00 00 00 A1 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 A1 8E 00 90 00 A3 [13:01:11]RAPDU: 90 00 [13:01:11]wFMCommunicate OK [13:01:11]SAM_PROTO_ClearQueue done [13:01:11]KKMCreateOFDPacket [13:01:11]OFDProtocolAddRootSTLVToBuf [13:01:11]FM_MakeSignedData [13:01:11]FM_MakeSignedData [13:01:11]SAM_PROTO_SignData [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 0D 01 02 [13:01:11]Write to MH i2c: E2 08 00 A2 8E 80 0D 01 02 00 00 00 00 A9 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 A2 8E 00 90 00 A4 [13:01:11]RAPDU: 90 00 [13:01:11]wFMCommunicate OK [13:01:11]wFMCommunicate request_size=255 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A4 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 72 01 00 35 04 06 00 09 [13:01:11]Write to MH i2c: E2 02 01 A3 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A4 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 72 01 00 35 04 06 00 09 00 00 E0 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 A3 8E 00 90 00 A5 [13:01:11]RAPDU: 90 00 [13:01:11]wFMCommunicate OK [13:01:11]wFMCommunicate request_size=10 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 0D 02 02 05 48 F5 D9 97 50 [13:01:11]Write to MH i2c: E2 0D 00 A4 8E 80 0D 02 02 05 00 48 F5 D9 97 50 00 00 B3 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 A4 8E 00 90 00 A6 [13:01:11]RAPDU: 90 00 [13:01:11]wFMCommunicate OK [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 0D 03 02 [13:01:11]Write to MH i2c: E2 08 00 A5 8E 80 0D 03 02 00 00 00 00 AE [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0B 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0B 00 A5 8E 00 68 E1 26 BB 26 AC 0C 1A 90 00 D1 [13:01:11]RAPDU: 68 E1 26 BB 26 AC 0C 1A 90 00 [13:01:11]wFMCommunicate OK [13:01:11]SAM_PROTO_SignData done [13:01:11]FM_MakeSignedData done [13:01:11]CreateOFDProtocolMessage [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 11 00 00 [13:01:11]Write to MH i2c: E2 08 00 A6 8E 80 11 00 00 00 00 00 00 AE [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:12]Read from MH i2c: E2 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 17 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 17 00 A6 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FE [13:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:01:12]wFMCommunicate OK [13:01:12]CreateOFDProtocolMessage done [13:01:12]OFDSenderStorePacket 94902 [13:01:12]StoreOFDPacket docnum=94902 [13:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2C DA 07 01 C1 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A4 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 72 01 00 35 04 06 00 09 48 F5 D9 97 50 68 E1 26 BB 26 AC 0C 1A [13:01:12]CheckFolder [13:01:12]dirname=/storage/ofd_packets [13:01:12]CheckFolder done [13:01:12]ProducePacketName [13:01:12]name=ofd_packets/00094902 [13:01:12]NVStorageSaveData ofd_packets/00094902 [13:01:12]File name is /storage/ofd_packets/00094902 [13:01:12]Write 301 bytes [13:01:12]NVStorageSaveData done [13:01:12]OFDSenderStorePacket done [13:01:12]KKMCreateOFDPacket done [13:01:12]NVStorageSaveData kkm_last_timestamp [13:01:12]File name is /storage/kkm_last_timestamp [13:01:12]Write 4 bytes [13:01:12]NVStorageSaveData done [13:01:12]ExternCall_PrintAddStr [13:01:12]wPrintStart [13:01:12]Write to MH i2c: 01 00 00 A7 8E 35 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 07 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 07 00 A7 8E 00 80 00 00 00 FF 0F CA [13:01:12]RasterBufferAndPrint [13:01:12]line Счет N : (1)195857 [13:01:12]line ИНН: 02508201610067 [13:01:12]line Контрольно-Кассовый Чек [13:01:12]line ПРОДАЖА [13:01:12]line ТРК (МРК, ГНК) : 42 [13:01:12]line Товар: 2710124130 [13:01:12]line Аи-92-К-5 [13:01:12]line 3.180 * 62.90 [13:01:12]line = 200.02 [13:01:12]line НДС 12% НСП 1% [13:01:12]line > о реализуемом товаре [13:01:12]line ОКРУГЛЕНИЕ: -0.02 [13:01:12]line ИТОГО: 200.00 [13:01:12]line Внесено: 200.00 [13:01:12]line СДАЧА: 0.00 [13:01:12]line НСП 1% : 1.77 [13:01:12]line НДС 12% : 21.24 [13:01:12]line Наличными: 200.00 [13:01:12]line Безнал.: 0.00 [13:01:12]line Место: АЗС № 6 "Партнер Нефть" [13:01:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:01:12]line СНО: Общий режим [13:01:12]line Чек 77 11.03.2024 13:01 [13:01:12]line Смена: 326 ФФД: 1.0 [13:01:12]line ЗНМ: 0300000009 [13:01:12]line РНМ: 0000000000090555 [13:01:12]line Версия ККМ: 001 [13:01:12]line ФМ: 0000000000874811 [13:01:12]line ФД: 94902 [13:01:12]line ФПД: 10208966973264 [13:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T130124&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94902&fm=10208966973264&tin=02508201610067®Number=0000000000090555&sum=20000 [13:01:12]OFD Sender: Processing packet 94902 [packets to send 30, broken 29] [13:01:12]ProducePacketName [13:01:12]name=ofd_packets/00094902 [13:01:12]OFD Sender: To server: pG, [13:01:12]CommunicateWithHost lk.salyk.kg:30040 [13:01:12]ConnectInit lk.salyk.kg [13:01:12]written 0, free lines is 4095 [13:01:12]Connected sock=10 [13:01: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 31 31 0F 01 00 00 2C DA 07 01 C1 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A4 00 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 72 01 00 35 04 06 00 09 48 F5 D9 97 50 68 E1 26 BB 26 AC 0C 1A [13:01: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 31 31 4F 00 00 00 0F 3C 47 00 32 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 31 31 10 04 04 00 B6 72 01 00 F4 03 04 00 FE AB EE 65 B6 04 01 00 00 5D 8B 96 C4 6E 77 D1 8D [13:01:12]CommunicateWithHost err = 0 [13:01:12]CheckOFDResponse [13:01:12]1017 (14) - 77093643461234 [13:01:12]1041 (16) - 0000000000874811 [13:01:12]1040 (4) - 94902 [13:01:12]1012 (4) - 11.03.2024 07:00 [13:01:12]1206 (1) - 0 [13:01:12]OFD Sender: Remove packet 94902 [13:01:12]ProducePacketName [13:01:12]name=ofd_packets/00094902 [13:01:12]NVStorageDeleteData [13:01:12]Write to MH i2c: 01 00 00 D2 8E 60 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 07 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 07 00 D2 8E 00 80 00 00 00 4E 0D 42 [13:01:12]RasterBufferAndPrint [13:01:12]line [13:01:12]line [13:01:12]line [13:01:12]line [13:01:12]line [13:01:12]written 0, free lines is 3412 [13:01:12]process_action close_receipt done [13:01:12]requested_data is exist [13:01:12]produce_requested_data [13:01:12]requested_item fm.sn is exist - process it [13:01:12]wFMCommunicate request_size=4 [13:01:12]MH_SAM_APDU [13:01:12]CAPDU: 80 11 00 00 [13:01:12]Write to MH i2c: E2 08 00 D9 8E 80 11 00 00 00 00 00 00 E1 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:12]Read from MH i2c: E2 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 17 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: E2 17 00 D9 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 31 [13:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:01:12]wFMCommunicate OK [13:01:12]requested_item fd.num is exist - process it [13:01:12]SAM_PROTO_GetFieldsCounters [13:01:12]wFMCommunicate request_size=4 [13:01:12]MH_SAM_APDU [13:01:12]CAPDU: 80 13 00 00 [13:01:12]Write to MH i2c: E2 08 00 DA 8E 80 13 00 00 00 00 00 00 E4 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 62 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 62 00 DA 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B6 72 01 00 0E 04 04 00 46 01 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 58 [13:01: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:13]wFMCommunicate OK [13:01:13]SAM_PROTO_GetFieldsCounters done [13:01:13]requested_item shift.num is exist - process it [13:01:13]requested_item shift.opened is exist - process it [13:01:13]req_shift_opened [13:01:13]FM_GetShiftState [13:01:13]SAM_PROTO_GetShiftState [13:01:13]wFMCommunicate request_size=4 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 13 01 00 [13:01:13]Write to MH i2c: E2 08 00 DB 8E 80 13 01 00 00 00 00 00 E6 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]OFD Sender: No OFD packet to send [13:01:13]Read from MH i2c: E2 0E 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 0E 00 DB 8E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 82 [13:01:13]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:01:13]wFMCommunicate OK [13:01:13]SAM_PROTO_GetShiftState done [13:01:13]FM_GetShiftState done [13:01:13]req_shift_opened done [13:01:13]requested_item shift.open_date is exist - process it [13:01:13]req_shift_open_date [13:01:13]req_shift_open_date done [13:01:13]produce_requested_data done [13:01:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94902,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:01:13]process_action_free close_receipt [13:01:13]json_value_free [13:01:13]json_value_free done [13:01:13]process_json_proto returns [13:01:13]Send response to host [13:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94902,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:01:13]free response buf [13:01:13]execute_script done [13:01:13]execute_script returns [13:01:13]free content buf [13:01:13]Sock 7.Close socket [13:01:13]Sock 7.Thread stoped [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]accept exits with 9 [13:08:08]New connection [13:08:08]New thread 3067014500 created [13:08:08]Thread 3066871140 joined [13:08:08]Waiting for new connection... [13:08:08] Sock 9.Parse request [13:08:08]Sock 9.Check first char [13:08:08]Sock 9.First char is OK [13:08:08]request: POST /json_proto HTTP/1.0 [13:08:08]Method: POST [13:08:08]URL: /json_proto [13:08:08]Method is POST - this is cgi request [13:08:08]url: /json_proto [13:08:08]query_string will be loaded in cgi processing [13:08:08]execute_cgi json_proto POST (null) [13:08:08]execute_cgi path=json_proto method=POST [13:08:08]POST find Content-Length [13:08:08]Host: 172.17.62.67:8080 [13:08:08]Content-Length: 679 [13:08:08]Content-Type: application/json [13:08:08] [13:08:08]POST finish read [13:08:08]Found Content-Length = 679 [13:08:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:08]execute_script... [13:08: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)195858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:08]POST & json_proto [13:08:08]process_json_proto [13:08:08]json parsed OK: [13:08:08]protocol is kg_v1.0 [13:08:08]action value=close_receipt [13:08:08]process_action close_receipt [13:08:08]cmd_close_receipt [13:08:08]MH_GetDate [13:08:08]Write to MH i2c: F0 00 00 DC 8E 59 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: F0 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: F0 05 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: F0 05 00 DC 8E 00 46 02 EF 65 FA [13:08:08]GetLastDocTimeStamp 1710162084 [13:08:08]current date 1710162502 [13:08:08]FM_GetShiftState [13:08:08]SAM_PROTO_GetShiftState [13:08:08]wFMCommunicate request_size=4 [13:08:08]MH_SAM_APDU [13:08:08]CAPDU: 80 13 01 00 [13:08:08]Write to MH i2c: E2 08 00 DD 8E 80 13 01 00 00 00 00 00 E8 [13:08:08]Write i2c OK [13:08:08]MH_I2C_Read... [13:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:08]Read from MH i2c: E2 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 0E 00 [13:08:08]MH_I2C_Read... [13:08:08]Read from MH i2c: E2 0E 00 DD 8E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 84 [13:08:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:08:08]wFMCommunicate OK [13:08:08]SAM_PROTO_GetShiftState done [13:08:08]FM_GetShiftState done [13:08:08]opened in 1710115571 [13:08:08]opened+sec_in_day 1710201971 [13:08:08]quantity*price = 100039 [13:08:08]sum+1 = 100041 [13:08:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 78 11.03.2024 13:08 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94903 ФПД: 5319657899836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T130822&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94903&fm=5319657899836&tin=02508201610067®Number=0000000000090555&sum=100000 [13:08:09]StoreToDocumentArchive [13:08:09]shift 326 fd 94903 [13:08:09]save to /storage/0326/doc_00094903 [13:08:09]save last doc name /storage/0326/doc_00094903 to /storage/kkm_last_doc_name [13:08:09]save OK [13:08:09]Clear old archive folders... [13:08:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:09]tlvbuf is 00183960 [13:08:09]SAM_PROTO_ClearQueue [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 09 00 00 [13:08:09]Write to MH i2c: E2 08 00 EA 8E 80 09 00 00 00 00 00 00 EA [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 EA 8E 00 90 00 EC [13:08:09]RAPDU: 90 00 [13:08:09]wFMCommunicate OK [13:08:09]SAM_PROTO_ClearQueue done [13:08:09]KKMCreateOFDPacket [13:08:09]OFDProtocolAddRootSTLVToBuf [13:08:09]FM_MakeSignedData [13:08:09]FM_MakeSignedData [13:08:09]SAM_PROTO_SignData [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 0D 01 02 [13:08:09]Write to MH i2c: E2 08 00 EB 8E 80 0D 01 02 00 00 00 00 F2 [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:09]Read from MH i2c: E2 03 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 EB 8E 00 90 00 ED [13:08:09]RAPDU: 90 00 [13:08:09]wFMCommunicate OK [13:08:09]wFMCommunicate request_size=255 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 46 02 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 72 01 00 35 04 06 00 04 D6 94 51 [13:08:09]Write to MH i2c: E2 02 01 EC 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 46 02 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 72 01 00 35 04 06 00 04 D6 94 51 00 00 45 [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 EC 8E 00 90 00 EE [13:08:09]RAPDU: 90 00 [13:08:09]wFMCommunicate OK [13:08:09]wFMCommunicate request_size=7 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 0D 02 02 02 C7 3C [13:08:09]Write to MH i2c: E2 0A 00 ED 8E 80 0D 02 02 02 00 C7 3C 00 00 FC [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 03 00 ED 8E 00 90 00 EF [13:08:09]RAPDU: 90 00 [13:08:09]wFMCommunicate OK [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 0D 03 02 [13:08:09]Write to MH i2c: E2 08 00 EE 8E 80 0D 03 02 00 00 00 00 F7 [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:09]Read from MH i2c: E2 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 0B 00 [13:08:09]MH_I2C_Read... [13:08:09]Read from MH i2c: E2 0B 00 EE 8E 00 BB A7 A2 0B DA 91 D9 44 90 00 8F [13:08:09]RAPDU: BB A7 A2 0B DA 91 D9 44 90 00 [13:08:09]wFMCommunicate OK [13:08:09]SAM_PROTO_SignData done [13:08:09]FM_MakeSignedData done [13:08:09]CreateOFDProtocolMessage [13:08:09]wFMCommunicate request_size=4 [13:08:09]MH_SAM_APDU [13:08:09]CAPDU: 80 11 00 00 [13:08:09]Write to MH i2c: E2 08 00 EF 8E 80 11 00 00 00 00 00 00 F7 [13:08:09]Write i2c OK [13:08:09]MH_I2C_Read... [13:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:10]Read from MH i2c: E2 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 17 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 17 00 EF 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 47 [13:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:08:10]wFMCommunicate OK [13:08:10]CreateOFDProtocolMessage done [13:08:10]OFDSenderStorePacket 94903 [13:08:10]StoreOFDPacket docnum=94903 [13:08:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 AB 49 04 01 7D 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 46 02 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 72 01 00 35 04 06 00 04 D6 94 51 C7 3C BB A7 A2 0B DA 91 D9 44 [13:08:10]CheckFolder [13:08:10]dirname=/storage/ofd_packets [13:08:10]CheckFolder done [13:08:10]ProducePacketName [13:08:10]name=ofd_packets/00094903 [13:08:10]NVStorageSaveData ofd_packets/00094903 [13:08:10]File name is /storage/ofd_packets/00094903 [13:08:10]Write 298 bytes [13:08:10]NVStorageSaveData done [13:08:10]OFDSenderStorePacket done [13:08:10]KKMCreateOFDPacket done [13:08:10]NVStorageSaveData kkm_last_timestamp [13:08:10]File name is /storage/kkm_last_timestamp [13:08:10]Write 4 bytes [13:08:10]NVStorageSaveData done [13:08:10]ExternCall_PrintAddStr [13:08:10]wPrintStart [13:08:10]Write to MH i2c: 01 00 00 F0 8E 7E [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: 01 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: 01 07 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: 01 07 00 F0 8E 00 80 00 00 00 FF 0F 13 [13:08:10]RasterBufferAndPrint [13:08:10]line Счет N : (1)195858 [13:08:10]line ИНН: 02508201610067 [13:08:10]line Контрольно-Кассовый Чек [13:08:10]line ПРОДАЖА [13:08:10]line ТРК (МРК, ГНК) : 51 [13:08:10]line Товар: 2710194210 [13:08:10]line ДТ-К-5 [13:08:10]line 14.110 * 70.90 [13:08:10]line = 1000.40 [13:08:10]line НДС 12% НСП 1% [13:08:10]line > о реализуемом товаре [13:08:10]line ОКРУГЛЕНИЕ: -0.40 [13:08:10]line ИТОГО: 1000.00 [13:08:10]line Внесено: 1000.00 [13:08:10]line СДАЧА: 0.00 [13:08:10]line НСП 1% : 8.85 [13:08:10]line НДС 12% : 106.24 [13:08:10]line Наличными: 1000.00 [13:08:10]line Безнал.: 0.00 [13:08:10]line Место: АЗС № 6 "Партнер Нефть" [13:08:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:08:10]line СНО: Общий режим [13:08:10]line Чек 78 11.03.2024 13:08 [13:08:10]line Смена: 326 ФФД: 1.0 [13:08:10]line ЗНМ: 0300000009 [13:08:10]line РНМ: 0000000000090555 [13:08:10]line Версия ККМ: 001 [13:08:10]line ФМ: 0000000000874811 [13:08:10]line ФД: 94903 [13:08:10]line ФПД: 5319657899836 [13:08:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T130822&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94903&fm=5319657899836&tin=02508201610067®Number=0000000000090555&sum=100000 [13:08:10]OFD Sender: Processing packet 94903 [packets to send 30, broken 29] [13:08:10]ProducePacketName [13:08:10]name=ofd_packets/00094903 [13:08:10]OFD Sender: To server: pG, [13:08:10]CommunicateWithHost lk.salyk.kg:30040 [13:08:10]ConnectInit lk.salyk.kg [13:08:10]written 0, free lines is 4095 [13:08:10]Connected sock=10 [13:08: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 31 31 0C 01 00 00 AB 49 04 01 7D 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 46 02 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 72 01 00 35 04 06 00 04 D6 94 51 C7 3C BB A7 A2 0B DA 91 D9 44 [13:08: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 31 31 4F 00 00 00 65 4D 47 00 9C 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 31 31 10 04 04 00 B7 72 01 00 F4 03 04 00 A0 AD EE 65 B6 04 01 00 00 81 E0 BD 2D 35 16 E9 47 [13:08:10]CommunicateWithHost err = 0 [13:08:10]CheckOFDResponse [13:08:10]1017 (14) - 77093643461234 [13:08:10]1041 (16) - 0000000000874811 [13:08:10]1040 (4) - 94903 [13:08:10]1012 (4) - 11.03.2024 07:07 [13:08:10]1206 (1) - 0 [13:08:10]OFD Sender: Remove packet 94903 [13:08:10]ProducePacketName [13:08:10]name=ofd_packets/00094903 [13:08:10]NVStorageDeleteData [13:08:10]Write to MH i2c: 01 00 00 1B 8F AA [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: 01 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: 01 07 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: 01 07 00 1B 8F 00 80 00 00 00 4A 0D 88 [13:08:10]RasterBufferAndPrint [13:08:10]line [13:08:10]line [13:08:10]line [13:08:10]line [13:08:10]line [13:08:10]written 0, free lines is 3408 [13:08:10]process_action close_receipt done [13:08:10]requested_data is exist [13:08:10]produce_requested_data [13:08:10]requested_item fm.sn is exist - process it [13:08:10]wFMCommunicate request_size=4 [13:08:10]MH_SAM_APDU [13:08:10]CAPDU: 80 11 00 00 [13:08:10]Write to MH i2c: E2 08 00 22 8F 80 11 00 00 00 00 00 00 2B [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:10]Read from MH i2c: E2 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 17 00 [13:08:10]MH_I2C_Read... [13:08:10]Read from MH i2c: E2 17 00 22 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7B [13:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:08:10]wFMCommunicate OK [13:08:10]requested_item fd.num is exist - process it [13:08:10]SAM_PROTO_GetFieldsCounters [13:08:10]wFMCommunicate request_size=4 [13:08:10]MH_SAM_APDU [13:08:10]CAPDU: 80 13 00 00 [13:08:10]Write to MH i2c: E2 08 00 23 8F 80 13 00 00 00 00 00 00 2E [13:08:10]Write i2c OK [13:08:10]MH_I2C_Read... [13:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:11]Read from MH i2c: E2 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 62 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 62 00 23 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B7 72 01 00 0E 04 04 00 46 01 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 A6 [13:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:11]wFMCommunicate OK [13:08:11]SAM_PROTO_GetFieldsCounters done [13:08:11]requested_item shift.num is exist - process it [13:08:11]requested_item shift.opened is exist - process it [13:08:11]req_shift_opened [13:08:11]FM_GetShiftState [13:08:11]SAM_PROTO_GetShiftState [13:08:11]wFMCommunicate request_size=4 [13:08:11]MH_SAM_APDU [13:08:11]CAPDU: 80 13 01 00 [13:08:11]Write to MH i2c: E2 08 00 24 8F 80 13 01 00 00 00 00 00 30 [13:08:11]Write i2c OK [13:08:11]MH_I2C_Read... [13:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:11]Read from MH i2c: E2 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 0E 00 [13:08:11]MH_I2C_Read... [13:08:11]Read from MH i2c: E2 0E 00 24 8F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CC [13:08:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:08:11]wFMCommunicate OK [13:08:11]SAM_PROTO_GetShiftState done [13:08:11]FM_GetShiftState done [13:08:11]req_shift_opened done [13:08:11]requested_item shift.open_date is exist - process it [13:08:11]req_shift_open_date [13:08:11]req_shift_open_date done [13:08:11]produce_requested_data done [13:08:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94903,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:08:11]process_action_free close_receipt [13:08:11]json_value_free [13:08:11]json_value_free done [13:08:11]process_json_proto returns [13:08:11]Send response to host [13:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94903,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:08:11]free response buf [13:08:11]execute_script done [13:08:11]execute_script returns [13:08:11]free content buf [13:08:11]Sock 9.Close socket [13:08:11]Sock 9.Thread stoped [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:15]accept exits with 7 [13:11:15]New connection [13:11:15]New thread 3066871140 created [13:11:15]Thread 3067014500 joined [13:11:15]Waiting for new connection... [13:11:15] Sock 7.Parse request [13:11:15]Sock 7.Check first char [13:11:15]Sock 7.First char is OK [13:11:15]request: POST /json_proto HTTP/1.0 [13:11:15]Method: POST [13:11:15]URL: /json_proto [13:11:15]Method is POST - this is cgi request [13:11:15]url: /json_proto [13:11:15]query_string will be loaded in cgi processing [13:11:15]execute_cgi json_proto POST (null) [13:11:15]execute_cgi path=json_proto method=POST [13:11:15]POST find Content-Length [13:11:15]Host: 172.17.62.67:8080 [13:11:15]Content-Length: 1189 [13:11:15]Content-Type: application/json [13:11:15] [13:11:15]POST finish read [13:11:15]Found Content-Length = 1189 [13:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195859\u000A11.03.2024 13:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3821897:98:99\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:15]execute_script... [13:11:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195859\u000A11.03.2024 13:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3821897:98:99\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:15]POST & json_proto [13:11:15]process_json_proto [13:11:15]json parsed OK: [13:11:15]protocol is kg_v1.0 [13:11:15]action value=print_text [13:11:15]process_action print_text [13:11:15]cmd_print_text [13:11:15]ExternCall_PrintAddStr [13:11:15]wPrintStart [13:11:15]Write to MH i2c: 01 00 00 25 8F B4 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 25 8F 00 80 00 00 00 FF 0F 49 [13:11:15]RasterBufferAndPrint [13:11:15]line *****ТОВАРНЫЙ ЧЕК***** [13:11:15]line АЗС 6 [13:11:15]line Партнер нефть [13:11:15]line 02508201610067 [13:11:15]line Кассир : Карыбаев Б. [13:11:15]line Счет N : (1)195859 [13:11:15]line 11.03.2024 13:05 [13:11:15]line ПРОДАЖА [13:11:15]line ТРК (МРК, ГНК): 12 [13:11:15]line Вид ГСМ : 2710124130 [13:11:15]line Аи-92-К-5 [13:11:15]line 30.000 x 62.90 [13:11:15]line ИТОГ: 1887.00 [13:11:15]line Тип оплаты: Талоны: Партнер нефть [13:11:15]line 3821897:98:99 [13:11:15]line ______________________ [13:11:15]line (подпись) [13:11:15]written 0, free lines is 4095 [13:11:15]Write to MH i2c: 01 00 00 39 8F C8 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 39 8F 00 80 00 00 00 6D 0E CA [13:11:15]RasterBufferAndPrint [13:11:15]line [13:11:15]line [13:11:15]line [13:11:15]line [13:11:15]line [13:11:15]written 0, free lines is 3697 [13:11:15]process_action print_text done [13:11:15]requested_data is exist [13:11:15]produce_requested_data [13:11:15]requested_item fm.sn is exist - process it [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 11 00 00 [13:11:15]Write to MH i2c: E2 08 00 40 8F 80 11 00 00 00 00 00 00 49 [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:15]Read from MH i2c: E2 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 17 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: E2 17 00 40 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 99 [13:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:11:15]wFMCommunicate OK [13:11:15]requested_item fd.num is exist - process it [13:11:15]SAM_PROTO_GetFieldsCounters [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 13 00 00 [13:11:15]Write to MH i2c: E2 08 00 41 8F 80 13 00 00 00 00 00 00 4C [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 62 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 62 00 41 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B7 72 01 00 0E 04 04 00 46 01 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 C4 [13:11: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:16]wFMCommunicate OK [13:11:16]SAM_PROTO_GetFieldsCounters done [13:11:16]requested_item shift.num is exist - process it [13:11:16]requested_item shift.opened is exist - process it [13:11:16]req_shift_opened [13:11:16]FM_GetShiftState [13:11:16]SAM_PROTO_GetShiftState [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 13 01 00 [13:11:16]Write to MH i2c: E2 08 00 42 8F 80 13 01 00 00 00 00 00 4E [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 0E 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 0E 00 42 8F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EA [13:11:16]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:11:16]wFMCommunicate OK [13:11:16]SAM_PROTO_GetShiftState done [13:11:16]FM_GetShiftState done [13:11:16]req_shift_opened done [13:11:16]requested_item shift.open_date is exist - process it [13:11:16]req_shift_open_date [13:11:16]req_shift_open_date done [13:11:16]produce_requested_data done [13:11:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94903,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:11:16]process_action_free print_text [13:11:16]json_value_free [13:11:16]json_value_free done [13:11:16]process_json_proto returns [13:11:16]Send response to host [13:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94903,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:11:16]free response buf [13:11:16]execute_script done [13:11:16]execute_script returns [13:11:16]free content buf [13:11:16]Sock 7.Close socket [13:11:16]Sock 7.Thread stoped [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:17:56]accept exits with 9 [13:17:56]New connection [13:17:56]New thread 3067014500 created [13:17:56]Thread 3066871140 joined [13:17:56]Waiting for new connection... [13:17:56] Sock 9.Parse request [13:17:56]Sock 9.Check first char [13:17:56]Sock 9.First char is OK [13:17:56]request: POST /json_proto HTTP/1.0 [13:17:56]Method: POST [13:17:56]URL: /json_proto [13:17:56]Method is POST - this is cgi request [13:17:56]url: /json_proto [13:17:56]query_string will be loaded in cgi processing [13:17:56]execute_cgi json_proto POST (null) [13:17:56]execute_cgi path=json_proto method=POST [13:17:56]POST find Content-Length [13:17:56]Host: 172.17.62.67:8080 [13:17:56]Content-Length: 674 [13:17:56]Content-Type: application/json [13:17:56] [13:17:56]POST finish read [13:17:56]Found Content-Length = 674 [13:17:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:17:56]execute_script... [13:17: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)195860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:17:56]POST & json_proto [13:17:56]process_json_proto [13:17:56]json parsed OK: [13:17:56]protocol is kg_v1.0 [13:17:56]action value=close_receipt [13:17:56]process_action close_receipt [13:17:56]cmd_close_receipt [13:17:56]MH_GetDate [13:17:56]Write to MH i2c: F0 00 00 43 8F C1 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: F0 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: F0 05 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: F0 05 00 43 8F 00 93 04 EF 65 B1 [13:17:56]GetLastDocTimeStamp 1710162502 [13:17:56]current date 1710163091 [13:17:56]FM_GetShiftState [13:17:56]SAM_PROTO_GetShiftState [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 13 01 00 [13:17:56]Write to MH i2c: E2 08 00 44 8F 80 13 01 00 00 00 00 00 50 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 0E 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 0E 00 44 8F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EC [13:17:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:17:56]wFMCommunicate OK [13:17:56]SAM_PROTO_GetShiftState done [13:17:56]FM_GetShiftState done [13:17:56]opened in 1710115571 [13:17:56]opened+sec_in_day 1710201971 [13:17:56]quantity*price = 50055 [13:17:56]sum+1 = 50056 [13:17:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 79 11.03.2024 13:18 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94904 ФПД: 44074631772092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T131811&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94904&fm=44074631772092&tin=02508201610067®Number=0000000000090555&sum=50000 [13:17:58]StoreToDocumentArchive [13:17:58]shift 326 fd 94904 [13:17:58]save to /storage/0326/doc_00094904 [13:17:58]save last doc name /storage/0326/doc_00094904 to /storage/kkm_last_doc_name [13:17:58]save OK [13:17:58]Clear old archive folders... [13:17:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:17:58]tlvbuf is B6F647A0 [13:17:58]SAM_PROTO_ClearQueue [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 09 00 00 [13:17:58]Write to MH i2c: E2 08 00 51 8F 80 09 00 00 00 00 00 00 52 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:58]Read from MH i2c: E2 03 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 51 8F 00 90 00 54 [13:17:58]RAPDU: 90 00 [13:17:58]wFMCommunicate OK [13:17:58]SAM_PROTO_ClearQueue done [13:17:58]KKMCreateOFDPacket [13:17:58]OFDProtocolAddRootSTLVToBuf [13:17:58]FM_MakeSignedData [13:17:58]FM_MakeSignedData [13:17:58]SAM_PROTO_SignData [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 0D 01 02 [13:17:58]Write to MH i2c: E2 08 00 52 8F 80 0D 01 02 00 00 00 00 5A [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 52 8F 00 90 00 55 [13:17:58]RAPDU: 90 00 [13:17:58]wFMCommunicate OK [13:17:58]wFMCommunicate request_size=255 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 93 04 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 72 01 00 35 04 06 00 28 15 EC C5 [13:17:58]Write to MH i2c: E2 02 01 53 8F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 93 04 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 72 01 00 35 04 06 00 28 15 EC C5 00 00 CD [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 53 8F 00 90 00 56 [13:17:58]RAPDU: 90 00 [13:17:58]wFMCommunicate OK [13:17:58]wFMCommunicate request_size=7 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 0D 02 02 02 37 BC [13:17:58]Write to MH i2c: E2 0A 00 54 8F 80 0D 02 02 02 00 37 BC 00 00 54 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 54 8F 00 90 00 57 [13:17:58]RAPDU: 90 00 [13:17:58]wFMCommunicate OK [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 0D 03 02 [13:17:58]Write to MH i2c: E2 08 00 55 8F 80 0D 03 02 00 00 00 00 5F [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 0B 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 0B 00 55 8F 00 26 7D 1B A9 0D 49 0B 00 90 00 28 [13:17:58]RAPDU: 26 7D 1B A9 0D 49 0B 00 90 00 [13:17:58]wFMCommunicate OK [13:17:58]SAM_PROTO_SignData done [13:17:58]FM_MakeSignedData done [13:17:58]CreateOFDProtocolMessage [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 11 00 00 [13:17:58]Write to MH i2c: E2 08 00 56 8F 80 11 00 00 00 00 00 00 5F [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 17 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 17 00 56 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AF [13:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:17:58]wFMCommunicate OK [13:17:58]CreateOFDProtocolMessage done [13:17:58]OFDSenderStorePacket 94904 [13:17:58]StoreOFDPacket docnum=94904 [13:17:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 2A 5B 04 01 AA 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 93 04 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 72 01 00 35 04 06 00 28 15 EC C5 37 BC 26 7D 1B A9 0D 49 0B 00 [13:17:58]CheckFolder [13:17:58]dirname=/storage/ofd_packets [13:17:58]CheckFolder done [13:17:58]ProducePacketName [13:17:58]name=ofd_packets/00094904 [13:17:58]NVStorageSaveData ofd_packets/00094904 [13:17:58]File name is /storage/ofd_packets/00094904 [13:17:58]Write 298 bytes [13:17:58]NVStorageSaveData done [13:17:58]OFDSenderStorePacket done [13:17:58]KKMCreateOFDPacket done [13:17:58]NVStorageSaveData kkm_last_timestamp [13:17:58]File name is /storage/kkm_last_timestamp [13:17:58]Write 4 bytes [13:17:58]NVStorageSaveData done [13:17:58]ExternCall_PrintAddStr [13:17:58]wPrintStart [13:17:58]Write to MH i2c: 01 00 00 57 8F E6 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 07 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 07 00 57 8F 00 80 00 00 00 FF 0F 7B [13:17:58]RasterBufferAndPrint [13:17:58]line Счет N : (1)195860 [13:17:58]line ИНН: 02508201610067 [13:17:58]line Контрольно-Кассовый Чек [13:17:58]line ПРОДАЖА [13:17:58]line ТРК (МРК, ГНК) : 51 [13:17:58]line Товар: 2710194210 [13:17:58]line ДТ-К-5 [13:17:58]line 7.060 * 70.90 [13:17:58]line = 500.55 [13:17:58]line НДС 12% НСП 1% [13:17:58]line > о реализуемом товаре [13:17:58]line ОКРУГЛЕНИЕ: -0.55 [13:17:58]line ИТОГО: 500.00 [13:17:58]line Внесено: 500.00 [13:17:58]line СДАЧА: 0.00 [13:17:58]line НСП 1% : 4.43 [13:17:58]line НДС 12% : 53.16 [13:17:58]line Наличными: 500.00 [13:17:58]line Безнал.: 0.00 [13:17:58]line Место: АЗС № 6 "Партнер Нефть" [13:17:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:17:58]line СНО: Общий режим [13:17:58]line Чек 79 11.03.2024 13:18 [13:17:58]line Смена: 326 ФФД: 1.0 [13:17:58]line ЗНМ: 0300000009 [13:17:58]line РНМ: 0000000000090555 [13:17:58]line Версия ККМ: 001 [13:17:58]line ФМ: 0000000000874811 [13:17:58]line ФД: 94904 [13:17:58]line ФПД: 44074631772092 [13:17:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T131811&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94904&fm=44074631772092&tin=02508201610067®Number=0000000000090555&sum=50000 [13:17:58]OFD Sender: Processing packet 94904 [packets to send 30, broken 29] [13:17:58]ProducePacketName [13:17:58]name=ofd_packets/00094904 [13:17:58]OFD Sender: To server: pG, [13:17:58]CommunicateWithHost lk.salyk.kg:30040 [13:17:58]ConnectInit lk.salyk.kg [13:17:58]written 0, free lines is 4095 [13:17:58]Connected sock=10 [13:17: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 31 31 0C 01 00 00 2A 5B 04 01 AA 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 93 04 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 72 01 00 35 04 06 00 28 15 EC C5 37 BC 26 7D 1B A9 0D 49 0B 00 [13:17:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DD FA 47 00 21 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 72 01 00 F4 03 04 00 EC AF EE 65 B6 04 01 00 00 4F 93 47 71 1F AC 3D 91 [13:17:59]CommunicateWithHost err = 0 [13:17:59]CheckOFDResponse [13:17:59]1017 (14) - 77093643461234 [13:17:59]1041 (16) - 0000000000874811 [13:17:59]1040 (4) - 94904 [13:17:59]1012 (4) - 11.03.2024 07:17 [13:17:59]1206 (1) - 0 [13:17:59]OFD Sender: Remove packet 94904 [13:17:59]ProducePacketName [13:17:59]name=ofd_packets/00094904 [13:17:59]NVStorageDeleteData [13:17:59]Write to MH i2c: 01 00 00 82 8F 11 [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: 01 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: 01 07 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: 01 07 00 82 8F 00 80 00 00 00 54 0D F9 [13:17:59]RasterBufferAndPrint [13:17:59]line [13:17:59]line [13:17:59]line [13:17:59]line [13:17:59]line [13:17:59]written 0, free lines is 3418 [13:17:59]process_action close_receipt done [13:17:59]requested_data is exist [13:17:59]produce_requested_data [13:17:59]requested_item fm.sn is exist - process it [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 11 00 00 [13:17:59]Write to MH i2c: E2 08 00 89 8F 80 11 00 00 00 00 00 00 92 [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:59]Read from MH i2c: E2 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 17 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 17 00 89 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E2 [13:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:17:59]wFMCommunicate OK [13:17:59]requested_item fd.num is exist - process it [13:17:59]SAM_PROTO_GetFieldsCounters [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 13 00 00 [13:17:59]Write to MH i2c: E2 08 00 8A 8F 80 13 00 00 00 00 00 00 95 [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:59]Read from MH i2c: E2 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 62 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 62 00 8A 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B8 72 01 00 0E 04 04 00 46 01 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 11 [13:17: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B8 72 01 00 0E 04 04 00 46 01 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 [13:17:59]wFMCommunicate OK [13:17:59]SAM_PROTO_GetFieldsCounters done [13:17:59]requested_item shift.num is exist - process it [13:17:59]requested_item shift.opened is exist - process it [13:17:59]req_shift_opened [13:17:59]FM_GetShiftState [13:17:59]SAM_PROTO_GetShiftState [13:17:59]wFMCommunicate request_size=4 [13:17:59]MH_SAM_APDU [13:17:59]CAPDU: 80 13 01 00 [13:17:59]Write to MH i2c: E2 08 00 8B 8F 80 13 01 00 00 00 00 00 97 [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:59]Read from MH i2c: E2 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 0E 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: E2 0E 00 8B 8F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 33 [13:17:59]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:17:59]wFMCommunicate OK [13:17:59]SAM_PROTO_GetShiftState done [13:17:59]FM_GetShiftState done [13:17:59]req_shift_opened done [13:17:59]requested_item shift.open_date is exist - process it [13:17:59]req_shift_open_date [13:17:59]req_shift_open_date done [13:17:59]produce_requested_data done [13:17:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94904,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:17:59]process_action_free close_receipt [13:17:59]json_value_free [13:17:59]json_value_free done [13:17:59]process_json_proto returns [13:17:59]Send response to host [13:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94904,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:17:59]free response buf [13:17:59]execute_script done [13:17:59]execute_script returns [13:17:59]free content buf [13:17:59]Sock 9.Close socket [13:17:59]Sock 9.Thread stoped [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:15]accept exits with 7 [13:19:15]New connection [13:19:15]New thread 3066871140 created [13:19:15]Thread 3067014500 joined [13:19:15]Waiting for new connection... [13:19:15] Sock 7.Parse request [13:19:15]Sock 7.Check first char [13:19:15]Sock 7.First char is OK [13:19:15]request: POST /json_proto HTTP/1.0 [13:19:15]Method: POST [13:19:15]URL: /json_proto [13:19:15]Method is POST - this is cgi request [13:19:15]url: /json_proto [13:19:15]query_string will be loaded in cgi processing [13:19:15]execute_cgi json_proto POST (null) [13:19:15]execute_cgi path=json_proto method=POST [13:19:15]POST find Content-Length [13:19:15]Host: 172.17.62.67:8080 [13:19:15]Content-Length: 674 [13:19:15]Content-Type: application/json [13:19:15] [13:19:15]POST finish read [13:19:15]Found Content-Length = 674 [13:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:19:15]execute_script... [13:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "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:19:15]POST & json_proto [13:19:15]process_json_proto [13:19:15]json parsed OK: [13:19:15]protocol is kg_v1.0 [13:19:15]action value=close_receipt [13:19:15]process_action close_receipt [13:19:15]cmd_close_receipt [13:19:15]MH_GetDate [13:19:15]Write to MH i2c: F0 00 00 8C 8F 0A [13:19:15]Write i2c OK [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: F0 [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: F0 05 00 [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: F0 05 00 8C 8F 00 E2 04 EF 65 49 [13:19:15]GetLastDocTimeStamp 1710163091 [13:19:15]current date 1710163170 [13:19:15]FM_GetShiftState [13:19:15]SAM_PROTO_GetShiftState [13:19:15]wFMCommunicate request_size=4 [13:19:15]MH_SAM_APDU [13:19:15]CAPDU: 80 13 01 00 [13:19:15]Write to MH i2c: E2 08 00 8D 8F 80 13 01 00 00 00 00 00 99 [13:19:15]Write i2c OK [13:19:15]MH_I2C_Read... [13:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:15]Read from MH i2c: E2 [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: E2 0E 00 [13:19:15]MH_I2C_Read... [13:19:15]Read from MH i2c: E2 0E 00 8D 8F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 35 [13:19:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:19:15]wFMCommunicate OK [13:19:15]SAM_PROTO_GetShiftState done [13:19:15]FM_GetShiftState done [13:19:15]opened in 1710115571 [13:19:15]opened+sec_in_day 1710201971 [13:19:15]quantity*price = 50055 [13:19:15]sum+1 = 50056 [13:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 80 11.03.2024 13:19 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94905 ФПД: 280804707605595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T131930&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94905&fm=280804707605595&tin=02508201610067®Number=0000000000090555&sum=50000 [13:19:16]StoreToDocumentArchive [13:19:16]shift 326 fd 94905 [13:19:16]save to /storage/0326/doc_00094905 [13:19:16]save last doc name /storage/0326/doc_00094905 to /storage/kkm_last_doc_name [13:19:16]save OK [13:19:16]Clear old archive folders... [13:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:19:16]tlvbuf is 00248DD0 [13:19:16]SAM_PROTO_ClearQueue [13:19:16]wFMCommunicate request_size=4 [13:19:16]MH_SAM_APDU [13:19:16]CAPDU: 80 09 00 00 [13:19:16]Write to MH i2c: E2 08 00 9A 8F 80 09 00 00 00 00 00 00 9B [13:19:16]Write i2c OK [13:19:16]MH_I2C_Read... [13:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:16]Read from MH i2c: E2 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 03 00 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 03 00 9A 8F 00 90 00 9D [13:19:16]RAPDU: 90 00 [13:19:16]wFMCommunicate OK [13:19:16]SAM_PROTO_ClearQueue done [13:19:16]KKMCreateOFDPacket [13:19:16]OFDProtocolAddRootSTLVToBuf [13:19:16]FM_MakeSignedData [13:19:16]FM_MakeSignedData [13:19:16]SAM_PROTO_SignData [13:19:16]wFMCommunicate request_size=4 [13:19:16]MH_SAM_APDU [13:19:16]CAPDU: 80 0D 01 02 [13:19:16]Write to MH i2c: E2 08 00 9B 8F 80 0D 01 02 00 00 00 00 A3 [13:19:16]Write i2c OK [13:19:16]MH_I2C_Read... [13:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:16]Read from MH i2c: E2 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 03 00 [13:19:16]MH_I2C_Read... [13:19:16]Read from MH i2c: E2 03 00 9B 8F 00 90 00 9E [13:19:16]RAPDU: 90 00 [13:19:16]wFMCommunicate OK [13:19:16]wFMCommunicate request_size=255 [13:19:16]MH_SAM_APDU [13:19:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 04 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 72 01 00 35 04 06 00 FF 63 F0 D9 [13:19:16]Write to MH i2c: E2 02 01 9C 8F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 04 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 72 01 00 35 04 06 00 FF 63 F0 D9 00 00 A4 [13:19:16]Write i2c OK [13:19:16]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 9C 8F 00 90 00 9F [13:19:17]RAPDU: 90 00 [13:19:17]wFMCommunicate OK [13:19:17]wFMCommunicate request_size=7 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 0D 02 02 02 1C 5B [13:19:17]Write to MH i2c: E2 0A 00 9D 8F 80 0D 02 02 02 00 1C 5B 00 00 21 [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 03 00 9D 8F 00 90 00 A0 [13:19:17]RAPDU: 90 00 [13:19:17]wFMCommunicate OK [13:19:17]wFMCommunicate request_size=4 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 0D 03 02 [13:19:17]Write to MH i2c: E2 08 00 9E 8F 80 0D 03 02 00 00 00 00 A8 [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 0B 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 0B 00 9E 8F 00 7A 67 5E DD B1 50 9F 20 90 00 85 [13:19:17]RAPDU: 7A 67 5E DD B1 50 9F 20 90 00 [13:19:17]wFMCommunicate OK [13:19:17]SAM_PROTO_SignData done [13:19:17]FM_MakeSignedData done [13:19:17]CreateOFDProtocolMessage [13:19:17]wFMCommunicate request_size=4 [13:19:17]MH_SAM_APDU [13:19:17]CAPDU: 80 11 00 00 [13:19:17]Write to MH i2c: E2 08 00 9F 8F 80 11 00 00 00 00 00 00 A8 [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:17]Read from MH i2c: E2 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 17 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: E2 17 00 9F 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [13:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:19:17]wFMCommunicate OK [13:19:17]CreateOFDProtocolMessage done [13:19:17]OFDSenderStorePacket 94905 [13:19:17]StoreOFDPacket docnum=94905 [13:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 C6 03 04 01 F1 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 04 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 72 01 00 35 04 06 00 FF 63 F0 D9 1C 5B 7A 67 5E DD B1 50 9F 20 [13:19:17]CheckFolder [13:19:17]dirname=/storage/ofd_packets [13:19:17]CheckFolder done [13:19:17]ProducePacketName [13:19:17]name=ofd_packets/00094905 [13:19:17]NVStorageSaveData ofd_packets/00094905 [13:19:17]File name is /storage/ofd_packets/00094905 [13:19:17]Write 298 bytes [13:19:17]NVStorageSaveData done [13:19:17]OFDSenderStorePacket done [13:19:17]KKMCreateOFDPacket done [13:19:17]NVStorageSaveData kkm_last_timestamp [13:19:17]File name is /storage/kkm_last_timestamp [13:19:17]Write 4 bytes [13:19:17]NVStorageSaveData done [13:19:17]ExternCall_PrintAddStr [13:19:17]wPrintStart [13:19:17]Write to MH i2c: 01 00 00 A0 8F 2F [13:19:17]Write i2c OK [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 07 00 [13:19:17]MH_I2C_Read... [13:19:17]Read from MH i2c: 01 07 00 A0 8F 00 80 00 00 00 FF 0F C4 [13:19:17]RasterBufferAndPrint [13:19:17]line Счет N : (1)195861 [13:19:17]line ИНН: 02508201610067 [13:19:17]line Контрольно-Кассовый Чек [13:19:17]line ПРОДАЖА [13:19:17]line ТРК (МРК, ГНК) : 51 [13:19:17]line Товар: 2710194210 [13:19:17]line ДТ-К-5 [13:19:17]line 7.060 * 70.90 [13:19:17]line = 500.55 [13:19:17]line НДС 12% НСП 1% [13:19:17]line > о реализуемом товаре [13:19:17]line ОКРУГЛЕНИЕ: -0.55 [13:19:17]line ИТОГО: 500.00 [13:19:17]line Внесено: 500.00 [13:19:17]line СДАЧА: 0.00 [13:19:17]line НСП 1% : 4.43 [13:19:17]line НДС 12% : 53.16 [13:19:17]line Наличными: 500.00 [13:19:17]line Безнал.: 0.00 [13:19:17]line Место: АЗС № 6 "Партнер Нефть" [13:19:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:19:17]line СНО: Общий режим [13:19:17]line Чек 80 11.03.2024 13:19 [13:19:17]line Смена: 326 ФФД: 1.0 [13:19:17]line ЗНМ: 0300000009 [13:19:17]line РНМ: 0000000000090555 [13:19:17]line Версия ККМ: 001 [13:19:17]line ФМ: 0000000000874811 [13:19:17]line ФД: 94905 [13:19:17]line ФПД: 280804707605595 [13:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T131930&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94905&fm=280804707605595&tin=02508201610067®Number=0000000000090555&sum=50000 [13:19:17]OFD Sender: Processing packet 94905 [packets to send 30, broken 29] [13:19:17]ProducePacketName [13:19:17]name=ofd_packets/00094905 [13:19:17]OFD Sender: To server: pG, [13:19:17]CommunicateWithHost lk.salyk.kg:30040 [13:19:17]ConnectInit lk.salyk.kg [13:19:17]written 0, free lines is 4095 [13:19:17]Connected sock=10 [13:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 C6 03 04 01 F1 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 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 04 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 72 01 00 35 04 06 00 FF 63 F0 D9 1C 5B 7A 67 5E DD B1 50 9F 20 [13:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DD 8D 47 00 03 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 31 31 10 04 04 00 B9 72 01 00 F4 03 04 00 3B B0 EE 65 B6 04 01 00 00 DF 73 EB FD FF D2 BB 42 [13:19:17]CommunicateWithHost err = 0 [13:19:17]CheckOFDResponse [13:19:17]1017 (14) - 77093643461234 [13:19:17]1041 (16) - 0000000000874811 [13:19:17]1040 (4) - 94905 [13:19:17]1012 (4) - 11.03.2024 07:18 [13:19:17]1206 (1) - 0 [13:19:17]OFD Sender: Remove packet 94905 [13:19:17]ProducePacketName [13:19:17]name=ofd_packets/00094905 [13:19:17]NVStorageDeleteData [13:19:18]Write to MH i2c: 01 00 00 CB 8F 5A [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 07 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: 01 07 00 CB 8F 00 80 00 00 00 51 0D 3F [13:19:18]RasterBufferAndPrint [13:19:18]line [13:19:18]line [13:19:18]line [13:19:18]line [13:19:18]line [13:19:18]written 0, free lines is 3414 [13:19:18]process_action close_receipt done [13:19:18]requested_data is exist [13:19:18]produce_requested_data [13:19:18]requested_item fm.sn is exist - process it [13:19:18]wFMCommunicate request_size=4 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 11 00 00 [13:19:18]Write to MH i2c: E2 08 00 D2 8F 80 11 00 00 00 00 00 00 DB [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 17 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 17 00 D2 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2B [13:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:19:18]wFMCommunicate OK [13:19:18]requested_item fd.num is exist - process it [13:19:18]SAM_PROTO_GetFieldsCounters [13:19:18]wFMCommunicate request_size=4 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 13 00 00 [13:19:18]Write to MH i2c: E2 08 00 D3 8F 80 13 00 00 00 00 00 00 DE [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 62 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 62 00 D3 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B9 72 01 00 0E 04 04 00 46 01 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 5E [13:19: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B9 72 01 00 0E 04 04 00 46 01 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 [13:19:18]wFMCommunicate OK [13:19:18]SAM_PROTO_GetFieldsCounters done [13:19:18]requested_item shift.num is exist - process it [13:19:18]requested_item shift.opened is exist - process it [13:19:18]req_shift_opened [13:19:18]FM_GetShiftState [13:19:18]SAM_PROTO_GetShiftState [13:19:18]wFMCommunicate request_size=4 [13:19:18]MH_SAM_APDU [13:19:18]CAPDU: 80 13 01 00 [13:19:18]Write to MH i2c: E2 08 00 D4 8F 80 13 01 00 00 00 00 00 E0 [13:19:18]Write i2c OK [13:19:18]MH_I2C_Read... [13:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:18]Read from MH i2c: E2 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 0E 00 [13:19:18]MH_I2C_Read... [13:19:18]Read from MH i2c: E2 0E 00 D4 8F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7C [13:19:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:19:18]wFMCommunicate OK [13:19:18]SAM_PROTO_GetShiftState done [13:19:18]FM_GetShiftState done [13:19:18]req_shift_opened done [13:19:18]requested_item shift.open_date is exist - process it [13:19:18]req_shift_open_date [13:19:18]req_shift_open_date done [13:19:18]produce_requested_data done [13:19:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94905,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:19:18]process_action_free close_receipt [13:19:18]json_value_free [13:19:18]json_value_free done [13:19:18]process_json_proto returns [13:19:18]Send response to host [13:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94905,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:19:18]free response buf [13:19:18]execute_script done [13:19:18]execute_script returns [13:19:18]free content buf [13:19:18]Sock 7.Close socket [13:19:18]Sock 7.Thread stoped [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:08]accept exits with 9 [13:20:08]New connection [13:20:08]New thread 3067014500 created [13:20:08]Thread 3066871140 joined [13:20:08]Waiting for new connection... [13:20:08] Sock 9.Parse request [13:20:08]Sock 9.Check first char [13:20:08]Sock 9.First char is OK [13:20:08]request: POST /json_proto HTTP/1.0 [13:20:08]Method: POST [13:20:08]URL: /json_proto [13:20:08]Method is POST - this is cgi request [13:20:08]url: /json_proto [13:20:08]query_string will be loaded in cgi processing [13:20:08]execute_cgi json_proto POST (null) [13:20:08]execute_cgi path=json_proto method=POST [13:20:08]POST find Content-Length [13:20:08]Host: 172.17.62.67:8080 [13:20:08]Content-Length: 677 [13:20:08]Content-Type: application/json [13:20:08] [13:20:08]POST finish read [13:20:08]Found Content-Length = 677 [13:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:08]execute_script... [13: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)195862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:08]POST & json_proto [13:20:08]process_json_proto [13:20:08]json parsed OK: [13:20:08]protocol is kg_v1.0 [13:20:08]action value=close_receipt [13:20:08]process_action close_receipt [13:20:08]cmd_close_receipt [13:20:08]MH_GetDate [13:20:08]Write to MH i2c: F0 00 00 D5 8F 53 [13:20:08]Write i2c OK [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: F0 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: F0 05 00 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: F0 05 00 D5 8F 00 17 05 EF 65 C8 [13:20:08]GetLastDocTimeStamp 1710163170 [13:20:08]current date 1710163223 [13:20:08]FM_GetShiftState [13:20:08]SAM_PROTO_GetShiftState [13:20:08]wFMCommunicate request_size=4 [13:20:08]MH_SAM_APDU [13:20:08]CAPDU: 80 13 01 00 [13:20:08]Write to MH i2c: E2 08 00 D6 8F 80 13 01 00 00 00 00 00 E2 [13:20:08]Write i2c OK [13:20:08]MH_I2C_Read... [13:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:08]Read from MH i2c: E2 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 0E 00 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 0E 00 D6 8F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7E [13:20:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:20:08]wFMCommunicate OK [13:20:08]SAM_PROTO_GetShiftState done [13:20:08]FM_GetShiftState done [13:20:08]opened in 1710115571 [13:20:08]opened+sec_in_day 1710201971 [13:20:08]quantity*price = 60006 [13:20:08]sum+1 = 60008 [13:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 81 11.03.2024 13:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94906 ФПД: 94074209705123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T132023&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94906&fm=94074209705123&tin=02508201610067®Number=0000000000090555&sum=60000 [13:20:09]StoreToDocumentArchive [13:20:09]shift 326 fd 94906 [13:20:09]save to /storage/0326/doc_00094906 [13:20:09]save last doc name /storage/0326/doc_00094906 to /storage/kkm_last_doc_name [13:20:09]save OK [13:20:09]Clear old archive folders... [13:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:09]tlvbuf is 0020A470 [13:20:09]SAM_PROTO_ClearQueue [13:20:09]wFMCommunicate request_size=4 [13:20:09]MH_SAM_APDU [13:20:09]CAPDU: 80 09 00 00 [13:20:09]Write to MH i2c: E2 08 00 E3 8F 80 09 00 00 00 00 00 00 E4 [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:09]Read from MH i2c: E2 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 [13:20:09]MH_I2C_Read... [13:20:09]Read from MH i2c: E2 03 00 E3 8F 00 90 00 E6 [13:20:09]RAPDU: 90 00 [13:20:09]wFMCommunicate OK [13:20:09]SAM_PROTO_ClearQueue done [13:20:09]KKMCreateOFDPacket [13:20:09]OFDProtocolAddRootSTLVToBuf [13:20:09]FM_MakeSignedData [13:20:09]FM_MakeSignedData [13:20:09]SAM_PROTO_SignData [13:20:09]wFMCommunicate request_size=4 [13:20:09]MH_SAM_APDU [13:20:09]CAPDU: 80 0D 01 02 [13:20:09]Write to MH i2c: E2 08 00 E4 8F 80 0D 01 02 00 00 00 00 EC [13:20:09]Write i2c OK [13:20:09]MH_I2C_Read... [13:20:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:10]Read from MH i2c: E2 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 03 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 03 00 E4 8F 00 90 00 E7 [13:20:10]RAPDU: 90 00 [13:20:10]wFMCommunicate OK [13:20:10]wFMCommunicate request_size=255 [13:20:10]MH_SAM_APDU [13:20:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 51 00 00 00 F4 03 04 00 17 05 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 72 01 00 35 04 06 00 55 [13:20:10]Write to MH i2c: E2 02 01 E5 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 51 00 00 00 F4 03 04 00 17 05 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 72 01 00 35 04 06 00 55 00 00 85 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:10]Read from MH i2c: E2 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 03 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 03 00 E5 8F 00 90 00 E8 [13:20:10]RAPDU: 90 00 [13:20:10]wFMCommunicate OK [13:20:10]wFMCommunicate request_size=10 [13:20:10]MH_SAM_APDU [13:20:10]CAPDU: 80 0D 02 02 05 8F 5B DA 1C A3 [13:20:10]Write to MH i2c: E2 0D 00 E6 8F 80 0D 02 02 05 00 8F 5B DA 1C A3 00 00 7C [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:10]Read from MH i2c: E2 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 03 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 03 00 E6 8F 00 90 00 E9 [13:20:10]RAPDU: 90 00 [13:20:10]wFMCommunicate OK [13:20:10]wFMCommunicate request_size=4 [13:20:10]MH_SAM_APDU [13:20:10]CAPDU: 80 0D 03 02 [13:20:10]Write to MH i2c: E2 08 00 E7 8F 80 0D 03 02 00 00 00 00 F1 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:10]Read from MH i2c: E2 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 0B 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 0B 00 E7 8F 00 A2 23 FA 5B 18 1D 8A 74 90 00 3F [13:20:10]RAPDU: A2 23 FA 5B 18 1D 8A 74 90 00 [13:20:10]wFMCommunicate OK [13:20:10]SAM_PROTO_SignData done [13:20:10]FM_MakeSignedData done [13:20:10]CreateOFDProtocolMessage [13:20:10]wFMCommunicate request_size=4 [13:20:10]MH_SAM_APDU [13:20:10]CAPDU: 80 11 00 00 [13:20:10]Write to MH i2c: E2 08 00 E8 8F 80 11 00 00 00 00 00 00 F1 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:10]Read from MH i2c: E2 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 17 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 17 00 E8 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 41 [13:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:20:10]wFMCommunicate OK [13:20:10]CreateOFDProtocolMessage done [13:20:10]OFDSenderStorePacket 94906 [13:20:10]StoreOFDPacket docnum=94906 [13:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2A 5D 07 01 D3 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 51 00 00 00 F4 03 04 00 17 05 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 72 01 00 35 04 06 00 55 8F 5B DA 1C A3 A2 23 FA 5B 18 1D 8A 74 [13:20:10]CheckFolder [13:20:10]dirname=/storage/ofd_packets [13:20:10]CheckFolder done [13:20:10]ProducePacketName [13:20:10]name=ofd_packets/00094906 [13:20:10]NVStorageSaveData ofd_packets/00094906 [13:20:10]File name is /storage/ofd_packets/00094906 [13:20:10]Write 301 bytes [13:20:10]NVStorageSaveData done [13:20:10]OFDSenderStorePacket done [13:20:10]KKMCreateOFDPacket done [13:20:10]NVStorageSaveData kkm_last_timestamp [13:20:10]File name is /storage/kkm_last_timestamp [13:20:10]Write 4 bytes [13:20:10]NVStorageSaveData done [13:20:10]ExternCall_PrintAddStr [13:20:10]wPrintStart [13:20:10]Write to MH i2c: 01 00 00 E9 8F 78 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: 01 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: 01 07 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: 01 07 00 E9 8F 00 80 00 00 00 FF 0F 0D [13:20:10]RasterBufferAndPrint [13:20:10]line Счет N : (1)195862 [13:20:10]line ИНН: 02508201610067 [13:20:10]line Контрольно-Кассовый Чек [13:20:10]line ПРОДАЖА [13:20:10]line ТРК (МРК, ГНК) : 12 [13:20:10]line Товар: 2710124130 [13:20:10]line Аи-92-К-5 [13:20:10]line 9.540 * 62.90 [13:20:10]line = 600.07 [13:20:10]line НДС 12% НСП 1% [13:20:10]line > о реализуемом товаре [13:20:10]line ОКРУГЛЕНИЕ: -0.07 [13:20:10]line ИТОГО: 600.00 [13:20:10]line Внесено: 600.00 [13:20:10]line СДАЧА: 0.00 [13:20:10]line НСП 1% : 5.31 [13:20:10]line НДС 12% : 63.72 [13:20:10]line Наличными: 600.00 [13:20:10]line Безнал.: 0.00 [13:20:10]line Место: АЗС № 6 "Партнер Нефть" [13:20:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:20:10]line СНО: Общий режим [13:20:10]line Чек 81 11.03.2024 13:20 [13:20:10]line Смена: 326 ФФД: 1.0 [13:20:10]line ЗНМ: 0300000009 [13:20:10]line РНМ: 0000000000090555 [13:20:10]line Версия ККМ: 001 [13:20:10]line ФМ: 0000000000874811 [13:20:10]line ФД: 94906 [13:20:10]line ФПД: 94074209705123 [13:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T132023&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94906&fm=94074209705123&tin=02508201610067®Number=0000000000090555&sum=60000 [13:20:10]OFD Sender: Processing packet 94906 [packets to send 30, broken 29] [13:20:10]ProducePacketName [13:20:10]name=ofd_packets/00094906 [13:20:10]OFD Sender: To server: pG, [13:20:10]CommunicateWithHost lk.salyk.kg:30040 [13:20:10]ConnectInit lk.salyk.kg [13:20:10]written 0, free lines is 4095 [13:20:10]Connected sock=10 [13: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 31 31 0F 01 00 00 2A 5D 07 01 D3 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 51 00 00 00 F4 03 04 00 17 05 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 72 01 00 35 04 06 00 55 8F 5B DA 1C A3 A2 23 FA 5B 18 1D 8A 74 [13:20:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 15 29 47 00 07 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 72 01 00 F4 03 04 00 70 B0 EE 65 B6 04 01 00 00 52 42 30 D7 1A 55 57 B8 [13:20:11]CommunicateWithHost err = 0 [13:20:11]CheckOFDResponse [13:20:11]1017 (14) - 77093643461234 [13:20:11]1041 (16) - 0000000000874811 [13:20:11]1040 (4) - 94906 [13:20:11]1012 (4) - 11.03.2024 07:19 [13:20:11]1206 (1) - 0 [13:20:11]OFD Sender: Remove packet 94906 [13:20:11]ProducePacketName [13:20:11]name=ofd_packets/00094906 [13:20:11]NVStorageDeleteData [13:20:11]Write to MH i2c: 01 00 00 14 90 A4 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: 01 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: 01 07 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: 01 07 00 14 90 00 80 00 00 00 57 0D 8F [13:20:11]RasterBufferAndPrint [13:20:11]line [13:20:11]line [13:20:11]line [13:20:11]line [13:20:11]line [13:20:11]written 0, free lines is 3421 [13:20:11]process_action close_receipt done [13:20:11]requested_data is exist [13:20:11]produce_requested_data [13:20:11]requested_item fm.sn is exist - process it [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 11 00 00 [13:20:11]Write to MH i2c: E2 08 00 1B 90 80 11 00 00 00 00 00 00 25 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 17 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 17 00 1B 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [13:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:20:11]wFMCommunicate OK [13:20:11]requested_item fd.num is exist - process it [13:20:11]SAM_PROTO_GetFieldsCounters [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 13 00 00 [13:20:11]Write to MH i2c: E2 08 00 1C 90 80 13 00 00 00 00 00 00 28 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 62 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 62 00 1C 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BA 72 01 00 0E 04 04 00 46 01 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 AC [13:20:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BA 72 01 00 0E 04 04 00 46 01 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 [13:20:11]wFMCommunicate OK [13:20:11]SAM_PROTO_GetFieldsCounters done [13:20:11]requested_item shift.num is exist - process it [13:20:11]requested_item shift.opened is exist - process it [13:20:11]req_shift_opened [13:20:11]FM_GetShiftState [13:20:11]SAM_PROTO_GetShiftState [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 13 01 00 [13:20:11]Write to MH i2c: E2 08 00 1D 90 80 13 01 00 00 00 00 00 2A [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 0E 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 0E 00 1D 90 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C6 [13:20:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:20:11]wFMCommunicate OK [13:20:11]SAM_PROTO_GetShiftState done [13:20:11]FM_GetShiftState done [13:20:11]req_shift_opened done [13:20:11]requested_item shift.open_date is exist - process it [13:20:11]req_shift_open_date [13:20:11]req_shift_open_date done [13:20:11]produce_requested_data done [13:20:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94906,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:20:11]process_action_free close_receipt [13:20:11]json_value_free [13:20:11]json_value_free done [13:20:11]process_json_proto returns [13:20:11]Send response to host [13:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94906,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:20:11]free response buf [13:20:11]execute_script done [13:20:11]execute_script returns [13:20:11]free content buf [13:20:11]Sock 9.Close socket [13:20:11]Sock 9.Thread stoped [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:47]accept exits with 7 [13:23:47]New connection [13:23:47]New thread 3066871140 created [13:23:47]Thread 3067014500 joined [13:23:47]Waiting for new connection... [13:23:47] Sock 7.Parse request [13:23:47]Sock 7.Check first char [13:23:47]Sock 7.First char is OK [13:23:47]request: POST /json_proto HTTP/1.0 [13:23:47]Method: POST [13:23:47]URL: /json_proto [13:23:47]Method is POST - this is cgi request [13:23:47]url: /json_proto [13:23:47]query_string will be loaded in cgi processing [13:23:47]execute_cgi json_proto POST (null) [13:23:47]execute_cgi path=json_proto method=POST [13:23:47]POST find Content-Length [13:23:47]Host: 172.17.62.67:8080 [13:23:47]Content-Length: 675 [13:23:47]Content-Type: application/json [13:23:47] [13:23:47]POST finish read [13:23:47]Found Content-Length = 675 [13:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:47]execute_script... [13:23: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)195863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:47]POST & json_proto [13:23:47]process_json_proto [13:23:47]json parsed OK: [13:23:47]protocol is kg_v1.0 [13:23:47]action value=close_receipt [13:23:47]process_action close_receipt [13:23:47]cmd_close_receipt [13:23:47]MH_GetDate [13:23:47]Write to MH i2c: F0 00 00 1E 90 9D [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: F0 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: F0 05 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: F0 05 00 1E 90 00 F2 05 EF 65 ED [13:23:47]GetLastDocTimeStamp 1710163223 [13:23:47]current date 1710163442 [13:23:47]FM_GetShiftState [13:23:47]SAM_PROTO_GetShiftState [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 13 01 00 [13:23:47]Write to MH i2c: E2 08 00 1F 90 80 13 01 00 00 00 00 00 2C [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0E 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0E 00 1F 90 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C8 [13:23:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:23:48]wFMCommunicate OK [13:23:48]SAM_PROTO_GetShiftState done [13:23:48]FM_GetShiftState done [13:23:48]opened in 1710115571 [13:23:48]opened+sec_in_day 1710201971 [13:23:48]quantity*price = 100003 [13:23:48]sum+1 = 100005 [13:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 82 11.03.2024 13:24 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94907 ФПД: 160430917026540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T132402&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94907&fm=160430917026540&tin=02508201610067®Number=0000000000090555&sum=100000 [13:23:49]StoreToDocumentArchive [13:23:49]shift 326 fd 94907 [13:23:49]save to /storage/0326/doc_00094907 [13:23:49]save last doc name /storage/0326/doc_00094907 to /storage/kkm_last_doc_name [13:23:49]save OK [13:23:49]Clear old archive folders... [13:23:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:23:49]tlvbuf is 0033D020 [13:23:49]SAM_PROTO_ClearQueue [13:23:49]wFMCommunicate request_size=4 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 09 00 00 [13:23:49]Write to MH i2c: E2 08 00 2C 90 80 09 00 00 00 00 00 00 2E [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:49]Read from MH i2c: E2 03 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 2C 90 00 90 00 30 [13:23:49]RAPDU: 90 00 [13:23:49]wFMCommunicate OK [13:23:49]SAM_PROTO_ClearQueue done [13:23:49]KKMCreateOFDPacket [13:23:49]OFDProtocolAddRootSTLVToBuf [13:23:49]FM_MakeSignedData [13:23:49]FM_MakeSignedData [13:23:49]SAM_PROTO_SignData [13:23:49]wFMCommunicate request_size=4 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 0D 01 02 [13:23:49]Write to MH i2c: E2 08 00 2D 90 80 0D 01 02 00 00 00 00 36 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 2D 90 00 90 00 31 [13:23:49]RAPDU: 90 00 [13:23:49]wFMCommunicate OK [13:23:49]wFMCommunicate request_size=255 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 F2 05 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 72 01 00 35 04 06 00 [13:23:49]Write to MH i2c: E2 02 01 2E 90 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 F2 05 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 72 01 00 35 04 06 00 00 00 EE [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 2E 90 00 90 00 32 [13:23:49]RAPDU: 90 00 [13:23:49]wFMCommunicate OK [13:23:49]wFMCommunicate request_size=11 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 0D 02 02 06 91 E9 3B D2 02 EC [13:23:49]Write to MH i2c: E2 0E 00 2F 90 80 0D 02 02 06 00 91 E9 3B D2 02 EC 00 00 BA [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 03 00 2F 90 00 90 00 33 [13:23:49]RAPDU: 90 00 [13:23:49]wFMCommunicate OK [13:23:49]wFMCommunicate request_size=4 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 0D 03 02 [13:23:49]Write to MH i2c: E2 08 00 30 90 80 0D 03 02 00 00 00 00 3B [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 0B 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 0B 00 30 90 00 82 2C 47 D4 34 08 CC 9E 90 00 AB [13:23:49]RAPDU: 82 2C 47 D4 34 08 CC 9E 90 00 [13:23:49]wFMCommunicate OK [13:23:49]SAM_PROTO_SignData done [13:23:49]FM_MakeSignedData done [13:23:49]CreateOFDProtocolMessage [13:23:49]wFMCommunicate request_size=4 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 11 00 00 [13:23:49]Write to MH i2c: E2 08 00 31 90 80 11 00 00 00 00 00 00 3B [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 17 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 17 00 31 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8B [13:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:23:49]wFMCommunicate OK [13:23:49]CreateOFDProtocolMessage done [13:23:49]OFDSenderStorePacket 94907 [13:23:49]StoreOFDPacket docnum=94907 [13:23:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 2E D9 08 01 14 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 F2 05 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 72 01 00 35 04 06 00 91 E9 3B D2 02 EC 82 2C 47 D4 34 08 CC 9E [13:23:49]CheckFolder [13:23:49]dirname=/storage/ofd_packets [13:23:49]CheckFolder done [13:23:49]ProducePacketName [13:23:49]name=ofd_packets/00094907 [13:23:49]NVStorageSaveData ofd_packets/00094907 [13:23:49]File name is /storage/ofd_packets/00094907 [13:23:49]Write 302 bytes [13:23:49]NVStorageSaveData done [13:23:49]OFDSenderStorePacket done [13:23:49]KKMCreateOFDPacket done [13:23:49]NVStorageSaveData kkm_last_timestamp [13:23:49]File name is /storage/kkm_last_timestamp [13:23:49]Write 4 bytes [13:23:49]NVStorageSaveData done [13:23:49]ExternCall_PrintAddStr [13:23:49]wPrintStart [13:23:49]Write to MH i2c: 01 00 00 32 90 C2 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 07 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 07 00 32 90 00 80 00 00 00 FF 0F 57 [13:23:49]RasterBufferAndPrint [13:23:49]line Счет N : (1)195863 [13:23:49]line ИНН: 02508201610067 [13:23:49]line Контрольно-Кассовый Чек [13:23:49]line ПРОДАЖА [13:23:49]line ТРК (МРК, ГНК) : 33 [13:23:49]line Товар: 2710124130 [13:23:49]line SUPER 92-К-5 [13:23:49]line 15.650 * 63.90 [13:23:49]line = 1000.04 [13:23:49]line НДС 12% НСП 1% [13:23:49]line > о реализуемом товаре [13:23:49]line ОКРУГЛЕНИЕ: -0.04 [13:23:49]line ИТОГО: 1000.00 [13:23:49]line Внесено: 1000.00 [13:23:49]line СДАЧА: 0.00 [13:23:49]line НСП 1% : 8.85 [13:23:49]line НДС 12% : 106.20 [13:23:49]line Наличными: 1000.00 [13:23:49]line Безнал.: 0.00 [13:23:49]line Место: АЗС № 6 "Партнер Нефть" [13:23:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:23:49]line СНО: Общий режим [13:23:49]line Чек 82 11.03.2024 13:24 [13:23:49]line Смена: 326 ФФД: 1.0 [13:23:49]line ЗНМ: 0300000009 [13:23:49]line РНМ: 0000000000090555 [13:23:49]line Версия ККМ: 001 [13:23:49]line ФМ: 0000000000874811 [13:23:49]line ФД: 94907 [13:23:49]line ФПД: 160430917026540 [13:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T132402&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94907&fm=160430917026540&tin=02508201610067®Number=0000000000090555&sum=100000 [13:23:50]OFD Sender: Processing packet 94907 [packets to send 30, broken 29] [13:23:50]ProducePacketName [13:23:50]name=ofd_packets/00094907 [13:23:50]OFD Sender: To server: pG, [13:23:50]CommunicateWithHost lk.salyk.kg:30040 [13:23:50]ConnectInit lk.salyk.kg [13:23:50]written 0, free lines is 4095 [13:23:50]Connected sock=10 [13:23:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 2E D9 08 01 14 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 F2 05 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 72 01 00 35 04 06 00 91 E9 3B D2 02 EC 82 2C 47 D4 34 08 CC 9E [13:23:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F7 40 47 00 CD 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 72 01 00 F4 03 04 00 4B B1 EE 65 B6 04 01 00 00 06 C1 DE 5E 74 57 F9 66 [13:23:50]CommunicateWithHost err = 0 [13:23:50]CheckOFDResponse [13:23:50]1017 (14) - 77093643461234 [13:23:50]1041 (16) - 0000000000874811 [13:23:50]1040 (4) - 94907 [13:23:50]1012 (4) - 11.03.2024 07:22 [13:23:50]1206 (1) - 0 [13:23:50]OFD Sender: Remove packet 94907 [13:23:50]ProducePacketName [13:23:50]name=ofd_packets/00094907 [13:23:50]NVStorageDeleteData [13:23:50]Write to MH i2c: 01 00 00 5D 90 ED [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: 01 07 00 5D 90 00 80 00 00 00 58 0D D9 [13:23:50]RasterBufferAndPrint [13:23:50]line [13:23:50]line [13:23:50]line [13:23:50]line [13:23:50]line [13:23:50]written 0, free lines is 3422 [13:23:50]process_action close_receipt done [13:23:50]requested_data is exist [13:23:50]produce_requested_data [13:23:50]requested_item fm.sn is exist - process it [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 11 00 00 [13:23:50]Write to MH i2c: E2 08 00 64 90 80 11 00 00 00 00 00 00 6E [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 17 00 64 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [13:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:23:50]wFMCommunicate OK [13:23:50]requested_item fd.num is exist - process it [13:23:50]SAM_PROTO_GetFieldsCounters [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 00 00 [13:23:50]Write to MH i2c: E2 08 00 65 90 80 13 00 00 00 00 00 00 71 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 65 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BB 72 01 00 0E 04 04 00 46 01 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 F9 [13: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BB 72 01 00 0E 04 04 00 46 01 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 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetFieldsCounters done [13:23:50]requested_item shift.num is exist - process it [13:23:50]requested_item shift.opened is exist - process it [13:23:50]req_shift_opened [13:23:50]FM_GetShiftState [13:23:50]SAM_PROTO_GetShiftState [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 01 00 [13:23:50]Write to MH i2c: E2 08 00 66 90 80 13 01 00 00 00 00 00 73 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 66 90 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0F [13:23:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetShiftState done [13:23:50]FM_GetShiftState done [13:23:50]req_shift_opened done [13:23:50]requested_item shift.open_date is exist - process it [13:23:50]req_shift_open_date [13:23:50]req_shift_open_date done [13:23:50]produce_requested_data done [13:23:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94907,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:23:50]process_action_free close_receipt [13:23:50]json_value_free [13:23:50]json_value_free done [13:23:50]process_json_proto returns [13:23:50]Send response to host [13:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94907,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:23:50]free response buf [13:23:50]execute_script done [13:23:50]execute_script returns [13:23:50]free content buf [13:23:50]Sock 7.Close socket [13:23:50]Sock 7.Thread stoped [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:52]accept exits with 9 [13:26:52]New connection [13:26:52]New thread 3067014500 created [13:26:52]Thread 3066871140 joined [13:26:52]Waiting for new connection... [13:26:52] Sock 9.Parse request [13:26:52]Sock 9.Check first char [13:26:52]Sock 9.First char is OK [13:26:52]request: POST /json_proto HTTP/1.0 [13:26:52]Method: POST [13:26:52]URL: /json_proto [13:26:52]Method is POST - this is cgi request [13:26:52]url: /json_proto [13:26:52]query_string will be loaded in cgi processing [13:26:52]execute_cgi json_proto POST (null) [13:26:52]execute_cgi path=json_proto method=POST [13:26:52]POST find Content-Length [13:26:52]Host: 172.17.62.67:8080 [13:26:52]Content-Length: 677 [13:26:52]Content-Type: application/json [13:26:52] [13:26:52]POST finish read [13:26:52]Found Content-Length = 677 [13:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:52]execute_script... [13:26: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)195864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:52]POST & json_proto [13:26:52]process_json_proto [13:26:52]json parsed OK: [13:26:52]protocol is kg_v1.0 [13:26:52]action value=close_receipt [13:26:52]process_action close_receipt [13:26:52]cmd_close_receipt [13:26:52]MH_GetDate [13:26:52]Write to MH i2c: F0 00 00 67 90 E6 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: F0 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: F0 05 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: F0 05 00 67 90 00 AB 06 EF 65 F0 [13:26:52]GetLastDocTimeStamp 1710163442 [13:26:52]current date 1710163627 [13:26:52]FM_GetShiftState [13:26:52]SAM_PROTO_GetShiftState [13:26:52]wFMCommunicate request_size=4 [13:26:52]MH_SAM_APDU [13:26:52]CAPDU: 80 13 01 00 [13:26:52]Write to MH i2c: E2 08 00 68 90 80 13 01 00 00 00 00 00 75 [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 68 90 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 11 [13:26:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:26:53]wFMCommunicate OK [13:26:53]SAM_PROTO_GetShiftState done [13:26:53]FM_GetShiftState done [13:26:53]opened in 1710115571 [13:26:53]opened+sec_in_day 1710201971 [13:26:53]quantity*price = 30003 [13:26:53]sum+1 = 30004 [13:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 83 11.03.2024 13:27 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94908 ФПД: 231020964093153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T132707&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94908&fm=231020964093153&tin=02508201610067®Number=0000000000090555&sum=30000 [13:26:54]StoreToDocumentArchive [13:26:54]shift 326 fd 94908 [13:26:54]save to /storage/0326/doc_00094908 [13:26:54]save last doc name /storage/0326/doc_00094908 to /storage/kkm_last_doc_name [13:26:54]save OK [13:26:54]Clear old archive folders... [13:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:54]tlvbuf is 003AC650 [13:26:54]SAM_PROTO_ClearQueue [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 09 00 00 [13:26:54]Write to MH i2c: E2 08 00 75 90 80 09 00 00 00 00 00 00 77 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 75 90 00 90 00 79 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]SAM_PROTO_ClearQueue done [13:26:54]KKMCreateOFDPacket [13:26:54]OFDProtocolAddRootSTLVToBuf [13:26:54]FM_MakeSignedData [13:26:54]FM_MakeSignedData [13:26:54]SAM_PROTO_SignData [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 01 02 [13:26:54]Write to MH i2c: E2 08 00 76 90 80 0D 01 02 00 00 00 00 7F [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 76 90 00 90 00 7A [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=255 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AB 06 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 72 01 00 35 04 06 00 D2 [13:26:54]Write to MH i2c: E2 02 01 77 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AB 06 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 72 01 00 35 04 06 00 D2 00 00 FD [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 77 90 00 90 00 7B [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=10 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 02 02 05 1C C2 80 1C E1 [13:26:54]Write to MH i2c: E2 0D 00 78 90 80 0D 02 02 05 00 1C C2 80 1C E1 00 00 E7 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 78 90 00 90 00 7C [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 03 02 [13:26:54]Write to MH i2c: E2 08 00 79 90 80 0D 03 02 00 00 00 00 84 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 0B 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 0B 00 79 90 00 B8 48 AD 68 87 CC 96 F6 90 00 79 [13:26:54]RAPDU: B8 48 AD 68 87 CC 96 F6 90 00 [13:26:54]wFMCommunicate OK [13:26:54]SAM_PROTO_SignData done [13:26:54]FM_MakeSignedData done [13:26:54]CreateOFDProtocolMessage [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 11 00 00 [13:26:54]Write to MH i2c: E2 08 00 7A 90 80 11 00 00 00 00 00 00 84 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 7A 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D4 [13:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:26:54]wFMCommunicate OK [13:26:54]CreateOFDProtocolMessage done [13:26:54]OFDSenderStorePacket 94908 [13:26:54]StoreOFDPacket docnum=94908 [13:26:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8F A7 07 01 03 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AB 06 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 72 01 00 35 04 06 00 D2 1C C2 80 1C E1 B8 48 AD 68 87 CC 96 F6 [13:26:54]CheckFolder [13:26:54]dirname=/storage/ofd_packets [13:26:54]CheckFolder done [13:26:54]ProducePacketName [13:26:54]name=ofd_packets/00094908 [13:26:54]NVStorageSaveData ofd_packets/00094908 [13:26:54]File name is /storage/ofd_packets/00094908 [13:26:54]Write 301 bytes [13:26:54]NVStorageSaveData done [13:26:54]OFDSenderStorePacket done [13:26:54]KKMCreateOFDPacket done [13:26:54]NVStorageSaveData kkm_last_timestamp [13:26:54]File name is /storage/kkm_last_timestamp [13:26:54]Write 4 bytes [13:26:54]NVStorageSaveData done [13:26:54]ExternCall_PrintAddStr [13:26:54]wPrintStart [13:26:54]Write to MH i2c: 01 00 00 7B 90 0B [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 07 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 07 00 7B 90 00 80 00 00 00 FF 0F A0 [13:26:54]RasterBufferAndPrint [13:26:54]line Счет N : (1)195864 [13:26:54]line ИНН: 02508201610067 [13:26:54]line Контрольно-Кассовый Чек [13:26:54]line ПРОДАЖА [13:26:54]line ТРК (МРК, ГНК) : 32 [13:26:54]line Товар: 2710124130 [13:26:54]line Аи-92-К-5 [13:26:54]line 4.770 * 62.90 [13:26:54]line = 300.03 [13:26:54]line НДС 12% НСП 1% [13:26:54]line > о реализуемом товаре [13:26:54]line ОКРУГЛЕНИЕ: -0.03 [13:26:54]line ИТОГО: 300.00 [13:26:54]line Внесено: 300.00 [13:26:54]line СДАЧА: 0.00 [13:26:54]line НСП 1% : 2.65 [13:26:54]line НДС 12% : 31.86 [13:26:54]line Наличными: 300.00 [13:26:54]line Безнал.: 0.00 [13:26:54]line Место: АЗС № 6 "Партнер Нефть" [13:26:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:26:54]line СНО: Общий режим [13:26:54]line Чек 83 11.03.2024 13:27 [13:26:54]line Смена: 326 ФФД: 1.0 [13:26:54]line ЗНМ: 0300000009 [13:26:54]line РНМ: 0000000000090555 [13:26:54]line Версия ККМ: 001 [13:26:54]line ФМ: 0000000000874811 [13:26:54]line ФД: 94908 [13:26:54]line ФПД: 231020964093153 [13:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T132707&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94908&fm=231020964093153&tin=02508201610067®Number=0000000000090555&sum=30000 [13:26:55]OFD Sender: Processing packet 94908 [packets to send 30, broken 29] [13:26:55]ProducePacketName [13:26:55]name=ofd_packets/00094908 [13:26:55]OFD Sender: To server: pG, [13:26:55]CommunicateWithHost lk.salyk.kg:30040 [13:26:55]ConnectInit lk.salyk.kg [13:26:55]written 0, free lines is 4095 [13:26:55]Connected sock=7 [13:26: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 31 31 0F 01 00 00 8F A7 07 01 03 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AB 06 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 72 01 00 35 04 06 00 D2 1C C2 80 1C E1 B8 48 AD 68 87 CC 96 F6 [13:26: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 31 31 4F 00 00 00 A5 D8 47 00 FF BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 72 01 00 F4 03 04 00 04 B2 EE 65 B6 04 01 00 00 7E 04 19 6E 30 78 2B 2E [13:26:55]CommunicateWithHost err = 0 [13:26:55]CheckOFDResponse [13:26:55]1017 (14) - 77093643461234 [13:26:55]1041 (16) - 0000000000874811 [13:26:55]1040 (4) - 94908 [13:26:55]1012 (4) - 11.03.2024 07:25 [13:26:55]1206 (1) - 0 [13:26:55]OFD Sender: Remove packet 94908 [13:26:55]ProducePacketName [13:26:55]name=ofd_packets/00094908 [13:26:55]NVStorageDeleteData [13:26:55]Write to MH i2c: 01 00 00 A6 90 36 [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 07 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 07 00 A6 90 00 80 00 00 00 61 0D 2B [13:26:55]RasterBufferAndPrint [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]written 0, free lines is 3431 [13:26:55]process_action close_receipt done [13:26:55]requested_data is exist [13:26:55]produce_requested_data [13:26:55]requested_item fm.sn is exist - process it [13:26:55]wFMCommunicate request_size=4 [13:26:55]MH_SAM_APDU [13:26:55]CAPDU: 80 11 00 00 [13:26:55]Write to MH i2c: E2 08 00 AD 90 80 11 00 00 00 00 00 00 B7 [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:55]Read from MH i2c: E2 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 17 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 17 00 AD 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 07 [13:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:26:55]wFMCommunicate OK [13:26:55]requested_item fd.num is exist - process it [13:26:55]SAM_PROTO_GetFieldsCounters [13:26:55]wFMCommunicate request_size=4 [13:26:55]MH_SAM_APDU [13:26:55]CAPDU: 80 13 00 00 [13:26:55]Write to MH i2c: E2 08 00 AE 90 80 13 00 00 00 00 00 00 BA [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:55]Read from MH i2c: E2 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 62 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 62 00 AE 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BC 72 01 00 0E 04 04 00 46 01 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 46 [13:26: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BC 72 01 00 0E 04 04 00 46 01 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 [13:26:55]wFMCommunicate OK [13:26:55]SAM_PROTO_GetFieldsCounters done [13:26:55]requested_item shift.num is exist - process it [13:26:55]requested_item shift.opened is exist - process it [13:26:55]req_shift_opened [13:26:55]FM_GetShiftState [13:26:55]SAM_PROTO_GetShiftState [13:26:55]wFMCommunicate request_size=4 [13:26:55]MH_SAM_APDU [13:26:55]CAPDU: 80 13 01 00 [13:26:55]Write to MH i2c: E2 08 00 AF 90 80 13 01 00 00 00 00 00 BC [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:55]OFD Sender: No OFD packet to send [13:26:55]Read from MH i2c: E2 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 0E 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: E2 0E 00 AF 90 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 58 [13:26:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:26:55]wFMCommunicate OK [13:26:55]SAM_PROTO_GetShiftState done [13:26:55]FM_GetShiftState done [13:26:55]req_shift_opened done [13:26:55]requested_item shift.open_date is exist - process it [13:26:55]req_shift_open_date [13:26:55]req_shift_open_date done [13:26:55]produce_requested_data done [13:26:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94908,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:26:55]process_action_free close_receipt [13:26:55]json_value_free [13:26:55]json_value_free done [13:26:55]process_json_proto returns [13:26:55]Send response to host [13:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94908,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:26:55]free response buf [13:26:55]execute_script done [13:26:55]execute_script returns [13:26:55]free content buf [13:26:55]Sock 9.Close socket [13:26:55]Sock 9.Thread stoped [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:33]accept exits with 10 [13:27:33]New connection [13:27:33]New thread 3066871140 created [13:27:33]Thread 3067014500 joined [13:27:33]Waiting for new connection... [13:27:33] Sock 10.Parse request [13:27:33]Sock 10.Check first char [13:27:33]Sock 10.First char is OK [13:27:33]request: POST /json_proto HTTP/1.0 [13:27:33]Method: POST [13:27:33]URL: /json_proto [13:27:33]Method is POST - this is cgi request [13:27:33]url: /json_proto [13:27:33]query_string will be loaded in cgi processing [13:27:33]execute_cgi json_proto POST (null) [13:27:33]execute_cgi path=json_proto method=POST [13:27:33]POST find Content-Length [13:27:33]Host: 172.17.62.67:8080 [13:27:33]Content-Length: 816 [13:27:33]Content-Type: application/json [13:27:33] [13:27:33]POST finish read [13:27:33]Found Content-Length = 816 [13:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "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" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:33]execute_script... [13:27: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)195865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "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" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:33]POST & json_proto [13:27:33]process_json_proto [13:27:33]json parsed OK: [13:27:33]protocol is kg_v1.0 [13:27:33]action value=close_receipt [13:27:33]process_action close_receipt [13:27:33]cmd_close_receipt [13:27:33]MH_GetDate [13:27:33]Write to MH i2c: F0 00 00 B0 90 2F [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: F0 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: F0 05 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: F0 05 00 B0 90 00 D3 06 EF 65 61 [13:27:33]GetLastDocTimeStamp 1710163627 [13:27:33]current date 1710163667 [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 B1 90 80 13 01 00 00 00 00 00 BE [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 B1 90 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5A [13:27:33]RAPDU: 09 00 01 F3 4A EE 65 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]opened in 1710115571 [13:27:33]opened+sec_in_day 1710201971 [13:27:33]quantity*price = 60006 [13:27:33]sum+1 = 60008 [13:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 84 11.03.2024 13:27 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94909 ФПД: 85209725360470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T132748&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94909&fm=85209725360470&tin=02508201610067®Number=0000000000090555&sum=60007 [13:27:34]StoreToDocumentArchive [13:27:34]shift 326 fd 94909 [13:27:34]save to /storage/0326/doc_00094909 [13:27:34]save last doc name /storage/0326/doc_00094909 to /storage/kkm_last_doc_name [13:27:34]save OK [13:27:34]Clear old archive folders... [13:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:34]tlvbuf is 00266700 [13:27:34]SAM_PROTO_ClearQueue [13:27:34]wFMCommunicate request_size=4 [13:27:34]MH_SAM_APDU [13:27:34]CAPDU: 80 09 00 00 [13:27:34]Write to MH i2c: E2 08 00 BE 90 80 09 00 00 00 00 00 00 C0 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:34]Read from MH i2c: E2 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 03 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 03 00 BE 90 00 90 00 C2 [13:27:34]RAPDU: 90 00 [13:27:34]wFMCommunicate OK [13:27:34]SAM_PROTO_ClearQueue done [13:27:34]KKMCreateOFDPacket [13:27:34]OFDProtocolAddRootSTLVToBuf [13:27:34]FM_MakeSignedData [13:27:34]FM_MakeSignedData [13:27:34]SAM_PROTO_SignData [13:27:34]wFMCommunicate request_size=4 [13:27:34]MH_SAM_APDU [13:27:34]CAPDU: 80 0D 01 02 [13:27:34]Write to MH i2c: E2 08 00 BF 90 80 0D 01 02 00 00 00 00 C8 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:34]Read from MH i2c: E2 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 03 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 03 00 BF 90 00 90 00 C3 [13:27:34]RAPDU: 90 00 [13:27:34]wFMCommunicate OK [13:27:34]wFMCommunicate request_size=255 [13:27:34]MH_SAM_APDU [13:27:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D4 06 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 72 01 00 35 04 06 00 4D [13:27:34]Write to MH i2c: E2 02 01 C0 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D4 06 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 72 01 00 35 04 06 00 4D 00 00 2B [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 03 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 03 00 C0 90 00 90 00 C4 [13:27:35]RAPDU: 90 00 [13:27:35]wFMCommunicate OK [13:27:35]wFMCommunicate request_size=10 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 0D 02 02 05 7F 6F 69 59 56 [13:27:35]Write to MH i2c: E2 0D 00 C1 90 80 0D 02 02 05 00 7F 6F 69 59 56 00 00 DB [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 03 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 03 00 C1 90 00 90 00 C5 [13:27:35]RAPDU: 90 00 [13:27:35]wFMCommunicate OK [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 0D 03 02 [13:27:35]Write to MH i2c: E2 08 00 C2 90 80 0D 03 02 00 00 00 00 CD [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0B 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0B 00 C2 90 00 89 6A AE 39 3D 2C 07 23 90 00 3B [13:27:35]RAPDU: 89 6A AE 39 3D 2C 07 23 90 00 [13:27:35]wFMCommunicate OK [13:27:35]SAM_PROTO_SignData done [13:27:35]FM_MakeSignedData done [13:27:35]CreateOFDProtocolMessage [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 11 00 00 [13:27:35]Write to MH i2c: E2 08 00 C3 90 80 11 00 00 00 00 00 00 CD [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 17 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 17 00 C3 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1D [13:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:27:35]wFMCommunicate OK [13:27:35]CreateOFDProtocolMessage done [13:27:35]OFDSenderStorePacket 94909 [13:27:35]StoreOFDPacket docnum=94909 [13:27:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2D 24 07 01 71 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D4 06 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 72 01 00 35 04 06 00 4D 7F 6F 69 59 56 89 6A AE 39 3D 2C 07 23 [13:27:35]CheckFolder [13:27:35]dirname=/storage/ofd_packets [13:27:35]CheckFolder done [13:27:35]ProducePacketName [13:27:35]name=ofd_packets/00094909 [13:27:35]NVStorageSaveData ofd_packets/00094909 [13:27:35]File name is /storage/ofd_packets/00094909 [13:27:35]Write 301 bytes [13:27:35]NVStorageSaveData done [13:27:35]OFDSenderStorePacket done [13:27:35]KKMCreateOFDPacket done [13:27:35]NVStorageSaveData kkm_last_timestamp [13:27:35]File name is /storage/kkm_last_timestamp [13:27:35]Write 4 bytes [13:27:35]NVStorageSaveData done [13:27:35]ExternCall_PrintAddStr [13:27:35]wPrintStart [13:27:35]Write to MH i2c: 01 00 00 C4 90 54 [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: 01 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: 01 07 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: 01 07 00 C4 90 00 80 00 00 00 FF 0F E9 [13:27:35]RasterBufferAndPrint [13:27:35]line Счет N : (1)195865 [13:27:35]line ИНН: 02508201610067 [13:27:35]line Контрольно-Кассовый Чек [13:27:35]line ПРОДАЖА [13:27:35]line ТРК (МРК, ГНК) : 12 [13:27:35]line Товар: 2710124130 [13:27:35]line Аи-92-К-5 [13:27:35]line 9.540 * 62.90 [13:27:35]line = 600.07 [13:27:35]line НДС 12% НСП 1% [13:27:35]line > о реализуемом товаре [13:27:35]line ИТОГО: 600.07 [13:27:35]line НСП 1% : 5.31 [13:27:35]line НДС 12% : 63.72 [13:27:35]line Наличными: 0.00 [13:27:35]line Безнал.: 600.07 [13:27:35]line Место: АЗС № 6 "Партнер Нефть" [13:27:35]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:27:35]line СНО: Общий режим [13:27:35]line Чек 84 11.03.2024 13:27 [13:27:35]line Смена: 326 ФФД: 1.0 [13:27:35]line ЗНМ: 0300000009 [13:27:35]line РНМ: 0000000000090555 [13:27:35]line Версия ККМ: 001 [13:27:35]line Платежная система: Бакай Банк [13:27:35]line ФМ: 0000000000874811 [13:27:35]line ФД: 94909 [13:27:35]line ФПД: 85209725360470 [13:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T132748&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94909&fm=85209725360470&tin=02508201610067®Number=0000000000090555&sum=60007 [13:27:35]written 0, free lines is 4095 [13:27:35]OFD Sender: Processing packet 94909 [packets to send 30, broken 29] [13:27:35]ProducePacketName [13:27:35]name=ofd_packets/00094909 [13:27:35]OFD Sender: To server: pG, [13:27:35]CommunicateWithHost lk.salyk.kg:30040 [13:27:35]ConnectInit lk.salyk.kg [13:27:35]Connected sock=11 [13:27:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2D 24 07 01 71 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D4 06 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 72 01 00 35 04 06 00 4D 7F 6F 69 59 56 89 6A AE 39 3D 2C 07 23 [13:27: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 31 31 4F 00 00 00 79 61 47 00 EF 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 72 01 00 F4 03 04 00 2D B2 EE 65 B6 04 01 00 00 F6 D0 30 6E 30 41 92 44 [13:27:35]CommunicateWithHost err = 0 [13:27:35]CheckOFDResponse [13:27:35]1017 (14) - 77093643461234 [13:27:35]1041 (16) - 0000000000874811 [13:27:35]1040 (4) - 94909 [13:27:35]1012 (4) - 11.03.2024 07:26 [13:27:35]1206 (1) - 0 [13:27:35]OFD Sender: Remove packet 94909 [13:27:35]ProducePacketName [13:27:35]name=ofd_packets/00094909 [13:27:35]NVStorageDeleteData [13:27:35]Write to MH i2c: 01 00 00 EE 90 7E [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: 01 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: 01 07 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: 01 07 00 EE 90 00 80 00 00 00 64 0D 76 [13:27:35]RasterBufferAndPrint [13:27:35]line [13:27:35]line [13:27:35]line [13:27:35]line [13:27:35]line [13:27:35]written 0, free lines is 3432 [13:27:35]process_action close_receipt done [13:27:35]requested_data is exist [13:27:35]produce_requested_data [13:27:35]requested_item fm.sn is exist - process it [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 11 00 00 [13:27:35]Write to MH i2c: E2 08 00 F5 90 80 11 00 00 00 00 00 00 FF [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 17 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 17 00 F5 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4F [13:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:27:35]wFMCommunicate OK [13:27:35]requested_item fd.num is exist - process it [13:27:35]SAM_PROTO_GetFieldsCounters [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 13 00 00 [13:27:35]Write to MH i2c: E2 08 00 F6 90 80 13 00 00 00 00 00 00 02 [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 62 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 62 00 F6 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BD 72 01 00 0E 04 04 00 46 01 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 92 [13:27: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BD 72 01 00 0E 04 04 00 46 01 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 [13:27:35]wFMCommunicate OK [13:27:35]SAM_PROTO_GetFieldsCounters done [13:27:35]requested_item shift.num is exist - process it [13:27:35]requested_item shift.opened is exist - process it [13:27:35]req_shift_opened [13:27:35]FM_GetShiftState [13:27:35]SAM_PROTO_GetShiftState [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 13 01 00 [13:27:35]Write to MH i2c: E2 08 00 F7 90 80 13 01 00 00 00 00 00 04 [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0E 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0E 00 F7 90 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A0 [13:27:35]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:27:35]wFMCommunicate OK [13:27:35]SAM_PROTO_GetShiftState done [13:27:35]FM_GetShiftState done [13:27:35]req_shift_opened done [13:27:35]requested_item shift.open_date is exist - process it [13:27:35]req_shift_open_date [13:27:35]req_shift_open_date done [13:27:35]produce_requested_data done [13:27:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94909,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:27:35]process_action_free close_receipt [13:27:35]json_value_free [13:27:35]json_value_free done [13:27:35]process_json_proto returns [13:27:35]Send response to host [13:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94909,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:27:35]free response buf [13:27:35]execute_script done [13:27:35]execute_script returns [13:27:35]free content buf [13:27:35]Sock 10.Close socket [13:27:35]Sock 10.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]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:23]accept exits with 7 [13:35:23]New connection [13:35:23]New thread 3067014500 created [13:35:23]Thread 3066871140 joined [13:35:23]Waiting for new connection... [13:35:23] Sock 7.Parse request [13:35:23]Sock 7.Check first char [13:35:23]Sock 7.First char is OK [13:35:23]request: POST /json_proto HTTP/1.0 [13:35:23]Method: POST [13:35:23]URL: /json_proto [13:35:23]Method is POST - this is cgi request [13:35:23]url: /json_proto [13:35:23]query_string will be loaded in cgi processing [13:35:23]execute_cgi json_proto POST (null) [13:35:23]execute_cgi path=json_proto method=POST [13:35:23]POST find Content-Length [13:35:23]Host: 172.17.62.67:8080 [13:35:23]Content-Length: 682 [13:35:23]Content-Type: application/json [13:35:23] [13:35:23]POST finish read [13:35:23]Found Content-Length = 682 [13:35:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 20.670, "sum" : 1300.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:23]execute_script... [13:35: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)195866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 20.670, "sum" : 1300.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:23]POST & json_proto [13:35:23]process_json_proto [13:35:23]json parsed OK: [13:35:23]protocol is kg_v1.0 [13:35:23]action value=close_receipt [13:35:23]process_action close_receipt [13:35:23]cmd_close_receipt [13:35:23]MH_GetDate [13:35:23]Write to MH i2c: F0 00 00 F8 90 77 [13:35:23]Write i2c OK [13:35:23]MH_I2C_Read... [13:35:23]Read from MH i2c: F0 [13:35:23]MH_I2C_Read... [13:35:23]Read from MH i2c: F0 05 00 [13:35:23]MH_I2C_Read... [13:35:23]Read from MH i2c: F0 05 00 F8 90 00 A9 08 EF 65 81 [13:35:23]GetLastDocTimeStamp 1710163668 [13:35:23]current date 1710164137 [13:35:23]FM_GetShiftState [13:35:23]SAM_PROTO_GetShiftState [13:35:23]wFMCommunicate request_size=4 [13:35:23]MH_SAM_APDU [13:35:23]CAPDU: 80 13 01 00 [13:35:23]Write to MH i2c: E2 08 00 F9 90 80 13 01 00 00 00 00 00 06 [13:35:23]Write i2c OK [13:35:23]MH_I2C_Read... [13:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:23]Read from MH i2c: E2 [13:35:23]MH_I2C_Read... [13:35:23]Read from MH i2c: E2 0E 00 [13:35:23]MH_I2C_Read... [13:35:23]Read from MH i2c: E2 0E 00 F9 90 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A2 [13:35:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:35:23]wFMCommunicate OK [13:35:23]SAM_PROTO_GetShiftState done [13:35:23]FM_GetShiftState done [13:35:23]opened in 1710115571 [13:35:23]opened+sec_in_day 1710201971 [13:35:23]quantity*price = 130014 [13:35:23]sum+1 = 130015 [13:35:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.07 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 85 11.03.2024 13:35 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94910 ФПД: 244077572573041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T133537&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94910&fm=244077572573041&tin=02508201610067®Number=0000000000090555&sum=130000 [13:35:24]StoreToDocumentArchive [13:35:24]shift 326 fd 94910 [13:35:24]save to /storage/0326/doc_00094910 [13:35:24]save last doc name /storage/0326/doc_00094910 to /storage/kkm_last_doc_name [13:35:24]save OK [13:35:24]Clear old archive folders... [13:35:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:24]tlvbuf is 0033D430 [13:35:24]SAM_PROTO_ClearQueue [13:35:24]wFMCommunicate request_size=4 [13:35:24]MH_SAM_APDU [13:35:24]CAPDU: 80 09 00 00 [13:35:24]Write to MH i2c: E2 08 00 06 91 80 09 00 00 00 00 00 00 09 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:24]Read from MH i2c: E2 03 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 03 00 06 91 00 90 00 0B [13:35:24]RAPDU: 90 00 [13:35:24]wFMCommunicate OK [13:35:24]SAM_PROTO_ClearQueue done [13:35:24]KKMCreateOFDPacket [13:35:24]OFDProtocolAddRootSTLVToBuf [13:35:24]FM_MakeSignedData [13:35:24]FM_MakeSignedData [13:35:24]SAM_PROTO_SignData [13:35:24]wFMCommunicate request_size=4 [13:35:24]MH_SAM_APDU [13:35:24]CAPDU: 80 0D 01 02 [13:35:24]Write to MH i2c: E2 08 00 07 91 80 0D 01 02 00 00 00 00 11 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 03 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 03 00 07 91 00 90 00 0C [13:35:24]RAPDU: 90 00 [13:35:24]wFMCommunicate OK [13:35:24]wFMCommunicate request_size=255 [13:35:24]MH_SAM_APDU [13:35: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 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A9 08 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 72 01 00 35 04 06 00 DD [13:35:24]Write to MH i2c: E2 02 01 08 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A9 08 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 72 01 00 35 04 06 00 DD 00 00 97 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 03 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 03 00 08 91 00 90 00 0D [13:35:24]RAPDU: 90 00 [13:35:24]wFMCommunicate OK [13:35:24]wFMCommunicate request_size=10 [13:35:24]MH_SAM_APDU [13:35:24]CAPDU: 80 0D 02 02 05 FC BD 02 C7 71 [13:35:24]Write to MH i2c: E2 0D 00 09 91 80 0D 02 02 05 00 FC BD 02 C7 71 00 00 11 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 03 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 03 00 09 91 00 90 00 0E [13:35:24]RAPDU: 90 00 [13:35:24]wFMCommunicate OK [13:35:24]wFMCommunicate request_size=4 [13:35:24]MH_SAM_APDU [13:35:24]CAPDU: 80 0D 03 02 [13:35:24]Write to MH i2c: E2 08 00 0A 91 80 0D 03 02 00 00 00 00 16 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 0B 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 0B 00 0A 91 00 19 E8 F4 B3 91 EA 02 AB 90 00 E7 [13:35:24]RAPDU: 19 E8 F4 B3 91 EA 02 AB 90 00 [13:35:24]wFMCommunicate OK [13:35:24]SAM_PROTO_SignData done [13:35:24]FM_MakeSignedData done [13:35:24]CreateOFDProtocolMessage [13:35:24]wFMCommunicate request_size=4 [13:35:24]MH_SAM_APDU [13:35:24]CAPDU: 80 11 00 00 [13:35:24]Write to MH i2c: E2 08 00 0B 91 80 11 00 00 00 00 00 00 16 [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:24]Read from MH i2c: E2 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 17 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: E2 17 00 0B 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 66 [13:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:35:24]wFMCommunicate OK [13:35:24]CreateOFDProtocolMessage done [13:35:24]OFDSenderStorePacket 94910 [13:35:24]StoreOFDPacket docnum=94910 [13:35:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 54 B5 07 01 98 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A9 08 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 72 01 00 35 04 06 00 DD FC BD 02 C7 71 19 E8 F4 B3 91 EA 02 AB [13:35:24]CheckFolder [13:35:24]dirname=/storage/ofd_packets [13:35:24]CheckFolder done [13:35:24]ProducePacketName [13:35:24]name=ofd_packets/00094910 [13:35:24]NVStorageSaveData ofd_packets/00094910 [13:35:24]File name is /storage/ofd_packets/00094910 [13:35:24]Write 301 bytes [13:35:24]NVStorageSaveData done [13:35:24]OFDSenderStorePacket done [13:35:24]KKMCreateOFDPacket done [13:35:24]NVStorageSaveData kkm_last_timestamp [13:35:24]File name is /storage/kkm_last_timestamp [13:35:24]Write 4 bytes [13:35:24]NVStorageSaveData done [13:35:24]ExternCall_PrintAddStr [13:35:24]wPrintStart [13:35:24]Write to MH i2c: 01 00 00 0C 91 9D [13:35:24]Write i2c OK [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: 01 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: 01 07 00 [13:35:24]MH_I2C_Read... [13:35:24]Read from MH i2c: 01 07 00 0C 91 00 80 00 00 00 FF 0F 32 [13:35:24]RasterBufferAndPrint [13:35:24]line Счет N : (1)195866 [13:35:24]line ИНН: 02508201610067 [13:35:24]line Контрольно-Кассовый Чек [13:35:24]line ПРОДАЖА [13:35:24]line ТРК (МРК, ГНК) : 12 [13:35:24]line Товар: 2710124130 [13:35:24]line Аи-92-К-5 [13:35:24]line 20.670 * 62.90 [13:35:24]line = 1300.14 [13:35:24]line НДС 12% НСП 1% [13:35:24]line > о реализуемом товаре [13:35:24]line ОКРУГЛЕНИЕ: -0.14 [13:35:24]line ИТОГО: 1300.00 [13:35:24]line Внесено: 1300.00 [13:35:24]line СДАЧА: 0.00 [13:35:24]line НСП 1% : 11.51 [13:35:24]line НДС 12% : 138.07 [13:35:24]line Наличными: 1300.00 [13:35:24]line Безнал.: 0.00 [13:35:24]line Место: АЗС № 6 "Партнер Нефть" [13:35:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:35:24]line СНО: Общий режим [13:35:24]line Чек 85 11.03.2024 13:35 [13:35:24]line Смена: 326 ФФД: 1.0 [13:35:24]line ЗНМ: 0300000009 [13:35:24]line РНМ: 0000000000090555 [13:35:24]line Версия ККМ: 001 [13:35:24]line ФМ: 0000000000874811 [13:35:24]line ФД: 94910 [13:35:24]line ФПД: 244077572573041 [13:35:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T133537&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94910&fm=244077572573041&tin=02508201610067®Number=0000000000090555&sum=130000 [13:35:25]OFD Sender: Processing packet 94910 [packets to send 30, broken 29] [13:35:25]ProducePacketName [13:35:25]name=ofd_packets/00094910 [13:35:25]OFD Sender: To server: pG, [13:35:25]CommunicateWithHost lk.salyk.kg:30040 [13:35:25]ConnectInit lk.salyk.kg [13:35:25]written 0, free lines is 4095 [13:35:25]Connected sock=10 [13:35:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 54 B5 07 01 98 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A9 08 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 72 01 00 35 04 06 00 DD FC BD 02 C7 71 19 E8 F4 B3 91 EA 02 AB [13:35:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 39 F9 47 00 ED CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 72 01 00 F4 03 04 00 03 B4 EE 65 B6 04 01 00 00 9F E3 EA 7E C8 09 A8 50 [13:35:25]CommunicateWithHost err = 0 [13:35:25]CheckOFDResponse [13:35:25]1017 (14) - 77093643461234 [13:35:25]1041 (16) - 0000000000874811 [13:35:25]1040 (4) - 94910 [13:35:25]1012 (4) - 11.03.2024 07:34 [13:35:25]1206 (1) - 0 [13:35:25]OFD Sender: Remove packet 94910 [13:35:25]ProducePacketName [13:35:25]name=ofd_packets/00094910 [13:35:25]NVStorageDeleteData [13:35:25]Write to MH i2c: 01 00 00 37 91 C8 [13:35:25]Write i2c OK [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: 01 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: 01 07 00 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: 01 07 00 37 91 00 80 00 00 00 4C 0D A8 [13:35:25]RasterBufferAndPrint [13:35:25]line [13:35:25]line [13:35:25]line [13:35:25]line [13:35:25]line [13:35:25]written 0, free lines is 3410 [13:35:25]process_action close_receipt done [13:35:25]requested_data is exist [13:35:25]produce_requested_data [13:35:25]requested_item fm.sn is exist - process it [13:35:25]wFMCommunicate request_size=4 [13:35:25]MH_SAM_APDU [13:35:25]CAPDU: 80 11 00 00 [13:35:25]Write to MH i2c: E2 08 00 3E 91 80 11 00 00 00 00 00 00 49 [13:35:25]Write i2c OK [13:35:25]MH_I2C_Read... [13:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:25]Read from MH i2c: E2 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: E2 17 00 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: E2 17 00 3E 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 99 [13:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:35:25]wFMCommunicate OK [13:35:25]requested_item fd.num is exist - process it [13:35:25]SAM_PROTO_GetFieldsCounters [13:35:25]wFMCommunicate request_size=4 [13:35:25]MH_SAM_APDU [13:35:25]CAPDU: 80 13 00 00 [13:35:25]Write to MH i2c: E2 08 00 3F 91 80 13 00 00 00 00 00 00 4C [13:35:25]Write i2c OK [13:35:25]MH_I2C_Read... [13:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:25]Read from MH i2c: E2 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: E2 62 00 [13:35:25]MH_I2C_Read... [13:35:25]Read from MH i2c: E2 62 00 3F 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BE 72 01 00 0E 04 04 00 46 01 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 E0 [13:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BE 72 01 00 0E 04 04 00 46 01 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 [13:35:25]wFMCommunicate OK [13:35:25]SAM_PROTO_GetFieldsCounters done [13:35:25]requested_item shift.num is exist - process it [13:35:25]requested_item shift.opened is exist - process it [13:35:25]req_shift_opened [13:35:25]FM_GetShiftState [13:35:25]SAM_PROTO_GetShiftState [13:35:25]wFMCommunicate request_size=4 [13:35:25]MH_SAM_APDU [13:35:25]CAPDU: 80 13 01 00 [13:35:25]Write to MH i2c: E2 08 00 40 91 80 13 01 00 00 00 00 00 4E [13:35:25]Write i2c OK [13:35:25]MH_I2C_Read... [13:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:25]Read from MH i2c: E2 [13:35:26]MH_I2C_Read... [13:35:26]OFD Sender: No OFD packet to send [13:35:26]Read from MH i2c: E2 0E 00 [13:35:26]MH_I2C_Read... [13:35:26]Read from MH i2c: E2 0E 00 40 91 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EA [13:35:26]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:35:26]wFMCommunicate OK [13:35:26]SAM_PROTO_GetShiftState done [13:35:26]FM_GetShiftState done [13:35:26]req_shift_opened done [13:35:26]requested_item shift.open_date is exist - process it [13:35:26]req_shift_open_date [13:35:26]req_shift_open_date done [13:35:26]produce_requested_data done [13:35:26]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94910,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:35:26]process_action_free close_receipt [13:35:26]json_value_free [13:35:26]json_value_free done [13:35:26]process_json_proto returns [13:35:26]Send response to host [13:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94910,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:35:26]free response buf [13:35:26]execute_script done [13:35:26]execute_script returns [13:35:26]free content buf [13:35:26]Sock 7.Close socket [13:35:26]Sock 7.Thread stoped [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:44]accept exits with 9 [13:46:44]New connection [13:46:44]New thread 3066871140 created [13:46:44]Thread 3067014500 joined [13:46:44]Waiting for new connection... [13:46:44] Sock 9.Parse request [13:46:44]Sock 9.Check first char [13:46:44]Sock 9.First char is OK [13:46:44]request: POST /json_proto HTTP/1.0 [13:46:44]Method: POST [13:46:44]URL: /json_proto [13:46:44]Method is POST - this is cgi request [13:46:44]url: /json_proto [13:46:44]query_string will be loaded in cgi processing [13:46:44]execute_cgi json_proto POST (null) [13:46:44]execute_cgi path=json_proto method=POST [13:46:44]POST find Content-Length [13:46:44]Host: 172.17.62.67:8080 [13:46:44]Content-Length: 1193 [13:46:44]Content-Type: application/json [13:46:44] [13:46:44]POST finish read [13:46:44]Found Content-Length = 1193 [13:46:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195867\u000A11.03.2024 13:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 31.940 x 69.50\u000A\u0418\u0422\u041E\u0413: 2219.83\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:44]execute_script... [13:46:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195867\u000A11.03.2024 13:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 31.940 x 69.50\u000A\u0418\u0422\u041E\u0413: 2219.83\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:44]POST & json_proto [13:46:44]process_json_proto [13:46:44]json parsed OK: [13:46:44]protocol is kg_v1.0 [13:46:44]action value=print_text [13:46:44]process_action print_text [13:46:44]cmd_print_text [13:46:44]ExternCall_PrintAddStr [13:46:44]wPrintStart [13:46:44]Write to MH i2c: 01 00 00 41 91 D2 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: 01 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: 01 07 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: 01 07 00 41 91 00 80 00 00 00 FF 0F 67 [13:46:44]RasterBufferAndPrint [13:46:44]line *****ТОВАРНЫЙ ЧЕК***** [13:46:44]line АЗС 6 [13:46:44]line Партнер нефть [13:46:44]line 02508201610067 [13:46:44]line Кассир : Карыбаев Б. [13:46:44]line Счет N : (1)195867 [13:46:44]line 11.03.2024 13:41 [13:46:44]line ПРОДАЖА [13:46:44]line ТРК (МРК, ГНК): 31 [13:46:44]line Вид ГСМ : 2710124500 [13:46:44]line Аи-95-К-5 [13:46:44]line 31.940 x 69.50 [13:46:44]line ИТОГ: 2219.83 [13:46:44]line Тип оплаты: Талоны: Топливная Карта [13:46:44]line 68860 [13:46:44]line ______________________ [13:46:44]line (подпись) [13:46:44]written 0, free lines is 4095 [13:46:44]Write to MH i2c: 01 00 00 55 91 E6 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: 01 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: 01 07 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: 01 07 00 55 91 00 80 00 00 00 63 0E DE [13:46:44]RasterBufferAndPrint [13:46:44]line [13:46:44]line [13:46:44]line [13:46:44]line [13:46:44]line [13:46:44]written 0, free lines is 3687 [13:46:44]process_action print_text done [13:46:44]requested_data is exist [13:46:44]produce_requested_data [13:46:44]requested_item fm.sn is exist - process it [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 11 00 00 [13:46:44]Write to MH i2c: E2 08 00 5C 91 80 11 00 00 00 00 00 00 67 [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 17 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 17 00 5C 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B7 [13:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:46:44]wFMCommunicate OK [13:46:44]requested_item fd.num is exist - process it [13:46:44]SAM_PROTO_GetFieldsCounters [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 13 00 00 [13:46:44]Write to MH i2c: E2 08 00 5D 91 80 13 00 00 00 00 00 00 6A [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 62 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 62 00 5D 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BE 72 01 00 0E 04 04 00 46 01 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 FE [13:46: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BE 72 01 00 0E 04 04 00 46 01 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 [13:46:44]wFMCommunicate OK [13:46:44]SAM_PROTO_GetFieldsCounters done [13:46:44]requested_item shift.num is exist - process it [13:46:44]requested_item shift.opened is exist - process it [13:46:44]req_shift_opened [13:46:44]FM_GetShiftState [13:46:44]SAM_PROTO_GetShiftState [13:46:44]wFMCommunicate request_size=4 [13:46:44]MH_SAM_APDU [13:46:44]CAPDU: 80 13 01 00 [13:46:44]Write to MH i2c: E2 08 00 5E 91 80 13 01 00 00 00 00 00 6C [13:46:44]Write i2c OK [13:46:44]MH_I2C_Read... [13:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:44]Read from MH i2c: E2 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 0E 00 [13:46:44]MH_I2C_Read... [13:46:44]Read from MH i2c: E2 0E 00 5E 91 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 08 [13:46:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:46:44]wFMCommunicate OK [13:46:44]SAM_PROTO_GetShiftState done [13:46:44]FM_GetShiftState done [13:46:44]req_shift_opened done [13:46:44]requested_item shift.open_date is exist - process it [13:46:44]req_shift_open_date [13:46:44]req_shift_open_date done [13:46:44]produce_requested_data done [13:46:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94910,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:46:44]process_action_free print_text [13:46:44]json_value_free [13:46:44]json_value_free done [13:46:44]process_json_proto returns [13:46:44]Send response to host [13:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94910,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:46:44]free response buf [13:46:44]execute_script done [13:46:44]execute_script returns [13:46:44]free content buf [13:46:44]Sock 9.Close socket [13:46:44]Sock 9.Thread stoped [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:10]accept exits with 7 [13:55:10]New connection [13:55:10]New thread 3067014500 created [13:55:10]Thread 3066871140 joined [13:55:10]Waiting for new connection... [13:55:10] Sock 7.Parse request [13:55:10]Sock 7.Check first char [13:55:10]Sock 7.First char is OK [13:55:10]request: POST /json_proto HTTP/1.0 [13:55:10]Method: POST [13:55:10]URL: /json_proto [13:55:10]Method is POST - this is cgi request [13:55:10]url: /json_proto [13:55:10]query_string will be loaded in cgi processing [13:55:10]execute_cgi json_proto POST (null) [13:55:10]execute_cgi path=json_proto method=POST [13:55:10]POST find Content-Length [13:55:10]Host: 172.17.62.67:8080 [13:55:10]Content-Length: 682 [13:55:10]Content-Type: application/json [13:55:10] [13:55:10]POST finish read [13:55:10]Found Content-Length = 682 [13:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:10]execute_script... [13:55: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)195868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:10]POST & json_proto [13:55:10]process_json_proto [13:55:10]json parsed OK: [13:55:10]protocol is kg_v1.0 [13:55:10]action value=close_receipt [13:55:10]process_action close_receipt [13:55:10]cmd_close_receipt [13:55:10]MH_GetDate [13:55:10]Write to MH i2c: F0 00 00 5F 91 DF [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: F0 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: F0 05 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: F0 05 00 5F 91 00 4D 0D EF 65 92 [13:55:10]GetLastDocTimeStamp 1710164137 [13:55:10]current date 1710165325 [13:55:10]FM_GetShiftState [13:55:10]SAM_PROTO_GetShiftState [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 13 01 00 [13:55:10]Write to MH i2c: E2 08 00 60 91 80 13 01 00 00 00 00 00 6E [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 0E 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 0E 00 60 91 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0A [13:55:10]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:55:10]wFMCommunicate OK [13:55:10]SAM_PROTO_GetShiftState done [13:55:10]FM_GetShiftState done [13:55:10]opened in 1710115571 [13:55:10]opened+sec_in_day 1710201971 [13:55:10]quantity*price = 300031 [13:55:10]sum+1 = 300033 [13:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 86 11.03.2024 13:55 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94911 ФПД: 169218630838543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T135525&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94911&fm=169218630838543&tin=02508201610067®Number=0000000000090555&sum=300000 [13:55:11]StoreToDocumentArchive [13:55:11]shift 326 fd 94911 [13:55:11]save to /storage/0326/doc_00094911 [13:55:11]save last doc name /storage/0326/doc_00094911 to /storage/kkm_last_doc_name [13:55:11]save OK [13:55:11]Clear old archive folders... [13:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:11]tlvbuf is B6F64CC0 [13:55:11]SAM_PROTO_ClearQueue [13:55:11]wFMCommunicate request_size=4 [13:55:11]MH_SAM_APDU [13:55:11]CAPDU: 80 09 00 00 [13:55:11]Write to MH i2c: E2 08 00 6D 91 80 09 00 00 00 00 00 00 70 [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: E2 [13:55:11]MH_I2C_Read... [13:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:11]Read from MH i2c: E2 03 00 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: E2 03 00 6D 91 00 90 00 72 [13:55:11]RAPDU: 90 00 [13:55:11]wFMCommunicate OK [13:55:11]SAM_PROTO_ClearQueue done [13:55:11]KKMCreateOFDPacket [13:55:11]OFDProtocolAddRootSTLVToBuf [13:55:11]FM_MakeSignedData [13:55:11]FM_MakeSignedData [13:55:11]SAM_PROTO_SignData [13:55:11]wFMCommunicate request_size=4 [13:55:11]MH_SAM_APDU [13:55:11]CAPDU: 80 0D 01 02 [13:55:11]Write to MH i2c: E2 08 00 6E 91 80 0D 01 02 00 00 00 00 78 [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:11]Read from MH i2c: E2 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: E2 03 00 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: E2 03 00 6E 91 00 90 00 73 [13:55:11]RAPDU: 90 00 [13:55:11]wFMCommunicate OK [13:55:11]wFMCommunicate request_size=255 [13:55:11]MH_SAM_APDU [13:55: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4D 0D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 72 01 00 35 04 06 00 99 [13:55:11]Write to MH i2c: E2 02 01 6F 91 80 0D 02 02 FA 00 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 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4D 0D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 72 01 00 35 04 06 00 99 00 00 04 [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:12]OFD Sender: No OFD packet to send [13:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:12]Read from MH i2c: E2 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 03 00 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 03 00 6F 91 00 90 00 74 [13:55:12]RAPDU: 90 00 [13:55:12]wFMCommunicate OK [13:55:12]wFMCommunicate request_size=10 [13:55:12]MH_SAM_APDU [13:55:12]CAPDU: 80 0D 02 02 05 E7 48 61 69 0F [13:55:12]Write to MH i2c: E2 0D 00 70 91 80 0D 02 02 05 00 E7 48 61 69 0F 00 00 8D [13:55:12]Write i2c OK [13:55:12]MH_I2C_Read... [13:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:12]Read from MH i2c: E2 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 03 00 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 03 00 70 91 00 90 00 75 [13:55:12]RAPDU: 90 00 [13:55:12]wFMCommunicate OK [13:55:12]wFMCommunicate request_size=4 [13:55:12]MH_SAM_APDU [13:55:12]CAPDU: 80 0D 03 02 [13:55:12]Write to MH i2c: E2 08 00 71 91 80 0D 03 02 00 00 00 00 7D [13:55:12]Write i2c OK [13:55:12]MH_I2C_Read... [13:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:12]Read from MH i2c: E2 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 0B 00 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 0B 00 71 91 00 BA 6B 5D 2E 98 29 F6 BF 90 00 A4 [13:55:12]RAPDU: BA 6B 5D 2E 98 29 F6 BF 90 00 [13:55:12]wFMCommunicate OK [13:55:12]SAM_PROTO_SignData done [13:55:12]FM_MakeSignedData done [13:55:12]CreateOFDProtocolMessage [13:55:12]wFMCommunicate request_size=4 [13:55:12]MH_SAM_APDU [13:55:12]CAPDU: 80 11 00 00 [13:55:12]Write to MH i2c: E2 08 00 72 91 80 11 00 00 00 00 00 00 7D [13:55:12]Write i2c OK [13:55:12]MH_I2C_Read... [13:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:12]Read from MH i2c: E2 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 17 00 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 17 00 72 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CD [13:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:55:12]wFMCommunicate OK [13:55:12]CreateOFDProtocolMessage done [13:55:12]OFDSenderStorePacket 94911 [13:55:12]StoreOFDPacket docnum=94911 [13:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EE DE 07 01 F7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4D 0D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 72 01 00 35 04 06 00 99 E7 48 61 69 0F BA 6B 5D 2E 98 29 F6 BF [13:55:12]CheckFolder [13:55:12]dirname=/storage/ofd_packets [13:55:12]CheckFolder done [13:55:12]ProducePacketName [13:55:12]name=ofd_packets/00094911 [13:55:12]NVStorageSaveData ofd_packets/00094911 [13:55:12]File name is /storage/ofd_packets/00094911 [13:55:12]Write 301 bytes [13:55:12]NVStorageSaveData done [13:55:12]OFDSenderStorePacket done [13:55:12]KKMCreateOFDPacket done [13:55:12]NVStorageSaveData kkm_last_timestamp [13:55:12]File name is /storage/kkm_last_timestamp [13:55:12]Write 4 bytes [13:55:12]NVStorageSaveData done [13:55:12]ExternCall_PrintAddStr [13:55:12]wPrintStart [13:55:12]Write to MH i2c: 01 00 00 73 91 04 [13:55:12]Write i2c OK [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: 01 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: 01 07 00 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: 01 07 00 73 91 00 80 00 00 00 FF 0F 99 [13:55:12]RasterBufferAndPrint [13:55:12]line Счет N : (1)195868 [13:55:12]line ИНН: 02508201610067 [13:55:12]line Контрольно-Кассовый Чек [13:55:12]line ПРОДАЖА [13:55:12]line ТРК (МРК, ГНК) : 41 [13:55:12]line Товар: 2710124500 [13:55:12]line Аи-95-К-5 [13:55:12]line 43.170 * 69.50 [13:55:12]line = 3000.32 [13:55:12]line НДС 12% НСП 1% [13:55:12]line > о реализуемом товаре [13:55:12]line ОКРУГЛЕНИЕ: -0.32 [13:55:12]line ИТОГО: 3000.00 [13:55:12]line Внесено: 3000.00 [13:55:12]line СДАЧА: 0.00 [13:55:12]line НСП 1% : 26.55 [13:55:12]line НДС 12% : 318.62 [13:55:12]line Наличными: 3000.00 [13:55:12]line Безнал.: 0.00 [13:55:12]line Место: АЗС № 6 "Партнер Нефть" [13:55:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:55:12]line СНО: Общий режим [13:55:12]line Чек 86 11.03.2024 13:55 [13:55:12]line Смена: 326 ФФД: 1.0 [13:55:12]line ЗНМ: 0300000009 [13:55:12]line РНМ: 0000000000090555 [13:55:12]line Версия ККМ: 001 [13:55:12]line ФМ: 0000000000874811 [13:55:12]line ФД: 94911 [13:55:12]line ФПД: 169218630838543 [13:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T135525&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94911&fm=169218630838543&tin=02508201610067®Number=0000000000090555&sum=300000 [13:55:12]OFD Sender: Processing packet 94911 [packets to send 30, broken 29] [13:55:12]ProducePacketName [13:55:12]name=ofd_packets/00094911 [13:55:12]OFD Sender: To server: pG, [13:55:12]CommunicateWithHost lk.salyk.kg:30040 [13:55:12]ConnectInit lk.salyk.kg [13:55:12]written 0, free lines is 4095 [13:55:12]Connected sock=10 [13:55: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 31 31 0F 01 00 00 EE DE 07 01 F7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4D 0D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 72 01 00 35 04 06 00 99 E7 48 61 69 0F BA 6B 5D 2E 98 29 F6 BF [13:55: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 31 31 4F 00 00 00 B4 A3 47 00 37 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 72 01 00 F4 03 04 00 A6 B8 EE 65 B6 04 01 00 00 B6 2F B0 9E 24 6F BF 1F [13:55:12]CommunicateWithHost err = 0 [13:55:12]CheckOFDResponse [13:55:12]1017 (14) - 77093643461234 [13:55:12]1041 (16) - 0000000000874811 [13:55:12]1040 (4) - 94911 [13:55:12]1012 (4) - 11.03.2024 07:54 [13:55:12]1206 (1) - 0 [13:55:12]OFD Sender: Remove packet 94911 [13:55:12]ProducePacketName [13:55:12]name=ofd_packets/00094911 [13:55:12]NVStorageDeleteData [13:55:13]Write to MH i2c: 01 00 00 9E 91 2F [13:55:13]Write i2c OK [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: 01 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: 01 07 00 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: 01 07 00 9E 91 00 80 00 00 00 4E 0D 11 [13:55:13]RasterBufferAndPrint [13:55:13]line [13:55:13]line [13:55:13]line [13:55:13]line [13:55:13]line [13:55:13]written 0, free lines is 3412 [13:55:13]process_action close_receipt done [13:55:13]requested_data is exist [13:55:13]produce_requested_data [13:55:13]requested_item fm.sn is exist - process it [13:55:13]wFMCommunicate request_size=4 [13:55:13]MH_SAM_APDU [13:55:13]CAPDU: 80 11 00 00 [13:55:13]Write to MH i2c: E2 08 00 A5 91 80 11 00 00 00 00 00 00 B0 [13:55:13]Write i2c OK [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 [13:55:13]MH_I2C_Read... [13:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:13]Read from MH i2c: E2 17 00 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 17 00 A5 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [13:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:55:13]wFMCommunicate OK [13:55:13]requested_item fd.num is exist - process it [13:55:13]SAM_PROTO_GetFieldsCounters [13:55:13]wFMCommunicate request_size=4 [13:55:13]MH_SAM_APDU [13:55:13]CAPDU: 80 13 00 00 [13:55:13]Write to MH i2c: E2 08 00 A6 91 80 13 00 00 00 00 00 00 B3 [13:55:13]Write i2c OK [13:55:13]MH_I2C_Read... [13:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:13]Read from MH i2c: E2 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 62 00 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 62 00 A6 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BF 72 01 00 0E 04 04 00 46 01 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 4B [13:55: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BF 72 01 00 0E 04 04 00 46 01 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 [13:55:13]wFMCommunicate OK [13:55:13]SAM_PROTO_GetFieldsCounters done [13:55:13]requested_item shift.num is exist - process it [13:55:13]requested_item shift.opened is exist - process it [13:55:13]req_shift_opened [13:55:13]FM_GetShiftState [13:55:13]SAM_PROTO_GetShiftState [13:55:13]wFMCommunicate request_size=4 [13:55:13]MH_SAM_APDU [13:55:13]CAPDU: 80 13 01 00 [13:55:13]Write to MH i2c: E2 08 00 A7 91 80 13 01 00 00 00 00 00 B5 [13:55:13]Write i2c OK [13:55:13]MH_I2C_Read... [13:55:13]OFD Sender: No OFD packet to send [13:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:13]Read from MH i2c: E2 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 0E 00 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 0E 00 A7 91 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 51 [13:55:13]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [13:55:13]wFMCommunicate OK [13:55:13]SAM_PROTO_GetShiftState done [13:55:13]FM_GetShiftState done [13:55:13]req_shift_opened done [13:55:13]requested_item shift.open_date is exist - process it [13:55:13]req_shift_open_date [13:55:13]req_shift_open_date done [13:55:13]produce_requested_data done [13:55:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94911,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [13:55:13]process_action_free close_receipt [13:55:13]json_value_free [13:55:13]json_value_free done [13:55:13]process_json_proto returns [13:55:13]Send response to host [13:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94911,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [13:55:13]free response buf [13:55:13]execute_script done [13:55:13]execute_script returns [13:55:13]free content buf [13:55:13]Sock 7.Close socket [13:55:13]Sock 7.Thread stoped [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07: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:08]accept exits with 9 [14:10:08]New connection [14:10:08]New thread 3066871140 created [14:10:08]Thread 3067014500 joined [14:10:08]Waiting for new connection... [14:10:08] Sock 9.Parse request [14:10:08]Sock 9.Check first char [14:10:08]Sock 9.First char is OK [14:10:08]request: POST /json_proto HTTP/1.0 [14:10:08]Method: POST [14:10:08]URL: /json_proto [14:10:08]Method is POST - this is cgi request [14:10:08]url: /json_proto [14:10:08]query_string will be loaded in cgi processing [14:10:08]execute_cgi json_proto POST (null) [14:10:08]execute_cgi path=json_proto method=POST [14:10:08]POST find Content-Length [14:10:08]Host: 172.17.62.67:8080 [14:10:08]Content-Length: 679 [14:10:08]Content-Type: application/json [14:10:08] [14:10:08]POST finish read [14:10:08]Found Content-Length = 679 [14:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:08]execute_script... [14:10:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:08]POST & json_proto [14:10:08]process_json_proto [14:10:08]json parsed OK: [14:10:08]protocol is kg_v1.0 [14:10:08]action value=close_receipt [14:10:08]process_action close_receipt [14:10:08]cmd_close_receipt [14:10:08]MH_GetDate [14:10:08]Write to MH i2c: F0 00 00 A8 91 28 [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 05 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: F0 05 00 A8 91 00 CF 10 EF 65 60 [14:10:08]GetLastDocTimeStamp 1710165325 [14:10:08]current date 1710166223 [14:10:08]FM_GetShiftState [14:10:08]SAM_PROTO_GetShiftState [14:10:08]wFMCommunicate request_size=4 [14:10:08]MH_SAM_APDU [14:10:08]CAPDU: 80 13 01 00 [14:10:08]Write to MH i2c: E2 08 00 A9 91 80 13 01 00 00 00 00 00 B7 [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:08]Read from MH i2c: E2 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 0E 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 0E 00 A9 91 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 53 [14:10:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:10:08]wFMCommunicate OK [14:10:08]SAM_PROTO_GetShiftState done [14:10:08]FM_GetShiftState done [14:10:08]opened in 1710115571 [14:10:08]opened+sec_in_day 1710201971 [14:10:08]quantity*price = 180015 [14:10:08]sum+1 = 180016 [14:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.17 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 87 11.03.2024 14:10 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94912 ФПД: 189466775142569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T141023&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94912&fm=189466775142569&tin=02508201610067®Number=0000000000090555&sum=180000 [14:10:09]StoreToDocumentArchive [14:10:09]shift 326 fd 94912 [14:10:09]save to /storage/0326/doc_00094912 [14:10:09]save last doc name /storage/0326/doc_00094912 to /storage/kkm_last_doc_name [14:10:09]save OK [14:10:09]Clear old archive folders... [14:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:10:09]tlvbuf is B6F645A0 [14:10:09]SAM_PROTO_ClearQueue [14:10:09]wFMCommunicate request_size=4 [14:10:09]MH_SAM_APDU [14:10:09]CAPDU: 80 09 00 00 [14:10:09]Write to MH i2c: E2 08 00 B6 91 80 09 00 00 00 00 00 00 B9 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:09]Read from MH i2c: E2 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 B6 91 00 90 00 BB [14:10:09]RAPDU: 90 00 [14:10:09]wFMCommunicate OK [14:10:09]SAM_PROTO_ClearQueue done [14:10:09]KKMCreateOFDPacket [14:10:09]OFDProtocolAddRootSTLVToBuf [14:10:09]FM_MakeSignedData [14:10:09]FM_MakeSignedData [14:10:09]SAM_PROTO_SignData [14:10:09]wFMCommunicate request_size=4 [14:10:09]MH_SAM_APDU [14:10:09]CAPDU: 80 0D 01 02 [14:10:09]Write to MH i2c: E2 08 00 B7 91 80 0D 01 02 00 00 00 00 C1 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:09]Read from MH i2c: E2 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 03 00 B7 91 00 90 00 BC [14:10:09]RAPDU: 90 00 [14:10:09]wFMCommunicate OK [14:10:09]wFMCommunicate request_size=255 [14:10:09]MH_SAM_APDU [14:10:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 CF 10 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 72 01 00 35 04 06 00 AC 51 AB D4 [14:10:09]Write to MH i2c: E2 02 01 B8 91 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 CF 10 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 72 01 00 35 04 06 00 AC 51 AB D4 00 00 E0 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 B8 91 00 90 00 BD [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=7 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 02 02 02 40 A9 [14:10:10]Write to MH i2c: E2 0A 00 B9 91 80 0D 02 02 02 00 40 A9 00 00 B1 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 03 00 B9 91 00 90 00 BE [14:10:10]RAPDU: 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 0D 03 02 [14:10:10]Write to MH i2c: E2 08 00 BA 91 80 0D 03 02 00 00 00 00 C6 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 0B 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 0B 00 BA 91 00 AC 71 C5 63 69 14 D6 3A 90 00 99 [14:10:10]RAPDU: AC 71 C5 63 69 14 D6 3A 90 00 [14:10:10]wFMCommunicate OK [14:10:10]SAM_PROTO_SignData done [14:10:10]FM_MakeSignedData done [14:10:10]CreateOFDProtocolMessage [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 11 00 00 [14:10:10]Write to MH i2c: E2 08 00 BB 91 80 11 00 00 00 00 00 00 C6 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 17 00 BB 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 16 [14:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:10:10]wFMCommunicate OK [14:10:10]CreateOFDProtocolMessage done [14:10:10]OFDSenderStorePacket 94912 [14:10:10]StoreOFDPacket docnum=94912 [14:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 8A FD 04 01 9E 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 CF 10 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 72 01 00 35 04 06 00 AC 51 AB D4 40 A9 AC 71 C5 63 69 14 D6 3A [14:10:10]CheckFolder [14:10:10]dirname=/storage/ofd_packets [14:10:10]CheckFolder done [14:10:10]ProducePacketName [14:10:10]name=ofd_packets/00094912 [14:10:10]NVStorageSaveData ofd_packets/00094912 [14:10:10]File name is /storage/ofd_packets/00094912 [14:10:10]Write 298 bytes [14:10:10]NVStorageSaveData done [14:10:10]OFDSenderStorePacket done [14:10:10]KKMCreateOFDPacket done [14:10:10]NVStorageSaveData kkm_last_timestamp [14:10:10]File name is /storage/kkm_last_timestamp [14:10:10]Write 4 bytes [14:10:10]NVStorageSaveData done [14:10:10]ExternCall_PrintAddStr [14:10:10]wPrintStart [14:10:10]Write to MH i2c: 01 00 00 BC 91 4D [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 07 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: 01 07 00 BC 91 00 80 00 00 00 FF 0F E2 [14:10:10]RasterBufferAndPrint [14:10:10]line Счет N : (1)195869 [14:10:10]line ИНН: 02508201610067 [14:10:10]line Контрольно-Кассовый Чек [14:10:10]line ПРОДАЖА [14:10:10]line ТРК (МРК, ГНК) : 51 [14:10:10]line Товар: 2710194210 [14:10:10]line ДТ-К-5 [14:10:10]line 25.390 * 70.90 [14:10:10]line = 1800.15 [14:10:10]line НДС 12% НСП 1% [14:10:10]line > о реализуемом товаре [14:10:10]line ОКРУГЛЕНИЕ: -0.15 [14:10:10]line ИТОГО: 1800.00 [14:10:10]line Внесено: 1800.00 [14:10:10]line СДАЧА: 0.00 [14:10:10]line НСП 1% : 15.93 [14:10:10]line НДС 12% : 191.17 [14:10:10]line Наличными: 1800.00 [14:10:10]line Безнал.: 0.00 [14:10:10]line Место: АЗС № 6 "Партнер Нефть" [14:10:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:10:10]line СНО: Общий режим [14:10:10]line Чек 87 11.03.2024 14:10 [14:10:10]line Смена: 326 ФФД: 1.0 [14:10:10]line ЗНМ: 0300000009 [14:10:10]line РНМ: 0000000000090555 [14:10:10]line Версия ККМ: 001 [14:10:10]line ФМ: 0000000000874811 [14:10:10]line ФД: 94912 [14:10:10]line ФПД: 189466775142569 [14:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T141023&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94912&fm=189466775142569&tin=02508201610067®Number=0000000000090555&sum=180000 [14:10:10]OFD Sender: Processing packet 94912 [packets to send 30, broken 29] [14:10:10]ProducePacketName [14:10:10]name=ofd_packets/00094912 [14:10:10]OFD Sender: To server: pG, [14:10:10]CommunicateWithHost lk.salyk.kg:30040 [14:10:10]ConnectInit lk.salyk.kg [14:10:10]written 0, free lines is 4095 [14:10:10]Connected sock=10 [14:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 8A FD 04 01 9E 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 CF 10 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 72 01 00 35 04 06 00 AC 51 AB D4 40 A9 AC 71 C5 63 69 14 D6 3A [14:10: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 31 31 4F 00 00 00 5F 17 47 00 5C C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 72 01 00 F4 03 04 00 28 BC EE 65 B6 04 01 00 00 C1 B8 1F 08 C3 A0 6D 57 [14:10:10]CommunicateWithHost err = 0 [14:10:10]CheckOFDResponse [14:10:10]1017 (14) - 77093643461234 [14:10:10]1041 (16) - 0000000000874811 [14:10:10]1040 (4) - 94912 [14:10:10]1012 (4) - 11.03.2024 08:09 [14:10:10]1206 (1) - 0 [14:10:10]OFD Sender: Remove packet 94912 [14:10:10]ProducePacketName [14:10:10]name=ofd_packets/00094912 [14:10:10]NVStorageDeleteData [14:10:11]Write to MH i2c: 01 00 00 E7 91 78 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 07 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: 01 07 00 E7 91 00 80 00 00 00 46 0D 52 [14:10:11]RasterBufferAndPrint [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]line [14:10:11]written 0, free lines is 3404 [14:10:11]process_action close_receipt done [14:10:11]requested_data is exist [14:10:11]produce_requested_data [14:10:11]requested_item fm.sn is exist - process it [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 11 00 00 [14:10:11]Write to MH i2c: E2 08 00 EE 91 80 11 00 00 00 00 00 00 F9 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:11]Read from MH i2c: E2 17 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 17 00 EE 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 49 [14:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:10:11]wFMCommunicate OK [14:10:11]requested_item fd.num is exist - process it [14:10:11]SAM_PROTO_GetFieldsCounters [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 13 00 00 [14:10:11]Write to MH i2c: E2 08 00 EF 91 80 13 00 00 00 00 00 00 FC [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 62 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 62 00 EF 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C0 72 01 00 0E 04 04 00 46 01 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 98 [14:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:11]wFMCommunicate OK [14:10:11]SAM_PROTO_GetFieldsCounters done [14:10:11]requested_item shift.num is exist - process it [14:10:11]requested_item shift.opened is exist - process it [14:10:11]req_shift_opened [14:10:11]FM_GetShiftState [14:10:11]SAM_PROTO_GetShiftState [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 13 01 00 [14:10:11]Write to MH i2c: E2 08 00 F0 91 80 13 01 00 00 00 00 00 FE [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 0E 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 0E 00 F0 91 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 9A [14:10:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:10:11]wFMCommunicate OK [14:10:11]SAM_PROTO_GetShiftState done [14:10:11]FM_GetShiftState done [14:10:11]req_shift_opened done [14:10:11]requested_item shift.open_date is exist - process it [14:10:11]req_shift_open_date [14:10:11]req_shift_open_date done [14:10:11]produce_requested_data done [14:10:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94912,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:10:11]process_action_free close_receipt [14:10:11]json_value_free [14:10:11]json_value_free done [14:10:11]process_json_proto returns [14:10:11]Send response to host [14:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94912,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:10:11]free response buf [14:10:11]execute_script done [14:10:11]execute_script returns [14:10:11]free content buf [14:10:11]Sock 9.Close socket [14:10:11]Sock 9.Thread stoped [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:38]accept exits with 7 [14:13:38]New connection [14:13:38]New thread 3067014500 created [14:13:38]Thread 3066871140 joined [14:13:38]Waiting for new connection... [14:13:38] Sock 7.Parse request [14:13:38]Sock 7.Check first char [14:13:38]Sock 7.First char is OK [14:13:38]request: POST /json_proto HTTP/1.0 [14:13:38]Method: POST [14:13:38]URL: /json_proto [14:13:38]Method is POST - this is cgi request [14:13:38]url: /json_proto [14:13:38]query_string will be loaded in cgi processing [14:13:38]execute_cgi json_proto POST (null) [14:13:38]execute_cgi path=json_proto method=POST [14:13:38]POST find Content-Length [14:13:38]Host: 172.17.62.67:8080 [14:13:38]Content-Length: 808 [14:13:38]Content-Type: application/json [14:13:38] [14:13:38]POST finish read [14:13:38]Found Content-Length = 808 [14:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:38]execute_script... [14:13: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)195870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:38]POST & json_proto [14:13:38]process_json_proto [14:13:38]json parsed OK: [14:13:38]protocol is kg_v1.0 [14:13:38]action value=close_receipt [14:13:38]process_action close_receipt [14:13:38]cmd_close_receipt [14:13:38]MH_GetDate [14:13:38]Write to MH i2c: F0 00 00 F1 91 71 [14:13:38]Write i2c OK [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: F0 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: F0 05 00 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: F0 05 00 F1 91 00 A1 11 EF 65 7C [14:13:38]GetLastDocTimeStamp 1710166223 [14:13:38]current date 1710166433 [14:13:38]FM_GetShiftState [14:13:38]SAM_PROTO_GetShiftState [14:13:38]wFMCommunicate request_size=4 [14:13:38]MH_SAM_APDU [14:13:38]CAPDU: 80 13 01 00 [14:13:38]Write to MH i2c: E2 08 00 F2 91 80 13 01 00 00 00 00 00 00 [14:13:38]Write i2c OK [14:13:38]MH_I2C_Read... [14:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:38]Read from MH i2c: E2 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: E2 0E 00 [14:13:38]MH_I2C_Read... [14:13:38]Read from MH i2c: E2 0E 00 F2 91 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 9C [14:13:38]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:13:38]wFMCommunicate OK [14:13:38]SAM_PROTO_GetShiftState done [14:13:38]FM_GetShiftState done [14:13:38]opened in 1710115571 [14:13:38]opened+sec_in_day 1710201971 [14:13:38]quantity*price = 100010 [14:13:38]sum+1 = 100012 [14:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 88 11.03.2024 14:13 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94913 ФПД: 201471109843904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T141353&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94913&fm=201471109843904&tin=02508201610067®Number=0000000000090555&sum=100011 [14:13:39]StoreToDocumentArchive [14:13:39]shift 326 fd 94913 [14:13:39]save to /storage/0326/doc_00094913 [14:13:39]save last doc name /storage/0326/doc_00094913 to /storage/kkm_last_doc_name [14:13:39]save OK [14:13:39]Clear old archive folders... [14:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:39]tlvbuf is 00298950 [14:13:39]SAM_PROTO_ClearQueue [14:13:39]wFMCommunicate request_size=4 [14:13:39]MH_SAM_APDU [14:13:39]CAPDU: 80 09 00 00 [14:13:39]Write to MH i2c: E2 08 00 FF 91 80 09 00 00 00 00 00 00 02 [14:13:39]Write i2c OK [14:13:39]MH_I2C_Read... [14:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:39]Read from MH i2c: E2 [14:13:39]MH_I2C_Read... [14:13:39]Read from MH i2c: E2 03 00 [14:13:39]MH_I2C_Read... [14:13:39]Read from MH i2c: E2 03 00 FF 91 00 90 00 04 [14:13:39]RAPDU: 90 00 [14:13:39]wFMCommunicate OK [14:13:39]SAM_PROTO_ClearQueue done [14:13:39]KKMCreateOFDPacket [14:13:39]OFDProtocolAddRootSTLVToBuf [14:13:39]FM_MakeSignedData [14:13:39]FM_MakeSignedData [14:13:39]SAM_PROTO_SignData [14:13:39]wFMCommunicate request_size=4 [14:13:39]MH_SAM_APDU [14:13:39]CAPDU: 80 0D 01 02 [14:13:39]Write to MH i2c: E2 08 00 00 92 80 0D 01 02 00 00 00 00 0B [14:13:39]Write i2c OK [14:13:39]MH_I2C_Read... [14:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:39]Read from MH i2c: E2 [14:13:39]MH_I2C_Read... [14:13:39]Read from MH i2c: E2 03 00 [14:13:39]MH_I2C_Read... [14:13:39]Read from MH i2c: E2 03 00 00 92 00 90 00 06 [14:13:39]RAPDU: 90 00 [14:13:39]wFMCommunicate OK [14:13:39]wFMCommunicate request_size=255 [14:13:39]MH_SAM_APDU [14:13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A1 11 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 72 01 00 35 04 06 00 B7 [14:13:39]Write to MH i2c: E2 02 01 01 92 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A1 11 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 72 01 00 35 04 06 00 B7 00 00 08 [14:13:39]Write i2c OK [14:13:39]MH_I2C_Read... [14:13:40]Read from MH i2c: E2 [14:13:40]MH_I2C_Read... [14:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:40]Read from MH i2c: E2 03 00 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: E2 03 00 01 92 00 90 00 07 [14:13:40]RAPDU: 90 00 [14:13:40]wFMCommunicate OK [14:13:40]wFMCommunicate request_size=10 [14:13:40]MH_SAM_APDU [14:13:40]CAPDU: 80 0D 02 02 05 3C A5 EF 4B C0 [14:13:40]Write to MH i2c: E2 0D 00 02 92 80 0D 02 02 05 00 3C A5 EF 4B C0 00 00 F3 [14:13:40]Write i2c OK [14:13:40]MH_I2C_Read... [14:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:40]Read from MH i2c: E2 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: E2 03 00 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: E2 03 00 02 92 00 90 00 08 [14:13:40]RAPDU: 90 00 [14:13:40]wFMCommunicate OK [14:13:40]wFMCommunicate request_size=4 [14:13:40]MH_SAM_APDU [14:13:40]CAPDU: 80 0D 03 02 [14:13:40]Write to MH i2c: E2 08 00 03 92 80 0D 03 02 00 00 00 00 10 [14:13:40]Write i2c OK [14:13:40]MH_I2C_Read... [14:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:40]Read from MH i2c: E2 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: E2 0B 00 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: E2 0B 00 03 92 00 29 5F 08 AF 0E 9A BD 3A 90 00 EF [14:13:40]RAPDU: 29 5F 08 AF 0E 9A BD 3A 90 00 [14:13:40]wFMCommunicate OK [14:13:40]SAM_PROTO_SignData done [14:13:40]FM_MakeSignedData done [14:13:40]CreateOFDProtocolMessage [14:13:40]wFMCommunicate request_size=4 [14:13:40]MH_SAM_APDU [14:13:40]CAPDU: 80 11 00 00 [14:13:40]Write to MH i2c: E2 08 00 04 92 80 11 00 00 00 00 00 00 10 [14:13:40]Write i2c OK [14:13:40]MH_I2C_Read... [14:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:40]Read from MH i2c: E2 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: E2 17 00 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: E2 17 00 04 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 60 [14:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:13:40]wFMCommunicate OK [14:13:40]CreateOFDProtocolMessage done [14:13:40]OFDSenderStorePacket 94913 [14:13:40]StoreOFDPacket docnum=94913 [14:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 36 ED 07 01 3B 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A1 11 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 72 01 00 35 04 06 00 B7 3C A5 EF 4B C0 29 5F 08 AF 0E 9A BD 3A [14:13:40]CheckFolder [14:13:40]dirname=/storage/ofd_packets [14:13:40]CheckFolder done [14:13:40]ProducePacketName [14:13:40]name=ofd_packets/00094913 [14:13:40]NVStorageSaveData ofd_packets/00094913 [14:13:40]File name is /storage/ofd_packets/00094913 [14:13:40]Write 301 bytes [14:13:40]NVStorageSaveData done [14:13:40]OFDSenderStorePacket done [14:13:40]KKMCreateOFDPacket done [14:13:40]NVStorageSaveData kkm_last_timestamp [14:13:40]File name is /storage/kkm_last_timestamp [14:13:40]Write 4 bytes [14:13:40]NVStorageSaveData done [14:13:40]ExternCall_PrintAddStr [14:13:40]wPrintStart [14:13:40]Write to MH i2c: 01 00 00 05 92 97 [14:13:40]Write i2c OK [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: 01 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: 01 07 00 [14:13:40]MH_I2C_Read... [14:13:40]Read from MH i2c: 01 07 00 05 92 00 80 00 00 00 FF 0F 2C [14:13:40]RasterBufferAndPrint [14:13:40]line Счет N : (1)195870 [14:13:40]line ИНН: 02508201610067 [14:13:40]line Контрольно-Кассовый Чек [14:13:40]line ПРОДАЖА [14:13:40]line ТРК (МРК, ГНК) : 31 [14:13:40]line Товар: 2710124500 [14:13:40]line Аи-95-К-5 [14:13:40]line 14.390 * 69.50 [14:13:40]line = 1000.11 [14:13:40]line НДС 12% НСП 1% [14:13:40]line > о реализуемом товаре [14:13:40]line ИТОГО: 1000.11 [14:13:40]line НСП 1% : 8.85 [14:13:40]line НДС 12% : 106.21 [14:13:40]line Наличными: 0.00 [14:13:40]line Безнал.: 1000.11 [14:13:40]line Место: АЗС № 6 "Партнер Нефть" [14:13:40]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:13:40]line СНО: Общий режим [14:13:40]line Чек 88 11.03.2024 14:13 [14:13:40]line Смена: 326 ФФД: 1.0 [14:13:40]line ЗНМ: 0300000009 [14:13:40]line РНМ: 0000000000090555 [14:13:40]line Версия ККМ: 001 [14:13:40]line Платежная система: О! деньги [14:13:40]line ФМ: 0000000000874811 [14:13:40]line ФД: 94913 [14:13:40]line ФПД: 201471109843904 [14:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T141353&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94913&fm=201471109843904&tin=02508201610067®Number=0000000000090555&sum=100011 [14:13:40]OFD Sender: Processing packet 94913 [packets to send 30, broken 29] [14:13:40]ProducePacketName [14:13:40]name=ofd_packets/00094913 [14:13:40]OFD Sender: To server: pG, [14:13:40]CommunicateWithHost lk.salyk.kg:30040 [14:13:40]ConnectInit lk.salyk.kg [14:13:40]written 0, free lines is 4095 [14:13:40]Connected sock=10 [14:13: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 31 31 0F 01 00 00 36 ED 07 01 3B 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A1 11 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 72 01 00 35 04 06 00 B7 3C A5 EF 4B C0 29 5F 08 AF 0E 9A BD 3A [14:13: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 31 31 4F 00 00 00 30 28 47 00 11 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 72 01 00 F4 03 04 00 FA BC EE 65 B6 04 01 00 00 40 F0 15 09 78 A4 88 4F [14:13:40]CommunicateWithHost err = 0 [14:13:40]CheckOFDResponse [14:13:40]1017 (14) - 77093643461234 [14:13:40]1041 (16) - 0000000000874811 [14:13:40]1040 (4) - 94913 [14:13:40]1012 (4) - 11.03.2024 08:12 [14:13:40]1206 (1) - 0 [14:13:40]OFD Sender: Remove packet 94913 [14:13:40]ProducePacketName [14:13:40]name=ofd_packets/00094913 [14:13:40]NVStorageDeleteData [14:13:41]Write to MH i2c: 01 00 00 2F 92 C1 [14:13:41]Write i2c OK [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: 01 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: 01 07 00 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: 01 07 00 2F 92 00 80 00 00 00 59 0D AE [14:13:41]RasterBufferAndPrint [14:13:41]line [14:13:41]line [14:13:41]line [14:13:41]line [14:13:41]line [14:13:41]written 0, free lines is 3423 [14:13:41]process_action close_receipt done [14:13:41]requested_data is exist [14:13:41]produce_requested_data [14:13:41]requested_item fm.sn is exist - process it [14:13:41]wFMCommunicate request_size=4 [14:13:41]MH_SAM_APDU [14:13:41]CAPDU: 80 11 00 00 [14:13:41]Write to MH i2c: E2 08 00 36 92 80 11 00 00 00 00 00 00 42 [14:13:41]Write i2c OK [14:13:41]MH_I2C_Read... [14:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:41]Read from MH i2c: E2 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: E2 17 00 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: E2 17 00 36 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 92 [14:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:13:41]wFMCommunicate OK [14:13:41]requested_item fd.num is exist - process it [14:13:41]SAM_PROTO_GetFieldsCounters [14:13:41]wFMCommunicate request_size=4 [14:13:41]MH_SAM_APDU [14:13:41]CAPDU: 80 13 00 00 [14:13:41]Write to MH i2c: E2 08 00 37 92 80 13 00 00 00 00 00 00 45 [14:13:41]Write i2c OK [14:13:41]MH_I2C_Read... [14:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:41]Read from MH i2c: E2 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: E2 62 00 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: E2 62 00 37 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C1 72 01 00 0E 04 04 00 46 01 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 E5 [14:13: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:41]wFMCommunicate OK [14:13:41]SAM_PROTO_GetFieldsCounters done [14:13:41]requested_item shift.num is exist - process it [14:13:41]requested_item shift.opened is exist - process it [14:13:41]req_shift_opened [14:13:41]FM_GetShiftState [14:13:41]SAM_PROTO_GetShiftState [14:13:41]wFMCommunicate request_size=4 [14:13:41]MH_SAM_APDU [14:13:41]CAPDU: 80 13 01 00 [14:13:41]Write to MH i2c: E2 08 00 38 92 80 13 01 00 00 00 00 00 47 [14:13:41]Write i2c OK [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: E2 [14:13:41]MH_I2C_Read... [14:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:41]Read from MH i2c: E2 0E 00 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: E2 0E 00 38 92 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E3 [14:13:41]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:13:41]wFMCommunicate OK [14:13:41]SAM_PROTO_GetShiftState done [14:13:41]FM_GetShiftState done [14:13:41]req_shift_opened done [14:13:41]requested_item shift.open_date is exist - process it [14:13:41]req_shift_open_date [14:13:41]req_shift_open_date done [14:13:41]produce_requested_data done [14:13:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94913,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:13:41]process_action_free close_receipt [14:13:41]json_value_free [14:13:41]json_value_free done [14:13:41]process_json_proto returns [14:13:41]Send response to host [14:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94913,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:13:41]free response buf [14:13:41]execute_script done [14:13:41]execute_script returns [14:13:41]free content buf [14:13:41]Sock 7.Close socket [14:13:41]Sock 7.Thread stoped [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:39]accept exits with 9 [14:24:39]New connection [14:24:39]New thread 3066871140 created [14:24:39]Thread 3067014500 joined [14:24:39]Waiting for new connection... [14:24:39] Sock 9.Parse request [14:24:39]Sock 9.Check first char [14:24:39]Sock 9.First char is OK [14:24:39]request: POST /json_proto HTTP/1.0 [14:24:39]Method: POST [14:24:39]URL: /json_proto [14:24:39]Method is POST - this is cgi request [14:24:39]url: /json_proto [14:24:39]query_string will be loaded in cgi processing [14:24:39]execute_cgi json_proto POST (null) [14:24:39]execute_cgi path=json_proto method=POST [14:24:39]POST find Content-Length [14:24:39]Host: 172.17.62.67:8080 [14:24:39]Content-Length: 799 [14:24:39]Content-Type: application/json [14:24:39] [14:24:39]POST finish read [14:24:39]Found Content-Length = 799 [14:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11523", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 111.00, "quantity" : 1.000, "sum" : 111.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" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:39]execute_script... [14:24:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11523", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 111.00, "quantity" : 1.000, "sum" : 111.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" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:39]POST & json_proto [14:24:39]process_json_proto [14:24:39]json parsed OK: [14:24:39]protocol is kg_v1.0 [14:24:39]action value=close_receipt [14:24:39]process_action close_receipt [14:24:39]cmd_close_receipt [14:24:39]MH_GetDate [14:24:39]Write to MH i2c: F0 00 00 39 92 BA [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: F0 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: F0 05 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: F0 05 00 39 92 00 36 14 EF 65 5D [14:24:39]GetLastDocTimeStamp 1710166433 [14:24:39]current date 1710167094 [14:24:39]FM_GetShiftState [14:24:39]SAM_PROTO_GetShiftState [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 13 01 00 [14:24:39]Write to MH i2c: E2 08 00 3A 92 80 13 01 00 00 00 00 00 49 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 0E 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 0E 00 3A 92 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E5 [14:24:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:24:39]wFMCommunicate OK [14:24:39]SAM_PROTO_GetShiftState done [14:24:39]FM_GetShiftState done [14:24:39]opened in 1710115571 [14:24:39]opened+sec_in_day 1710201971 [14:24:39]quantity*price = 11100 [14:24:39]sum+1 = 11101 [14:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 0.00 Безнал.: 111.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 89 11.03.2024 14:24 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94914 ФПД: 158778693516900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T142454&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94914&fm=158778693516900&tin=02508201610067®Number=0000000000090555&sum=11100 0 [14:24:40]StoreToDocumentArchive [14:24:40]shift 326 fd 94914 [14:24:40]save to /storage/0326/doc_00094914 [14:24:40]save last doc name /storage/0326/doc_00094914 to /storage/kkm_last_doc_name [14:24:40]save OK [14:24:40]Clear old archive folders... [14:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:24:40]tlvbuf is 0016DE80 [14:24:40]SAM_PROTO_ClearQueue [14:24:40]wFMCommunicate request_size=4 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 09 00 00 [14:24:40]Write to MH i2c: E2 08 00 47 92 80 09 00 00 00 00 00 00 4B [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:40]Read from MH i2c: E2 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 03 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 03 00 47 92 00 90 00 4D [14:24:40]RAPDU: 90 00 [14:24:40]wFMCommunicate OK [14:24:40]SAM_PROTO_ClearQueue done [14:24:40]KKMCreateOFDPacket [14:24:40]OFDProtocolAddRootSTLVToBuf [14:24:40]FM_MakeSignedData [14:24:40]FM_MakeSignedData [14:24:40]SAM_PROTO_SignData [14:24:40]wFMCommunicate request_size=4 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 0D 01 02 [14:24:40]Write to MH i2c: E2 08 00 48 92 80 0D 01 02 00 00 00 00 53 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:40]Read from MH i2c: E2 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 03 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: E2 03 00 48 92 00 90 00 4E [14:24:40]RAPDU: 90 00 [14:24:40]wFMCommunicate OK [14:24:40]wFMCommunicate request_size=255 [14:24:40]MH_SAM_APDU [14:24:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 36 14 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 [14:24:40]Write to MH i2c: E2 02 01 49 92 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 36 14 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 00 00 55 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 03 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 03 00 49 92 00 90 00 4F [14:24:41]RAPDU: 90 00 [14:24:41]wFMCommunicate OK [14:24:41]wFMCommunicate request_size=34 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 72 01 00 35 04 06 00 90 68 8B 9F FE 64 [14:24:41]Write to MH i2c: E2 25 00 4A 92 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 72 01 00 35 04 06 00 90 68 8B 9F FE 64 00 00 CD [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 03 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 03 00 4A 92 00 90 00 50 [14:24:41]RAPDU: 90 00 [14:24:41]wFMCommunicate OK [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 0D 03 02 [14:24:41]Write to MH i2c: E2 08 00 4B 92 80 0D 03 02 00 00 00 00 58 [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0B 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0B 00 4B 92 00 3A 34 00 35 BE EC 5A E0 90 00 E0 [14:24:41]RAPDU: 3A 34 00 35 BE EC 5A E0 90 00 [14:24:41]wFMCommunicate OK [14:24:41]SAM_PROTO_SignData done [14:24:41]FM_MakeSignedData done [14:24:41]CreateOFDProtocolMessage [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 11 00 00 [14:24:41]Write to MH i2c: E2 08 00 4C 92 80 11 00 00 00 00 00 00 58 [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 17 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 17 00 4C 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A8 [14:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:24:41]wFMCommunicate OK [14:24:41]CreateOFDProtocolMessage done [14:24:41]OFDSenderStorePacket 94914 [14:24:41]StoreOFDPacket docnum=94914 [14:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 27 01 00 00 4C AD 1F 01 FC B8 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 36 14 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 72 01 00 35 04 06 00 90 68 8B 9F FE 64 3A 34 00 35 BE EC 5A E0 [14:24:41]CheckFolder [14:24:41]dirname=/storage/ofd_packets [14:24:41]CheckFolder done [14:24:41]ProducePacketName [14:24:41]name=ofd_packets/00094914 [14:24:41]NVStorageSaveData ofd_packets/00094914 [14:24:41]File name is /storage/ofd_packets/00094914 [14:24:41]Write 325 bytes [14:24:41]NVStorageSaveData done [14:24:41]OFDSenderStorePacket done [14:24:41]KKMCreateOFDPacket done [14:24:41]NVStorageSaveData kkm_last_timestamp [14:24:41]File name is /storage/kkm_last_timestamp [14:24:41]Write 4 bytes [14:24:41]NVStorageSaveData done [14:24:41]ExternCall_PrintAddStr [14:24:41]wPrintStart [14:24:41]Write to MH i2c: 01 00 00 4D 92 DF [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: 01 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: 01 07 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: 01 07 00 4D 92 00 80 00 00 00 FF 0F 74 [14:24:41]RasterBufferAndPrint [14:24:41]line Счет N : (3)11523 [14:24:41]line ИНН: 02508201610067 [14:24:41]line Контрольно-Кассовый Чек [14:24:41]line ПРОДАЖА [14:24:41]line Товар: 48743587 [14:24:41]line Сигареты Winston XStyle Silver [14:24:41]line 1.000 * 111.00 [14:24:41]line = 111.00 [14:24:41]line НДС 12% НСП 1% [14:24:41]line > о реализуемом товаре [14:24:41]line ИТОГО: 111.00 [14:24:41]line НСП 1% : 0.98 [14:24:41]line НДС 12% : 11.79 [14:24:41]line Наличными: 0.00 [14:24:41]line Безнал.: 111.00 [14:24:41]line Место: АЗС № 6 "Партнер Нефть" [14:24:41]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:24:41]line СНО: Общий режим [14:24:41]line Чек 89 11.03.2024 14:24 [14:24:41]line Смена: 326 ФФД: 1.0 [14:24:41]line ЗНМ: 0300000009 [14:24:41]line РНМ: 0000000000090555 [14:24:41]line Версия ККМ: 001 [14:24:41]line Платежная система: Бакай Банк [14:24:41]line ФМ: 0000000000874811 [14:24:41]line ФД: 94914 [14:24:41]line ФПД: 158778693516900 [14:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T142454&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94914&fm=158778693516900&tin=02508201610067®Number=0000000000090555&sum=11100 [14:24:41]line 0 [14:24:41]OFD Sender: Processing packet 94914 [packets to send 30, broken 29] [14:24:41]ProducePacketName [14:24:41]name=ofd_packets/00094914 [14:24:41]OFD Sender: To server: pG, [14:24:41]CommunicateWithHost lk.salyk.kg:30040 [14:24:41]ConnectInit lk.salyk.kg [14:24:41]written 0, free lines is 4095 [14:24:41]Connected sock=10 [14:24: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 31 31 27 01 00 00 4C AD 1F 01 FC B8 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 36 14 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 72 01 00 35 04 06 00 90 68 8B 9F FE 64 3A 34 00 35 BE EC 5A E0 [14:24: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 31 31 4F 00 00 00 95 C6 47 00 1A 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 72 01 00 F4 03 04 00 8F BF EE 65 B6 04 01 00 00 24 0F B6 71 E8 E7 7B 83 [14:24:41]CommunicateWithHost err = 0 [14:24:41]CheckOFDResponse [14:24:41]1017 (14) - 77093643461234 [14:24:41]1041 (16) - 0000000000874811 [14:24:41]1040 (4) - 94914 [14:24:41]1012 (4) - 11.03.2024 08:23 [14:24:41]1206 (1) - 0 [14:24:41]OFD Sender: Remove packet 94914 [14:24:41]ProducePacketName [14:24:41]name=ofd_packets/00094914 [14:24:41]NVStorageDeleteData [14:24:42]Write to MH i2c: 01 00 00 78 92 0A [14:24:42]Write i2c OK [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: 01 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: 01 07 00 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: 01 07 00 78 92 00 80 00 00 00 45 0D E3 [14:24:42]RasterBufferAndPrint [14:24:42]line [14:24:42]line [14:24:42]line [14:24:42]line [14:24:42]line [14:24:42]written 0, free lines is 3403 [14:24:42]process_action close_receipt done [14:24:42]requested_data is exist [14:24:42]produce_requested_data [14:24:42]requested_item fm.sn is exist - process it [14:24:42]wFMCommunicate request_size=4 [14:24:42]MH_SAM_APDU [14:24:42]CAPDU: 80 11 00 00 [14:24:42]Write to MH i2c: E2 08 00 7F 92 80 11 00 00 00 00 00 00 8B [14:24:42]Write i2c OK [14:24:42]MH_I2C_Read... [14:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:42]Read from MH i2c: E2 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 17 00 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 17 00 7F 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DB [14:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:24:42]wFMCommunicate OK [14:24:42]requested_item fd.num is exist - process it [14:24:42]SAM_PROTO_GetFieldsCounters [14:24:42]wFMCommunicate request_size=4 [14:24:42]MH_SAM_APDU [14:24:42]CAPDU: 80 13 00 00 [14:24:42]Write to MH i2c: E2 08 00 80 92 80 13 00 00 00 00 00 00 8E [14:24:42]Write i2c OK [14:24:42]MH_I2C_Read... [14:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:42]Read from MH i2c: E2 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 62 00 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 62 00 80 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C2 72 01 00 0E 04 04 00 46 01 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 32 [14:24: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:42]wFMCommunicate OK [14:24:42]SAM_PROTO_GetFieldsCounters done [14:24:42]requested_item shift.num is exist - process it [14:24:42]requested_item shift.opened is exist - process it [14:24:42]req_shift_opened [14:24:42]FM_GetShiftState [14:24:42]SAM_PROTO_GetShiftState [14:24:42]wFMCommunicate request_size=4 [14:24:42]MH_SAM_APDU [14:24:42]CAPDU: 80 13 01 00 [14:24:42]Write to MH i2c: E2 08 00 81 92 80 13 01 00 00 00 00 00 90 [14:24:42]Write i2c OK [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 [14:24:42]MH_I2C_Read... [14:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:42]Read from MH i2c: E2 0E 00 [14:24:42]MH_I2C_Read... [14:24:42]Read from MH i2c: E2 0E 00 81 92 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2C [14:24:42]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:24:42]wFMCommunicate OK [14:24:42]SAM_PROTO_GetShiftState done [14:24:42]FM_GetShiftState done [14:24:42]req_shift_opened done [14:24:42]requested_item shift.open_date is exist - process it [14:24:42]req_shift_open_date [14:24:42]req_shift_open_date done [14:24:42]produce_requested_data done [14:24:42]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94914,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:24:42]process_action_free close_receipt [14:24:42]json_value_free [14:24:42]json_value_free done [14:24:42]process_json_proto returns [14:24:42]Send response to host [14:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94914,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:24:42]free response buf [14:24:42]execute_script done [14:24:42]execute_script returns [14:24:42]free content buf [14:24:42]Sock 9.Close socket [14:24:42]Sock 9.Thread stoped [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:51]accept exits with 7 [14:28:51]New connection [14:28:51]New thread 3067014500 created [14:28:51]Thread 3066871140 joined [14:28:51]Waiting for new connection... [14:28:51] Sock 7.Parse request [14:28:51]Sock 7.Check first char [14:28:51]Sock 7.First char is OK [14:28:51]request: POST /json_proto HTTP/1.0 [14:28:51]Method: POST [14:28:51]URL: /json_proto [14:28:51]Method is POST - this is cgi request [14:28:51]url: /json_proto [14:28:51]query_string will be loaded in cgi processing [14:28:51]execute_cgi json_proto POST (null) [14:28:51]execute_cgi path=json_proto method=POST [14:28:51]POST find Content-Length [14:28:51]Host: 172.17.62.67:8080 [14:28:51]Content-Length: 808 [14:28:51]Content-Type: application/json [14:28:51] [14:28:51]POST finish read [14:28:51]Found Content-Length = 808 [14:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 50.360, "sum" : 3500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:51]execute_script... [14:28: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)195871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 50.360, "sum" : 3500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:51]POST & json_proto [14:28:51]process_json_proto [14:28:51]json parsed OK: [14:28:51]protocol is kg_v1.0 [14:28:51]action value=close_receipt [14:28:51]process_action close_receipt [14:28:51]cmd_close_receipt [14:28:51]MH_GetDate [14:28:51]Write to MH i2c: F0 00 00 82 92 03 [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: F0 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: F0 05 00 [14:28:51]MH_I2C_Read... [14:28:51]Read from MH i2c: F0 05 00 82 92 00 32 15 EF 65 A3 [14:28:51]GetLastDocTimeStamp 1710167094 [14:28:51]current date 1710167346 [14:28:51]FM_GetShiftState [14:28:51]SAM_PROTO_GetShiftState [14:28:51]wFMCommunicate request_size=4 [14:28:51]MH_SAM_APDU [14:28:51]CAPDU: 80 13 01 00 [14:28:51]Write to MH i2c: E2 08 00 83 92 80 13 01 00 00 00 00 00 92 [14:28:51]Write i2c OK [14:28:51]MH_I2C_Read... [14:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:52]Read from MH i2c: E2 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 0E 00 [14:28:52]MH_I2C_Read... [14:28:52]Read from MH i2c: E2 0E 00 83 92 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2E [14:28:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:28:52]wFMCommunicate OK [14:28:52]SAM_PROTO_GetShiftState done [14:28:52]FM_GetShiftState done [14:28:52]opened in 1710115571 [14:28:52]opened+sec_in_day 1710201971 [14:28:52]quantity*price = 350002 [14:28:52]sum+1 = 350003 [14:28:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.02 НСП 1% : 30.97 НДС 12% : 371.68 Наличными: 0.00 Безнал.: 3500.02 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 90 11.03.2024 14:29 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94915 ФПД: 146607062084325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T142906&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94915&fm=146607062084325&tin=02508201610067®Number=0000000000090555&sum=350002 [14:28:53]StoreToDocumentArchive [14:28:53]shift 326 fd 94915 [14:28:53]save to /storage/0326/doc_00094915 [14:28:53]save last doc name /storage/0326/doc_00094915 to /storage/kkm_last_doc_name [14:28:53]save OK [14:28:53]Clear old archive folders... [14:28:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:53]tlvbuf is 0016D8D0 [14:28:53]SAM_PROTO_ClearQueue [14:28:53]wFMCommunicate request_size=4 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 09 00 00 [14:28:53]Write to MH i2c: E2 08 00 90 92 80 09 00 00 00 00 00 00 94 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 03 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 03 00 90 92 00 90 00 96 [14:28:53]RAPDU: 90 00 [14:28:53]wFMCommunicate OK [14:28:53]SAM_PROTO_ClearQueue done [14:28:53]KKMCreateOFDPacket [14:28:53]OFDProtocolAddRootSTLVToBuf [14:28:53]FM_MakeSignedData [14:28:53]FM_MakeSignedData [14:28:53]SAM_PROTO_SignData [14:28:53]wFMCommunicate request_size=4 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 0D 01 02 [14:28:53]Write to MH i2c: E2 08 00 91 92 80 0D 01 02 00 00 00 00 9C [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 03 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 03 00 91 92 00 90 00 97 [14:28:53]RAPDU: 90 00 [14:28:53]wFMCommunicate OK [14:28:53]wFMCommunicate request_size=255 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 32 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 72 01 00 35 04 06 00 85 [14:28:53]Write to MH i2c: E2 02 01 92 92 80 0D 02 02 FA 00 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 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 32 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 72 01 00 35 04 06 00 85 00 00 EA [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:53]Read from MH i2c: E2 03 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 03 00 92 92 00 90 00 98 [14:28:53]RAPDU: 90 00 [14:28:53]wFMCommunicate OK [14:28:53]wFMCommunicate request_size=10 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 0D 02 02 05 56 9D DB 6A E5 [14:28:53]Write to MH i2c: E2 0D 00 93 92 80 0D 02 02 05 00 56 9D DB 6A E5 00 00 C6 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 03 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 03 00 93 92 00 90 00 99 [14:28:53]RAPDU: 90 00 [14:28:53]wFMCommunicate OK [14:28:53]wFMCommunicate request_size=4 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 0D 03 02 [14:28:53]Write to MH i2c: E2 08 00 94 92 80 0D 03 02 00 00 00 00 A1 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 0B 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 0B 00 94 92 00 0B 3F 16 F1 BF 42 D6 E1 90 00 AB [14:28:53]RAPDU: 0B 3F 16 F1 BF 42 D6 E1 90 00 [14:28:53]wFMCommunicate OK [14:28:53]SAM_PROTO_SignData done [14:28:53]FM_MakeSignedData done [14:28:53]CreateOFDProtocolMessage [14:28:53]wFMCommunicate request_size=4 [14:28:53]MH_SAM_APDU [14:28:53]CAPDU: 80 11 00 00 [14:28:53]Write to MH i2c: E2 08 00 95 92 80 11 00 00 00 00 00 00 A1 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:53]Read from MH i2c: E2 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 17 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: E2 17 00 95 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F1 [14:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:28:53]wFMCommunicate OK [14:28:53]CreateOFDProtocolMessage done [14:28:53]OFDSenderStorePacket 94915 [14:28:53]StoreOFDPacket docnum=94915 [14:28:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F3 82 07 01 6F 48 5A 03 01 00 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 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 32 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 72 01 00 35 04 06 00 85 56 9D DB 6A E5 0B 3F 16 F1 BF 42 D6 E1 [14:28:53]CheckFolder [14:28:53]dirname=/storage/ofd_packets [14:28:53]CheckFolder done [14:28:53]ProducePacketName [14:28:53]name=ofd_packets/00094915 [14:28:53]NVStorageSaveData ofd_packets/00094915 [14:28:53]File name is /storage/ofd_packets/00094915 [14:28:53]Write 301 bytes [14:28:53]NVStorageSaveData done [14:28:53]OFDSenderStorePacket done [14:28:53]KKMCreateOFDPacket done [14:28:53]NVStorageSaveData kkm_last_timestamp [14:28:53]File name is /storage/kkm_last_timestamp [14:28:53]Write 4 bytes [14:28:53]NVStorageSaveData done [14:28:53]ExternCall_PrintAddStr [14:28:53]wPrintStart [14:28:53]Write to MH i2c: 01 00 00 96 92 28 [14:28:53]Write i2c OK [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 07 00 [14:28:53]MH_I2C_Read... [14:28:53]Read from MH i2c: 01 07 00 96 92 00 80 00 00 00 FF 0F BD [14:28:53]RasterBufferAndPrint [14:28:53]line Счет N : (1)195871 [14:28:53]line ИНН: 02508201610067 [14:28:53]line Контрольно-Кассовый Чек [14:28:53]line ПРОДАЖА [14:28:53]line ТРК (МРК, ГНК) : 31 [14:28:53]line Товар: 2710124500 [14:28:53]line Аи-95-К-5 [14:28:53]line 50.360 * 69.50 [14:28:53]line = 3500.02 [14:28:53]line НДС 12% НСП 1% [14:28:53]line > о реализуемом товаре [14:28:53]line ИТОГО: 3500.02 [14:28:53]line НСП 1% : 30.97 [14:28:53]line НДС 12% : 371.68 [14:28:53]line Наличными: 0.00 [14:28:53]line Безнал.: 3500.02 [14:28:53]line Место: АЗС № 6 "Партнер Нефть" [14:28:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:28:53]line СНО: Общий режим [14:28:53]line Чек 90 11.03.2024 14:29 [14:28:53]line Смена: 326 ФФД: 1.0 [14:28:53]line ЗНМ: 0300000009 [14:28:53]line РНМ: 0000000000090555 [14:28:53]line Версия ККМ: 001 [14:28:53]line Платежная система: О! деньги [14:28:53]line ФМ: 0000000000874811 [14:28:53]line ФД: 94915 [14:28:53]line ФПД: 146607062084325 [14:28:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T142906&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94915&fm=146607062084325&tin=02508201610067®Number=0000000000090555&sum=350002 [14:28:54]OFD Sender: Processing packet 94915 [packets to send 30, broken 29] [14:28:54]ProducePacketName [14:28:54]name=ofd_packets/00094915 [14:28:54]OFD Sender: To server: pG, [14:28:54]CommunicateWithHost lk.salyk.kg:30040 [14:28:54]ConnectInit lk.salyk.kg [14:28:54]written 0, free lines is 4095 [14:28:54]Connected sock=10 [14:28: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 31 31 0F 01 00 00 F3 82 07 01 6F 48 5A 03 01 00 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 B8 C4 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 32 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 32 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 72 01 00 35 04 06 00 85 56 9D DB 6A E5 0B 3F 16 F1 BF 42 D6 E1 [14:28: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 31 31 4F 00 00 00 2E 3A 47 00 75 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 72 01 00 F4 03 04 00 8B C0 EE 65 B6 04 01 00 00 86 92 14 74 08 FD D2 8A [14:28:54]CommunicateWithHost err = 0 [14:28:54]CheckOFDResponse [14:28:54]1017 (14) - 77093643461234 [14:28:54]1041 (16) - 0000000000874811 [14:28:54]1040 (4) - 94915 [14:28:54]1012 (4) - 11.03.2024 08:27 [14:28:54]1206 (1) - 0 [14:28:54]OFD Sender: Remove packet 94915 [14:28:54]ProducePacketName [14:28:54]name=ofd_packets/00094915 [14:28:54]NVStorageDeleteData [14:28:54]Write to MH i2c: 01 00 00 C0 92 52 [14:28:54]Write i2c OK [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: 01 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: 01 07 00 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: 01 07 00 C0 92 00 80 00 00 00 69 0D 4F [14:28:54]RasterBufferAndPrint [14:28:54]line [14:28:54]line [14:28:54]line [14:28:54]line [14:28:54]line [14:28:54]written 0, free lines is 3439 [14:28:54]process_action close_receipt done [14:28:54]requested_data is exist [14:28:54]produce_requested_data [14:28:54]requested_item fm.sn is exist - process it [14:28:54]wFMCommunicate request_size=4 [14:28:54]MH_SAM_APDU [14:28:54]CAPDU: 80 11 00 00 [14:28:54]Write to MH i2c: E2 08 00 C7 92 80 11 00 00 00 00 00 00 D3 [14:28:54]Write i2c OK [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: E2 [14:28:54]MH_I2C_Read... [14:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:54]Read from MH i2c: E2 17 00 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: E2 17 00 C7 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 23 [14:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:28:54]wFMCommunicate OK [14:28:54]requested_item fd.num is exist - process it [14:28:54]SAM_PROTO_GetFieldsCounters [14:28:54]wFMCommunicate request_size=4 [14:28:54]MH_SAM_APDU [14:28:54]CAPDU: 80 13 00 00 [14:28:54]Write to MH i2c: E2 08 00 C8 92 80 13 00 00 00 00 00 00 D6 [14:28:54]Write i2c OK [14:28:54]MH_I2C_Read... [14:28:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:54]Read from MH i2c: E2 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: E2 62 00 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: E2 62 00 C8 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C3 72 01 00 0E 04 04 00 46 01 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 7E [14:28:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:54]wFMCommunicate OK [14:28:54]SAM_PROTO_GetFieldsCounters done [14:28:54]requested_item shift.num is exist - process it [14:28:54]requested_item shift.opened is exist - process it [14:28:54]req_shift_opened [14:28:54]FM_GetShiftState [14:28:54]SAM_PROTO_GetShiftState [14:28:54]wFMCommunicate request_size=4 [14:28:54]MH_SAM_APDU [14:28:54]CAPDU: 80 13 01 00 [14:28:54]Write to MH i2c: E2 08 00 C9 92 80 13 01 00 00 00 00 00 D8 [14:28:54]Write i2c OK [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: E2 [14:28:54]MH_I2C_Read... [14:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:54]OFD Sender: No OFD packet to send [14:28:54]Read from MH i2c: E2 0E 00 [14:28:54]MH_I2C_Read... [14:28:54]Read from MH i2c: E2 0E 00 C9 92 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 74 [14:28:54]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:28:54]wFMCommunicate OK [14:28:54]SAM_PROTO_GetShiftState done [14:28:54]FM_GetShiftState done [14:28:54]req_shift_opened done [14:28:54]requested_item shift.open_date is exist - process it [14:28:54]req_shift_open_date [14:28:54]req_shift_open_date done [14:28:54]produce_requested_data done [14:28:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94915,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:28:54]process_action_free close_receipt [14:28:54]json_value_free [14:28:54]json_value_free done [14:28:54]process_json_proto returns [14:28:54]Send response to host [14:28:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94915,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:28:54]free response buf [14:28:54]execute_script done [14:28:54]execute_script returns [14:28:54]free content buf [14:28:54]Sock 7.Close socket [14:28:54]Sock 7.Thread stoped [14:28:55]accept exits with 9 [14:28:55]New connection [14:28:55]New thread 3066871140 created [14:28:55]Thread 3067014500 joined [14:28:55]Waiting for new connection... [14:28:55] Sock 9.Parse request [14:28:55]Sock 9.Check first char [14:28:55]Sock 9.First char is OK [14:28:55]request: POST /json_proto HTTP/1.0 [14:28:55]Method: POST [14:28:55]URL: /json_proto [14:28:55]Method is POST - this is cgi request [14:28:55]url: /json_proto [14:28:55]query_string will be loaded in cgi processing [14:28:55]execute_cgi json_proto POST (null) [14:28:55]execute_cgi path=json_proto method=POST [14:28:55]POST find Content-Length [14:28:55]Host: 172.17.62.67:8080 [14:28:55]Content-Length: 1189 [14:28:55]Content-Type: application/json [14:28:55] [14:28:55]POST finish read [14:28:55]Found Content-Length = 1189 [14:28:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195872\u000A11.03.2024 14:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3862012;13;14\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:55]execute_script... [14:28:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195872\u000A11.03.2024 14:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3862012;13;14\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:55]POST & json_proto [14:28:55]process_json_proto [14:28:55]json parsed OK: [14:28:55]protocol is kg_v1.0 [14:28:55]action value=print_text [14:28:55]process_action print_text [14:28:55]cmd_print_text [14:28:55]ExternCall_PrintAddStr [14:28:55]wPrintStart [14:28:55]Write to MH i2c: 01 00 00 CA 92 5C [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 07 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 07 00 CA 92 00 80 00 00 00 FF 0F F1 [14:28:55]RasterBufferAndPrint [14:28:55]line *****ТОВАРНЫЙ ЧЕК***** [14:28:55]line АЗС 6 [14:28:55]line Партнер нефть [14:28:55]line 02508201610067 [14:28:55]line Кассир : Карыбаев Б. [14:28:55]line Счет N : (1)195872 [14:28:55]line 11.03.2024 14:23 [14:28:55]line ПРОДАЖА [14:28:55]line ТРК (МРК, ГНК): 12 [14:28:55]line Вид ГСМ : 2710124130 [14:28:55]line Аи-92-К-5 [14:28:55]line 30.000 x 62.90 [14:28:55]line ИТОГ: 1887.00 [14:28:55]line Тип оплаты: Талоны: Партнер нефть [14:28:55]line 3862012;13;14 [14:28:55]line ______________________ [14:28:55]line (подпись) [14:28:55]written 0, free lines is 4095 [14:28:55]Write to MH i2c: 01 00 00 DE 92 70 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 07 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: 01 07 00 DE 92 00 80 00 00 00 E3 0D E7 [14:28:55]RasterBufferAndPrint [14:28:55]line [14:28:55]line [14:28:55]line [14:28:55]line [14:28:55]line [14:28:55]written 0, free lines is 3555 [14:28:55]process_action print_text done [14:28:55]requested_data is exist [14:28:55]produce_requested_data [14:28:55]requested_item fm.sn is exist - process it [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 11 00 00 [14:28:55]Write to MH i2c: E2 08 00 E5 92 80 11 00 00 00 00 00 00 F1 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 17 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 17 00 E5 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 41 [14:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:28:55]wFMCommunicate OK [14:28:55]requested_item fd.num is exist - process it [14:28:55]SAM_PROTO_GetFieldsCounters [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 13 00 00 [14:28:55]Write to MH i2c: E2 08 00 E6 92 80 13 00 00 00 00 00 00 F4 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 62 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 62 00 E6 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C3 72 01 00 0E 04 04 00 46 01 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 9C [14:28: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:55]wFMCommunicate OK [14:28:55]SAM_PROTO_GetFieldsCounters done [14:28:55]requested_item shift.num is exist - process it [14:28:55]requested_item shift.opened is exist - process it [14:28:55]req_shift_opened [14:28:55]FM_GetShiftState [14:28:55]SAM_PROTO_GetShiftState [14:28:55]wFMCommunicate request_size=4 [14:28:55]MH_SAM_APDU [14:28:55]CAPDU: 80 13 01 00 [14:28:55]Write to MH i2c: E2 08 00 E7 92 80 13 01 00 00 00 00 00 F6 [14:28:55]Write i2c OK [14:28:55]MH_I2C_Read... [14:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:55]Read from MH i2c: E2 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 0E 00 [14:28:55]MH_I2C_Read... [14:28:55]Read from MH i2c: E2 0E 00 E7 92 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 92 [14:28:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:28:55]wFMCommunicate OK [14:28:55]SAM_PROTO_GetShiftState done [14:28:55]FM_GetShiftState done [14:28:55]req_shift_opened done [14:28:55]requested_item shift.open_date is exist - process it [14:28:55]req_shift_open_date [14:28:55]req_shift_open_date done [14:28:55]produce_requested_data done [14:28:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94915,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:28:55]process_action_free print_text [14:28:55]json_value_free [14:28:55]json_value_free done [14:28:55]process_json_proto returns [14:28:55]Send response to host [14:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94915,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:28:55]free response buf [14:28:55]execute_script done [14:28:55]execute_script returns [14:28:55]free content buf [14:28:55]Sock 9.Close socket [14:28:55]Sock 9.Thread stoped [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:12]accept exits with 7 [14:30:12]New connection [14:30:12]New thread 3067014500 created [14:30:12]Thread 3066871140 joined [14:30:12]Waiting for new connection... [14:30:12] Sock 7.Parse request [14:30:12]Sock 7.Check first char [14:30:12]Sock 7.First char is OK [14:30:12]request: POST /json_proto HTTP/1.0 [14:30:12]Method: POST [14:30:12]URL: /json_proto [14:30:12]Method is POST - this is cgi request [14:30:12]url: /json_proto [14:30:12]query_string will be loaded in cgi processing [14:30:12]execute_cgi json_proto POST (null) [14:30:12]execute_cgi path=json_proto method=POST [14:30:12]POST find Content-Length [14:30:12]Host: 172.17.62.67:8080 [14:30:12]Content-Length: 677 [14:30:12]Content-Type: application/json [14:30:12] [14:30:12]POST finish read [14:30:12]Found Content-Length = 677 [14:30:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "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:30:12]execute_script... [14:30: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)195874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "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:30:12]POST & json_proto [14:30:12]process_json_proto [14:30:12]json parsed OK: [14:30:12]protocol is kg_v1.0 [14:30:12]action value=close_receipt [14:30:12]process_action close_receipt [14:30:12]cmd_close_receipt [14:30:12]MH_GetDate [14:30:12]Write to MH i2c: F0 00 00 E8 92 69 [14:30:12]Write i2c OK [14:30:12]MH_I2C_Read... [14:30:12]Read from MH i2c: F0 [14:30:12]MH_I2C_Read... [14:30:12]Read from MH i2c: F0 05 00 [14:30:12]MH_I2C_Read... [14:30:12]Read from MH i2c: F0 05 00 E8 92 00 83 15 EF 65 5A [14:30:12]GetLastDocTimeStamp 1710167346 [14:30:12]current date 1710167427 [14:30:12]FM_GetShiftState [14:30:12]SAM_PROTO_GetShiftState [14:30:12]wFMCommunicate request_size=4 [14:30:12]MH_SAM_APDU [14:30:12]CAPDU: 80 13 01 00 [14:30:12]Write to MH i2c: E2 08 00 E9 92 80 13 01 00 00 00 00 00 F8 [14:30:12]Write i2c OK [14:30:12]MH_I2C_Read... [14:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:12]Read from MH i2c: E2 [14:30:12]MH_I2C_Read... [14:30:12]Read from MH i2c: E2 0E 00 [14:30:12]MH_I2C_Read... [14:30:12]Read from MH i2c: E2 0E 00 E9 92 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 94 [14:30:12]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:30:12]wFMCommunicate OK [14:30:12]SAM_PROTO_GetShiftState done [14:30:12]FM_GetShiftState done [14:30:12]opened in 1710115571 [14:30:12]opened+sec_in_day 1710201971 [14:30:12]quantity*price = 50040 [14:30:12]sum+1 = 50041 [14:30:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 91 11.03.2024 14:30 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94916 ФПД: 11432247134972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T143027&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94916&fm=11432247134972&tin=02508201610067®Number=0000000000090555&sum=50000 [14:30:13]StoreToDocumentArchive [14:30:13]shift 326 fd 94916 [14:30:13]save to /storage/0326/doc_00094916 [14:30:13]save last doc name /storage/0326/doc_00094916 to /storage/kkm_last_doc_name [14:30:13]save OK [14:30:13]Clear old archive folders... [14:30:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:13]tlvbuf is 001FB430 [14:30:13]SAM_PROTO_ClearQueue [14:30:13]wFMCommunicate request_size=4 [14:30:13]MH_SAM_APDU [14:30:13]CAPDU: 80 09 00 00 [14:30:13]Write to MH i2c: E2 08 00 F6 92 80 09 00 00 00 00 00 00 FA [14:30:13]Write i2c OK [14:30:13]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 [14:30:14]MH_I2C_Read... [14:30:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:14]Read from MH i2c: E2 03 00 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 03 00 F6 92 00 90 00 FC [14:30:14]RAPDU: 90 00 [14:30:14]wFMCommunicate OK [14:30:14]SAM_PROTO_ClearQueue done [14:30:14]KKMCreateOFDPacket [14:30:14]OFDProtocolAddRootSTLVToBuf [14:30:14]FM_MakeSignedData [14:30:14]FM_MakeSignedData [14:30:14]SAM_PROTO_SignData [14:30:14]wFMCommunicate request_size=4 [14:30:14]MH_SAM_APDU [14:30:14]CAPDU: 80 0D 01 02 [14:30:14]Write to MH i2c: E2 08 00 F7 92 80 0D 01 02 00 00 00 00 02 [14:30:14]Write i2c OK [14:30:14]MH_I2C_Read... [14:30:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:14]Read from MH i2c: E2 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 03 00 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 03 00 F7 92 00 90 00 FD [14:30:14]RAPDU: 90 00 [14:30:14]wFMCommunicate OK [14:30:14]wFMCommunicate request_size=255 [14:30:14]MH_SAM_APDU [14:30:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 83 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 72 01 00 35 04 06 00 0A [14:30:14]Write to MH i2c: E2 02 01 F8 92 80 0D 02 02 FA 00 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 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 83 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 72 01 00 35 04 06 00 0A 00 00 4B [14:30:14]Write i2c OK [14:30:14]MH_I2C_Read... [14:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:14]Read from MH i2c: E2 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 03 00 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 03 00 F8 92 00 90 00 FE [14:30:14]RAPDU: 90 00 [14:30:14]wFMCommunicate OK [14:30:14]wFMCommunicate request_size=10 [14:30:14]MH_SAM_APDU [14:30:14]CAPDU: 80 0D 02 02 05 65 C7 07 8A FC [14:30:14]Write to MH i2c: E2 0D 00 F9 92 80 0D 02 02 05 00 65 C7 07 8A FC 00 00 C8 [14:30:14]Write i2c OK [14:30:14]MH_I2C_Read... [14:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:14]Read from MH i2c: E2 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 03 00 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 03 00 F9 92 00 90 00 FF [14:30:14]RAPDU: 90 00 [14:30:14]wFMCommunicate OK [14:30:14]wFMCommunicate request_size=4 [14:30:14]MH_SAM_APDU [14:30:14]CAPDU: 80 0D 03 02 [14:30:14]Write to MH i2c: E2 08 00 FA 92 80 0D 03 02 00 00 00 00 07 [14:30:14]Write i2c OK [14:30:14]MH_I2C_Read... [14:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:14]Read from MH i2c: E2 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 0B 00 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 0B 00 FA 92 00 E4 C6 A3 F9 8D 39 89 FA 90 00 97 [14:30:14]RAPDU: E4 C6 A3 F9 8D 39 89 FA 90 00 [14:30:14]wFMCommunicate OK [14:30:14]SAM_PROTO_SignData done [14:30:14]FM_MakeSignedData done [14:30:14]CreateOFDProtocolMessage [14:30:14]wFMCommunicate request_size=4 [14:30:14]MH_SAM_APDU [14:30:14]CAPDU: 80 11 00 00 [14:30:14]Write to MH i2c: E2 08 00 FB 92 80 11 00 00 00 00 00 00 07 [14:30:14]Write i2c OK [14:30:14]MH_I2C_Read... [14:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:14]Read from MH i2c: E2 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 17 00 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: E2 17 00 FB 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [14:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:30:14]wFMCommunicate OK [14:30:14]CreateOFDProtocolMessage done [14:30:14]OFDSenderStorePacket 94916 [14:30:14]StoreOFDPacket docnum=94916 [14:30:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 09 CA 07 01 68 A9 5A 03 01 00 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 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 83 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 72 01 00 35 04 06 00 0A 65 C7 07 8A FC E4 C6 A3 F9 8D 39 89 FA [14:30:14]CheckFolder [14:30:14]dirname=/storage/ofd_packets [14:30:14]CheckFolder done [14:30:14]ProducePacketName [14:30:14]name=ofd_packets/00094916 [14:30:14]NVStorageSaveData ofd_packets/00094916 [14:30:14]File name is /storage/ofd_packets/00094916 [14:30:14]Write 301 bytes [14:30:14]NVStorageSaveData done [14:30:14]OFDSenderStorePacket done [14:30:14]KKMCreateOFDPacket done [14:30:14]NVStorageSaveData kkm_last_timestamp [14:30:14]File name is /storage/kkm_last_timestamp [14:30:14]Write 4 bytes [14:30:14]NVStorageSaveData done [14:30:14]ExternCall_PrintAddStr [14:30:14]wPrintStart [14:30:14]Write to MH i2c: 01 00 00 FC 92 8E [14:30:14]Write i2c OK [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: 01 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: 01 07 00 [14:30:14]MH_I2C_Read... [14:30:14]Read from MH i2c: 01 07 00 FC 92 00 80 00 00 00 FF 0F 23 [14:30:14]RasterBufferAndPrint [14:30:14]line Счет N : (1)195874 [14:30:14]line ИНН: 02508201610067 [14:30:14]line Контрольно-Кассовый Чек [14:30:14]line ПРОДАЖА [14:30:14]line ТРК (МРК, ГНК) : 41 [14:30:14]line Товар: 2710124500 [14:30:14]line Аи-95-К-5 [14:30:14]line 7.200 * 69.50 [14:30:14]line = 500.40 [14:30:14]line НДС 12% НСП 1% [14:30:14]line > о реализуемом товаре [14:30:14]line ОКРУГЛЕНИЕ: -0.40 [14:30:14]line ИТОГО: 500.00 [14:30:14]line Внесено: 500.00 [14:30:14]line СДАЧА: 0.00 [14:30:14]line НСП 1% : 4.43 [14:30:14]line НДС 12% : 53.14 [14:30:14]line Наличными: 500.00 [14:30:14]line Безнал.: 0.00 [14:30:14]line Место: АЗС № 6 "Партнер Нефть" [14:30:14]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:30:14]line СНО: Общий режим [14:30:14]line Чек 91 11.03.2024 14:30 [14:30:14]line Смена: 326 ФФД: 1.0 [14:30:14]line ЗНМ: 0300000009 [14:30:14]line РНМ: 0000000000090555 [14:30:14]line Версия ККМ: 001 [14:30:14]line ФМ: 0000000000874811 [14:30:14]line ФД: 94916 [14:30:14]line ФПД: 11432247134972 [14:30:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T143027&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94916&fm=11432247134972&tin=02508201610067®Number=0000000000090555&sum=50000 [14:30:14]written 0, free lines is 4095 [14:30:14]OFD Sender: Processing packet 94916 [packets to send 30, broken 29] [14:30:14]ProducePacketName [14:30:14]name=ofd_packets/00094916 [14:30:14]OFD Sender: To server: pG, [14:30:14]CommunicateWithHost lk.salyk.kg:30040 [14:30:14]ConnectInit lk.salyk.kg [14:30:14]Connected sock=10 [14:30: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 31 31 0F 01 00 00 09 CA 07 01 68 A9 5A 03 01 00 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 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 83 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 72 01 00 35 04 06 00 0A 65 C7 07 8A FC E4 C6 A3 F9 8D 39 89 FA [14:30: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 31 31 4F 00 00 00 44 24 47 00 EC 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 72 01 00 F4 03 04 00 DC C0 EE 65 B6 04 01 00 00 57 79 ED B3 F7 6E 97 24 [14:30:15]CommunicateWithHost err = 0 [14:30:15]CheckOFDResponse [14:30:15]1017 (14) - 77093643461234 [14:30:15]1041 (16) - 0000000000874811 [14:30:15]1040 (4) - 94916 [14:30:15]1012 (4) - 11.03.2024 08:29 [14:30:15]1206 (1) - 0 [14:30:15]OFD Sender: Remove packet 94916 [14:30:15]ProducePacketName [14:30:15]name=ofd_packets/00094916 [14:30:15]NVStorageDeleteData [14:30:15]Write to MH i2c: 01 00 00 27 93 BA [14:30:15]Write i2c OK [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: 01 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: 01 07 00 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: 01 07 00 27 93 00 80 00 00 00 4B 0D 99 [14:30:15]RasterBufferAndPrint [14:30:15]line [14:30:15]line [14:30:15]line [14:30:15]line [14:30:15]line [14:30:15]written 0, free lines is 3409 [14:30:15]process_action close_receipt done [14:30:15]requested_data is exist [14:30:15]produce_requested_data [14:30:15]requested_item fm.sn is exist - process it [14:30:15]wFMCommunicate request_size=4 [14:30:15]MH_SAM_APDU [14:30:15]CAPDU: 80 11 00 00 [14:30:15]Write to MH i2c: E2 08 00 2E 93 80 11 00 00 00 00 00 00 3B [14:30:15]Write i2c OK [14:30:15]MH_I2C_Read... [14:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:15]Read from MH i2c: E2 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: E2 17 00 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: E2 17 00 2E 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8B [14:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:30:15]wFMCommunicate OK [14:30:15]requested_item fd.num is exist - process it [14:30:15]SAM_PROTO_GetFieldsCounters [14:30:15]wFMCommunicate request_size=4 [14:30:15]MH_SAM_APDU [14:30:15]CAPDU: 80 13 00 00 [14:30:15]Write to MH i2c: E2 08 00 2F 93 80 13 00 00 00 00 00 00 3E [14:30:15]Write i2c OK [14:30:15]MH_I2C_Read... [14:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:15]Read from MH i2c: E2 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: E2 62 00 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: E2 62 00 2F 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C4 72 01 00 0E 04 04 00 46 01 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 EA [14:30: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:15]wFMCommunicate OK [14:30:15]SAM_PROTO_GetFieldsCounters done [14:30:15]requested_item shift.num is exist - process it [14:30:15]requested_item shift.opened is exist - process it [14:30:15]req_shift_opened [14:30:15]FM_GetShiftState [14:30:15]SAM_PROTO_GetShiftState [14:30:15]wFMCommunicate request_size=4 [14:30:15]MH_SAM_APDU [14:30:15]CAPDU: 80 13 01 00 [14:30:15]Write to MH i2c: E2 08 00 30 93 80 13 01 00 00 00 00 00 40 [14:30:15]Write i2c OK [14:30:15]MH_I2C_Read... [14:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:15]Read from MH i2c: E2 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: E2 0E 00 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: E2 0E 00 30 93 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DC [14:30:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:30:15]wFMCommunicate OK [14:30:15]SAM_PROTO_GetShiftState done [14:30:15]FM_GetShiftState done [14:30:15]req_shift_opened done [14:30:15]requested_item shift.open_date is exist - process it [14:30:15]req_shift_open_date [14:30:15]req_shift_open_date done [14:30:15]produce_requested_data done [14:30:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94916,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:30:15]process_action_free close_receipt [14:30:15]json_value_free [14:30:15]json_value_free done [14:30:15]process_json_proto returns [14:30:15]Send response to host [14:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94916,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:30:15]free response buf [14:30:15]execute_script done [14:30:15]execute_script returns [14:30:15]free content buf [14:30:15]Sock 7.Close socket [14:30:15]Sock 7.Thread stoped [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:32]accept exits with 9 [14:30:32]New connection [14:30:32]New thread 3066871140 created [14:30:32]Thread 3067014500 joined [14:30:32]Waiting for new connection... [14:30:32] Sock 9.Parse request [14:30:32]Sock 9.Check first char [14:30:32]Sock 9.First char is OK [14:30:32]request: POST /json_proto HTTP/1.0 [14:30:32]Method: POST [14:30:32]URL: /json_proto [14:30:32]Method is POST - this is cgi request [14:30:32]url: /json_proto [14:30:32]query_string will be loaded in cgi processing [14:30:32]execute_cgi json_proto POST (null) [14:30:32]execute_cgi path=json_proto method=POST [14:30:32]POST find Content-Length [14:30:32]Host: 172.17.62.67:8080 [14:30:32]Content-Length: 1180 [14:30:32]Content-Type: application/json [14:30:32] [14:30:32]POST finish read [14:30:32]Found Content-Length = 1180 [14:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195873\u000A11.03.2024 14:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3430931\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:32]execute_script... [14:30:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195873\u000A11.03.2024 14:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3430931\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:32]POST & json_proto [14:30:32]process_json_proto [14:30:32]json parsed OK: [14:30:32]protocol is kg_v1.0 [14:30:32]action value=print_text [14:30:32]process_action print_text [14:30:32]cmd_print_text [14:30:32]ExternCall_PrintAddStr [14:30:32]wPrintStart [14:30:32]Write to MH i2c: 01 00 00 31 93 C4 [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: 01 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: 01 07 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: 01 07 00 31 93 00 80 00 00 00 FF 0F 59 [14:30:32]RasterBufferAndPrint [14:30:32]line *****ТОВАРНЫЙ ЧЕК***** [14:30:32]line АЗС 6 [14:30:32]line Партнер нефть [14:30:32]line 02508201610067 [14:30:32]line Кассир : Карыбаев Б. [14:30:32]line Счет N : (1)195873 [14:30:32]line 11.03.2024 14:24 [14:30:32]line ПРОДАЖА [14:30:32]line ТРК (МРК, ГНК): 61 [14:30:32]line Вид ГСМ : 2710194210 [14:30:32]line ДТ-К-5 [14:30:32]line 20.000 x 70.90 [14:30:32]line ИТОГ: 1418.00 [14:30:32]line Тип оплаты: Талоны: Партнер нефть [14:30:32]line 3430931 [14:30:32]line ______________________ [14:30:32]line (подпись) [14:30:32]written 0, free lines is 4095 [14:30:33]Write to MH i2c: 01 00 00 45 93 D8 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 07 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: 01 07 00 45 93 00 80 00 00 00 62 0E CF [14:30:33]RasterBufferAndPrint [14:30:33]line [14:30:33]line [14:30:33]line [14:30:33]line [14:30:33]line [14:30:33]written 0, free lines is 3686 [14:30:33]process_action print_text done [14:30:33]requested_data is exist [14:30:33]produce_requested_data [14:30:33]requested_item fm.sn is exist - process it [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 11 00 00 [14:30:33]Write to MH i2c: E2 08 00 4C 93 80 11 00 00 00 00 00 00 59 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 17 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 17 00 4C 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A9 [14:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:30:33]wFMCommunicate OK [14:30:33]requested_item fd.num is exist - process it [14:30:33]SAM_PROTO_GetFieldsCounters [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 13 00 00 [14:30:33]Write to MH i2c: E2 08 00 4D 93 80 13 00 00 00 00 00 00 5C [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 62 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 62 00 4D 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C4 72 01 00 0E 04 04 00 46 01 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 08 [14:30: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:33]wFMCommunicate OK [14:30:33]SAM_PROTO_GetFieldsCounters done [14:30:33]requested_item shift.num is exist - process it [14:30:33]requested_item shift.opened is exist - process it [14:30:33]req_shift_opened [14:30:33]FM_GetShiftState [14:30:33]SAM_PROTO_GetShiftState [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 13 01 00 [14:30:33]Write to MH i2c: E2 08 00 4E 93 80 13 01 00 00 00 00 00 5E [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 0E 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 0E 00 4E 93 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FA [14:30:33]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:30:33]wFMCommunicate OK [14:30:33]SAM_PROTO_GetShiftState done [14:30:33]FM_GetShiftState done [14:30:33]req_shift_opened done [14:30:33]requested_item shift.open_date is exist - process it [14:30:33]req_shift_open_date [14:30:33]req_shift_open_date done [14:30:33]produce_requested_data done [14:30:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94916,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:30:33]process_action_free print_text [14:30:33]json_value_free [14:30:33]json_value_free done [14:30:33]process_json_proto returns [14:30:33]Send response to host [14:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94916,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:30:33]free response buf [14:30:33]execute_script done [14:30:33]execute_script returns [14:30:33]free content buf [14:30:33]Sock 9.Close socket [14:30:33]Sock 9.Thread stoped [14:30:35]OFD Sender: No OFD packet to send [14:30:37]accept exits with 7 [14:30:37]New connection [14:30:37]New thread 3067014500 created [14:30:37]Thread 3066871140 joined [14:30:37]Waiting for new connection... [14:30:37] Sock 7.Parse request [14:30:37]Sock 7.Check first char [14:30:37]Sock 7.First char is OK [14:30:37]request: POST /json_proto HTTP/1.0 [14:30:37]Method: POST [14:30:37]URL: /json_proto [14:30:37]Method is POST - this is cgi request [14:30:37]url: /json_proto [14:30:37]query_string will be loaded in cgi processing [14:30:37]execute_cgi json_proto POST (null) [14:30:37]execute_cgi path=json_proto method=POST [14:30:37]POST find Content-Length [14:30:37]Host: 172.17.62.67:8080 [14:30:37]Content-Length: 677 [14:30:37]Content-Type: application/json [14:30:37] [14:30:37]POST finish read [14:30:37]Found Content-Length = 677 [14:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:30:37]execute_script... [14:30:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:30:37]POST & json_proto [14:30:37]process_json_proto [14:30:37]json parsed OK: [14:30:37]protocol is kg_v1.0 [14:30:37]action value=close_receipt [14:30:37]process_action close_receipt [14:30:37]cmd_close_receipt [14:30:37]MH_GetDate [14:30:37]Write to MH i2c: F0 00 00 4F 93 D1 [14:30:37]Write i2c OK [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: F0 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: F0 05 00 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: F0 05 00 4F 93 00 9C 15 EF 65 DB [14:30:37]GetLastDocTimeStamp 1710167427 [14:30:37]current date 1710167452 [14:30:37]FM_GetShiftState [14:30:37]SAM_PROTO_GetShiftState [14:30:37]wFMCommunicate request_size=4 [14:30:37]MH_SAM_APDU [14:30:37]CAPDU: 80 13 01 00 [14:30:37]Write to MH i2c: E2 08 00 50 93 80 13 01 00 00 00 00 00 60 [14:30:37]Write i2c OK [14:30:37]MH_I2C_Read... [14:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:37]Read from MH i2c: E2 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: E2 0E 00 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: E2 0E 00 50 93 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FC [14:30:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:30:37]wFMCommunicate OK [14:30:37]SAM_PROTO_GetShiftState done [14:30:37]FM_GetShiftState done [14:30:37]opened in 1710115571 [14:30:37]opened+sec_in_day 1710201971 [14:30:37]quantity*price = 50005 [14:30:37]sum+1 = 50007 [14:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 92 11.03.2024 14:30 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94917 ФПД: 8095152522890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T143052&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94917&fm=8095152522890&tin=02508201610067®Number=0000000000090555&sum=50000 [14:30:38]StoreToDocumentArchive [14:30:38]shift 326 fd 94917 [14:30:38]save to /storage/0326/doc_00094917 [14:30:38]save last doc name /storage/0326/doc_00094917 to /storage/kkm_last_doc_name [14:30:38]save OK [14:30:38]Clear old archive folders... [14:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:38]tlvbuf is 002BC480 [14:30:38]SAM_PROTO_ClearQueue [14:30:38]wFMCommunicate request_size=4 [14:30:38]MH_SAM_APDU [14:30:38]CAPDU: 80 09 00 00 [14:30:38]Write to MH i2c: E2 08 00 5D 93 80 09 00 00 00 00 00 00 62 [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:38]Read from MH i2c: E2 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 03 00 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 03 00 5D 93 00 90 00 64 [14:30:38]RAPDU: 90 00 [14:30:38]wFMCommunicate OK [14:30:38]SAM_PROTO_ClearQueue done [14:30:38]KKMCreateOFDPacket [14:30:38]OFDProtocolAddRootSTLVToBuf [14:30:38]FM_MakeSignedData [14:30:38]FM_MakeSignedData [14:30:38]SAM_PROTO_SignData [14:30:38]wFMCommunicate request_size=4 [14:30:38]MH_SAM_APDU [14:30:38]CAPDU: 80 0D 01 02 [14:30:38]Write to MH i2c: E2 08 00 5E 93 80 0D 01 02 00 00 00 00 6A [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:38]Read from MH i2c: E2 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 03 00 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 03 00 5E 93 00 90 00 65 [14:30:38]RAPDU: 90 00 [14:30:38]wFMCommunicate OK [14:30:38]wFMCommunicate request_size=255 [14:30:38]MH_SAM_APDU [14:30:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 9C 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 72 01 00 35 04 06 00 07 [14:30:38]Write to MH i2c: E2 02 01 5F 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 9C 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 72 01 00 35 04 06 00 07 00 00 FA [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:38]Read from MH i2c: E2 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 03 00 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 03 00 5F 93 00 90 00 66 [14:30:38]RAPDU: 90 00 [14:30:38]wFMCommunicate OK [14:30:38]wFMCommunicate request_size=10 [14:30:38]MH_SAM_APDU [14:30:38]CAPDU: 80 0D 02 02 05 5C CC B0 C6 8A [14:30:38]Write to MH i2c: E2 0D 00 60 93 80 0D 02 02 05 00 5C CC B0 C6 8A 00 00 9F [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:38]Read from MH i2c: E2 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 03 00 [14:30:38]MH_I2C_Read... [14:30:38]Read from MH i2c: E2 03 00 60 93 00 90 00 67 [14:30:38]RAPDU: 90 00 [14:30:38]wFMCommunicate OK [14:30:38]wFMCommunicate request_size=4 [14:30:38]MH_SAM_APDU [14:30:38]CAPDU: 80 0D 03 02 [14:30:38]Write to MH i2c: E2 08 00 61 93 80 0D 03 02 00 00 00 00 6F [14:30:38]Write i2c OK [14:30:38]MH_I2C_Read... [14:30:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 0B 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 0B 00 61 93 00 55 47 E6 6C 5D 47 85 C0 90 00 47 [14:30:39]RAPDU: 55 47 E6 6C 5D 47 85 C0 90 00 [14:30:39]wFMCommunicate OK [14:30:39]SAM_PROTO_SignData done [14:30:39]FM_MakeSignedData done [14:30:39]CreateOFDProtocolMessage [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 11 00 00 [14:30:39]Write to MH i2c: E2 08 00 62 93 80 11 00 00 00 00 00 00 6F [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 17 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 17 00 62 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BF [14:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:30:39]wFMCommunicate OK [14:30:39]CreateOFDProtocolMessage done [14:30:39]OFDSenderStorePacket 94917 [14:30:39]StoreOFDPacket docnum=94917 [14:30:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E5 70 07 01 FB 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 9C 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 72 01 00 35 04 06 00 07 5C CC B0 C6 8A 55 47 E6 6C 5D 47 85 C0 [14:30:39]CheckFolder [14:30:39]dirname=/storage/ofd_packets [14:30:39]CheckFolder done [14:30:39]ProducePacketName [14:30:39]name=ofd_packets/00094917 [14:30:39]NVStorageSaveData ofd_packets/00094917 [14:30:39]File name is /storage/ofd_packets/00094917 [14:30:39]Write 301 bytes [14:30:39]NVStorageSaveData done [14:30:39]OFDSenderStorePacket done [14:30:39]KKMCreateOFDPacket done [14:30:39]NVStorageSaveData kkm_last_timestamp [14:30:39]File name is /storage/kkm_last_timestamp [14:30:39]Write 4 bytes [14:30:39]NVStorageSaveData done [14:30:39]ExternCall_PrintAddStr [14:30:39]wPrintStart [14:30:39]Write to MH i2c: 01 00 00 63 93 F6 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: 01 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: 01 07 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: 01 07 00 63 93 00 80 00 00 00 FF 0F 8B [14:30:39]RasterBufferAndPrint [14:30:39]line Счет N : (1)195875 [14:30:39]line ИНН: 02508201610067 [14:30:39]line Контрольно-Кассовый Чек [14:30:39]line ПРОДАЖА [14:30:39]line ТРК (МРК, ГНК) : 22 [14:30:39]line Товар: 2710124130 [14:30:39]line Аи-92-К-5 [14:30:39]line 7.950 * 62.90 [14:30:39]line = 500.06 [14:30:39]line НДС 12% НСП 1% [14:30:39]line > о реализуемом товаре [14:30:39]line ОКРУГЛЕНИЕ: -0.06 [14:30:39]line ИТОГО: 500.00 [14:30:39]line Внесено: 500.00 [14:30:39]line СДАЧА: 0.00 [14:30:39]line НСП 1% : 4.42 [14:30:39]line НДС 12% : 53.10 [14:30:39]line Наличными: 500.00 [14:30:39]line Безнал.: 0.00 [14:30:39]line Место: АЗС № 6 "Партнер Нефть" [14:30:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:30:39]line СНО: Общий режим [14:30:39]line Чек 92 11.03.2024 14:30 [14:30:39]line Смена: 326 ФФД: 1.0 [14:30:39]line ЗНМ: 0300000009 [14:30:39]line РНМ: 0000000000090555 [14:30:39]line Версия ККМ: 001 [14:30:39]line ФМ: 0000000000874811 [14:30:39]line ФД: 94917 [14:30:39]line ФПД: 8095152522890 [14:30:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T143052&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94917&fm=8095152522890&tin=02508201610067®Number=0000000000090555&sum=50000 [14:30:39]OFD Sender: Processing packet 94917 [packets to send 30, broken 29] [14:30:39]ProducePacketName [14:30:39]name=ofd_packets/00094917 [14:30:39]OFD Sender: To server: pG, [14:30:39]CommunicateWithHost lk.salyk.kg:30040 [14:30:39]written 0, free lines is 4095 [14:30:39]ConnectInit lk.salyk.kg [14:30:39]Connected sock=9 [14:30:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E5 70 07 01 FB 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 9C 15 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 72 01 00 35 04 06 00 07 5C CC B0 C6 8A 55 47 E6 6C 5D 47 85 C0 [14:30: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 31 31 4F 00 00 00 3F 72 47 00 40 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 31 31 10 04 04 00 C5 72 01 00 F4 03 04 00 F5 C0 EE 65 B6 04 01 00 00 9E A8 CE FD E3 76 DD A8 [14:30:39]CommunicateWithHost err = 0 [14:30:39]CheckOFDResponse [14:30:39]1017 (14) - 77093643461234 [14:30:39]1041 (16) - 0000000000874811 [14:30:39]1040 (4) - 94917 [14:30:39]1012 (4) - 11.03.2024 08:29 [14:30:39]1206 (1) - 0 [14:30:39]OFD Sender: Remove packet 94917 [14:30:39]ProducePacketName [14:30:39]name=ofd_packets/00094917 [14:30:39]NVStorageDeleteData [14:30:39]Write to MH i2c: 01 00 00 8E 93 21 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: 01 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: 01 07 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: 01 07 00 8E 93 00 80 00 00 00 50 0D 05 [14:30:39]RasterBufferAndPrint [14:30:39]line [14:30:39]line [14:30:39]line [14:30:39]line [14:30:39]line [14:30:39]written 0, free lines is 3414 [14:30:39]process_action close_receipt done [14:30:39]requested_data is exist [14:30:39]produce_requested_data [14:30:39]requested_item fm.sn is exist - process it [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 11 00 00 [14:30:39]Write to MH i2c: E2 08 00 95 93 80 11 00 00 00 00 00 00 A2 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:39]Read from MH i2c: E2 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 17 00 [14:30:39]MH_I2C_Read... [14:30:39]Read from MH i2c: E2 17 00 95 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F2 [14:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:30:39]wFMCommunicate OK [14:30:39]requested_item fd.num is exist - process it [14:30:39]SAM_PROTO_GetFieldsCounters [14:30:39]wFMCommunicate request_size=4 [14:30:39]MH_SAM_APDU [14:30:39]CAPDU: 80 13 00 00 [14:30:39]Write to MH i2c: E2 08 00 96 93 80 13 00 00 00 00 00 00 A5 [14:30:39]Write i2c OK [14:30:39]MH_I2C_Read... [14:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:40]Read from MH i2c: E2 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 62 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 62 00 96 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C5 72 01 00 0E 04 04 00 46 01 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 55 [14:30: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:40]wFMCommunicate OK [14:30:40]SAM_PROTO_GetFieldsCounters done [14:30:40]requested_item shift.num is exist - process it [14:30:40]requested_item shift.opened is exist - process it [14:30:40]req_shift_opened [14:30:40]FM_GetShiftState [14:30:40]SAM_PROTO_GetShiftState [14:30:40]wFMCommunicate request_size=4 [14:30:40]MH_SAM_APDU [14:30:40]CAPDU: 80 13 01 00 [14:30:40]Write to MH i2c: E2 08 00 97 93 80 13 01 00 00 00 00 00 A7 [14:30:40]Write i2c OK [14:30:40]MH_I2C_Read... [14:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:40]OFD Sender: No OFD packet to send [14:30:40]Read from MH i2c: E2 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 0E 00 [14:30:40]MH_I2C_Read... [14:30:40]Read from MH i2c: E2 0E 00 97 93 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 43 [14:30:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:30:40]wFMCommunicate OK [14:30:40]SAM_PROTO_GetShiftState done [14:30:40]FM_GetShiftState done [14:30:40]req_shift_opened done [14:30:40]requested_item shift.open_date is exist - process it [14:30:40]req_shift_open_date [14:30:40]req_shift_open_date done [14:30:40]produce_requested_data done [14:30:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94917,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:30:40]process_action_free close_receipt [14:30:40]json_value_free [14:30:40]json_value_free done [14:30:40]process_json_proto returns [14:30:40]Send response to host [14:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94917,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:30:40]free response buf [14:30:40]execute_script done [14:30:40]execute_script returns [14:30:40]free content buf [14:30:40]Sock 7.Close socket [14:30:40]Sock 7.Thread stoped [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:28]accept exits with 10 [14:37:28]New connection [14:37:28]New thread 3066871140 created [14:37:28]Thread 3067014500 joined [14:37:28]Waiting for new connection... [14:37:28] Sock 10.Parse request [14:37:28]Sock 10.Check first char [14:37:28]Sock 10.First char is OK [14:37:28]request: POST /json_proto HTTP/1.0 [14:37:28]Method: POST [14:37:28]URL: /json_proto [14:37:28]Method is POST - this is cgi request [14:37:28]url: /json_proto [14:37:28]query_string will be loaded in cgi processing [14:37:28]execute_cgi json_proto POST (null) [14:37:28]execute_cgi path=json_proto method=POST [14:37:28]POST find Content-Length [14:37:28]Host: 172.17.62.67:8080 [14:37:28]Content-Length: 677 [14:37:28]Content-Type: application/json [14:37:28] [14:37:28]POST finish read [14:37:28]Found Content-Length = 677 [14:37:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "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:37:28]execute_script... [14:37: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)195876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "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:37:28]POST & json_proto [14:37:28]process_json_proto [14:37:28]json parsed OK: [14:37:28]protocol is kg_v1.0 [14:37:28]action value=close_receipt [14:37:28]process_action close_receipt [14:37:28]cmd_close_receipt [14:37:28]MH_GetDate [14:37:28]Write to MH i2c: F0 00 00 98 93 1A [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: F0 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: F0 05 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: F0 05 00 98 93 00 37 17 EF 65 C1 [14:37:28]GetLastDocTimeStamp 1710167452 [14:37:28]current date 1710167863 [14:37:28]FM_GetShiftState [14:37:28]SAM_PROTO_GetShiftState [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 13 01 00 [14:37:28]Write to MH i2c: E2 08 00 99 93 80 13 01 00 00 00 00 00 A9 [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 0E 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 0E 00 99 93 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 45 [14:37:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:37:28]wFMCommunicate OK [14:37:28]SAM_PROTO_GetShiftState done [14:37:28]FM_GetShiftState done [14:37:28]opened in 1710115571 [14:37:28]opened+sec_in_day 1710201971 [14:37:28]quantity*price = 30003 [14:37:28]sum+1 = 30004 [14:37:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 93 11.03.2024 14:37 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94918 ФПД: 242882123197043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T143743&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94918&fm=242882123197043&tin=02508201610067®Number=0000000000090555&sum=30000 [14:37:29]StoreToDocumentArchive [14:37:29]shift 326 fd 94918 [14:37:29]save to /storage/0326/doc_00094918 [14:37:29]save last doc name /storage/0326/doc_00094918 to /storage/kkm_last_doc_name [14:37:29]save OK [14:37:29]Clear old archive folders... [14:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:29]tlvbuf is 001C9BB0 [14:37:29]SAM_PROTO_ClearQueue [14:37:29]wFMCommunicate request_size=4 [14:37:29]MH_SAM_APDU [14:37:29]CAPDU: 80 09 00 00 [14:37:29]Write to MH i2c: E2 08 00 A6 93 80 09 00 00 00 00 00 00 AB [14:37:29]Write i2c OK [14:37:29]MH_I2C_Read... [14:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:29]Read from MH i2c: E2 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: E2 03 00 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: E2 03 00 A6 93 00 90 00 AD [14:37:29]RAPDU: 90 00 [14:37:29]wFMCommunicate OK [14:37:29]SAM_PROTO_ClearQueue done [14:37:29]KKMCreateOFDPacket [14:37:29]OFDProtocolAddRootSTLVToBuf [14:37:29]FM_MakeSignedData [14:37:29]FM_MakeSignedData [14:37:29]SAM_PROTO_SignData [14:37:29]wFMCommunicate request_size=4 [14:37:29]MH_SAM_APDU [14:37:29]CAPDU: 80 0D 01 02 [14:37:29]Write to MH i2c: E2 08 00 A7 93 80 0D 01 02 00 00 00 00 B3 [14:37:29]Write i2c OK [14:37:29]MH_I2C_Read... [14:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:29]Read from MH i2c: E2 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: E2 03 00 [14:37:29]MH_I2C_Read... [14:37:29]Read from MH i2c: E2 03 00 A7 93 00 90 00 AE [14:37:29]RAPDU: 90 00 [14:37:29]wFMCommunicate OK [14:37:29]wFMCommunicate request_size=255 [14:37:29]MH_SAM_APDU [14:37:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 37 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 72 01 00 35 04 06 00 DC [14:37:29]Write to MH i2c: E2 02 01 A8 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 37 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 72 01 00 35 04 06 00 DC 00 00 EC [14:37:29]Write i2c OK [14:37:29]MH_I2C_Read... [14:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:30]Read from MH i2c: E2 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 03 00 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 03 00 A8 93 00 90 00 AF [14:37:30]RAPDU: 90 00 [14:37:30]wFMCommunicate OK [14:37:30]wFMCommunicate request_size=10 [14:37:30]MH_SAM_APDU [14:37:30]CAPDU: 80 0D 02 02 05 E6 66 AC EA 73 [14:37:30]Write to MH i2c: E2 0D 00 A9 93 80 0D 02 02 05 00 E6 66 AC EA 73 00 00 15 [14:37:30]Write i2c OK [14:37:30]MH_I2C_Read... [14:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:30]Read from MH i2c: E2 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 03 00 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 03 00 A9 93 00 90 00 B0 [14:37:30]RAPDU: 90 00 [14:37:30]wFMCommunicate OK [14:37:30]wFMCommunicate request_size=4 [14:37:30]MH_SAM_APDU [14:37:30]CAPDU: 80 0D 03 02 [14:37:30]Write to MH i2c: E2 08 00 AA 93 80 0D 03 02 00 00 00 00 B8 [14:37:30]Write i2c OK [14:37:30]MH_I2C_Read... [14:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:30]Read from MH i2c: E2 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 0B 00 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 0B 00 AA 93 00 FE 8E ED BD A5 CE F9 7C 90 00 D7 [14:37:30]RAPDU: FE 8E ED BD A5 CE F9 7C 90 00 [14:37:30]wFMCommunicate OK [14:37:30]SAM_PROTO_SignData done [14:37:30]FM_MakeSignedData done [14:37:30]CreateOFDProtocolMessage [14:37:30]wFMCommunicate request_size=4 [14:37:30]MH_SAM_APDU [14:37:30]CAPDU: 80 11 00 00 [14:37:30]Write to MH i2c: E2 08 00 AB 93 80 11 00 00 00 00 00 00 B8 [14:37:30]Write i2c OK [14:37:30]MH_I2C_Read... [14:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:30]Read from MH i2c: E2 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 17 00 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 17 00 AB 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 08 [14:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:37:30]wFMCommunicate OK [14:37:30]CreateOFDProtocolMessage done [14:37:30]OFDSenderStorePacket 94918 [14:37:30]StoreOFDPacket docnum=94918 [14:37:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FD 01 07 01 1F 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 37 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 72 01 00 35 04 06 00 DC E6 66 AC EA 73 FE 8E ED BD A5 CE F9 7C [14:37:30]CheckFolder [14:37:30]dirname=/storage/ofd_packets [14:37:30]CheckFolder done [14:37:30]ProducePacketName [14:37:30]name=ofd_packets/00094918 [14:37:30]NVStorageSaveData ofd_packets/00094918 [14:37:30]File name is /storage/ofd_packets/00094918 [14:37:30]Write 301 bytes [14:37:30]NVStorageSaveData done [14:37:30]OFDSenderStorePacket done [14:37:30]KKMCreateOFDPacket done [14:37:30]NVStorageSaveData kkm_last_timestamp [14:37:30]File name is /storage/kkm_last_timestamp [14:37:30]Write 4 bytes [14:37:30]NVStorageSaveData done [14:37:30]ExternCall_PrintAddStr [14:37:30]wPrintStart [14:37:30]Write to MH i2c: 01 00 00 AC 93 3F [14:37:30]Write i2c OK [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: 01 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: 01 07 00 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: 01 07 00 AC 93 00 80 00 00 00 FF 0F D4 [14:37:30]RasterBufferAndPrint [14:37:30]line Счет N : (1)195876 [14:37:30]line ИНН: 02508201610067 [14:37:30]line Контрольно-Кассовый Чек [14:37:30]line ПРОДАЖА [14:37:30]line ТРК (МРК, ГНК) : 12 [14:37:30]line Товар: 2710124130 [14:37:30]line Аи-92-К-5 [14:37:30]line 4.770 * 62.90 [14:37:30]line = 300.03 [14:37:30]line НДС 12% НСП 1% [14:37:30]line > о реализуемом товаре [14:37:30]line ОКРУГЛЕНИЕ: -0.03 [14:37:30]line ИТОГО: 300.00 [14:37:30]line Внесено: 300.00 [14:37:30]line СДАЧА: 0.00 [14:37:30]line НСП 1% : 2.65 [14:37:30]line НДС 12% : 31.86 [14:37:30]line Наличными: 300.00 [14:37:30]line Безнал.: 0.00 [14:37:30]line Место: АЗС № 6 "Партнер Нефть" [14:37:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:37:30]line СНО: Общий режим [14:37:30]line Чек 93 11.03.2024 14:37 [14:37:30]line Смена: 326 ФФД: 1.0 [14:37:30]line ЗНМ: 0300000009 [14:37:30]line РНМ: 0000000000090555 [14:37:30]line Версия ККМ: 001 [14:37:30]line ФМ: 0000000000874811 [14:37:30]line ФД: 94918 [14:37:30]line ФПД: 242882123197043 [14:37:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T143743&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94918&fm=242882123197043&tin=02508201610067®Number=0000000000090555&sum=30000 [14:37:30]OFD Sender: Processing packet 94918 [packets to send 30, broken 29] [14:37:30]ProducePacketName [14:37:30]name=ofd_packets/00094918 [14:37:30]OFD Sender: To server: pG, [14:37:30]CommunicateWithHost lk.salyk.kg:30040 [14:37:30]ConnectInit lk.salyk.kg [14:37:30]written 0, free lines is 4095 [14:37:30]Connected sock=9 [14:37: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 31 31 0F 01 00 00 FD 01 07 01 1F 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 37 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 72 01 00 35 04 06 00 DC E6 66 AC EA 73 FE 8E ED BD A5 CE F9 7C [14:37: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 31 31 4F 00 00 00 C5 82 47 00 60 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 31 31 10 04 04 00 C6 72 01 00 F4 03 04 00 90 C2 EE 65 B6 04 01 00 00 EB F2 2F 95 C4 22 5C 7A [14:37:30]CommunicateWithHost err = 0 [14:37:30]CheckOFDResponse [14:37:30]1017 (14) - 77093643461234 [14:37:30]1041 (16) - 0000000000874811 [14:37:30]1040 (4) - 94918 [14:37:30]1012 (4) - 11.03.2024 08:36 [14:37:30]1206 (1) - 0 [14:37:30]OFD Sender: Remove packet 94918 [14:37:30]ProducePacketName [14:37:30]name=ofd_packets/00094918 [14:37:30]NVStorageDeleteData [14:37:31]Write to MH i2c: 01 00 00 D7 93 6A [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: 01 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: 01 07 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: 01 07 00 D7 93 00 80 00 00 00 4E 0D 4C [14:37:31]RasterBufferAndPrint [14:37:31]line [14:37:31]line [14:37:31]line [14:37:31]line [14:37:31]line [14:37:31]written 0, free lines is 3414 [14:37:31]process_action close_receipt done [14:37:31]requested_data is exist [14:37:31]produce_requested_data [14:37:31]requested_item fm.sn is exist - process it [14:37:31]wFMCommunicate request_size=4 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 11 00 00 [14:37:31]Write to MH i2c: E2 08 00 DE 93 80 11 00 00 00 00 00 00 EB [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 17 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 17 00 DE 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3B [14:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:37:31]wFMCommunicate OK [14:37:31]requested_item fd.num is exist - process it [14:37:31]SAM_PROTO_GetFieldsCounters [14:37:31]wFMCommunicate request_size=4 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 13 00 00 [14:37:31]Write to MH i2c: E2 08 00 DF 93 80 13 00 00 00 00 00 00 EE [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 62 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 62 00 DF 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C6 72 01 00 0E 04 04 00 46 01 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 A2 [14: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:31]wFMCommunicate OK [14:37:31]SAM_PROTO_GetFieldsCounters done [14:37:31]requested_item shift.num is exist - process it [14:37:31]requested_item shift.opened is exist - process it [14:37:31]req_shift_opened [14:37:31]FM_GetShiftState [14:37:31]SAM_PROTO_GetShiftState [14:37:31]wFMCommunicate request_size=4 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 13 01 00 [14:37:31]Write to MH i2c: E2 08 00 E0 93 80 13 01 00 00 00 00 00 F0 [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:31]OFD Sender: No OFD packet to send [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 0E 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 0E 00 E0 93 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 8C [14:37:31]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:37:31]wFMCommunicate OK [14:37:31]SAM_PROTO_GetShiftState done [14:37:31]FM_GetShiftState done [14:37:31]req_shift_opened done [14:37:31]requested_item shift.open_date is exist - process it [14:37:31]req_shift_open_date [14:37:31]req_shift_open_date done [14:37:31]produce_requested_data done [14:37:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94918,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:37:31]process_action_free close_receipt [14:37:31]json_value_free [14:37:31]json_value_free done [14:37:31]process_json_proto returns [14:37:31]Send response to host [14:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94918,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:37:31]free response buf [14:37:31]execute_script done [14:37:31]execute_script returns [14:37:31]free content buf [14:37:31]Sock 10.Close socket [14:37:31]Sock 10.Thread stoped [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:52]accept exits with 7 [14:38:52]New connection [14:38:52]New thread 3067014500 created [14:38:52]Thread 3066871140 joined [14:38:52]Waiting for new connection... [14:38:52] Sock 7.Parse request [14:38:52]Sock 7.Check first char [14:38:52]Sock 7.First char is OK [14:38:52]request: POST /json_proto HTTP/1.0 [14:38:52]Method: POST [14:38:52]URL: /json_proto [14:38:52]Method is POST - this is cgi request [14:38:52]url: /json_proto [14:38:52]query_string will be loaded in cgi processing [14:38:52]execute_cgi json_proto POST (null) [14:38:52]execute_cgi path=json_proto method=POST [14:38:52]POST find Content-Length [14:38:52]Host: 172.17.62.67:8080 [14:38:52]Content-Length: 682 [14:38:52]Content-Type: application/json [14:38:52] [14:38:52]POST finish read [14:38:52]Found Content-Length = 682 [14:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:52]execute_script... [14:38: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)195877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:52]POST & json_proto [14:38:52]process_json_proto [14:38:52]json parsed OK: [14:38:52]protocol is kg_v1.0 [14:38:52]action value=close_receipt [14:38:52]process_action close_receipt [14:38:52]cmd_close_receipt [14:38:52]MH_GetDate [14:38:52]Write to MH i2c: F0 00 00 E1 93 63 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 05 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 05 00 E1 93 00 8B 17 EF 65 5E [14:38:52]GetLastDocTimeStamp 1710167863 [14:38:52]current date 1710167947 [14:38:52]FM_GetShiftState [14:38:52]SAM_PROTO_GetShiftState [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 01 00 [14:38:52]Write to MH i2c: E2 08 00 E2 93 80 13 01 00 00 00 00 00 F2 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 E2 93 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 8E [14:38:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetShiftState done [14:38:52]FM_GetShiftState done [14:38:52]opened in 1710115571 [14:38:52]opened+sec_in_day 1710201971 [14:38:52]quantity*price = 100011 [14:38:52]sum+1 = 100012 [14:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 94 11.03.2024 14:39 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94919 ФПД: 245336694418477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T143907&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94919&fm=245336694418477&tin=02508201610067®Number=0000000000090555&sum=100000 [14:38:54]StoreToDocumentArchive [14:38:54]shift 326 fd 94919 [14:38:54]save to /storage/0326/doc_00094919 [14:38:54]save last doc name /storage/0326/doc_00094919 to /storage/kkm_last_doc_name [14:38:54]save OK [14:38:54]Clear old archive folders... [14:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:54]tlvbuf is 001E5400 [14:38:54]SAM_PROTO_ClearQueue [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 09 00 00 [14:38:54]Write to MH i2c: E2 08 00 EF 93 80 09 00 00 00 00 00 00 F4 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 EF 93 00 90 00 F6 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_ClearQueue done [14:38:54]KKMCreateOFDPacket [14:38:54]OFDProtocolAddRootSTLVToBuf [14:38:54]FM_MakeSignedData [14:38:54]FM_MakeSignedData [14:38:54]SAM_PROTO_SignData [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 01 02 [14:38:54]Write to MH i2c: E2 08 00 F0 93 80 0D 01 02 00 00 00 00 FC [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 F0 93 00 90 00 F7 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=255 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 8B 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 72 01 00 35 04 06 00 DF [14:38:54]Write to MH i2c: E2 02 01 F1 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 8B 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 72 01 00 35 04 06 00 DF 00 00 58 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 F1 93 00 90 00 F8 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=10 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 02 02 05 21 E6 85 6C 2D [14:38:54]Write to MH i2c: E2 0D 00 F2 93 80 0D 02 02 05 00 21 E6 85 6C 2D 00 00 2E [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 F2 93 00 90 00 F9 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 03 02 [14:38:54]Write to MH i2c: E2 08 00 F3 93 80 0D 03 02 00 00 00 00 01 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0B 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0B 00 F3 93 00 23 B4 DF 63 28 6E F2 0B 90 00 AE [14:38:54]RAPDU: 23 B4 DF 63 28 6E F2 0B 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_SignData done [14:38:54]FM_MakeSignedData done [14:38:54]CreateOFDProtocolMessage [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 11 00 00 [14:38:54]Write to MH i2c: E2 08 00 F4 93 80 11 00 00 00 00 00 00 01 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 17 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 17 00 F4 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 51 [14:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:38:54]wFMCommunicate OK [14:38:54]CreateOFDProtocolMessage done [14:38:54]OFDSenderStorePacket 94919 [14:38:54]StoreOFDPacket docnum=94919 [14:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 43 0B 07 01 81 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 8B 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 72 01 00 35 04 06 00 DF 21 E6 85 6C 2D 23 B4 DF 63 28 6E F2 0B [14:38:54]CheckFolder [14:38:54]dirname=/storage/ofd_packets [14:38:54]CheckFolder done [14:38:54]ProducePacketName [14:38:54]name=ofd_packets/00094919 [14:38:54]NVStorageSaveData ofd_packets/00094919 [14:38:54]File name is /storage/ofd_packets/00094919 [14:38:54]Write 301 bytes [14:38:54]NVStorageSaveData done [14:38:54]OFDSenderStorePacket done [14:38:54]KKMCreateOFDPacket done [14:38:54]NVStorageSaveData kkm_last_timestamp [14:38:54]File name is /storage/kkm_last_timestamp [14:38:54]Write 4 bytes [14:38:54]NVStorageSaveData done [14:38:54]ExternCall_PrintAddStr [14:38:54]wPrintStart [14:38:54]Write to MH i2c: 01 00 00 F5 93 88 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 07 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 07 00 F5 93 00 80 00 00 00 FF 0F 1D [14:38:54]RasterBufferAndPrint [14:38:54]line Счет N : (1)195877 [14:38:54]line ИНН: 02508201610067 [14:38:54]line Контрольно-Кассовый Чек [14:38:54]line ПРОДАЖА [14:38:54]line ТРК (МРК, ГНК) : 22 [14:38:54]line Товар: 2710124130 [14:38:54]line Аи-92-К-5 [14:38:54]line 15.900 * 62.90 [14:38:54]line = 1000.11 [14:38:54]line НДС 12% НСП 1% [14:38:54]line > о реализуемом товаре [14:38:54]line ОКРУГЛЕНИЕ: -0.11 [14:38:54]line ИТОГО: 1000.00 [14:38:54]line Внесено: 1000.00 [14:38:54]line СДАЧА: 0.00 [14:38:54]line НСП 1% : 8.85 [14:38:54]line НДС 12% : 106.21 [14:38:54]line Наличными: 1000.00 [14:38:54]line Безнал.: 0.00 [14:38:54]line Место: АЗС № 6 "Партнер Нефть" [14:38:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:38:54]line СНО: Общий режим [14:38:54]line Чек 94 11.03.2024 14:39 [14:38:54]line Смена: 326 ФФД: 1.0 [14:38:54]line ЗНМ: 0300000009 [14:38:54]line РНМ: 0000000000090555 [14:38:54]line Версия ККМ: 001 [14:38:54]line ФМ: 0000000000874811 [14:38:54]line ФД: 94919 [14:38:54]line ФПД: 245336694418477 [14:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T143907&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94919&fm=245336694418477&tin=02508201610067®Number=0000000000090555&sum=100000 [14:38:54]OFD Sender: Processing packet 94919 [packets to send 30, broken 29] [14:38:54]ProducePacketName [14:38:54]name=ofd_packets/00094919 [14:38:54]OFD Sender: To server: pG, [14:38:54]CommunicateWithHost lk.salyk.kg:30040 [14:38:54]ConnectInit lk.salyk.kg [14:38:54]written 0, free lines is 4095 [14:38:55]Connected sock=10 [14:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 43 0B 07 01 81 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 8B 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 72 01 00 35 04 06 00 DF 21 E6 85 6C 2D 23 B4 DF 63 28 6E F2 0B [14:38: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 31 31 4F 00 00 00 98 FE 47 00 F3 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 72 01 00 F4 03 04 00 E4 C2 EE 65 B6 04 01 00 00 C5 37 56 AA C2 DE B9 7D [14:38:55]CommunicateWithHost err = 0 [14:38:55]CheckOFDResponse [14:38:55]1017 (14) - 77093643461234 [14:38:55]1041 (16) - 0000000000874811 [14:38:55]1040 (4) - 94919 [14:38:55]1012 (4) - 11.03.2024 08:37 [14:38:55]1206 (1) - 0 [14:38:55]OFD Sender: Remove packet 94919 [14:38:55]ProducePacketName [14:38:55]name=ofd_packets/00094919 [14:38:55]NVStorageDeleteData [14:38:55]Write to MH i2c: 01 00 00 20 94 B4 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 07 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 07 00 20 94 00 80 00 00 00 53 0D 9B [14:38:55]RasterBufferAndPrint [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]written 0, free lines is 3419 [14:38:55]process_action close_receipt done [14:38:55]requested_data is exist [14:38:55]produce_requested_data [14:38:55]requested_item fm.sn is exist - process it [14:38:55]wFMCommunicate request_size=4 [14:38:55]MH_SAM_APDU [14:38:55]CAPDU: 80 11 00 00 [14:38:55]Write to MH i2c: E2 08 00 27 94 80 11 00 00 00 00 00 00 35 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:55]Read from MH i2c: E2 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 17 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 17 00 27 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 85 [14:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:38:55]wFMCommunicate OK [14:38:55]requested_item fd.num is exist - process it [14:38:55]SAM_PROTO_GetFieldsCounters [14:38:55]wFMCommunicate request_size=4 [14:38:55]MH_SAM_APDU [14:38:55]CAPDU: 80 13 00 00 [14:38:55]Write to MH i2c: E2 08 00 28 94 80 13 00 00 00 00 00 00 38 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:55]Read from MH i2c: E2 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 62 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 62 00 28 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C7 72 01 00 0E 04 04 00 46 01 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 F0 [14:38: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:55]wFMCommunicate OK [14:38:55]SAM_PROTO_GetFieldsCounters done [14:38:55]requested_item shift.num is exist - process it [14:38:55]requested_item shift.opened is exist - process it [14:38:55]req_shift_opened [14:38:55]FM_GetShiftState [14:38:55]SAM_PROTO_GetShiftState [14:38:55]wFMCommunicate request_size=4 [14:38:55]MH_SAM_APDU [14:38:55]CAPDU: 80 13 01 00 [14:38:55]Write to MH i2c: E2 08 00 29 94 80 13 01 00 00 00 00 00 3A [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:55]OFD Sender: No OFD packet to send [14:38:55]Read from MH i2c: E2 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 0E 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: E2 0E 00 29 94 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D6 [14:38:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:38:55]wFMCommunicate OK [14:38:55]SAM_PROTO_GetShiftState done [14:38:55]FM_GetShiftState done [14:38:55]req_shift_opened done [14:38:55]requested_item shift.open_date is exist - process it [14:38:55]req_shift_open_date [14:38:55]req_shift_open_date done [14:38:55]produce_requested_data done [14:38:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94919,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:38:55]process_action_free close_receipt [14:38:55]json_value_free [14:38:55]json_value_free done [14:38:55]process_json_proto returns [14:38:55]Send response to host [14:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94919,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:38:55]free response buf [14:38:55]execute_script done [14:38:55]execute_script returns [14:38:55]free content buf [14:38:55]Sock 7.Close socket [14:38:55]Sock 7.Thread stoped [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:45]accept exits with 9 [14:39:45]New connection [14:39:45]New thread 3066871140 created [14:39:45]Thread 3067014500 joined [14:39:45]Waiting for new connection... [14:39:45] Sock 9.Parse request [14:39:45]Sock 9.Check first char [14:39:45]Sock 9.First char is OK [14:39:45]request: POST /json_proto HTTP/1.0 [14:39:45]Method: POST [14:39:45]URL: /json_proto [14:39:45]Method is POST - this is cgi request [14:39:45]url: /json_proto [14:39:45]query_string will be loaded in cgi processing [14:39:45]execute_cgi json_proto POST (null) [14:39:45]execute_cgi path=json_proto method=POST [14:39:45]POST find Content-Length [14:39:45]Host: 172.17.62.67:8080 [14:39:45]Content-Length: 677 [14:39:45]Content-Type: application/json [14:39:45] [14:39:45]POST finish read [14:39:45]Found Content-Length = 677 [14:39:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:39:45]execute_script... [14:39: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)195878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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:39:45]POST & json_proto [14:39:45]process_json_proto [14:39:45]json parsed OK: [14:39:45]protocol is kg_v1.0 [14:39:45]action value=close_receipt [14:39:45]process_action close_receipt [14:39:45]cmd_close_receipt [14:39:45]MH_GetDate [14:39:45]Write to MH i2c: F0 00 00 2A 94 AD [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: F0 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: F0 05 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: F0 05 00 2A 94 00 C0 17 EF 65 DD [14:39:45]GetLastDocTimeStamp 1710167947 [14:39:45]current date 1710168000 [14:39:45]FM_GetShiftState [14:39:45]SAM_PROTO_GetShiftState [14:39:45]wFMCommunicate request_size=4 [14:39:45]MH_SAM_APDU [14:39:45]CAPDU: 80 13 01 00 [14:39:45]Write to MH i2c: E2 08 00 2B 94 80 13 01 00 00 00 00 00 3C [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:45]Read from MH i2c: E2 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 0E 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 0E 00 2B 94 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D8 [14:39:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:39:45]wFMCommunicate OK [14:39:45]SAM_PROTO_GetShiftState done [14:39:45]FM_GetShiftState done [14:39:45]opened in 1710115571 [14:39:45]opened+sec_in_day 1710201971 [14:39:45]quantity*price = 50005 [14:39:45]sum+1 = 50007 [14:39:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 95 11.03.2024 14:40 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94920 ФПД: 64628170130637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T144000&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94920&fm=64628170130637&tin=02508201610067®Number=0000000000090555&sum=50000 [14:39:46]StoreToDocumentArchive [14:39:46]shift 326 fd 94920 [14:39:46]save to /storage/0326/doc_00094920 [14:39:46]save last doc name /storage/0326/doc_00094920 to /storage/kkm_last_doc_name [14:39:46]save OK [14:39:46]Clear old archive folders... [14:39:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:46]tlvbuf is 00248F60 [14:39:46]SAM_PROTO_ClearQueue [14:39:46]wFMCommunicate request_size=4 [14:39:46]MH_SAM_APDU [14:39:46]CAPDU: 80 09 00 00 [14:39:46]Write to MH i2c: E2 08 00 38 94 80 09 00 00 00 00 00 00 3E [14:39:46]Write i2c OK [14:39:46]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:47]Read from MH i2c: E2 03 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 38 94 00 90 00 40 [14:39:47]RAPDU: 90 00 [14:39:47]wFMCommunicate OK [14:39:47]SAM_PROTO_ClearQueue done [14:39:47]KKMCreateOFDPacket [14:39:47]OFDProtocolAddRootSTLVToBuf [14:39:47]FM_MakeSignedData [14:39:47]FM_MakeSignedData [14:39:47]SAM_PROTO_SignData [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 0D 01 02 [14:39:47]Write to MH i2c: E2 08 00 39 94 80 0D 01 02 00 00 00 00 46 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 39 94 00 90 00 41 [14:39:47]RAPDU: 90 00 [14:39:47]wFMCommunicate OK [14:39:47]wFMCommunicate request_size=255 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 C0 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 72 01 00 35 04 06 00 3A [14:39:47]Write to MH i2c: E2 02 01 3A 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 C0 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 72 01 00 35 04 06 00 3A 00 00 35 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 3A 94 00 90 00 42 [14:39:47]RAPDU: 90 00 [14:39:47]wFMCommunicate OK [14:39:47]wFMCommunicate request_size=10 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 0D 02 02 05 C7 6B 1F 84 CD [14:39:47]Write to MH i2c: E2 0D 00 3B 94 80 0D 02 02 05 00 C7 6B 1F 84 CD 00 00 F5 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 3B 94 00 90 00 43 [14:39:47]RAPDU: 90 00 [14:39:47]wFMCommunicate OK [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 0D 03 02 [14:39:47]Write to MH i2c: E2 08 00 3C 94 80 0D 03 02 00 00 00 00 4B [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 0B 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 0B 00 3C 94 00 5C 1B E0 B8 B3 8D C1 96 90 00 F2 [14:39:47]RAPDU: 5C 1B E0 B8 B3 8D C1 96 90 00 [14:39:47]wFMCommunicate OK [14:39:47]SAM_PROTO_SignData done [14:39:47]FM_MakeSignedData done [14:39:47]CreateOFDProtocolMessage [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 11 00 00 [14:39:47]Write to MH i2c: E2 08 00 3D 94 80 11 00 00 00 00 00 00 4B [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 17 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 17 00 3D 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9B [14:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:39:47]wFMCommunicate OK [14:39:47]CreateOFDProtocolMessage done [14:39:47]OFDSenderStorePacket 94920 [14:39:47]StoreOFDPacket docnum=94920 [14:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 45 BC 07 01 E1 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 C0 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 72 01 00 35 04 06 00 3A C7 6B 1F 84 CD 5C 1B E0 B8 B3 8D C1 96 [14:39:47]CheckFolder [14:39:47]dirname=/storage/ofd_packets [14:39:47]CheckFolder done [14:39:47]ProducePacketName [14:39:47]name=ofd_packets/00094920 [14:39:47]NVStorageSaveData ofd_packets/00094920 [14:39:47]File name is /storage/ofd_packets/00094920 [14:39:47]Write 301 bytes [14:39:47]NVStorageSaveData done [14:39:47]OFDSenderStorePacket done [14:39:47]KKMCreateOFDPacket done [14:39:47]NVStorageSaveData kkm_last_timestamp [14:39:47]File name is /storage/kkm_last_timestamp [14:39:47]Write 4 bytes [14:39:47]NVStorageSaveData done [14:39:47]ExternCall_PrintAddStr [14:39:47]wPrintStart [14:39:47]Write to MH i2c: 01 00 00 3E 94 D2 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: 01 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: 01 07 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: 01 07 00 3E 94 00 80 00 00 00 FF 0F 67 [14:39:47]RasterBufferAndPrint [14:39:47]line Счет N : (1)195878 [14:39:47]line ИНН: 02508201610067 [14:39:47]line Контрольно-Кассовый Чек [14:39:47]line ПРОДАЖА [14:39:47]line ТРК (МРК, ГНК) : 12 [14:39:47]line Товар: 2710124130 [14:39:47]line Аи-92-К-5 [14:39:47]line 7.950 * 62.90 [14:39:47]line = 500.06 [14:39:47]line НДС 12% НСП 1% [14:39:47]line > о реализуемом товаре [14:39:47]line ОКРУГЛЕНИЕ: -0.06 [14:39:47]line ИТОГО: 500.00 [14:39:47]line Внесено: 500.00 [14:39:47]line СДАЧА: 0.00 [14:39:47]line НСП 1% : 4.42 [14:39:47]line НДС 12% : 53.10 [14:39:47]line Наличными: 500.00 [14:39:47]line Безнал.: 0.00 [14:39:47]line Место: АЗС № 6 "Партнер Нефть" [14:39:47]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:39:47]line СНО: Общий режим [14:39:47]line Чек 95 11.03.2024 14:40 [14:39:47]line Смена: 326 ФФД: 1.0 [14:39:47]line ЗНМ: 0300000009 [14:39:47]line РНМ: 0000000000090555 [14:39:47]line Версия ККМ: 001 [14:39:47]line ФМ: 0000000000874811 [14:39:47]line ФД: 94920 [14:39:47]line ФПД: 64628170130637 [14:39:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T144000&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94920&fm=64628170130637&tin=02508201610067®Number=0000000000090555&sum=50000 [14:39:47]written 0, free lines is 4095 [14:39:47]OFD Sender: Processing packet 94920 [packets to send 30, broken 29] [14:39:47]ProducePacketName [14:39:47]name=ofd_packets/00094920 [14:39:47]OFD Sender: To server: pG, [14:39:47]CommunicateWithHost lk.salyk.kg:30040 [14:39:47]ConnectInit lk.salyk.kg [14:39:47]Connected sock=10 [14:39: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 31 31 0F 01 00 00 45 BC 07 01 E1 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 C0 17 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 72 01 00 35 04 06 00 3A C7 6B 1F 84 CD 5C 1B E0 B8 B3 8D C1 96 [14:39: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 31 31 4F 00 00 00 21 A6 47 00 7C 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 31 31 10 04 04 00 C8 72 01 00 F4 03 04 00 19 C3 EE 65 B6 04 01 00 00 F7 29 43 04 04 3B A1 6B [14:39:48]CommunicateWithHost err = 0 [14:39:48]CheckOFDResponse [14:39:48]1017 (14) - 77093643461234 [14:39:48]1041 (16) - 0000000000874811 [14:39:48]1040 (4) - 94920 [14:39:48]1012 (4) - 11.03.2024 08:38 [14:39:48]1206 (1) - 0 [14:39:48]OFD Sender: Remove packet 94920 [14:39:48]ProducePacketName [14:39:48]name=ofd_packets/00094920 [14:39:48]NVStorageDeleteData [14:39:48]Write to MH i2c: 01 00 00 69 94 FD [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: 01 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: 01 07 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: 01 07 00 69 94 00 80 00 00 00 4D 0D DE [14:39:48]RasterBufferAndPrint [14:39:48]line [14:39:48]line [14:39:48]line [14:39:48]line [14:39:48]line [14:39:48]written 0, free lines is 3413 [14:39:48]process_action close_receipt done [14:39:48]requested_data is exist [14:39:48]produce_requested_data [14:39:48]requested_item fm.sn is exist - process it [14:39:48]wFMCommunicate request_size=4 [14:39:48]MH_SAM_APDU [14:39:48]CAPDU: 80 11 00 00 [14:39:48]Write to MH i2c: E2 08 00 70 94 80 11 00 00 00 00 00 00 7E [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:48]Read from MH i2c: E2 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 17 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 17 00 70 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CE [14:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:39:48]wFMCommunicate OK [14:39:48]requested_item fd.num is exist - process it [14:39:48]SAM_PROTO_GetFieldsCounters [14:39:48]wFMCommunicate request_size=4 [14:39:48]MH_SAM_APDU [14:39:48]CAPDU: 80 13 00 00 [14:39:48]Write to MH i2c: E2 08 00 71 94 80 13 00 00 00 00 00 00 81 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:48]Read from MH i2c: E2 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 62 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 62 00 71 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C8 72 01 00 0E 04 04 00 46 01 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 3D [14:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C8 72 01 00 0E 04 04 00 46 01 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 [14:39:48]wFMCommunicate OK [14:39:48]SAM_PROTO_GetFieldsCounters done [14:39:48]requested_item shift.num is exist - process it [14:39:48]requested_item shift.opened is exist - process it [14:39:48]req_shift_opened [14:39:48]FM_GetShiftState [14:39:48]SAM_PROTO_GetShiftState [14:39:48]wFMCommunicate request_size=4 [14:39:48]MH_SAM_APDU [14:39:48]CAPDU: 80 13 01 00 [14:39:48]Write to MH i2c: E2 08 00 72 94 80 13 01 00 00 00 00 00 83 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]OFD Sender: No OFD packet to send [14:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:48]Read from MH i2c: E2 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 0E 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 0E 00 72 94 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 1F [14:39:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:39:48]wFMCommunicate OK [14:39:48]SAM_PROTO_GetShiftState done [14:39:48]FM_GetShiftState done [14:39:48]req_shift_opened done [14:39:48]requested_item shift.open_date is exist - process it [14:39:48]req_shift_open_date [14:39:48]req_shift_open_date done [14:39:48]produce_requested_data done [14:39:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94920,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:39:48]process_action_free close_receipt [14:39:48]json_value_free [14:39:48]json_value_free done [14:39:48]process_json_proto returns [14:39:48]Send response to host [14:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94920,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:39:48]free response buf [14:39:48]execute_script done [14:39:48]execute_script returns [14:39:48]free content buf [14:39:48]Sock 9.Close socket [14:39:48]Sock 9.Thread stoped [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:02]accept exits with 7 [14:41:02]New connection [14:41:02]New thread 3067014500 created [14:41:02]Thread 3066871140 joined [14:41:02]Waiting for new connection... [14:41:02] Sock 7.Parse request [14:41:02]Sock 7.Check first char [14:41:02]Sock 7.First char is OK [14:41:02]request: POST /json_proto HTTP/1.0 [14:41:02]Method: POST [14:41:02]URL: /json_proto [14:41:02]Method is POST - this is cgi request [14:41:02]url: /json_proto [14:41:02]query_string will be loaded in cgi processing [14:41:02]execute_cgi json_proto POST (null) [14:41:02]execute_cgi path=json_proto method=POST [14:41:02]POST find Content-Length [14:41:02]Host: 172.17.62.67:8080 [14:41:02]Content-Length: 677 [14:41:02]Content-Type: application/json [14:41:02] [14:41:02]POST finish read [14:41:02]Found Content-Length = 677 [14:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.000, "sum" : 440.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:02]execute_script... [14:41:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.000, "sum" : 440.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:02]POST & json_proto [14:41:02]process_json_proto [14:41:02]json parsed OK: [14:41:02]protocol is kg_v1.0 [14:41:02]action value=close_receipt [14:41:02]process_action close_receipt [14:41:02]cmd_close_receipt [14:41:02]MH_GetDate [14:41:02]Write to MH i2c: F0 00 00 73 94 F6 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: F0 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: F0 05 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: F0 05 00 73 94 00 0D 18 EF 65 74 [14:41:02]GetLastDocTimeStamp 1710168000 [14:41:02]current date 1710168077 [14:41:02]FM_GetShiftState [14:41:02]SAM_PROTO_GetShiftState [14:41:02]wFMCommunicate request_size=4 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 13 01 00 [14:41:02]Write to MH i2c: E2 08 00 74 94 80 13 01 00 00 00 00 00 85 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 0E 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 0E 00 74 94 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 21 [14:41:02]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:41:02]wFMCommunicate OK [14:41:02]SAM_PROTO_GetShiftState done [14:41:02]FM_GetShiftState done [14:41:02]opened in 1710115571 [14:41:02]opened+sec_in_day 1710201971 [14:41:02]quantity*price = 44030 [14:41:02]sum+1 = 44031 [14:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.76 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 96 11.03.2024 14:41 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94921 ФПД: 225896454215458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T144117&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94921&fm=225896454215458&tin=02508201610067®Number=0000000000090555&sum=44000 [14:41:04]StoreToDocumentArchive [14:41:04]shift 326 fd 94921 [14:41:04]save to /storage/0326/doc_00094921 [14:41:04]save last doc name /storage/0326/doc_00094921 to /storage/kkm_last_doc_name [14:41:04]save OK [14:41:04]Clear old archive folders... [14:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:04]tlvbuf is 0031E270 [14:41:04]SAM_PROTO_ClearQueue [14:41:04]wFMCommunicate request_size=4 [14:41:04]MH_SAM_APDU [14:41:04]CAPDU: 80 09 00 00 [14:41:04]Write to MH i2c: E2 08 00 81 94 80 09 00 00 00 00 00 00 87 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:04]Read from MH i2c: E2 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 03 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 03 00 81 94 00 90 00 89 [14:41:04]RAPDU: 90 00 [14:41:04]wFMCommunicate OK [14:41:04]SAM_PROTO_ClearQueue done [14:41:04]KKMCreateOFDPacket [14:41:04]OFDProtocolAddRootSTLVToBuf [14:41:04]FM_MakeSignedData [14:41:04]FM_MakeSignedData [14:41:04]SAM_PROTO_SignData [14:41:04]wFMCommunicate request_size=4 [14:41:04]MH_SAM_APDU [14:41:04]CAPDU: 80 0D 01 02 [14:41:04]Write to MH i2c: E2 08 00 82 94 80 0D 01 02 00 00 00 00 8F [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:04]Read from MH i2c: E2 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 03 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 03 00 82 94 00 90 00 8A [14:41:04]RAPDU: 90 00 [14:41:04]wFMCommunicate OK [14:41:04]wFMCommunicate request_size=255 [14:41:04]MH_SAM_APDU [14:41:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FE AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0D 18 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 72 01 00 35 04 06 00 CD [14:41:04]Write to MH i2c: E2 02 01 83 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FE AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0D 18 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 72 01 00 35 04 06 00 CD 00 00 77 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 [14:41:04]MH_I2C_Read... [14:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:04]Read from MH i2c: E2 03 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 03 00 83 94 00 90 00 8B [14:41:04]RAPDU: 90 00 [14:41:04]wFMCommunicate OK [14:41:04]wFMCommunicate request_size=10 [14:41:04]MH_SAM_APDU [14:41:04]CAPDU: 80 0D 02 02 05 73 9D E8 D7 22 [14:41:04]Write to MH i2c: E2 0D 00 84 94 80 0D 02 02 05 00 73 9D E8 D7 22 00 00 8D [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:04]Read from MH i2c: E2 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 03 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 03 00 84 94 00 90 00 8C [14:41:04]RAPDU: 90 00 [14:41:04]wFMCommunicate OK [14:41:04]wFMCommunicate request_size=4 [14:41:04]MH_SAM_APDU [14:41:04]CAPDU: 80 0D 03 02 [14:41:04]Write to MH i2c: E2 08 00 85 94 80 0D 03 02 00 00 00 00 94 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:04]Read from MH i2c: E2 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 0B 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 0B 00 85 94 00 A8 04 AA 7C BF 4F F4 B8 90 00 21 [14:41:04]RAPDU: A8 04 AA 7C BF 4F F4 B8 90 00 [14:41:04]wFMCommunicate OK [14:41:04]SAM_PROTO_SignData done [14:41:04]FM_MakeSignedData done [14:41:04]CreateOFDProtocolMessage [14:41:04]wFMCommunicate request_size=4 [14:41:04]MH_SAM_APDU [14:41:04]CAPDU: 80 11 00 00 [14:41:04]Write to MH i2c: E2 08 00 86 94 80 11 00 00 00 00 00 00 94 [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:04]Read from MH i2c: E2 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 17 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: E2 17 00 86 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E4 [14:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:41:04]wFMCommunicate OK [14:41:04]CreateOFDProtocolMessage done [14:41:04]OFDSenderStorePacket 94921 [14:41:04]StoreOFDPacket docnum=94921 [14:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1D 5A 07 01 EB 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FE AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0D 18 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 72 01 00 35 04 06 00 CD 73 9D E8 D7 22 A8 04 AA 7C BF 4F F4 B8 [14:41:04]CheckFolder [14:41:04]dirname=/storage/ofd_packets [14:41:04]CheckFolder done [14:41:04]ProducePacketName [14:41:04]name=ofd_packets/00094921 [14:41:04]NVStorageSaveData ofd_packets/00094921 [14:41:04]File name is /storage/ofd_packets/00094921 [14:41:04]Write 301 bytes [14:41:04]NVStorageSaveData done [14:41:04]OFDSenderStorePacket done [14:41:04]KKMCreateOFDPacket done [14:41:04]NVStorageSaveData kkm_last_timestamp [14:41:04]File name is /storage/kkm_last_timestamp [14:41:04]Write 4 bytes [14:41:04]NVStorageSaveData done [14:41:04]ExternCall_PrintAddStr [14:41:04]wPrintStart [14:41:04]Write to MH i2c: 01 00 00 87 94 1B [14:41:04]Write i2c OK [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 07 00 [14:41:04]MH_I2C_Read... [14:41:04]Read from MH i2c: 01 07 00 87 94 00 80 00 00 00 FF 0F B0 [14:41:04]RasterBufferAndPrint [14:41:04]line Счет N : (1)195879 [14:41:04]line ИНН: 02508201610067 [14:41:04]line Контрольно-Кассовый Чек [14:41:04]line ПРОДАЖА [14:41:04]line ТРК (МРК, ГНК) : 32 [14:41:04]line Товар: 2710124130 [14:41:04]line Аи-92-К-5 [14:41:04]line 7.000 * 62.90 [14:41:04]line = 440.30 [14:41:04]line НДС 12% НСП 1% [14:41:04]line > о реализуемом товаре [14:41:04]line ОКРУГЛЕНИЕ: -0.30 [14:41:04]line ИТОГО: 440.00 [14:41:04]line Внесено: 440.00 [14:41:04]line СДАЧА: 0.00 [14:41:04]line НСП 1% : 3.90 [14:41:04]line НДС 12% : 46.76 [14:41:04]line Наличными: 440.00 [14:41:04]line Безнал.: 0.00 [14:41:04]line Место: АЗС № 6 "Партнер Нефть" [14:41:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:41:04]line СНО: Общий режим [14:41:04]line Чек 96 11.03.2024 14:41 [14:41:04]line Смена: 326 ФФД: 1.0 [14:41:04]line ЗНМ: 0300000009 [14:41:04]line РНМ: 0000000000090555 [14:41:04]line Версия ККМ: 001 [14:41:04]line ФМ: 0000000000874811 [14:41:04]line ФД: 94921 [14:41:04]line ФПД: 225896454215458 [14:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T144117&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94921&fm=225896454215458&tin=02508201610067®Number=0000000000090555&sum=44000 [14:41:04]OFD Sender: Processing packet 94921 [packets to send 30, broken 29] [14:41:04]ProducePacketName [14:41:04]name=ofd_packets/00094921 [14:41:04]OFD Sender: To server: pG, [14:41:04]CommunicateWithHost lk.salyk.kg:30040 [14:41:04]ConnectInit lk.salyk.kg [14:41:04]written 0, free lines is 4095 [14:41:04]Connected sock=10 [14:41: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 31 31 0F 01 00 00 1D 5A 07 01 EB 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 FE AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0D 18 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 72 01 00 35 04 06 00 CD 73 9D E8 D7 22 A8 04 AA 7C BF 4F F4 B8 [14:41: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 31 31 4F 00 00 00 EE 3A 47 00 6B 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 31 31 10 04 04 00 C9 72 01 00 F4 03 04 00 66 C3 EE 65 B6 04 01 00 00 70 7E 04 1B 21 58 4D 88 [14:41:05]CommunicateWithHost err = 0 [14:41:05]CheckOFDResponse [14:41:05]1017 (14) - 77093643461234 [14:41:05]1041 (16) - 0000000000874811 [14:41:05]1040 (4) - 94921 [14:41:05]1012 (4) - 11.03.2024 08:40 [14:41:05]1206 (1) - 0 [14:41:05]OFD Sender: Remove packet 94921 [14:41:05]ProducePacketName [14:41:05]name=ofd_packets/00094921 [14:41:05]NVStorageDeleteData [14:41:05]Write to MH i2c: 01 00 00 B2 94 46 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: 01 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: 01 07 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: 01 07 00 B2 94 00 80 00 00 00 59 0D 33 [14:41:05]RasterBufferAndPrint [14:41:05]line [14:41:05]line [14:41:05]line [14:41:05]line [14:41:05]line [14:41:05]written 0, free lines is 3423 [14:41:05]process_action close_receipt done [14:41:05]requested_data is exist [14:41:05]produce_requested_data [14:41:05]requested_item fm.sn is exist - process it [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 11 00 00 [14:41:05]Write to MH i2c: E2 08 00 B9 94 80 11 00 00 00 00 00 00 C7 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 17 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 17 00 B9 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 17 [14:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:41:05]wFMCommunicate OK [14:41:05]requested_item fd.num is exist - process it [14:41:05]SAM_PROTO_GetFieldsCounters [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 13 00 00 [14:41:05]Write to MH i2c: E2 08 00 BA 94 80 13 00 00 00 00 00 00 CA [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 62 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 62 00 BA 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C9 72 01 00 0E 04 04 00 46 01 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 8A [14:41: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C9 72 01 00 0E 04 04 00 46 01 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 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_GetFieldsCounters done [14:41:05]requested_item shift.num is exist - process it [14:41:05]requested_item shift.opened is exist - process it [14:41:05]req_shift_opened [14:41:05]FM_GetShiftState [14:41:05]SAM_PROTO_GetShiftState [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 13 01 00 [14:41:05]Write to MH i2c: E2 08 00 BB 94 80 13 01 00 00 00 00 00 CC [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 0E 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 0E 00 BB 94 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 68 [14:41:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_GetShiftState done [14:41:05]FM_GetShiftState done [14:41:05]req_shift_opened done [14:41:05]requested_item shift.open_date is exist - process it [14:41:05]req_shift_open_date [14:41:05]req_shift_open_date done [14:41:05]produce_requested_data done [14:41:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94921,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:41:05]process_action_free close_receipt [14:41:05]json_value_free [14:41:05]json_value_free done [14:41:05]process_json_proto returns [14:41:05]Send response to host [14:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94921,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:41:05]free response buf [14:41:05]execute_script done [14:41:05]execute_script returns [14:41:05]free content buf [14:41:05]Sock 7.Close socket [14:41:05]Sock 7.Thread stoped [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:21]accept exits with 9 [14:43:21]New connection [14:43:21]New thread 3066871140 created [14:43:21]Thread 3067014500 joined [14:43:21]Waiting for new connection... [14:43:21] Sock 9.Parse request [14:43:21]Sock 9.Check first char [14:43:21]Sock 9.First char is OK [14:43:21]request: POST /json_proto HTTP/1.0 [14:43:21]Method: POST [14:43:21]URL: /json_proto [14:43:21]Method is POST - this is cgi request [14:43:21]url: /json_proto [14:43:21]query_string will be loaded in cgi processing [14:43:21]execute_cgi json_proto POST (null) [14:43:21]execute_cgi path=json_proto method=POST [14:43:21]POST find Content-Length [14:43:21]Host: 172.17.62.67:8080 [14:43:21]Content-Length: 1193 [14:43:21]Content-Type: application/json [14:43:21] [14:43:21]POST finish read [14:43:21]Found Content-Length = 1193 [14:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195880\u000A11.03.2024 14:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81743\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:21]execute_script... [14:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195880\u000A11.03.2024 14:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81743\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:21]POST & json_proto [14:43:21]process_json_proto [14:43:21]json parsed OK: [14:43:21]protocol is kg_v1.0 [14:43:21]action value=print_text [14:43:21]process_action print_text [14:43:21]cmd_print_text [14:43:21]ExternCall_PrintAddStr [14:43:21]wPrintStart [14:43:21]Write to MH i2c: 01 00 00 BC 94 50 [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 07 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 07 00 BC 94 00 80 00 00 00 FF 0F E5 [14:43:21]RasterBufferAndPrint [14:43:21]line *****ТОВАРНЫЙ ЧЕК***** [14:43:21]line АЗС 6 [14:43:21]line Партнер нефть [14:43:21]line 02508201610067 [14:43:21]line Кассир : Карыбаев Б. [14:43:21]line Счет N : (1)195880 [14:43:21]line 11.03.2024 14:37 [14:43:21]line ПРОДАЖА [14:43:21]line ТРК (МРК, ГНК): 12 [14:43:21]line Вид ГСМ : 2710124130 [14:43:21]line Аи-92-К-5 [14:43:21]line 30.000 x 62.90 [14:43:21]line ИТОГ: 1887.00 [14:43:21]line Тип оплаты: Талоны: Топливная Карта [14:43:21]line 81743 [14:43:21]line ______________________ [14:43:21]line (подпись) [14:43:21]written 0, free lines is 4095 [14:43:21]Write to MH i2c: 01 00 00 D0 94 64 [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 07 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: 01 07 00 D0 94 00 80 00 00 00 64 0E 5D [14:43:21]RasterBufferAndPrint [14:43:21]line [14:43:21]line [14:43:21]line [14:43:21]line [14:43:21]line [14:43:21]written 0, free lines is 3688 [14:43:21]process_action print_text done [14:43:21]requested_data is exist [14:43:21]produce_requested_data [14:43:21]requested_item fm.sn is exist - process it [14:43:21]wFMCommunicate request_size=4 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 11 00 00 [14:43:21]Write to MH i2c: E2 08 00 D7 94 80 11 00 00 00 00 00 00 E5 [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 17 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 17 00 D7 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 35 [14:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:43:21]wFMCommunicate OK [14:43:21]requested_item fd.num is exist - process it [14:43:21]SAM_PROTO_GetFieldsCounters [14:43:21]wFMCommunicate request_size=4 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 13 00 00 [14:43:21]Write to MH i2c: E2 08 00 D8 94 80 13 00 00 00 00 00 00 E8 [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 62 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 62 00 D8 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C9 72 01 00 0E 04 04 00 46 01 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 A8 [14:43: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C9 72 01 00 0E 04 04 00 46 01 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 [14:43:21]wFMCommunicate OK [14:43:21]SAM_PROTO_GetFieldsCounters done [14:43:21]requested_item shift.num is exist - process it [14:43:21]requested_item shift.opened is exist - process it [14:43:21]req_shift_opened [14:43:21]FM_GetShiftState [14:43:21]SAM_PROTO_GetShiftState [14:43:21]wFMCommunicate request_size=4 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 13 01 00 [14:43:21]Write to MH i2c: E2 08 00 D9 94 80 13 01 00 00 00 00 00 EA [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 0E 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 0E 00 D9 94 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 86 [14:43:21]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:43:21]wFMCommunicate OK [14:43:21]SAM_PROTO_GetShiftState done [14:43:21]FM_GetShiftState done [14:43:21]req_shift_opened done [14:43:21]requested_item shift.open_date is exist - process it [14:43:21]req_shift_open_date [14:43:21]req_shift_open_date done [14:43:21]produce_requested_data done [14:43:21]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94921,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:43:21]process_action_free print_text [14:43:21]json_value_free [14:43:21]json_value_free done [14:43:21]process_json_proto returns [14:43:21]Send response to host [14:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94921,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:43:21]free response buf [14:43:21]execute_script done [14:43:21]execute_script returns [14:43:21]free content buf [14:43:21]Sock 9.Close socket [14:43:21]Sock 9.Thread stoped [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:11]int [14:47:11]Write to MH i2c: 01 00 00 DA 94 6E [14:47:11]Write i2c OK [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: 01 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: 01 07 00 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: 01 07 00 DA 94 00 88 00 00 00 FF 0F 0B [14:47:11]state=0 [14:47:11]Key pressed [14:47:11]Feed [14:47:11]Write to MH i2c: D8 00 00 DB 94 46 [14:47:11]Write i2c OK [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: D8 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: D8 01 00 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: D8 01 00 DB 94 00 47 [14:47:11]int [14:47:11]Write to MH i2c: 01 00 00 DC 94 70 [14:47:11]Write i2c OK [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: 01 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: 01 07 00 [14:47:11]MH_I2C_Read... [14:47:11]Read from MH i2c: 01 07 00 DC 94 00 80 00 00 00 F5 0F FB [14:47:11]state=2 [14:47:11]Stop feed [14:47:12]int [14:47:12]Write to MH i2c: 01 00 00 DD 94 71 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 DD 94 00 88 00 00 00 FF 0F 0E [14:47:12]state=0 [14:47:12]Key pressed [14:47:12]Feed [14:47:12]Write to MH i2c: D8 00 00 DE 94 49 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 01 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 01 00 DE 94 00 4A [14:47:12]int [14:47:12]Write to MH i2c: 01 00 00 DF 94 73 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 DF 94 00 80 00 00 00 F5 0F FE [14:47:12]state=2 [14:47:12]Stop feed [14:47:12]int [14:47:12]Write to MH i2c: 01 00 00 E0 94 74 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 E0 94 00 88 00 00 00 FF 0F 11 [14:47:12]state=0 [14:47:12]Key pressed [14:47:12]Feed [14:47:12]Write to MH i2c: D8 00 00 E1 94 4C [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 01 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 01 00 E1 94 00 4D [14:47:12]int [14:47:12]Write to MH i2c: 01 00 00 E2 94 76 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 E2 94 00 80 00 00 00 F5 0F 01 [14:47:12]state=2 [14:47:12]Stop feed [14:47:12]int [14:47:12]Write to MH i2c: 01 00 00 E3 94 77 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 E3 94 00 88 00 00 00 FF 0F 14 [14:47:12]state=0 [14:47:12]Key pressed [14:47:12]Feed [14:47:12]Write to MH i2c: D8 00 00 E4 94 4F [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 01 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: D8 01 00 E4 94 00 50 [14:47:12]int [14:47:12]Write to MH i2c: 01 00 00 E5 94 79 [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: 01 07 00 E5 94 00 80 00 00 00 F5 0F 04 [14:47:12]state=2 [14:47:12]Stop feed [14:47:13]int [14:47:13]Write to MH i2c: 01 00 00 E6 94 7A [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 E6 94 00 88 00 00 00 FC 0F 14 [14:47:13]state=0 [14:47:13]Key pressed [14:47:13]Feed [14:47:13]Write to MH i2c: D8 00 00 E7 94 52 [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D8 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D8 01 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D8 01 00 E7 94 00 53 [14:47:13]int [14:47:13]Write to MH i2c: 01 00 00 E8 94 7C [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 E8 94 00 80 00 00 00 FF 0F 11 [14:47:13]state=2 [14:47:13]Stop feed [14:47:13]int [14:47:13]Write to MH i2c: 01 00 00 E9 94 7D [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 E9 94 00 88 00 00 00 FF 0F 1A [14:47:13]state=0 [14:47:13]Key pressed [14:47:13]Feed [14:47:13]Write to MH i2c: D8 00 00 EA 94 55 [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D8 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D8 01 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: D8 01 00 EA 94 00 56 [14:47:13]int [14:47:13]Write to MH i2c: 01 00 00 EB 94 7F [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 EB 94 00 80 00 00 00 F5 0F 0A [14:47:13]state=2 [14:47:13]Stop feed [14:47:14]int [14:47:14]Write to MH i2c: 01 00 00 EC 94 80 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 EC 94 00 88 00 00 00 FF 0F 1D [14:47:14]state=0 [14:47:14]Key pressed [14:47:14]Feed [14:47:14]Write to MH i2c: D8 00 00 ED 94 58 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: D8 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: D8 01 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: D8 01 00 ED 94 00 59 [14:47:14]int [14:47:14]Write to MH i2c: 01 00 00 EE 94 82 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 EE 94 00 80 00 00 00 F5 0F 0D [14:47:14]state=2 [14:47:14]Stop feed [14:47:14]int [14:47:14]Write to MH i2c: 01 00 00 EF 94 83 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 EF 94 00 88 00 00 00 FF 0F 20 [14:47:14]state=0 [14:47:14]Key pressed [14:47:14]Feed [14:47:14]Write to MH i2c: D8 00 00 F0 94 5B [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: D8 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: D8 01 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: D8 01 00 F0 94 00 5C [14:47:14]int [14:47:14]Write to MH i2c: 01 00 00 F1 94 85 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 F1 94 00 80 00 00 00 F5 0F 10 [14:47:14]state=2 [14:47:14]Stop feed [14:47:15]int [14:47:15]Write to MH i2c: 01 00 00 F2 94 86 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 F2 94 00 88 00 00 00 F6 0F 1A [14:47:15]state=0 [14:47:15]Key pressed [14:47:15]Feed [14:47:15]Write to MH i2c: D8 00 00 F3 94 5E [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D8 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D8 01 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D8 01 00 F3 94 00 5F [14:47:15]int [14:47:15]Write to MH i2c: 01 00 00 F4 94 88 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 F4 94 00 80 00 00 00 FF 0F 1D [14:47:15]state=2 [14:47:15]Stop feed [14:47:15]int [14:47:15]Write to MH i2c: 01 00 00 F5 94 89 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 F5 94 00 88 00 00 00 FF 0F 26 [14:47:15]state=0 [14:47:15]Key pressed [14:47:15]Feed [14:47:15]Write to MH i2c: D8 00 00 F6 94 61 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D8 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D8 01 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D8 01 00 F6 94 00 62 [14:47:15]int [14:47:15]Write to MH i2c: 01 00 00 F7 94 8B [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 F7 94 00 80 00 00 00 F5 0F 16 [14:47:15]state=2 [14:47:15]Stop feed [14:47:16]OFD Sender: No OFD packet to send [14:47:16]int [14:47:16]Write to MH i2c: 01 00 00 F8 94 8C [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 F8 94 00 88 00 00 00 FF 0F 29 [14:47:16]state=0 [14:47:16]Key pressed [14:47:16]Feed [14:47:16]Write to MH i2c: D8 00 00 F9 94 64 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D8 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D8 01 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D8 01 00 F9 94 00 65 [14:47:16]int [14:47:16]Write to MH i2c: 01 00 00 FA 94 8E [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 FA 94 00 80 00 00 00 F5 0F 19 [14:47:16]state=2 [14:47:16]Stop feed [14:47:16]int [14:47:16]Write to MH i2c: 01 00 00 FB 94 8F [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 FB 94 00 88 00 00 00 FF 0F 2C [14:47:16]state=0 [14:47:16]Key pressed [14:47:16]Feed [14:47:16]Write to MH i2c: D8 00 00 FC 94 67 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D8 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D8 01 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D8 01 00 FC 94 00 68 [14:47:16]int [14:47:16]Write to MH i2c: 01 00 00 FD 94 91 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 FD 94 00 80 00 00 00 F5 0F 1C [14:47:16]state=2 [14:47:16]Stop feed [14:47:17]int [14:47:17]Write to MH i2c: 01 00 00 FE 94 92 [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 FE 94 00 88 00 00 00 FF 0F 2F [14:47:17]state=0 [14:47:17]Key pressed [14:47:17]Feed [14:47:17]Write to MH i2c: D8 00 00 FF 94 6A [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D8 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D8 01 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D8 01 00 FF 94 00 6B [14:47:17]int [14:47:17]Write to MH i2c: 01 00 00 00 95 95 [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 00 95 00 80 00 00 00 F5 0F 20 [14:47:17]state=2 [14:47:17]Stop feed [14:47:17]int [14:47:17]Write to MH i2c: 01 00 00 01 95 96 [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 01 95 00 88 00 00 00 FF 0F 33 [14:47:17]state=0 [14:47:17]Key pressed [14:47:17]Feed [14:47:17]Write to MH i2c: D8 00 00 02 95 6E [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D8 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D8 01 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D8 01 00 02 95 00 6F [14:47:17]int [14:47:17]Write to MH i2c: 01 00 00 03 95 98 [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 03 95 00 80 00 00 00 F5 0F 23 [14:47:17]state=2 [14:47:17]Stop feed [14:47:18]int [14:47:18]Write to MH i2c: 01 00 00 04 95 99 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 04 95 00 88 00 00 00 FF 0F 36 [14:47:18]state=0 [14:47:18]Key pressed [14:47:18]Feed [14:47:18]Write to MH i2c: D8 00 00 05 95 71 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: D8 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: D8 01 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: D8 01 00 05 95 00 72 [14:47:18]int [14:47:18]Write to MH i2c: 01 00 00 06 95 9B [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 06 95 00 80 00 00 00 F5 0F 26 [14:47:18]state=2 [14:47:18]Stop feed [14:47:18]int line is 0 - check status [14:47:18]Write to MH i2c: 01 00 00 07 95 9C [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 07 95 00 88 00 00 00 F5 0F 2F [14:47:18]state=0 [14:47:18]Key pressed [14:47:18]Feed [14:47:18]Write to MH i2c: D8 00 00 08 95 74 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: D8 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: D8 01 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: D8 01 00 08 95 00 75 [14:47:18]int [14:47:18]Write to MH i2c: 01 00 00 09 95 9E [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 09 95 00 88 00 00 00 F5 0F 31 [14:47:18]state=2 [14:47:18]Key pressed [14:47:18]int [14:47:18]Write to MH i2c: 01 00 00 0A 95 9F [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: 01 07 00 0A 95 00 80 00 00 00 F5 0F 2A [14:47:18]state=2 [14:47:18]Stop feed [14:47:19]int [14:47:19]Write to MH i2c: 01 00 00 0B 95 A0 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 0B 95 00 88 00 00 00 FF 0F 3D [14:47:19]state=0 [14:47:19]Key pressed [14:47:19]Feed [14:47:19]Write to MH i2c: D8 00 00 0C 95 78 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D8 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D8 01 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D8 01 00 0C 95 00 79 [14:47:19]int [14:47:19]Write to MH i2c: 01 00 00 0D 95 A2 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 0D 95 00 80 00 00 00 F5 0F 2D [14:47:19]state=2 [14:47:19]Stop feed [14:47:20]int [14:47:20]Write to MH i2c: 01 00 00 0E 95 A3 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 0E 95 00 88 00 00 00 FF 0F 40 [14:47:20]state=0 [14:47:20]Key pressed [14:47:20]Feed [14:47:20]Write to MH i2c: D8 00 00 0F 95 7B [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 01 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 01 00 0F 95 00 7C [14:47:20]int [14:47:20]Write to MH i2c: 01 00 00 10 95 A5 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 10 95 00 80 00 00 00 F5 0F 30 [14:47:20]state=2 [14:47:20]Stop feed [14:47:20]int line is 0 - check status [14:47:20]Write to MH i2c: 01 00 00 11 95 A6 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 11 95 00 88 00 00 00 F5 0F 39 [14:47:20]state=0 [14:47:20]Key pressed [14:47:20]Feed [14:47:20]Write to MH i2c: D8 00 00 12 95 7E [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 01 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 01 00 12 95 00 7F [14:47:20]int [14:47:20]Write to MH i2c: 01 00 00 13 95 A8 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 13 95 00 88 00 00 00 F5 0F 3B [14:47:20]state=2 [14:47:20]Key pressed [14:47:20]int [14:47:20]Write to MH i2c: 01 00 00 14 95 A9 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 14 95 00 80 00 00 00 F5 0F 34 [14:47:20]state=2 [14:47:20]Stop feed [14:47:20]int [14:47:20]Write to MH i2c: 01 00 00 15 95 AA [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 15 95 00 88 00 00 00 FF 0F 47 [14:47:20]state=0 [14:47:20]Key pressed [14:47:20]Feed [14:47:20]Write to MH i2c: D8 00 00 16 95 82 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 01 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: D8 01 00 16 95 00 83 [14:47:20]int [14:47:20]Write to MH i2c: 01 00 00 17 95 AC [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: 01 07 00 17 95 00 80 00 00 00 F5 0F 37 [14:47:20]state=2 [14:47:20]Stop feed [14:47:21]OFD Sender: No OFD packet to send [14:47:21]int [14:47:21]Write to MH i2c: 01 00 00 18 95 AD [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: 01 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: 01 07 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: 01 07 00 18 95 00 88 00 00 00 FF 0F 4A [14:47:21]state=0 [14:47:21]Key pressed [14:47:21]Feed [14:47:21]Write to MH i2c: D8 00 00 19 95 85 [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: D8 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: D8 01 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: D8 01 00 19 95 00 86 [14:47:21]int [14:47:21]Write to MH i2c: 01 00 00 1A 95 AF [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: 01 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: 01 07 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: 01 07 00 1A 95 00 80 00 00 00 F5 0F 3A [14:47:21]state=2 [14:47:21]Stop feed [14:47:23]int [14:47:23]Write to MH i2c: 01 00 00 1B 95 B0 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 1B 95 00 88 00 00 00 FF 0F 4D [14:47:23]state=0 [14:47:23]Key pressed [14:47:23]Feed [14:47:23]Write to MH i2c: D8 00 00 1C 95 88 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D8 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D8 01 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D8 01 00 1C 95 00 89 [14:47:23]int [14:47:23]Write to MH i2c: 01 00 00 1D 95 B2 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 1D 95 00 80 00 00 00 F6 0F 3E [14:47:23]state=2 [14:47:23]Stop feed [14:47:23]int [14:47:23]Write to MH i2c: 01 00 00 1E 95 B3 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 1E 95 00 88 00 00 00 FF 0F 50 [14:47:23]state=0 [14:47:23]Key pressed [14:47:23]Feed [14:47:23]Write to MH i2c: D8 00 00 1F 95 8B [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D8 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D8 01 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D8 01 00 1F 95 00 8C [14:47:24]int [14:47:24]Write to MH i2c: 01 00 00 20 95 B5 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 07 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 07 00 20 95 00 80 00 00 00 FF 0F 4A [14:47:24]state=2 [14:47:24]Stop feed [14:47:24]int [14:47:24]Write to MH i2c: 01 00 00 21 95 B6 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 07 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 07 00 21 95 00 88 00 00 00 FF 0F 53 [14:47:24]state=0 [14:47:24]Key pressed [14:47:24]Feed [14:47:24]Write to MH i2c: D8 00 00 22 95 8E [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: D8 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: D8 01 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: D8 01 00 22 95 00 8F [14:47:24]int [14:47:24]Write to MH i2c: 01 00 00 23 95 B8 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 07 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 07 00 23 95 00 80 00 00 00 F5 0F 43 [14:47:24]state=2 [14:47:24]Stop feed [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:06]accept exits with 7 [14:49:06]New connection [14:49:06]New thread 3067014500 created [14:49:06]Thread 3066871140 joined [14:49:06]Waiting for new connection... [14:49:06] Sock 7.Parse request [14:49:06]Sock 7.Check first char [14:49:06]Sock 7.First char is OK [14:49:06]request: POST /json_proto HTTP/1.0 [14:49:06]Method: POST [14:49:06]URL: /json_proto [14:49:06]Method is POST - this is cgi request [14:49:06]url: /json_proto [14:49:06]query_string will be loaded in cgi processing [14:49:06]execute_cgi json_proto POST (null) [14:49:06]execute_cgi path=json_proto method=POST [14:49:06]POST find Content-Length [14:49:06]Host: 172.17.62.67:8080 [14:49:06]Content-Length: 639 [14:49:06]Content-Type: application/json [14:49:06] [14:49:06]POST finish read [14:49:06]Found Content-Length = 639 [14:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 30.000, "sum" : 2127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2127.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:06]execute_script... [14:49:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 30.000, "sum" : 2127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2127.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:06]POST & json_proto [14:49:06]process_json_proto [14:49:06]json parsed OK: [14:49:06]protocol is kg_v1.0 [14:49:06]action value=close_receipt [14:49:06]process_action close_receipt [14:49:06]cmd_close_receipt [14:49:06]MH_GetDate [14:49:06]Write to MH i2c: F0 00 00 24 95 A8 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 05 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: F0 05 00 24 95 00 F1 19 EF 65 0B [14:49:06]GetLastDocTimeStamp 1710168077 [14:49:06]current date 1710168561 [14:49:06]FM_GetShiftState [14:49:06]SAM_PROTO_GetShiftState [14:49:06]wFMCommunicate request_size=4 [14:49:06]MH_SAM_APDU [14:49:06]CAPDU: 80 13 01 00 [14:49:06]Write to MH i2c: E2 08 00 25 95 80 13 01 00 00 00 00 00 37 [14:49:06]Write i2c OK [14:49:06]MH_I2C_Read... [14:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:06]Read from MH i2c: E2 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 0E 00 [14:49:06]MH_I2C_Read... [14:49:06]Read from MH i2c: E2 0E 00 25 95 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D3 [14:49:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:49:06]wFMCommunicate OK [14:49:06]SAM_PROTO_GetShiftState done [14:49:06]FM_GetShiftState done [14:49:06]opened in 1710115571 [14:49:06]opened+sec_in_day 1710201971 [14:49:06]quantity*price = 212700 [14:49:06]sum+1 = 212701 [14:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2127.00 НСП 1% : 18.82 НДС 12% : 225.88 Наличными: 2127.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 97 11.03.2024 14:49 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94922 ФПД: 164063074239923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T144921&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94922&fm=164063074239923&tin=02508201610067®Number=0000000000090555&sum=212700 [14:49:07]StoreToDocumentArchive [14:49:07]shift 326 fd 94922 [14:49:07]save to /storage/0326/doc_00094922 [14:49:07]save last doc name /storage/0326/doc_00094922 to /storage/kkm_last_doc_name [14:49:07]save OK [14:49:07]Clear old archive folders... [14:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:49:07]tlvbuf is 003ACCD0 [14:49:07]SAM_PROTO_ClearQueue [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 09 00 00 [14:49:07]Write to MH i2c: E2 08 00 32 95 80 09 00 00 00 00 00 00 39 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 32 95 00 90 00 3B [14:49:07]RAPDU: 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_ClearQueue done [14:49:07]KKMCreateOFDPacket [14:49:07]OFDProtocolAddRootSTLVToBuf [14:49:07]FM_MakeSignedData [14:49:07]FM_MakeSignedData [14:49:07]SAM_PROTO_SignData [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 0D 01 02 [14:49:07]Write to MH i2c: E2 08 00 33 95 80 0D 01 02 00 00 00 00 41 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 33 95 00 90 00 3C [14:49:07]RAPDU: 90 00 [14:49:07]wFMCommunicate OK [14:49:07]wFMCommunicate request_size=255 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DC 3E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 3E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 58 00 00 00 00 07 04 06 00 DC 3E 03 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 F1 19 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 72 01 00 35 04 06 00 95 36 E9 42 [14:49:07]Write to MH i2c: E2 02 01 34 95 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DC 3E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 3E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 58 00 00 00 00 07 04 06 00 DC 3E 03 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 F1 19 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 72 01 00 35 04 06 00 95 36 E9 42 00 00 91 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 03 00 34 95 00 90 00 3D [14:49:07]RAPDU: 90 00 [14:49:07]wFMCommunicate OK [14:49:07]wFMCommunicate request_size=7 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 0D 02 02 02 C5 B3 [14:49:07]Write to MH i2c: E2 0A 00 35 95 80 0D 02 02 02 00 C5 B3 00 00 C0 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 35 95 00 90 00 3E [14:49:08]RAPDU: 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 0D 03 02 [14:49:08]Write to MH i2c: E2 08 00 36 95 80 0D 03 02 00 00 00 00 46 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 0B 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 0B 00 36 95 00 54 92 80 1D 49 8F 40 21 90 00 03 [14:49:08]RAPDU: 54 92 80 1D 49 8F 40 21 90 00 [14:49:08]wFMCommunicate OK [14:49:08]SAM_PROTO_SignData done [14:49:08]FM_MakeSignedData done [14:49:08]CreateOFDProtocolMessage [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 11 00 00 [14:49:08]Write to MH i2c: E2 08 00 37 95 80 11 00 00 00 00 00 00 46 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 17 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 17 00 37 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 96 [14:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:49:08]wFMCommunicate OK [14:49:08]CreateOFDProtocolMessage done [14:49:08]OFDSenderStorePacket 94922 [14:49:08]StoreOFDPacket docnum=94922 [14:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 5A C3 04 01 11 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DC 3E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 3E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 58 00 00 00 00 07 04 06 00 DC 3E 03 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 F1 19 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 72 01 00 35 04 06 00 95 36 E9 42 C5 B3 54 92 80 1D 49 8F 40 21 [14:49:08]CheckFolder [14:49:08]dirname=/storage/ofd_packets [14:49:08]CheckFolder done [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00094922 [14:49:08]NVStorageSaveData ofd_packets/00094922 [14:49:08]File name is /storage/ofd_packets/00094922 [14:49:08]Write 298 bytes [14:49:08]NVStorageSaveData done [14:49:08]OFDSenderStorePacket done [14:49:08]KKMCreateOFDPacket done [14:49:08]NVStorageSaveData kkm_last_timestamp [14:49:08]File name is /storage/kkm_last_timestamp [14:49:08]Write 4 bytes [14:49:08]NVStorageSaveData done [14:49:08]ExternCall_PrintAddStr [14:49:08]wPrintStart [14:49:08]Write to MH i2c: 01 00 00 38 95 CD [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 07 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 07 00 38 95 00 80 00 00 00 FF 0F 62 [14:49:08]RasterBufferAndPrint [14:49:08]line Счет N : (1)195881 [14:49:08]line ИНН: 02508201610067 [14:49:08]line Контрольно-Кассовый Чек [14:49:08]line ПРОДАЖА [14:49:08]line ТРК (МРК, ГНК) : 51 [14:49:08]line Товар: 2710194210 [14:49:08]line ДТ-К-5 [14:49:08]line 30.000 * 70.90 [14:49:08]line = 2127.00 [14:49:08]line НДС 12% НСП 1% [14:49:08]line > о реализуемом товаре [14:49:08]line ИТОГО: 2127.00 [14:49:08]line НСП 1% : 18.82 [14:49:08]line НДС 12% : 225.88 [14:49:08]line Наличными: 2127.00 [14:49:08]line Безнал.: 0.00 [14:49:08]line Место: АЗС № 6 "Партнер Нефть" [14:49:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:49:08]line СНО: Общий режим [14:49:08]line Чек 97 11.03.2024 14:49 [14:49:08]line Смена: 326 ФФД: 1.0 [14:49:08]line ЗНМ: 0300000009 [14:49:08]line РНМ: 0000000000090555 [14:49:08]line Версия ККМ: 001 [14:49:08]line ФМ: 0000000000874811 [14:49:08]line ФД: 94922 [14:49:08]line ФПД: 164063074239923 [14:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T144921&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94922&fm=164063074239923&tin=02508201610067®Number=0000000000090555&sum=212700 [14:49:08]OFD Sender: Processing packet 94922 [packets to send 30, broken 29] [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00094922 [14:49:08]OFD Sender: To server: pG, [14:49:08]CommunicateWithHost lk.salyk.kg:30040 [14:49:08]ConnectInit lk.salyk.kg [14:49:08]written 0, free lines is 4095 [14:49:08]Connected sock=10 [14:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 5A C3 04 01 11 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DC 3E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 3E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 58 00 00 00 00 07 04 06 00 DC 3E 03 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 F1 19 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 72 01 00 35 04 06 00 95 36 E9 42 C5 B3 54 92 80 1D 49 8F 40 21 [14:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7A A7 47 00 30 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 72 01 00 F4 03 04 00 4A C5 EE 65 B6 04 01 00 00 7D 2A F5 77 89 BB E5 92 [14:49:08]CommunicateWithHost err = 0 [14:49:08]CheckOFDResponse [14:49:08]1017 (14) - 77093643461234 [14:49:08]1041 (16) - 0000000000874811 [14:49:08]1040 (4) - 94922 [14:49:08]1012 (4) - 11.03.2024 08:48 [14:49:08]1206 (1) - 0 [14:49:08]OFD Sender: Remove packet 94922 [14:49:08]ProducePacketName [14:49:08]name=ofd_packets/00094922 [14:49:08]NVStorageDeleteData [14:49:08]Write to MH i2c: 01 00 00 60 95 F5 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 07 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: 01 07 00 60 95 00 80 00 00 00 85 0D 0E [14:49:08]RasterBufferAndPrint [14:49:08]line [14:49:08]line [14:49:08]line [14:49:08]line [14:49:08]line [14:49:08]written 0, free lines is 3468 [14:49:08]process_action close_receipt done [14:49:08]requested_data is exist [14:49:08]produce_requested_data [14:49:08]requested_item fm.sn is exist - process it [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 11 00 00 [14:49:08]Write to MH i2c: E2 08 00 67 95 80 11 00 00 00 00 00 00 76 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 17 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 17 00 67 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [14:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:49:09]wFMCommunicate OK [14:49:09]requested_item fd.num is exist - process it [14:49:09]SAM_PROTO_GetFieldsCounters [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 13 00 00 [14:49:09]Write to MH i2c: E2 08 00 68 95 80 13 00 00 00 00 00 00 79 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:09]Read from MH i2c: E2 62 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 62 00 68 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CA 72 01 00 0E 04 04 00 46 01 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 3D [14:49:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CA 72 01 00 0E 04 04 00 46 01 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:49:09]wFMCommunicate OK [14:49:09]SAM_PROTO_GetFieldsCounters done [14:49:09]requested_item shift.num is exist - process it [14:49:09]requested_item shift.opened is exist - process it [14:49:09]req_shift_opened [14:49:09]FM_GetShiftState [14:49:09]SAM_PROTO_GetShiftState [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 13 01 00 [14:49:09]Write to MH i2c: E2 08 00 69 95 80 13 01 00 00 00 00 00 7B [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 0E 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 0E 00 69 95 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 17 [14:49:09]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:49:09]wFMCommunicate OK [14:49:09]SAM_PROTO_GetShiftState done [14:49:09]FM_GetShiftState done [14:49:09]req_shift_opened done [14:49:09]requested_item shift.open_date is exist - process it [14:49:09]req_shift_open_date [14:49:09]req_shift_open_date done [14:49:09]produce_requested_data done [14:49:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94922,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:49:09]process_action_free close_receipt [14:49:09]json_value_free [14:49:09]json_value_free done [14:49:09]process_json_proto returns [14:49:09]Send response to host [14:49:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94922,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:49:09]free response buf [14:49:09]execute_script done [14:49:09]execute_script returns [14:49:09]free content buf [14:49:09]Sock 7.Close socket [14:49:09]Sock 7.Thread stoped [14:49:09]OFD Sender: No OFD packet to send [14:49:11]accept exits with 9 [14:49:11]New connection [14:49:11]New thread 3066871140 created [14:49:11]Thread 3067014500 joined [14:49:11]Waiting for new connection... [14:49:11] Sock 9.Parse request [14:49:11]Sock 9.Check first char [14:49:11]Sock 9.First char is OK [14:49:11]request: POST /json_proto HTTP/1.0 [14:49:11]Method: POST [14:49:11]URL: /json_proto [14:49:11]Method is POST - this is cgi request [14:49:11]url: /json_proto [14:49:11]query_string will be loaded in cgi processing [14:49:11]execute_cgi json_proto POST (null) [14:49:11]execute_cgi path=json_proto method=POST [14:49:11]POST find Content-Length [14:49:11]Host: 172.17.62.67:8080 [14:49:11]Content-Length: 695 [14:49:11]Content-Type: application/json [14:49:11] [14:49:11]POST finish read [14:49:11]Found Content-Length = 695 [14:49:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94922, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 30.000, "sum" : 2127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2127.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:11]execute_script... [14:49:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94922, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 30.000, "sum" : 2127.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2127.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:11]POST & json_proto [14:49:11]process_json_proto [14:49:11]json parsed OK: [14:49:11]protocol is kg_v1.0 [14:49:11]action value=close_receipt [14:49:11]process_action close_receipt [14:49:11]cmd_close_receipt [14:49:11]MH_GetDate [14:49:11]Write to MH i2c: F0 00 00 6A 95 EE [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: F0 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: F0 05 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: F0 05 00 6A 95 00 F6 19 EF 65 56 [14:49:11]GetLastDocTimeStamp 1710168561 [14:49:11]current date 1710168566 [14:49:11]FM_GetShiftState [14:49:11]SAM_PROTO_GetShiftState [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 13 01 00 [14:49:11]Write to MH i2c: E2 08 00 6B 95 80 13 01 00 00 00 00 00 7D [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:11]Read from MH i2c: E2 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 0E 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 0E 00 6B 95 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 19 [14:49:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:49:11]wFMCommunicate OK [14:49:11]SAM_PROTO_GetShiftState done [14:49:11]FM_GetShiftState done [14:49:11]opened in 1710115571 [14:49:11]opened+sec_in_day 1710201971 [14:49:11]quantity*price = 212700 [14:49:11]sum+1 = 212701 [14:49:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2127.00 НСП 1% : 18.82 НДС 12% : 225.88 Наличными: 2127.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 98 11.03.2024 14:49 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 94922 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 94923 ФПД: 169477447963576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T144926&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94923&fm=169477447963576&tin=02508201610067®Number=0000000000090555&sum=212700 [14:49:13]StoreToDocumentArchive [14:49:13]shift 326 fd 94923 [14:49:13]save to /storage/0326/doc_00094923 [14:49:13]save last doc name /storage/0326/doc_00094923 to /storage/kkm_last_doc_name [14:49:13]save OK [14:49:13]Clear old archive folders... [14:49:13]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:49:13]tlvbuf is 003372E0 [14:49:13]SAM_PROTO_ClearQueue [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 09 00 00 [14:49:13]Write to MH i2c: E2 08 00 7A 95 80 09 00 00 00 00 00 00 81 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 7A 95 00 90 00 83 [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]SAM_PROTO_ClearQueue done [14:49:13]KKMCreateOFDPacket [14:49:13]OFDProtocolAddRootSTLVToBuf [14:49:13]FM_MakeSignedData [14:49:13]FM_MakeSignedData [14:49:13]SAM_PROTO_SignData [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 01 02 [14:49:13]Write to MH i2c: E2 08 00 7B 95 80 0D 01 02 00 00 00 00 89 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 7B 95 00 90 00 84 [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=255 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DC 3E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 3E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 58 00 00 00 00 07 04 06 00 DC 3E 03 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 F6 19 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 CA 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [14:49:13]Write to MH i2c: E2 02 01 7C 95 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DC 3E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 3E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 58 00 00 00 00 07 04 06 00 DC 3E 03 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 F6 19 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 CA 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 DB [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 7C 95 00 90 00 85 [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=35 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 72 01 00 35 04 06 00 9A 23 8B 15 53 B8 [14:49:13]Write to MH i2c: E2 26 00 7D 95 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 72 01 00 35 04 06 00 9A 23 8B 15 53 B8 00 00 22 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 03 00 7D 95 00 90 00 86 [14:49:13]RAPDU: 90 00 [14:49:13]wFMCommunicate OK [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 0D 03 02 [14:49:13]Write to MH i2c: E2 08 00 7E 95 80 0D 03 02 00 00 00 00 8E [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 0B 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 0B 00 7E 95 00 B3 AA C8 69 27 A0 44 18 90 00 40 [14:49:13]RAPDU: B3 AA C8 69 27 A0 44 18 90 00 [14:49:13]wFMCommunicate OK [14:49:13]SAM_PROTO_SignData done [14:49:13]FM_MakeSignedData done [14:49:13]CreateOFDProtocolMessage [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 11 00 00 [14:49:13]Write to MH i2c: E2 08 00 7F 95 80 11 00 00 00 00 00 00 8E [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:13]Read from MH i2c: E2 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 17 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: E2 17 00 7F 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DE [14:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:49:13]wFMCommunicate OK [14:49:13]CreateOFDProtocolMessage done [14:49:13]OFDSenderStorePacket 94923 [14:49:13]StoreOFDPacket docnum=94923 [14:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 B8 E2 20 01 39 A1 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DC 3E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 3E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 58 00 00 00 00 07 04 06 00 DC 3E 03 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 F6 19 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 CA 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 72 01 00 35 04 06 00 9A 23 8B 15 53 B8 B3 AA C8 69 27 A0 44 18 [14:49:13]CheckFolder [14:49:13]dirname=/storage/ofd_packets [14:49:13]CheckFolder done [14:49:13]ProducePacketName [14:49:13]name=ofd_packets/00094923 [14:49:13]NVStorageSaveData ofd_packets/00094923 [14:49:13]File name is /storage/ofd_packets/00094923 [14:49:13]Write 326 bytes [14:49:13]NVStorageSaveData done [14:49:13]OFDSenderStorePacket done [14:49:13]KKMCreateOFDPacket done [14:49:13]NVStorageSaveData kkm_last_timestamp [14:49:13]File name is /storage/kkm_last_timestamp [14:49:13]Write 4 bytes [14:49:13]NVStorageSaveData done [14:49:13]ExternCall_PrintAddStr [14:49:13]wPrintStart [14:49:13]Write to MH i2c: 01 00 00 80 95 15 [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: 01 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: 01 07 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: 01 07 00 80 95 00 80 00 00 00 FF 0F AA [14:49:13]RasterBufferAndPrint [14:49:13]line Счет N : (1)195881 [14:49:13]line ИНН: 02508201610067 [14:49:13]line Контрольно-Кассовый Чек [14:49:13]line ВОЗВРАТ ПРОДАЖИ [14:49:13]line ТРК (МРК, ГНК) : 51 [14:49:13]line Товар: 2710194210 [14:49:13]line ДТ-К-5 [14:49:13]line 30.000 * 70.90 [14:49:13]line = 2127.00 [14:49:13]line НДС 12% НСП 1% [14:49:13]line > о реализуемом товаре [14:49:13]line ИТОГО: 2127.00 [14:49:13]line НСП 1% : 18.82 [14:49:13]line НДС 12% : 225.88 [14:49:13]line Наличными: 2127.00 [14:49:13]line Безнал.: 0.00 [14:49:13]line Место: АЗС № 6 "Партнер Нефть" [14:49:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:49:13]line СНО: Общий режим [14:49:13]line Чек 98 11.03.2024 14:49 [14:49:13]line Смена: 326 ФФД: 1.0 [14:49:13]line ЗНМ: 0300000009 [14:49:13]line РНМ: 0000000000090555 [14:49:13]line Версия ККМ: 001 [14:49:13]line ФД осн.: 94922 [14:49:13]line ФМ осн.: 0000000000874811 [14:49:13]line ФМ: 0000000000874811 [14:49:13]line ФД: 94923 [14:49:13]line ФПД: 169477447963576 [14:49:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T144926&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94923&fm=169477447963576&tin=02508201610067®Number=0000000000090555&sum=212700 [14:49:13]OFD Sender: Processing packet 94923 [packets to send 30, broken 29] [14:49:13]ProducePacketName [14:49:13]name=ofd_packets/00094923 [14:49:13]OFD Sender: To server: pG, [14:49:13]CommunicateWithHost lk.salyk.kg:30040 [14:49:13]ConnectInit lk.salyk.kg [14:49:13]written 0, free lines is 4095 [14:49:13]Connected sock=10 [14:49: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 31 31 28 01 00 00 B8 E2 20 01 39 A1 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DC 3E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 3E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 58 00 00 00 00 07 04 06 00 DC 3E 03 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 F6 19 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 CA 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 72 01 00 35 04 06 00 9A 23 8B 15 53 B8 B3 AA C8 69 27 A0 44 18 [14:49: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 31 31 4F 00 00 00 D8 D4 47 00 39 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 72 01 00 F4 03 04 00 4F C5 EE 65 B6 04 01 00 00 91 13 FE DD 84 7A 34 59 [14:49:14]CommunicateWithHost err = 0 [14:49:14]CheckOFDResponse [14:49:14]1017 (14) - 77093643461234 [14:49:14]1041 (16) - 0000000000874811 [14:49:14]1040 (4) - 94923 [14:49:14]1012 (4) - 11.03.2024 08:48 [14:49:14]1206 (1) - 0 [14:49:14]OFD Sender: Remove packet 94923 [14:49:14]ProducePacketName [14:49:14]name=ofd_packets/00094923 [14:49:14]NVStorageDeleteData [14:49:14]Write to MH i2c: 01 00 00 AA 95 3F [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 07 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: 01 07 00 AA 95 00 80 00 00 00 71 0D 44 [14:49:14]RasterBufferAndPrint [14:49:14]line [14:49:14]line [14:49:14]line [14:49:14]line [14:49:14]line [14:49:14]written 0, free lines is 3457 [14:49:14]process_action close_receipt done [14:49:14]requested_data is exist [14:49:14]produce_requested_data [14:49:14]requested_item fm.sn is exist - process it [14:49:14]wFMCommunicate request_size=4 [14:49:14]MH_SAM_APDU [14:49:14]CAPDU: 80 11 00 00 [14:49:14]Write to MH i2c: E2 08 00 B1 95 80 11 00 00 00 00 00 00 C0 [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:14]Read from MH i2c: E2 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 17 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 17 00 B1 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [14:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:49:14]wFMCommunicate OK [14:49:14]requested_item fd.num is exist - process it [14:49:14]SAM_PROTO_GetFieldsCounters [14:49:14]wFMCommunicate request_size=4 [14:49:14]MH_SAM_APDU [14:49:14]CAPDU: 80 13 00 00 [14:49:14]Write to MH i2c: E2 08 00 B2 95 80 13 00 00 00 00 00 00 C3 [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:14]Read from MH i2c: E2 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 62 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 62 00 B2 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CB 72 01 00 0E 04 04 00 46 01 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 8B [14:49: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CB 72 01 00 0E 04 04 00 46 01 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:49:14]wFMCommunicate OK [14:49:14]SAM_PROTO_GetFieldsCounters done [14:49:14]requested_item shift.num is exist - process it [14:49:14]requested_item shift.opened is exist - process it [14:49:14]req_shift_opened [14:49:14]FM_GetShiftState [14:49:14]SAM_PROTO_GetShiftState [14:49:14]wFMCommunicate request_size=4 [14:49:14]MH_SAM_APDU [14:49:14]CAPDU: 80 13 01 00 [14:49:14]Write to MH i2c: E2 08 00 B3 95 80 13 01 00 00 00 00 00 C5 [14:49:14]Write i2c OK [14:49:14]MH_I2C_Read... [14:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:14]Read from MH i2c: E2 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 0E 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 0E 00 B3 95 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 61 [14:49:14]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:49:14]wFMCommunicate OK [14:49:14]SAM_PROTO_GetShiftState done [14:49:14]FM_GetShiftState done [14:49:14]req_shift_opened done [14:49:14]requested_item shift.open_date is exist - process it [14:49:14]req_shift_open_date [14:49:14]req_shift_open_date done [14:49:14]produce_requested_data done [14:49:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94923,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:49:14]process_action_free close_receipt [14:49:14]json_value_free [14:49:14]json_value_free done [14:49:14]process_json_proto returns [14:49:14]Send response to host [14:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94923,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:49:14]free response buf [14:49:14]execute_script done [14:49:14]execute_script returns [14:49:14]free content buf [14:49:14]Sock 9.Close socket [14:49:14]Sock 9.Thread stoped [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:17]accept exits with 7 [14:50:17]New connection [14:50:17]New thread 3067014500 created [14:50:17]Thread 3066871140 joined [14:50:17]Waiting for new connection... [14:50:17] Sock 7.Parse request [14:50:17]Sock 7.Check first char [14:50:17]Sock 7.First char is OK [14:50:17]request: POST /json_proto HTTP/1.0 [14:50:17]Method: POST [14:50:17]URL: /json_proto [14:50:17]Method is POST - this is cgi request [14:50:17]url: /json_proto [14:50:17]query_string will be loaded in cgi processing [14:50:17]execute_cgi json_proto POST (null) [14:50:17]execute_cgi path=json_proto method=POST [14:50:17]POST find Content-Length [14:50:17]Host: 172.17.62.67:8080 [14:50:17]Content-Length: 677 [14:50:17]Content-Type: application/json [14:50:17] [14:50:17]POST finish read [14:50:17]Found Content-Length = 677 [14:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 8.270, "sum" : 520.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:17]execute_script... [14:50: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)195882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 8.270, "sum" : 520.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:17]POST & json_proto [14:50:17]process_json_proto [14:50:17]json parsed OK: [14:50:17]protocol is kg_v1.0 [14:50:17]action value=close_receipt [14:50:17]process_action close_receipt [14:50:17]cmd_close_receipt [14:50:17]MH_GetDate [14:50:17]Write to MH i2c: F0 00 00 B4 95 38 [14:50:17]Write i2c OK [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: F0 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: F0 05 00 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: F0 05 00 B4 95 00 38 1A EF 65 E3 [14:50:17]GetLastDocTimeStamp 1710168566 [14:50:17]current date 1710168632 [14:50:17]FM_GetShiftState [14:50:17]SAM_PROTO_GetShiftState [14:50:17]wFMCommunicate request_size=4 [14:50:17]MH_SAM_APDU [14:50:17]CAPDU: 80 13 01 00 [14:50:17]Write to MH i2c: E2 08 00 B5 95 80 13 01 00 00 00 00 00 C7 [14:50:17]Write i2c OK [14:50:17]MH_I2C_Read... [14:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:17]Read from MH i2c: E2 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: E2 0E 00 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: E2 0E 00 B5 95 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 63 [14:50:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:50:17]wFMCommunicate OK [14:50:17]SAM_PROTO_GetShiftState done [14:50:17]FM_GetShiftState done [14:50:17]opened in 1710115571 [14:50:17]opened+sec_in_day 1710201971 [14:50:17]quantity*price = 52018 [14:50:17]sum+1 = 52019 [14:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.24 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 99 11.03.2024 14:50 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94924 ФПД: 183857703593376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145032&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94924&fm=183857703593376&tin=02508201610067®Number=0000000000090555&sum=52000 [14:50:18]StoreToDocumentArchive [14:50:18]shift 326 fd 94924 [14:50:18]save to /storage/0326/doc_00094924 [14:50:18]save last doc name /storage/0326/doc_00094924 to /storage/kkm_last_doc_name [14:50:18]save OK [14:50:18]Clear old archive folders... [14:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:18]tlvbuf is 00263B30 [14:50:18]SAM_PROTO_ClearQueue [14:50:18]wFMCommunicate request_size=4 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 09 00 00 [14:50:18]Write to MH i2c: E2 08 00 C2 95 80 09 00 00 00 00 00 00 C9 [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 [14:50:18]MH_I2C_Read... [14:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:18]Read from MH i2c: E2 03 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 C2 95 00 90 00 CB [14:50:18]RAPDU: 90 00 [14:50:18]wFMCommunicate OK [14:50:18]SAM_PROTO_ClearQueue done [14:50:18]KKMCreateOFDPacket [14:50:18]OFDProtocolAddRootSTLVToBuf [14:50:18]FM_MakeSignedData [14:50:18]FM_MakeSignedData [14:50:18]SAM_PROTO_SignData [14:50:18]wFMCommunicate request_size=4 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 0D 01 02 [14:50:18]Write to MH i2c: E2 08 00 C3 95 80 0D 01 02 00 00 00 00 D1 [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:18]Read from MH i2c: E2 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 [14:50:18]MH_I2C_Read... [14:50:18]Read from MH i2c: E2 03 00 C3 95 00 90 00 CC [14:50:18]RAPDU: 90 00 [14:50:18]wFMCommunicate OK [14:50:18]wFMCommunicate request_size=255 [14:50:18]MH_SAM_APDU [14:50:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 38 1A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 72 01 00 35 04 06 00 A7 [14:50:18]Write to MH i2c: E2 02 01 C4 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 38 1A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 72 01 00 35 04 06 00 A7 00 00 6E [14:50:18]Write i2c OK [14:50:18]MH_I2C_Read... [14:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:19]Read from MH i2c: E2 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: E2 03 00 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: E2 03 00 C4 95 00 90 00 CD [14:50:19]RAPDU: 90 00 [14:50:19]wFMCommunicate OK [14:50:19]wFMCommunicate request_size=10 [14:50:19]MH_SAM_APDU [14:50:19]CAPDU: 80 0D 02 02 05 37 B5 1C A5 A0 [14:50:19]Write to MH i2c: E2 0D 00 C5 95 80 0D 02 02 05 00 37 B5 1C A5 A0 00 00 2B [14:50:19]Write i2c OK [14:50:19]MH_I2C_Read... [14:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:19]Read from MH i2c: E2 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: E2 03 00 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: E2 03 00 C5 95 00 90 00 CE [14:50:19]RAPDU: 90 00 [14:50:19]wFMCommunicate OK [14:50:19]wFMCommunicate request_size=4 [14:50:19]MH_SAM_APDU [14:50:19]CAPDU: 80 0D 03 02 [14:50:19]Write to MH i2c: E2 08 00 C6 95 80 0D 03 02 00 00 00 00 D6 [14:50:19]Write i2c OK [14:50:19]MH_I2C_Read... [14:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:19]Read from MH i2c: E2 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: E2 0B 00 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: E2 0B 00 C6 95 00 6E 32 85 1C 60 49 AA 46 90 00 B1 [14:50:19]RAPDU: 6E 32 85 1C 60 49 AA 46 90 00 [14:50:19]wFMCommunicate OK [14:50:19]SAM_PROTO_SignData done [14:50:19]FM_MakeSignedData done [14:50:19]CreateOFDProtocolMessage [14:50:19]wFMCommunicate request_size=4 [14:50:19]MH_SAM_APDU [14:50:19]CAPDU: 80 11 00 00 [14:50:19]Write to MH i2c: E2 08 00 C7 95 80 11 00 00 00 00 00 00 D6 [14:50:19]Write i2c OK [14:50:19]MH_I2C_Read... [14:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:19]Read from MH i2c: E2 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: E2 17 00 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: E2 17 00 C7 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 26 [14:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:50:19]wFMCommunicate OK [14:50:19]CreateOFDProtocolMessage done [14:50:19]OFDSenderStorePacket 94924 [14:50:19]StoreOFDPacket docnum=94924 [14:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 20 3D 07 01 1D 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 38 1A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 72 01 00 35 04 06 00 A7 37 B5 1C A5 A0 6E 32 85 1C 60 49 AA 46 [14:50:19]CheckFolder [14:50:19]dirname=/storage/ofd_packets [14:50:19]CheckFolder done [14:50:19]ProducePacketName [14:50:19]name=ofd_packets/00094924 [14:50:19]NVStorageSaveData ofd_packets/00094924 [14:50:19]File name is /storage/ofd_packets/00094924 [14:50:19]Write 301 bytes [14:50:19]NVStorageSaveData done [14:50:19]OFDSenderStorePacket done [14:50:19]KKMCreateOFDPacket done [14:50:19]NVStorageSaveData kkm_last_timestamp [14:50:19]File name is /storage/kkm_last_timestamp [14:50:19]Write 4 bytes [14:50:19]NVStorageSaveData done [14:50:19]ExternCall_PrintAddStr [14:50:19]wPrintStart [14:50:19]Write to MH i2c: 01 00 00 C8 95 5D [14:50:19]Write i2c OK [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: 01 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: 01 07 00 [14:50:19]MH_I2C_Read... [14:50:19]Read from MH i2c: 01 07 00 C8 95 00 80 00 00 00 FF 0F F2 [14:50:19]RasterBufferAndPrint [14:50:19]line Счет N : (1)195882 [14:50:19]line ИНН: 02508201610067 [14:50:19]line Контрольно-Кассовый Чек [14:50:19]line ПРОДАЖА [14:50:19]line ТРК (МРК, ГНК) : 42 [14:50:19]line Товар: 2710124130 [14:50:19]line Аи-92-К-5 [14:50:19]line 8.270 * 62.90 [14:50:19]line = 520.18 [14:50:19]line НДС 12% НСП 1% [14:50:19]line > о реализуемом товаре [14:50:19]line ОКРУГЛЕНИЕ: -0.18 [14:50:19]line ИТОГО: 520.00 [14:50:19]line Внесено: 520.00 [14:50:19]line СДАЧА: 0.00 [14:50:19]line НСП 1% : 4.60 [14:50:19]line НДС 12% : 55.24 [14:50:19]line Наличными: 520.00 [14:50:19]line Безнал.: 0.00 [14:50:19]line Место: АЗС № 6 "Партнер Нефть" [14:50:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:50:19]line СНО: Общий режим [14:50:19]line Чек 99 11.03.2024 14:50 [14:50:19]line Смена: 326 ФФД: 1.0 [14:50:19]line ЗНМ: 0300000009 [14:50:19]line РНМ: 0000000000090555 [14:50:19]line Версия ККМ: 001 [14:50:19]line ФМ: 0000000000874811 [14:50:19]line ФД: 94924 [14:50:19]line ФПД: 183857703593376 [14:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145032&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94924&fm=183857703593376&tin=02508201610067®Number=0000000000090555&sum=52000 [14:50:19]written 0, free lines is 4095 [14:50:19]OFD Sender: Processing packet 94924 [packets to send 30, broken 29] [14:50:19]ProducePacketName [14:50:19]name=ofd_packets/00094924 [14:50:19]OFD Sender: To server: pG, [14:50:19]CommunicateWithHost lk.salyk.kg:30040 [14:50:19]ConnectInit lk.salyk.kg [14:50:19]Connected sock=10 [14:50: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 31 31 0F 01 00 00 20 3D 07 01 1D 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 38 1A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 72 01 00 35 04 06 00 A7 37 B5 1C A5 A0 6E 32 85 1C 60 49 AA 46 [14:50: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 31 31 4F 00 00 00 3D 08 47 00 AB 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 31 31 10 04 04 00 CC 72 01 00 F4 03 04 00 91 C5 EE 65 B6 04 01 00 00 FD 8B 29 44 47 52 68 59 [14:50:19]CommunicateWithHost err = 0 [14:50:19]CheckOFDResponse [14:50:19]1017 (14) - 77093643461234 [14:50:19]1041 (16) - 0000000000874811 [14:50:19]1040 (4) - 94924 [14:50:19]1012 (4) - 11.03.2024 08:49 [14:50:19]1206 (1) - 0 [14:50:19]OFD Sender: Remove packet 94924 [14:50:19]ProducePacketName [14:50:19]name=ofd_packets/00094924 [14:50:19]NVStorageDeleteData [14:50:20]Write to MH i2c: 01 00 00 F3 95 88 [14:50:20]Write i2c OK [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: 01 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: 01 07 00 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: 01 07 00 F3 95 00 80 00 00 00 4D 0D 69 [14:50:20]RasterBufferAndPrint [14:50:20]line [14:50:20]line [14:50:20]line [14:50:20]line [14:50:20]line [14:50:20]written 0, free lines is 3411 [14:50:20]process_action close_receipt done [14:50:20]requested_data is exist [14:50:20]produce_requested_data [14:50:20]requested_item fm.sn is exist - process it [14:50:20]wFMCommunicate request_size=4 [14:50:20]MH_SAM_APDU [14:50:20]CAPDU: 80 11 00 00 [14:50:20]Write to MH i2c: E2 08 00 FA 95 80 11 00 00 00 00 00 00 09 [14:50:20]Write i2c OK [14:50:20]MH_I2C_Read... [14:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:20]Read from MH i2c: E2 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 17 00 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 17 00 FA 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 59 [14:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:50:20]wFMCommunicate OK [14:50:20]requested_item fd.num is exist - process it [14:50:20]SAM_PROTO_GetFieldsCounters [14:50:20]wFMCommunicate request_size=4 [14:50:20]MH_SAM_APDU [14:50:20]CAPDU: 80 13 00 00 [14:50:20]Write to MH i2c: E2 08 00 FB 95 80 13 00 00 00 00 00 00 0C [14:50:20]Write i2c OK [14:50:20]MH_I2C_Read... [14:50:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:20]Read from MH i2c: E2 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 62 00 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 62 00 FB 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CC 72 01 00 0E 04 04 00 46 01 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 D8 [14:50:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CC 72 01 00 0E 04 04 00 46 01 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:50:20]wFMCommunicate OK [14:50:20]SAM_PROTO_GetFieldsCounters done [14:50:20]requested_item shift.num is exist - process it [14:50:20]requested_item shift.opened is exist - process it [14:50:20]req_shift_opened [14:50:20]FM_GetShiftState [14:50:20]SAM_PROTO_GetShiftState [14:50:20]wFMCommunicate request_size=4 [14:50:20]MH_SAM_APDU [14:50:20]CAPDU: 80 13 01 00 [14:50:20]Write to MH i2c: E2 08 00 FC 95 80 13 01 00 00 00 00 00 0E [14:50:20]Write i2c OK [14:50:20]MH_I2C_Read... [14:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:20]Read from MH i2c: E2 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 0E 00 [14:50:20]MH_I2C_Read... [14:50:20]Read from MH i2c: E2 0E 00 FC 95 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AA [14:50:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:50:20]wFMCommunicate OK [14:50:20]SAM_PROTO_GetShiftState done [14:50:20]FM_GetShiftState done [14:50:20]req_shift_opened done [14:50:20]requested_item shift.open_date is exist - process it [14:50:20]req_shift_open_date [14:50:20]req_shift_open_date done [14:50:20]produce_requested_data done [14:50:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94924,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:50:20]process_action_free close_receipt [14:50:20]json_value_free [14:50:20]json_value_free done [14:50:20]process_json_proto returns [14:50:20]Send response to host [14:50:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94924,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:50:20]free response buf [14:50:20]execute_script done [14:50:20]execute_script returns [14:50:20]free content buf [14:50:20]Sock 7.Close socket [14:50:20]Sock 7.Thread stoped [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:28]accept exits with 9 [14:52:28]New connection [14:52:28]New thread 3066871140 created [14:52:28]Thread 3067014500 joined [14:52:28]Waiting for new connection... [14:52:28] Sock 9.Parse request [14:52:28]Sock 9.Check first char [14:52:28]Sock 9.First char is OK [14:52:28]request: POST /json_proto HTTP/1.0 [14:52:28]Method: POST [14:52:28]URL: /json_proto [14:52:28]Method is POST - this is cgi request [14:52:28]url: /json_proto [14:52:28]query_string will be loaded in cgi processing [14:52:28]execute_cgi json_proto POST (null) [14:52:28]execute_cgi path=json_proto method=POST [14:52:28]POST find Content-Length [14:52:28]Host: 172.17.62.67:8080 [14:52:28]Content-Length: 682 [14:52:28]Content-Type: application/json [14:52:28] [14:52:28]POST finish read [14:52:28]Found Content-Length = 682 [14:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:28]execute_script... [14:52: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)195883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:28]POST & json_proto [14:52:28]process_json_proto [14:52:28]json parsed OK: [14:52:28]protocol is kg_v1.0 [14:52:28]action value=close_receipt [14:52:28]process_action close_receipt [14:52:28]cmd_close_receipt [14:52:28]MH_GetDate [14:52:28]Write to MH i2c: F0 00 00 FD 95 81 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: F0 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: F0 05 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: F0 05 00 FD 95 00 BB 1A EF 65 AF [14:52:28]GetLastDocTimeStamp 1710168632 [14:52:28]current date 1710168763 [14:52:28]FM_GetShiftState [14:52:28]SAM_PROTO_GetShiftState [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 13 01 00 [14:52:28]Write to MH i2c: E2 08 00 FE 95 80 13 01 00 00 00 00 00 10 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0E 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0E 00 FE 95 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AC [14:52:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_GetShiftState done [14:52:28]FM_GetShiftState done [14:52:28]opened in 1710115571 [14:52:28]opened+sec_in_day 1710201971 [14:52:28]quantity*price = 300031 [14:52:28]sum+1 = 300033 [14:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 100 11.03.2024 14:52 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94925 ФПД: 139635659764019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145243&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94925&fm=139635659764019&tin=02508201610067®Number=0000000000090555&sum=300000 [14:52:30]StoreToDocumentArchive [14:52:30]shift 326 fd 94925 [14:52:30]save to /storage/0326/doc_00094925 [14:52:30]save last doc name /storage/0326/doc_00094925 to /storage/kkm_last_doc_name [14:52:30]save OK [14:52:30]Clear old archive folders... [14:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:30]tlvbuf is 002864B0 [14:52:30]SAM_PROTO_ClearQueue [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 09 00 00 [14:52:30]Write to MH i2c: E2 08 00 0B 96 80 09 00 00 00 00 00 00 13 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:30]Read from MH i2c: E2 03 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 0B 96 00 90 00 15 [14:52:30]RAPDU: 90 00 [14:52:30]wFMCommunicate OK [14:52:30]SAM_PROTO_ClearQueue done [14:52:30]KKMCreateOFDPacket [14:52:30]OFDProtocolAddRootSTLVToBuf [14:52:30]FM_MakeSignedData [14:52:30]FM_MakeSignedData [14:52:30]SAM_PROTO_SignData [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 0D 01 02 [14:52:30]Write to MH i2c: E2 08 00 0C 96 80 0D 01 02 00 00 00 00 1B [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 0C 96 00 90 00 16 [14:52:30]RAPDU: 90 00 [14:52:30]wFMCommunicate OK [14:52:30]wFMCommunicate request_size=255 [14:52:30]MH_SAM_APDU [14:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 BB 1A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 72 01 00 35 04 06 00 7E [14:52:30]Write to MH i2c: E2 02 01 0D 96 80 0D 02 02 FA 00 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 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 BB 1A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 72 01 00 35 04 06 00 7E 00 00 23 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 0D 96 00 90 00 17 [14:52:30]RAPDU: 90 00 [14:52:30]wFMCommunicate OK [14:52:30]wFMCommunicate request_size=10 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 0D 02 02 05 FF 75 E5 F1 33 [14:52:30]Write to MH i2c: E2 0D 00 0E 96 80 0D 02 02 05 00 FF 75 E5 F1 33 00 00 A5 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 0E 96 00 90 00 18 [14:52:30]RAPDU: 90 00 [14:52:30]wFMCommunicate OK [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 0D 03 02 [14:52:30]Write to MH i2c: E2 08 00 0F 96 80 0D 03 02 00 00 00 00 20 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 0B 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 0B 00 0F 96 00 62 F0 D1 D4 C2 AA B0 B8 90 00 EC [14:52:30]RAPDU: 62 F0 D1 D4 C2 AA B0 B8 90 00 [14:52:30]wFMCommunicate OK [14:52:30]SAM_PROTO_SignData done [14:52:30]FM_MakeSignedData done [14:52:30]CreateOFDProtocolMessage [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 11 00 00 [14:52:30]Write to MH i2c: E2 08 00 10 96 80 11 00 00 00 00 00 00 20 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 17 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 17 00 10 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 70 [14:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:52:30]wFMCommunicate OK [14:52:30]CreateOFDProtocolMessage done [14:52:30]OFDSenderStorePacket 94925 [14:52:30]StoreOFDPacket docnum=94925 [14:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DE 8E 07 01 8B 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 BB 1A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 72 01 00 35 04 06 00 7E FF 75 E5 F1 33 62 F0 D1 D4 C2 AA B0 B8 [14:52:30]CheckFolder [14:52:30]dirname=/storage/ofd_packets [14:52:30]CheckFolder done [14:52:30]ProducePacketName [14:52:30]name=ofd_packets/00094925 [14:52:30]NVStorageSaveData ofd_packets/00094925 [14:52:30]File name is /storage/ofd_packets/00094925 [14:52:30]Write 301 bytes [14:52:30]NVStorageSaveData done [14:52:30]OFDSenderStorePacket done [14:52:30]KKMCreateOFDPacket done [14:52:30]NVStorageSaveData kkm_last_timestamp [14:52:30]File name is /storage/kkm_last_timestamp [14:52:30]Write 4 bytes [14:52:30]NVStorageSaveData done [14:52:30]ExternCall_PrintAddStr [14:52:30]wPrintStart [14:52:30]Write to MH i2c: 01 00 00 11 96 A7 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: 01 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: 01 07 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: 01 07 00 11 96 00 80 00 00 00 FF 0F 3C [14:52:30]RasterBufferAndPrint [14:52:30]line Счет N : (1)195883 [14:52:30]line ИНН: 02508201610067 [14:52:30]line Контрольно-Кассовый Чек [14:52:30]line ПРОДАЖА [14:52:30]line ТРК (МРК, ГНК) : 31 [14:52:30]line Товар: 2710124500 [14:52:30]line Аи-95-К-5 [14:52:30]line 43.170 * 69.50 [14:52:30]line = 3000.32 [14:52:30]line НДС 12% НСП 1% [14:52:30]line > о реализуемом товаре [14:52:30]line ОКРУГЛЕНИЕ: -0.32 [14:52:30]line ИТОГО: 3000.00 [14:52:30]line Внесено: 3000.00 [14:52:30]line СДАЧА: 0.00 [14:52:30]line НСП 1% : 26.55 [14:52:30]line НДС 12% : 318.62 [14:52:30]line Наличными: 3000.00 [14:52:30]line Безнал.: 0.00 [14:52:30]line Место: АЗС № 6 "Партнер Нефть" [14:52:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:52:30]line СНО: Общий режим [14:52:30]line Чек 100 11.03.2024 14:52 [14:52:30]line Смена: 326 ФФД: 1.0 [14:52:30]line ЗНМ: 0300000009 [14:52:30]line РНМ: 0000000000090555 [14:52:30]line Версия ККМ: 001 [14:52:30]line ФМ: 0000000000874811 [14:52:30]line ФД: 94925 [14:52:30]line ФПД: 139635659764019 [14:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145243&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94925&fm=139635659764019&tin=02508201610067®Number=0000000000090555&sum=300000 [14:52:30]written 0, free lines is 4095 [14:52:30]OFD Sender: Processing packet 94925 [packets to send 30, broken 29] [14:52:30]ProducePacketName [14:52:30]name=ofd_packets/00094925 [14:52:30]OFD Sender: To server: pG, [14:52:30]CommunicateWithHost lk.salyk.kg:30040 [14:52:30]ConnectInit lk.salyk.kg [14:52:30]Connected sock=10 [14:52: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 31 31 0F 01 00 00 DE 8E 07 01 8B 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 BB 1A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 72 01 00 35 04 06 00 7E FF 75 E5 F1 33 62 F0 D1 D4 C2 AA B0 B8 [14:52: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 31 31 4F 00 00 00 83 04 47 00 D7 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 72 01 00 F4 03 04 00 14 C6 EE 65 B6 04 01 00 00 E9 67 A2 61 DC F2 02 35 [14:52:31]CommunicateWithHost err = 0 [14:52:31]CheckOFDResponse [14:52:31]1017 (14) - 77093643461234 [14:52:31]1041 (16) - 0000000000874811 [14:52:31]1040 (4) - 94925 [14:52:31]1012 (4) - 11.03.2024 08:51 [14:52:31]1206 (1) - 0 [14:52:31]OFD Sender: Remove packet 94925 [14:52:31]ProducePacketName [14:52:31]name=ofd_packets/00094925 [14:52:31]NVStorageDeleteData [14:52:31]Write to MH i2c: 01 00 00 3C 96 D2 [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: 01 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: 01 07 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: 01 07 00 3C 96 00 80 00 00 00 58 0D BE [14:52:31]RasterBufferAndPrint [14:52:31]line [14:52:31]line [14:52:31]line [14:52:31]line [14:52:31]line [14:52:31]written 0, free lines is 3421 [14:52:31]process_action close_receipt done [14:52:31]requested_data is exist [14:52:31]produce_requested_data [14:52:31]requested_item fm.sn is exist - process it [14:52:31]wFMCommunicate request_size=4 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 11 00 00 [14:52:31]Write to MH i2c: E2 08 00 43 96 80 11 00 00 00 00 00 00 53 [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 17 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 17 00 43 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [14:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:52:31]wFMCommunicate OK [14:52:31]requested_item fd.num is exist - process it [14:52:31]SAM_PROTO_GetFieldsCounters [14:52:31]wFMCommunicate request_size=4 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 13 00 00 [14:52:31]Write to MH i2c: E2 08 00 44 96 80 13 00 00 00 00 00 00 56 [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 62 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 62 00 44 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:52: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:31]wFMCommunicate OK [14:52:31]SAM_PROTO_GetFieldsCounters done [14:52:31]requested_item shift.num is exist - process it [14:52:31]requested_item shift.opened is exist - process it [14:52:31]req_shift_opened [14:52:31]FM_GetShiftState [14:52:31]SAM_PROTO_GetShiftState [14:52:31]wFMCommunicate request_size=4 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 13 01 00 [14:52:31]Write to MH i2c: E2 08 00 45 96 80 13 01 00 00 00 00 00 58 [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 0E 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 0E 00 45 96 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F4 [14:52:31]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:52:31]wFMCommunicate OK [14:52:31]SAM_PROTO_GetShiftState done [14:52:31]FM_GetShiftState done [14:52:31]req_shift_opened done [14:52:31]requested_item shift.open_date is exist - process it [14:52:31]req_shift_open_date [14:52:31]req_shift_open_date done [14:52:31]produce_requested_data done [14:52:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94925,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:52:31]process_action_free close_receipt [14:52:31]json_value_free [14:52:31]json_value_free done [14:52:31]process_json_proto returns [14:52:31]Send response to host [14:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94925,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:52:31]free response buf [14:52:31]execute_script done [14:52:31]execute_script returns [14:52:31]free content buf [14:52:31]Sock 9.Close socket [14:52:31]Sock 9.Thread stoped [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:20]accept exits with 7 [14:54:20]New connection [14:54:20]New thread 3067014500 created [14:54:20]Thread 3066871140 joined [14:54:20]Waiting for new connection... [14:54:20] Sock 7.Parse request [14:54:20]Sock 7.Check first char [14:54:20]Sock 7.First char is OK [14:54:20]request: POST /json_proto HTTP/1.0 [14:54:20]Method: POST [14:54:20]URL: /json_proto [14:54:20]Method is POST - this is cgi request [14:54:20]url: /json_proto [14:54:20]query_string will be loaded in cgi processing [14:54:20]execute_cgi json_proto POST (null) [14:54:20]execute_cgi path=json_proto method=POST [14:54:20]POST find Content-Length [14:54:20]Host: 172.17.62.67:8080 [14:54:20]Content-Length: 806 [14:54:20]Content-Type: application/json [14:54:20] [14:54:20]POST finish read [14:54:20]Found Content-Length = 806 [14:54:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:20]execute_script... [14:54:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:20]POST & json_proto [14:54:20]process_json_proto [14:54:20]json parsed OK: [14:54:20]protocol is kg_v1.0 [14:54:20]action value=close_receipt [14:54:20]process_action close_receipt [14:54:20]cmd_close_receipt [14:54:20]MH_GetDate [14:54:20]Write to MH i2c: F0 00 00 46 96 CB [14:54:20]Write i2c OK [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: F0 [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: F0 05 00 [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: F0 05 00 46 96 00 2B 1B EF 65 6A [14:54:20]GetLastDocTimeStamp 1710168763 [14:54:20]current date 1710168875 [14:54:20]FM_GetShiftState [14:54:20]SAM_PROTO_GetShiftState [14:54:20]wFMCommunicate request_size=4 [14:54:20]MH_SAM_APDU [14:54:20]CAPDU: 80 13 01 00 [14:54:20]Write to MH i2c: E2 08 00 47 96 80 13 01 00 00 00 00 00 5A [14:54:20]Write i2c OK [14:54:20]MH_I2C_Read... [14:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:20]Read from MH i2c: E2 [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: E2 0E 00 [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: E2 0E 00 47 96 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F6 [14:54:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:54:20]wFMCommunicate OK [14:54:20]SAM_PROTO_GetShiftState done [14:54:20]FM_GetShiftState done [14:54:20]opened in 1710115571 [14:54:20]opened+sec_in_day 1710201971 [14:54:20]quantity*price = 62900 [14:54:20]sum+1 = 62901 [14:54:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 101 11.03.2024 14:54 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94926 ФПД: 110519968837337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145435&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94926&fm=110519968837337&tin=02508201610067®Number=0000000000090555&sum=62900 [14:54:21]StoreToDocumentArchive [14:54:21]shift 326 fd 94926 [14:54:21]save to /storage/0326/doc_00094926 [14:54:21]save last doc name /storage/0326/doc_00094926 to /storage/kkm_last_doc_name [14:54:21]save OK [14:54:21]Clear old archive folders... [14:54:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:21]tlvbuf is 001E5500 [14:54:21]SAM_PROTO_ClearQueue [14:54:21]wFMCommunicate request_size=4 [14:54:21]MH_SAM_APDU [14:54:21]CAPDU: 80 09 00 00 [14:54:21]Write to MH i2c: E2 08 00 54 96 80 09 00 00 00 00 00 00 5C [14:54:21]Write i2c OK [14:54:21]MH_I2C_Read... [14:54:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:21]Read from MH i2c: E2 [14:54:21]MH_I2C_Read... [14:54:21]Read from MH i2c: E2 03 00 [14:54:21]MH_I2C_Read... [14:54:21]Read from MH i2c: E2 03 00 54 96 00 90 00 5E [14:54:21]RAPDU: 90 00 [14:54:21]wFMCommunicate OK [14:54:21]SAM_PROTO_ClearQueue done [14:54:21]KKMCreateOFDPacket [14:54:21]OFDProtocolAddRootSTLVToBuf [14:54:21]FM_MakeSignedData [14:54:21]FM_MakeSignedData [14:54:21]SAM_PROTO_SignData [14:54:21]wFMCommunicate request_size=4 [14:54:21]MH_SAM_APDU [14:54:21]CAPDU: 80 0D 01 02 [14:54:21]Write to MH i2c: E2 08 00 55 96 80 0D 01 02 00 00 00 00 64 [14:54:21]Write i2c OK [14:54:21]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 03 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 03 00 55 96 00 90 00 5F [14:54:22]RAPDU: 90 00 [14:54:22]wFMCommunicate OK [14:54:22]wFMCommunicate request_size=255 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2B 1B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 72 01 00 35 04 06 00 64 [14:54:22]Write to MH i2c: E2 02 01 56 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2B 1B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 72 01 00 35 04 06 00 64 00 00 92 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 03 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 03 00 56 96 00 90 00 60 [14:54:22]RAPDU: 90 00 [14:54:22]wFMCommunicate OK [14:54:22]wFMCommunicate request_size=10 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 0D 02 02 05 84 6F 7B AE D9 [14:54:22]Write to MH i2c: E2 0D 00 57 96 80 0D 02 02 05 00 84 6F 7B AE D9 00 00 66 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 03 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 03 00 57 96 00 90 00 61 [14:54:22]RAPDU: 90 00 [14:54:22]wFMCommunicate OK [14:54:22]wFMCommunicate request_size=4 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 0D 03 02 [14:54:22]Write to MH i2c: E2 08 00 58 96 80 0D 03 02 00 00 00 00 69 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 0B 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 0B 00 58 96 00 E3 77 15 8D F4 12 F6 2B 90 00 8D [14:54:22]RAPDU: E3 77 15 8D F4 12 F6 2B 90 00 [14:54:22]wFMCommunicate OK [14:54:22]SAM_PROTO_SignData done [14:54:22]FM_MakeSignedData done [14:54:22]CreateOFDProtocolMessage [14:54:22]wFMCommunicate request_size=4 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 11 00 00 [14:54:22]Write to MH i2c: E2 08 00 59 96 80 11 00 00 00 00 00 00 69 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 17 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 17 00 59 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B9 [14:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:54:22]wFMCommunicate OK [14:54:22]CreateOFDProtocolMessage done [14:54:22]OFDSenderStorePacket 94926 [14:54:22]StoreOFDPacket docnum=94926 [14:54:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CF 88 07 01 B8 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2B 1B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 72 01 00 35 04 06 00 64 84 6F 7B AE D9 E3 77 15 8D F4 12 F6 2B [14:54:22]CheckFolder [14:54:22]dirname=/storage/ofd_packets [14:54:22]CheckFolder done [14:54:22]ProducePacketName [14:54:22]name=ofd_packets/00094926 [14:54:22]NVStorageSaveData ofd_packets/00094926 [14:54:22]File name is /storage/ofd_packets/00094926 [14:54:22]Write 301 bytes [14:54:22]NVStorageSaveData done [14:54:22]OFDSenderStorePacket done [14:54:22]KKMCreateOFDPacket done [14:54:22]NVStorageSaveData kkm_last_timestamp [14:54:22]File name is /storage/kkm_last_timestamp [14:54:22]Write 4 bytes [14:54:22]NVStorageSaveData done [14:54:22]ExternCall_PrintAddStr [14:54:22]wPrintStart [14:54:22]Write to MH i2c: 01 00 00 5A 96 F0 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: 01 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: 01 07 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: 01 07 00 5A 96 00 80 00 00 00 FF 0F 85 [14:54:22]RasterBufferAndPrint [14:54:22]line Счет N : (1)195884 [14:54:22]line ИНН: 02508201610067 [14:54:22]line Контрольно-Кассовый Чек [14:54:22]line ПРОДАЖА [14:54:22]line ТРК (МРК, ГНК) : 42 [14:54:22]line Товар: 2710124130 [14:54:22]line Аи-92-К-5 [14:54:22]line 10.000 * 62.90 [14:54:22]line = 629.00 [14:54:22]line НДС 12% НСП 1% [14:54:22]line > о реализуемом товаре [14:54:22]line ИТОГО: 629.00 [14:54:22]line НСП 1% : 5.57 [14:54:22]line НДС 12% : 66.80 [14:54:22]line Наличными: 0.00 [14:54:22]line Безнал.: 629.00 [14:54:22]line Место: АЗС № 6 "Партнер Нефть" [14:54:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:54:22]line СНО: Общий режим [14:54:22]line Чек 101 11.03.2024 14:54 [14:54:22]line Смена: 326 ФФД: 1.0 [14:54:22]line ЗНМ: 0300000009 [14:54:22]line РНМ: 0000000000090555 [14:54:22]line Версия ККМ: 001 [14:54:22]line Платежная система: О! деньги [14:54:22]line ФМ: 0000000000874811 [14:54:22]line ФД: 94926 [14:54:22]line ФПД: 110519968837337 [14:54:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145435&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94926&fm=110519968837337&tin=02508201610067®Number=0000000000090555&sum=62900 [14:54:22]OFD Sender: Processing packet 94926 [packets to send 30, broken 29] [14:54:22]ProducePacketName [14:54:22]name=ofd_packets/00094926 [14:54:22]OFD Sender: To server: pG, [14:54:22]CommunicateWithHost lk.salyk.kg:30040 [14:54:22]ConnectInit lk.salyk.kg [14:54:22]written 0, free lines is 4095 [14:54:22]Connected sock=10 [14:54:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CF 88 07 01 B8 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2B 1B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 72 01 00 35 04 06 00 64 84 6F 7B AE D9 E3 77 15 8D F4 12 F6 2B [14:54:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D7 A6 47 00 11 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 31 31 10 04 04 00 CE 72 01 00 F4 03 04 00 84 C6 EE 65 B6 04 01 00 00 F6 12 DC 53 8F FF 07 C8 [14:54:23]CommunicateWithHost err = 0 [14:54:23]CheckOFDResponse [14:54:23]1017 (14) - 77093643461234 [14:54:23]1041 (16) - 0000000000874811 [14:54:23]1040 (4) - 94926 [14:54:23]1012 (4) - 11.03.2024 08:53 [14:54:23]1206 (1) - 0 [14:54:23]OFD Sender: Remove packet 94926 [14:54:23]ProducePacketName [14:54:23]name=ofd_packets/00094926 [14:54:23]NVStorageDeleteData [14:54:23]Write to MH i2c: 01 00 00 84 96 1A [14:54:23]Write i2c OK [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: 01 [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: 01 07 00 [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: 01 07 00 84 96 00 80 00 00 00 6B 0D 19 [14:54:23]RasterBufferAndPrint [14:54:23]line [14:54:23]line [14:54:23]line [14:54:23]line [14:54:23]line [14:54:23]written 0, free lines is 3441 [14:54:23]process_action close_receipt done [14:54:23]requested_data is exist [14:54:23]produce_requested_data [14:54:23]requested_item fm.sn is exist - process it [14:54:23]wFMCommunicate request_size=4 [14:54:23]MH_SAM_APDU [14:54:23]CAPDU: 80 11 00 00 [14:54:23]Write to MH i2c: E2 08 00 8B 96 80 11 00 00 00 00 00 00 9B [14:54:23]Write i2c OK [14:54:23]MH_I2C_Read... [14:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:23]Read from MH i2c: E2 [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: E2 17 00 [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: E2 17 00 8B 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EB [14:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:54:23]wFMCommunicate OK [14:54:23]requested_item fd.num is exist - process it [14:54:23]SAM_PROTO_GetFieldsCounters [14:54:23]wFMCommunicate request_size=4 [14:54:23]MH_SAM_APDU [14:54:23]CAPDU: 80 13 00 00 [14:54:23]Write to MH i2c: E2 08 00 8C 96 80 13 00 00 00 00 00 00 9E [14:54:23]Write i2c OK [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: E2 [14:54:23]MH_I2C_Read... [14:54:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:23]Read from MH i2c: E2 62 00 [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: E2 62 00 8C 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [14:54:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:23]wFMCommunicate OK [14:54:23]SAM_PROTO_GetFieldsCounters done [14:54:23]requested_item shift.num is exist - process it [14:54:23]requested_item shift.opened is exist - process it [14:54:23]req_shift_opened [14:54:23]FM_GetShiftState [14:54:23]SAM_PROTO_GetShiftState [14:54:23]wFMCommunicate request_size=4 [14:54:23]MH_SAM_APDU [14:54:23]CAPDU: 80 13 01 00 [14:54:23]Write to MH i2c: E2 08 00 8D 96 80 13 01 00 00 00 00 00 A0 [14:54:23]Write i2c OK [14:54:23]MH_I2C_Read... [14:54:23]OFD Sender: No OFD packet to send [14:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:23]Read from MH i2c: E2 [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: E2 0E 00 [14:54:23]MH_I2C_Read... [14:54:23]Read from MH i2c: E2 0E 00 8D 96 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3C [14:54:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:54:23]wFMCommunicate OK [14:54:23]SAM_PROTO_GetShiftState done [14:54:23]FM_GetShiftState done [14:54:23]req_shift_opened done [14:54:23]requested_item shift.open_date is exist - process it [14:54:23]req_shift_open_date [14:54:23]req_shift_open_date done [14:54:23]produce_requested_data done [14:54:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94926,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:54:23]process_action_free close_receipt [14:54:23]json_value_free [14:54:23]json_value_free done [14:54:23]process_json_proto returns [14:54:23]Send response to host [14:54:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94926,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:54:23]free response buf [14:54:23]execute_script done [14:54:23]execute_script returns [14:54:23]free content buf [14:54:23]Sock 7.Close socket [14:54:23]Sock 7.Thread stoped [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:57]accept exits with 9 [14:55:57]New connection [14:55:57]New thread 3066871140 created [14:55:57]Thread 3067014500 joined [14:55:57]Waiting for new connection... [14:55:57] Sock 9.Parse request [14:55:57]Sock 9.Check first char [14:55:57]Sock 9.First char is OK [14:55:57]request: POST /json_proto HTTP/1.0 [14:55:57]Method: POST [14:55:57]URL: /json_proto [14:55:57]Method is POST - this is cgi request [14:55:57]url: /json_proto [14:55:57]query_string will be loaded in cgi processing [14:55:57]execute_cgi json_proto POST (null) [14:55:57]execute_cgi path=json_proto method=POST [14:55:57]POST find Content-Length [14:55:57]Host: 172.17.62.67:8080 [14:55:57]Content-Length: 679 [14:55:57]Content-Type: application/json [14:55:57] [14:55:57]POST finish read [14:55:57]Found Content-Length = 679 [14:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:57]execute_script... [14:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:57]POST & json_proto [14:55:57]process_json_proto [14:55:57]json parsed OK: [14:55:57]protocol is kg_v1.0 [14:55:57]action value=close_receipt [14:55:57]process_action close_receipt [14:55:57]cmd_close_receipt [14:55:57]MH_GetDate [14:55:57]Write to MH i2c: F0 00 00 8E 96 13 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: F0 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: F0 05 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: F0 05 00 8E 96 00 8B 1B EF 65 12 [14:55:57]GetLastDocTimeStamp 1710168875 [14:55:57]current date 1710168971 [14:55:57]FM_GetShiftState [14:55:57]SAM_PROTO_GetShiftState [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 13 01 00 [14:55:57]Write to MH i2c: E2 08 00 8F 96 80 13 01 00 00 00 00 00 A2 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0E 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0E 00 8F 96 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3E [14:55:57]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_GetShiftState done [14:55:57]FM_GetShiftState done [14:55:57]opened in 1710115571 [14:55:57]opened+sec_in_day 1710201971 [14:55:57]quantity*price = 100039 [14:55:57]sum+1 = 100041 [14:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 102 11.03.2024 14:56 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94927 ФПД: 266165275205075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145612&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94927&fm=266165275205075&tin=02508201610067®Number=0000000000090555&sum=100000 [14:55:58]StoreToDocumentArchive [14:55:58]shift 326 fd 94927 [14:55:58]save to /storage/0326/doc_00094927 [14:55:58]save last doc name /storage/0326/doc_00094927 to /storage/kkm_last_doc_name [14:55:58]save OK [14:55:58]Clear old archive folders... [14:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:55:58]tlvbuf is 004EA7B0 [14:55:58]SAM_PROTO_ClearQueue [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 09 00 00 [14:55:58]Write to MH i2c: E2 08 00 9C 96 80 09 00 00 00 00 00 00 A4 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:58]Read from MH i2c: E2 03 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 9C 96 00 90 00 A6 [14:55:58]RAPDU: 90 00 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_ClearQueue done [14:55:58]KKMCreateOFDPacket [14:55:58]OFDProtocolAddRootSTLVToBuf [14:55:58]FM_MakeSignedData [14:55:58]FM_MakeSignedData [14:55:58]SAM_PROTO_SignData [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 0D 01 02 [14:55:58]Write to MH i2c: E2 08 00 9D 96 80 0D 01 02 00 00 00 00 AC [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 9D 96 00 90 00 A7 [14:55:58]RAPDU: 90 00 [14:55:58]wFMCommunicate OK [14:55:58]wFMCommunicate request_size=255 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 8C 1B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 72 01 00 35 04 06 00 F2 13 6E AE [14:55:58]Write to MH i2c: E2 02 01 9E 96 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 8C 1B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 72 01 00 35 04 06 00 F2 13 6E AE 00 00 F0 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]OFD Sender: No OFD packet to send [14:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 9E 96 00 90 00 A8 [14:55:58]RAPDU: 90 00 [14:55:58]wFMCommunicate OK [14:55:58]wFMCommunicate request_size=7 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 0D 02 02 02 1D D3 [14:55:58]Write to MH i2c: E2 0A 00 9F 96 80 0D 02 02 02 00 1D D3 00 00 A3 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 9F 96 00 90 00 A9 [14:55:58]RAPDU: 90 00 [14:55:58]wFMCommunicate OK [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 0D 03 02 [14:55:58]Write to MH i2c: E2 08 00 A0 96 80 0D 03 02 00 00 00 00 B1 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0B 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0B 00 A0 96 00 7C EB B4 EE 74 DD E6 FB 90 00 ED [14:55:58]RAPDU: 7C EB B4 EE 74 DD E6 FB 90 00 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_SignData done [14:55:58]FM_MakeSignedData done [14:55:58]CreateOFDProtocolMessage [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 11 00 00 [14:55:58]Write to MH i2c: E2 08 00 A1 96 80 11 00 00 00 00 00 00 B1 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 A1 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 01 [14:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:55:58]wFMCommunicate OK [14:55:58]CreateOFDProtocolMessage done [14:55:58]OFDSenderStorePacket 94927 [14:55:58]StoreOFDPacket docnum=94927 [14:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 03 A6 04 01 40 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 8C 1B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 72 01 00 35 04 06 00 F2 13 6E AE 1D D3 7C EB B4 EE 74 DD E6 FB [14:55:58]CheckFolder [14:55:58]dirname=/storage/ofd_packets [14:55:58]CheckFolder done [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00094927 [14:55:58]NVStorageSaveData ofd_packets/00094927 [14:55:58]File name is /storage/ofd_packets/00094927 [14:55:58]Write 298 bytes [14:55:58]NVStorageSaveData done [14:55:58]OFDSenderStorePacket done [14:55:58]KKMCreateOFDPacket done [14:55:58]NVStorageSaveData kkm_last_timestamp [14:55:58]File name is /storage/kkm_last_timestamp [14:55:58]Write 4 bytes [14:55:58]NVStorageSaveData done [14:55:58]ExternCall_PrintAddStr [14:55:58]wPrintStart [14:55:58]Write to MH i2c: 01 00 00 A2 96 38 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 A2 96 00 80 00 00 00 FF 0F CD [14:55:58]RasterBufferAndPrint [14:55:58]line Счет N : (1)195885 [14:55:58]line ИНН: 02508201610067 [14:55:58]line Контрольно-Кассовый Чек [14:55:58]line ПРОДАЖА [14:55:58]line ТРК (МРК, ГНК) : 61 [14:55:58]line Товар: 2710194210 [14:55:58]line ДТ-К-5 [14:55:58]line 14.110 * 70.90 [14:55:58]line = 1000.40 [14:55:58]line НДС 12% НСП 1% [14:55:58]line > о реализуемом товаре [14:55:58]line ОКРУГЛЕНИЕ: -0.40 [14:55:58]line ИТОГО: 1000.00 [14:55:58]line Внесено: 1000.00 [14:55:58]line СДАЧА: 0.00 [14:55:58]line НСП 1% : 8.85 [14:55:58]line НДС 12% : 106.24 [14:55:58]line Наличными: 1000.00 [14:55:58]line Безнал.: 0.00 [14:55:58]line Место: АЗС № 6 "Партнер Нефть" [14:55:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:55:58]line СНО: Общий режим [14:55:58]line Чек 102 11.03.2024 14:56 [14:55:58]line Смена: 326 ФФД: 1.0 [14:55:58]line ЗНМ: 0300000009 [14:55:58]line РНМ: 0000000000090555 [14:55:58]line Версия ККМ: 001 [14:55:58]line ФМ: 0000000000874811 [14:55:58]line ФД: 94927 [14:55:58]line ФПД: 266165275205075 [14:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145612&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94927&fm=266165275205075&tin=02508201610067®Number=0000000000090555&sum=100000 [14:55:59]written 0, free lines is 4095 [14:55:59]OFD Sender: Processing packet 94927 [packets to send 30, broken 29] [14:55:59]ProducePacketName [14:55:59]name=ofd_packets/00094927 [14:55:59]OFD Sender: To server: pG, [14:55:59]CommunicateWithHost lk.salyk.kg:30040 [14:55:59]ConnectInit lk.salyk.kg [14:55:59]Connected sock=10 [14:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 03 A6 04 01 40 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 8C 1B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 72 01 00 35 04 06 00 F2 13 6E AE 1D D3 7C EB B4 EE 74 DD E6 FB [14:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6E 8A 47 00 6B FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 72 01 00 F4 03 04 00 E5 C6 EE 65 B6 04 01 00 00 45 AB 5D 1A 0B 10 0B 0E [14:55:59]CommunicateWithHost err = 0 [14:55:59]CheckOFDResponse [14:55:59]1017 (14) - 77093643461234 [14:55:59]1041 (16) - 0000000000874811 [14:55:59]1040 (4) - 94927 [14:55:59]1012 (4) - 11.03.2024 08:55 [14:55:59]1206 (1) - 0 [14:55:59]OFD Sender: Remove packet 94927 [14:55:59]ProducePacketName [14:55:59]name=ofd_packets/00094927 [14:55:59]NVStorageDeleteData [14:55:59]Write to MH i2c: 01 00 00 CD 96 63 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: 01 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: 01 07 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: 01 07 00 CD 96 00 80 00 00 00 4E 0D 45 [14:55:59]RasterBufferAndPrint [14:55:59]line [14:55:59]line [14:55:59]line [14:55:59]line [14:55:59]line [14:55:59]written 0, free lines is 3412 [14:55:59]process_action close_receipt done [14:55:59]requested_data is exist [14:55:59]produce_requested_data [14:55:59]requested_item fm.sn is exist - process it [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 11 00 00 [14:55:59]Write to MH i2c: E2 08 00 D4 96 80 11 00 00 00 00 00 00 E4 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 17 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 17 00 D4 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 34 [14:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:55:59]wFMCommunicate OK [14:55:59]requested_item fd.num is exist - process it [14:55:59]SAM_PROTO_GetFieldsCounters [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 13 00 00 [14:55:59]Write to MH i2c: E2 08 00 D5 96 80 13 00 00 00 00 00 00 E7 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 62 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 62 00 D5 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CF 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [14:55: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CF 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetFieldsCounters done [14:55:59]requested_item shift.num is exist - process it [14:55:59]requested_item shift.opened is exist - process it [14:55:59]req_shift_opened [14:55:59]FM_GetShiftState [14:55:59]SAM_PROTO_GetShiftState [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 13 01 00 [14:55:59]Write to MH i2c: E2 08 00 D6 96 80 13 01 00 00 00 00 00 E9 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 D6 96 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 85 [14:55:59]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetShiftState done [14:55:59]FM_GetShiftState done [14:55:59]req_shift_opened done [14:55:59]requested_item shift.open_date is exist - process it [14:55:59]req_shift_open_date [14:55:59]req_shift_open_date done [14:55:59]produce_requested_data done [14:55:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94927,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:55:59]process_action_free close_receipt [14:55:59]json_value_free [14:55:59]json_value_free done [14:55:59]process_json_proto returns [14:55:59]Send response to host [14:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94927,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:55:59]free response buf [14:55:59]execute_script done [14:55:59]execute_script returns [14:55:59]free content buf [14:55:59]Sock 9.Close socket [14:55:59]Sock 9.Thread stoped [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:14]accept exits with 7 [14:59:14]New connection [14:59:14]New thread 3067014500 created [14:59:14]Thread 3066871140 joined [14:59:14]Waiting for new connection... [14:59:14] Sock 7.Parse request [14:59:14]Sock 7.Check first char [14:59:14]Sock 7.First char is OK [14:59:14]request: POST /json_proto HTTP/1.0 [14:59:14]Method: POST [14:59:14]URL: /json_proto [14:59:14]Method is POST - this is cgi request [14:59:14]url: /json_proto [14:59:14]query_string will be loaded in cgi processing [14:59:14]execute_cgi json_proto POST (null) [14:59:14]execute_cgi path=json_proto method=POST [14:59:14]POST find Content-Length [14:59:14]Host: 172.17.62.67:8080 [14:59:14]Content-Length: 675 [14:59:14]Content-Type: application/json [14:59:14] [14:59:14]POST finish read [14:59:14]Found Content-Length = 675 [14:59:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 11.290, "sum" : 800.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:14]execute_script... [14:59: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)195886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 11.290, "sum" : 800.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:14]POST & json_proto [14:59:14]process_json_proto [14:59:14]json parsed OK: [14:59:14]protocol is kg_v1.0 [14:59:14]action value=close_receipt [14:59:14]process_action close_receipt [14:59:14]cmd_close_receipt [14:59:14]MH_GetDate [14:59:14]Write to MH i2c: F0 00 00 D7 96 5C [14:59:14]Write i2c OK [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: F0 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: F0 05 00 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: F0 05 00 D7 96 00 50 1C EF 65 21 [14:59:14]GetLastDocTimeStamp 1710168972 [14:59:14]current date 1710169168 [14:59:14]FM_GetShiftState [14:59:14]SAM_PROTO_GetShiftState [14:59:14]wFMCommunicate request_size=4 [14:59:14]MH_SAM_APDU [14:59:14]CAPDU: 80 13 01 00 [14:59:14]Write to MH i2c: E2 08 00 D8 96 80 13 01 00 00 00 00 00 EB [14:59:14]Write i2c OK [14:59:14]MH_I2C_Read... [14:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:14]Read from MH i2c: E2 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: E2 0E 00 [14:59:14]MH_I2C_Read... [14:59:14]Read from MH i2c: E2 0E 00 D8 96 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 87 [14:59:14]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:59:14]wFMCommunicate OK [14:59:14]SAM_PROTO_GetShiftState done [14:59:14]FM_GetShiftState done [14:59:14]opened in 1710115571 [14:59:14]opened+sec_in_day 1710201971 [14:59:14]quantity*price = 80046 [14:59:14]sum+1 = 80047 [14:59:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 103 11.03.2024 14:59 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94928 ФПД: 111195688350543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145929&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94928&fm=111195688350543&tin=02508201610067®Number=0000000000090555&sum=80000 [14:59:15]StoreToDocumentArchive [14:59:15]shift 326 fd 94928 [14:59:15]save to /storage/0326/doc_00094928 [14:59:15]save last doc name /storage/0326/doc_00094928 to /storage/kkm_last_doc_name [14:59:15]save OK [14:59:15]Clear old archive folders... [14:59:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:15]tlvbuf is 0020A1E0 [14:59:15]SAM_PROTO_ClearQueue [14:59:15]wFMCommunicate request_size=4 [14:59:15]MH_SAM_APDU [14:59:15]CAPDU: 80 09 00 00 [14:59:15]Write to MH i2c: E2 08 00 E5 96 80 09 00 00 00 00 00 00 ED [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:15]Read from MH i2c: E2 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 03 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 03 00 E5 96 00 90 00 EF [14:59:15]RAPDU: 90 00 [14:59:15]wFMCommunicate OK [14:59:15]SAM_PROTO_ClearQueue done [14:59:15]KKMCreateOFDPacket [14:59:15]OFDProtocolAddRootSTLVToBuf [14:59:15]FM_MakeSignedData [14:59:15]FM_MakeSignedData [14:59:15]SAM_PROTO_SignData [14:59:15]wFMCommunicate request_size=4 [14:59:15]MH_SAM_APDU [14:59:15]CAPDU: 80 0D 01 02 [14:59:15]Write to MH i2c: E2 08 00 E6 96 80 0D 01 02 00 00 00 00 F5 [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:15]Read from MH i2c: E2 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 03 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 03 00 E6 96 00 90 00 F0 [14:59:15]RAPDU: 90 00 [14:59:15]wFMCommunicate OK [14:59:15]wFMCommunicate request_size=255 [14:59:15]MH_SAM_APDU [14:59:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 51 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 72 01 00 35 04 06 00 65 21 C3 81 [14:59:15]Write to MH i2c: E2 02 01 E7 96 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 51 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 72 01 00 35 04 06 00 65 21 C3 81 00 00 51 [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:15]Read from MH i2c: E2 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 03 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 03 00 E7 96 00 90 00 F1 [14:59:15]RAPDU: 90 00 [14:59:15]wFMCommunicate OK [14:59:15]wFMCommunicate request_size=7 [14:59:15]MH_SAM_APDU [14:59:15]CAPDU: 80 0D 02 02 02 33 4F [14:59:15]Write to MH i2c: E2 0A 00 E8 96 80 0D 02 02 02 00 33 4F 00 00 7E [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:15]Read from MH i2c: E2 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 03 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 03 00 E8 96 00 90 00 F2 [14:59:15]RAPDU: 90 00 [14:59:15]wFMCommunicate OK [14:59:15]wFMCommunicate request_size=4 [14:59:15]MH_SAM_APDU [14:59:15]CAPDU: 80 0D 03 02 [14:59:15]Write to MH i2c: E2 08 00 E9 96 80 0D 03 02 00 00 00 00 FA [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:15]Read from MH i2c: E2 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 0B 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 0B 00 E9 96 00 4A 16 42 4C 2F 7D B7 66 90 00 B2 [14:59:15]RAPDU: 4A 16 42 4C 2F 7D B7 66 90 00 [14:59:15]wFMCommunicate OK [14:59:15]SAM_PROTO_SignData done [14:59:15]FM_MakeSignedData done [14:59:15]CreateOFDProtocolMessage [14:59:15]wFMCommunicate request_size=4 [14:59:15]MH_SAM_APDU [14:59:15]CAPDU: 80 11 00 00 [14:59:15]Write to MH i2c: E2 08 00 EA 96 80 11 00 00 00 00 00 00 FA [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:15]Read from MH i2c: E2 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 17 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: E2 17 00 EA 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4A [14:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:59:15]wFMCommunicate OK [14:59:15]CreateOFDProtocolMessage done [14:59:15]OFDSenderStorePacket 94928 [14:59:15]StoreOFDPacket docnum=94928 [14:59:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 F2 46 04 01 BF 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 51 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 72 01 00 35 04 06 00 65 21 C3 81 33 4F 4A 16 42 4C 2F 7D B7 66 [14:59:15]CheckFolder [14:59:15]dirname=/storage/ofd_packets [14:59:15]CheckFolder done [14:59:15]ProducePacketName [14:59:15]name=ofd_packets/00094928 [14:59:15]NVStorageSaveData ofd_packets/00094928 [14:59:15]File name is /storage/ofd_packets/00094928 [14:59:15]Write 298 bytes [14:59:15]NVStorageSaveData done [14:59:15]OFDSenderStorePacket done [14:59:15]KKMCreateOFDPacket done [14:59:15]NVStorageSaveData kkm_last_timestamp [14:59:15]File name is /storage/kkm_last_timestamp [14:59:15]Write 4 bytes [14:59:15]NVStorageSaveData done [14:59:15]ExternCall_PrintAddStr [14:59:15]wPrintStart [14:59:15]Write to MH i2c: 01 00 00 EB 96 81 [14:59:15]Write i2c OK [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: 01 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: 01 07 00 [14:59:15]MH_I2C_Read... [14:59:15]Read from MH i2c: 01 07 00 EB 96 00 80 00 00 00 FF 0F 16 [14:59:15]RasterBufferAndPrint [14:59:15]line Счет N : (1)195886 [14:59:15]line ИНН: 02508201610067 [14:59:15]line Контрольно-Кассовый Чек [14:59:15]line ПРОДАЖА [14:59:15]line ТРК (МРК, ГНК) : 61 [14:59:15]line Товар: 2710194210 [14:59:15]line ДТ-К-5 [14:59:15]line 11.290 * 70.90 [14:59:15]line = 800.46 [14:59:15]line НДС 12% НСП 1% [14:59:15]line > о реализуемом товаре [14:59:15]line ОКРУГЛЕНИЕ: -0.46 [14:59:15]line ИТОГО: 800.00 [14:59:15]line Внесено: 800.00 [14:59:15]line СДАЧА: 0.00 [14:59:15]line НСП 1% : 7.08 [14:59:15]line НДС 12% : 85.00 [14:59:15]line Наличными: 800.00 [14:59:15]line Безнал.: 0.00 [14:59:15]line Место: АЗС № 6 "Партнер Нефть" [14:59:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:59:15]line СНО: Общий режим [14:59:15]line Чек 103 11.03.2024 14:59 [14:59:15]line Смена: 326 ФФД: 1.0 [14:59:15]line ЗНМ: 0300000009 [14:59:15]line РНМ: 0000000000090555 [14:59:15]line Версия ККМ: 001 [14:59:15]line ФМ: 0000000000874811 [14:59:15]line ФД: 94928 [14:59:15]line ФПД: 111195688350543 [14:59:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T145929&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94928&fm=111195688350543&tin=02508201610067®Number=0000000000090555&sum=80000 [14:59:16]OFD Sender: Processing packet 94928 [packets to send 30, broken 29] [14:59:16]ProducePacketName [14:59:16]name=ofd_packets/00094928 [14:59:16]OFD Sender: To server: pG, [14:59:16]CommunicateWithHost lk.salyk.kg:30040 [14:59:16]ConnectInit lk.salyk.kg [14:59:16]written 0, free lines is 4095 [14:59:16]Connected sock=10 [14:59: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 31 31 0C 01 00 00 F2 46 04 01 BF 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 51 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 72 01 00 35 04 06 00 65 21 C3 81 33 4F 4A 16 42 4C 2F 7D B7 66 [14:59: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 31 31 4F 00 00 00 37 70 47 00 9C 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 31 31 10 04 04 00 D0 72 01 00 F4 03 04 00 AA C7 EE 65 B6 04 01 00 00 0C 47 09 CF 22 B6 F2 01 [14:59:16]CommunicateWithHost err = 0 [14:59:16]CheckOFDResponse [14:59:16]1017 (14) - 77093643461234 [14:59:16]1041 (16) - 0000000000874811 [14:59:16]1040 (4) - 94928 [14:59:16]1012 (4) - 11.03.2024 08:58 [14:59:16]1206 (1) - 0 [14:59:16]OFD Sender: Remove packet 94928 [14:59:16]ProducePacketName [14:59:16]name=ofd_packets/00094928 [14:59:16]NVStorageDeleteData [14:59:16]Write to MH i2c: 01 00 00 16 97 AD [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: 01 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: 01 07 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: 01 07 00 16 97 00 80 00 00 00 55 0D 96 [14:59:16]RasterBufferAndPrint [14:59:16]line [14:59:16]line [14:59:16]line [14:59:16]line [14:59:16]line [14:59:16]written 0, free lines is 3419 [14:59:16]process_action close_receipt done [14:59:16]requested_data is exist [14:59:16]produce_requested_data [14:59:16]requested_item fm.sn is exist - process it [14:59:16]wFMCommunicate request_size=4 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 11 00 00 [14:59:16]Write to MH i2c: E2 08 00 1D 97 80 11 00 00 00 00 00 00 2E [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 17 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 17 00 1D 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7E [14:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:59:16]wFMCommunicate OK [14:59:16]requested_item fd.num is exist - process it [14:59:16]SAM_PROTO_GetFieldsCounters [14:59:16]wFMCommunicate request_size=4 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 13 00 00 [14:59:16]Write to MH i2c: E2 08 00 1E 97 80 13 00 00 00 00 00 00 31 [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 62 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 62 00 1E 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [14:59: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:16]wFMCommunicate OK [14:59:16]SAM_PROTO_GetFieldsCounters done [14:59:16]requested_item shift.num is exist - process it [14:59:16]requested_item shift.opened is exist - process it [14:59:16]req_shift_opened [14:59:16]FM_GetShiftState [14:59:16]SAM_PROTO_GetShiftState [14:59:16]wFMCommunicate request_size=4 [14:59:16]MH_SAM_APDU [14:59:16]CAPDU: 80 13 01 00 [14:59:16]Write to MH i2c: E2 08 00 1F 97 80 13 01 00 00 00 00 00 33 [14:59:16]Write i2c OK [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 [14:59:16]MH_I2C_Read... [14:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:16]Read from MH i2c: E2 0E 00 [14:59:16]MH_I2C_Read... [14:59:16]Read from MH i2c: E2 0E 00 1F 97 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CF [14:59:16]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [14:59:16]wFMCommunicate OK [14:59:16]SAM_PROTO_GetShiftState done [14:59:16]FM_GetShiftState done [14:59:16]req_shift_opened done [14:59:16]requested_item shift.open_date is exist - process it [14:59:16]req_shift_open_date [14:59:16]req_shift_open_date done [14:59:16]produce_requested_data done [14:59:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94928,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [14:59:16]process_action_free close_receipt [14:59:16]json_value_free [14:59:16]json_value_free done [14:59:16]process_json_proto returns [14:59:16]Send response to host [14:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94928,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [14:59:16]free response buf [14:59:16]execute_script done [14:59:16]execute_script returns [14:59:16]free content buf [14:59:16]Sock 7.Close socket [14:59:16]Sock 7.Thread stoped [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:08]accept exits with 9 [15:01:08]New connection [15:01:08]New thread 3066871140 created [15:01:08]Thread 3067014500 joined [15:01:08]Waiting for new connection... [15:01:08] Sock 9.Parse request [15:01:08]Sock 9.Check first char [15:01:08]Sock 9.First char is OK [15:01:08]request: POST /json_proto HTTP/1.0 [15:01:08]Method: POST [15:01:08]URL: /json_proto [15:01:08]Method is POST - this is cgi request [15:01:08]url: /json_proto [15:01:08]query_string will be loaded in cgi processing [15:01:08]execute_cgi json_proto POST (null) [15:01:08]execute_cgi path=json_proto method=POST [15:01:08]POST find Content-Length [15:01:08]Host: 172.17.62.67:8080 [15:01:08]Content-Length: 678 [15:01:08]Content-Type: application/json [15:01:08] [15:01:08]POST finish read [15:01:08]Found Content-Length = 678 [15:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:08]execute_script... [15: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)195887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:08]POST & json_proto [15:01:08]process_json_proto [15:01:08]json parsed OK: [15:01:08]protocol is kg_v1.0 [15:01:08]action value=close_receipt [15:01:08]process_action close_receipt [15:01:08]cmd_close_receipt [15:01:08]MH_GetDate [15:01:08]Write to MH i2c: F0 00 00 20 97 A6 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: F0 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: F0 05 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: F0 05 00 20 97 00 C3 1C EF 65 DE [15:01:08]GetLastDocTimeStamp 1710169169 [15:01:08]current date 1710169283 [15:01:08]FM_GetShiftState [15:01:08]SAM_PROTO_GetShiftState [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 13 01 00 [15:01:08]Write to MH i2c: E2 08 00 21 97 80 13 01 00 00 00 00 00 35 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 0E 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 0E 00 21 97 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D1 [15:01:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:01:08]wFMCommunicate OK [15:01:08]SAM_PROTO_GetShiftState done [15:01:08]FM_GetShiftState done [15:01:08]opened in 1710115571 [15:01:08]opened+sec_in_day 1710201971 [15:01:08]quantity*price = 64032 [15:01:08]sum+1 = 64033 [15:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 68.00 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 104 11.03.2024 15:01 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94929 ФПД: 58371996651870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150123&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94929&fm=58371996651870&tin=02508201610067®Number=0000000000090555&sum=64000 [15:01:09]StoreToDocumentArchive [15:01:09]shift 326 fd 94929 [15:01:09]save to /storage/0326/doc_00094929 [15:01:09]save last doc name /storage/0326/doc_00094929 to /storage/kkm_last_doc_name [15:01:09]save OK [15:01:09]Clear old archive folders... [15:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:09]tlvbuf is 002987D0 [15:01:09]SAM_PROTO_ClearQueue [15:01:09]wFMCommunicate request_size=4 [15:01:09]MH_SAM_APDU [15:01:09]CAPDU: 80 09 00 00 [15:01:09]Write to MH i2c: E2 08 00 2E 97 80 09 00 00 00 00 00 00 37 [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:09]Read from MH i2c: E2 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 03 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 03 00 2E 97 00 90 00 39 [15:01:09]RAPDU: 90 00 [15:01:09]wFMCommunicate OK [15:01:09]SAM_PROTO_ClearQueue done [15:01:09]KKMCreateOFDPacket [15:01:09]OFDProtocolAddRootSTLVToBuf [15:01:09]FM_MakeSignedData [15:01:09]FM_MakeSignedData [15:01:09]SAM_PROTO_SignData [15:01:09]wFMCommunicate request_size=4 [15:01:09]MH_SAM_APDU [15:01:09]CAPDU: 80 0D 01 02 [15:01:09]Write to MH i2c: E2 08 00 2F 97 80 0D 01 02 00 00 00 00 3F [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 2F 97 00 90 00 3A [15:01:10]RAPDU: 90 00 [15:01:10]wFMCommunicate OK [15:01:10]wFMCommunicate request_size=255 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 72 01 00 35 04 06 00 35 [15:01:10]Write to MH i2c: E2 02 01 30 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 72 01 00 35 04 06 00 35 00 00 26 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 30 97 00 90 00 3B [15:01:10]RAPDU: 90 00 [15:01:10]wFMCommunicate OK [15:01:10]wFMCommunicate request_size=10 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 0D 02 02 05 16 CA 20 11 5E [15:01:10]Write to MH i2c: E2 0D 00 31 97 80 0D 02 02 05 00 16 CA 20 11 5E 00 00 BB [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 31 97 00 90 00 3C [15:01:10]RAPDU: 90 00 [15:01:10]wFMCommunicate OK [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 0D 03 02 [15:01:10]Write to MH i2c: E2 08 00 32 97 80 0D 03 02 00 00 00 00 44 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 0B 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 0B 00 32 97 00 42 01 CA D9 1A 7C 2C AF 90 00 9C [15:01:10]RAPDU: 42 01 CA D9 1A 7C 2C AF 90 00 [15:01:10]wFMCommunicate OK [15:01:10]SAM_PROTO_SignData done [15:01:10]FM_MakeSignedData done [15:01:10]CreateOFDProtocolMessage [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 11 00 00 [15:01:10]Write to MH i2c: E2 08 00 33 97 80 11 00 00 00 00 00 00 44 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 17 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 17 00 33 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 94 [15:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:01:10]wFMCommunicate OK [15:01:10]CreateOFDProtocolMessage done [15:01:10]OFDSenderStorePacket 94929 [15:01:10]StoreOFDPacket docnum=94929 [15:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 24 FA 07 01 AA 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 72 01 00 35 04 06 00 35 16 CA 20 11 5E 42 01 CA D9 1A 7C 2C AF [15:01:10]CheckFolder [15:01:10]dirname=/storage/ofd_packets [15:01:10]CheckFolder done [15:01:10]ProducePacketName [15:01:10]name=ofd_packets/00094929 [15:01:10]NVStorageSaveData ofd_packets/00094929 [15:01:10]File name is /storage/ofd_packets/00094929 [15:01:10]Write 301 bytes [15:01:10]NVStorageSaveData done [15:01:10]OFDSenderStorePacket done [15:01:10]KKMCreateOFDPacket done [15:01:10]NVStorageSaveData kkm_last_timestamp [15:01:10]File name is /storage/kkm_last_timestamp [15:01:10]Write 4 bytes [15:01:10]NVStorageSaveData done [15:01:10]ExternCall_PrintAddStr [15:01:10]wPrintStart [15:01:10]Write to MH i2c: 01 00 00 34 97 CB [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: 01 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: 01 07 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: 01 07 00 34 97 00 80 00 00 00 FF 0F 60 [15:01:10]RasterBufferAndPrint [15:01:10]line Счет N : (1)195887 [15:01:10]line ИНН: 02508201610067 [15:01:10]line Контрольно-Кассовый Чек [15:01:10]line ПРОДАЖА [15:01:10]line ТРК (МРК, ГНК) : 12 [15:01:10]line Товар: 2710124130 [15:01:10]line Аи-92-К-5 [15:01:10]line 10.180 * 62.90 [15:01:10]line = 640.32 [15:01:10]line НДС 12% НСП 1% [15:01:10]line > о реализуемом товаре [15:01:10]line ОКРУГЛЕНИЕ: -0.32 [15:01:10]line ИТОГО: 640.00 [15:01:10]line Внесено: 640.00 [15:01:10]line СДАЧА: 0.00 [15:01:10]line НСП 1% : 5.67 [15:01:10]line НДС 12% : 68.00 [15:01:10]line Наличными: 640.00 [15:01:10]line Безнал.: 0.00 [15:01:10]line Место: АЗС № 6 "Партнер Нефть" [15:01:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:01:10]line СНО: Общий режим [15:01:10]line Чек 104 11.03.2024 15:01 [15:01:10]line Смена: 326 ФФД: 1.0 [15:01:10]line ЗНМ: 0300000009 [15:01:10]line РНМ: 0000000000090555 [15:01:10]line Версия ККМ: 001 [15:01:10]line ФМ: 0000000000874811 [15:01:10]line ФД: 94929 [15:01:10]line ФПД: 58371996651870 [15:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150123&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94929&fm=58371996651870&tin=02508201610067®Number=0000000000090555&sum=64000 [15:01:10]OFD Sender: Processing packet 94929 [packets to send 30, broken 29] [15:01:10]ProducePacketName [15:01:10]name=ofd_packets/00094929 [15:01:10]OFD Sender: To server: pG, [15:01:10]CommunicateWithHost lk.salyk.kg:30040 [15:01:10]ConnectInit lk.salyk.kg [15:01:10]written 0, free lines is 4095 [15:01:10]Connected sock=10 [15: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 31 31 0F 01 00 00 24 FA 07 01 AA 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 C3 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 72 01 00 35 04 06 00 35 16 CA 20 11 5E 42 01 CA D9 1A 7C 2C AF [15:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 38 62 47 00 6C 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 31 31 10 04 04 00 D1 72 01 00 F4 03 04 00 1C C8 EE 65 B6 04 01 00 00 C7 D0 14 17 D9 2D 31 36 [15:01:11]CommunicateWithHost err = 0 [15:01:11]CheckOFDResponse [15:01:11]1017 (14) - 77093643461234 [15:01:11]1041 (16) - 0000000000874811 [15:01:11]1040 (4) - 94929 [15:01:11]1012 (4) - 11.03.2024 09:00 [15:01:11]1206 (1) - 0 [15:01:11]OFD Sender: Remove packet 94929 [15:01:11]ProducePacketName [15:01:11]name=ofd_packets/00094929 [15:01:11]NVStorageDeleteData [15:01:11]Write to MH i2c: 01 00 00 5F 97 F6 [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: 01 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: 01 07 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: 01 07 00 5F 97 00 80 00 00 00 52 0D DC [15:01:11]RasterBufferAndPrint [15:01:11]line [15:01:11]line [15:01:11]line [15:01:11]line [15:01:11]line [15:01:11]written 0, free lines is 3416 [15:01:11]process_action close_receipt done [15:01:11]requested_data is exist [15:01:11]produce_requested_data [15:01:11]requested_item fm.sn is exist - process it [15:01:11]wFMCommunicate request_size=4 [15:01:11]MH_SAM_APDU [15:01:11]CAPDU: 80 11 00 00 [15:01:11]Write to MH i2c: E2 08 00 66 97 80 11 00 00 00 00 00 00 77 [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:11]Read from MH i2c: E2 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 17 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 17 00 66 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [15:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:01:11]wFMCommunicate OK [15:01:11]requested_item fd.num is exist - process it [15:01:11]SAM_PROTO_GetFieldsCounters [15:01:11]wFMCommunicate request_size=4 [15:01:11]MH_SAM_APDU [15:01:11]CAPDU: 80 13 00 00 [15:01:11]Write to MH i2c: E2 08 00 67 97 80 13 00 00 00 00 00 00 7A [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:11]Read from MH i2c: E2 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 62 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 62 00 67 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [15:01:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:11]wFMCommunicate OK [15:01:11]SAM_PROTO_GetFieldsCounters done [15:01:11]requested_item shift.num is exist - process it [15:01:11]requested_item shift.opened is exist - process it [15:01:11]req_shift_opened [15:01:11]FM_GetShiftState [15:01:11]SAM_PROTO_GetShiftState [15:01:11]wFMCommunicate request_size=4 [15:01:11]MH_SAM_APDU [15:01:11]CAPDU: 80 13 01 00 [15:01:11]Write to MH i2c: E2 08 00 68 97 80 13 01 00 00 00 00 00 7C [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:11]Read from MH i2c: E2 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 0E 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 0E 00 68 97 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 18 [15:01:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:01:11]wFMCommunicate OK [15:01:11]SAM_PROTO_GetShiftState done [15:01:11]FM_GetShiftState done [15:01:11]req_shift_opened done [15:01:11]requested_item shift.open_date is exist - process it [15:01:11]req_shift_open_date [15:01:11]req_shift_open_date done [15:01:11]produce_requested_data done [15:01:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94929,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:01:11]process_action_free close_receipt [15:01:11]json_value_free [15:01:11]json_value_free done [15:01:11]process_json_proto returns [15:01:11]Send response to host [15:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94929,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:01:11]free response buf [15:01:11]execute_script done [15:01:11]execute_script returns [15:01:11]free content buf [15:01:11]Sock 9.Close socket [15:01:11]Sock 9.Thread stoped [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:42]accept exits with 7 [15:01:42]New connection [15:01:42]New thread 3067014500 created [15:01:42]Thread 3066871140 joined [15:01:42]Waiting for new connection... [15:01:42] Sock 7.Parse request [15:01:42]Sock 7.Check first char [15:01:42]Sock 7.First char is OK [15:01:42]request: POST /json_proto HTTP/1.0 [15:01:42]Method: POST [15:01:42]URL: /json_proto [15:01:42]Method is POST - this is cgi request [15:01:42]url: /json_proto [15:01:42]query_string will be loaded in cgi processing [15:01:42]execute_cgi json_proto POST (null) [15:01:42]execute_cgi path=json_proto method=POST [15:01:42]POST find Content-Length [15:01:42]Host: 172.17.62.67:8080 [15:01:42]Content-Length: 734 [15:01:42]Content-Type: application/json [15:01:42] [15:01:42]POST finish read [15:01:42]Found Content-Length = 734 [15:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94929, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:42]execute_script... [15:01:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94929, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:42]POST & json_proto [15:01:42]process_json_proto [15:01:42]json parsed OK: [15:01:42]protocol is kg_v1.0 [15:01:42]action value=close_receipt [15:01:42]process_action close_receipt [15:01:42]cmd_close_receipt [15:01:42]MH_GetDate [15:01:42]Write to MH i2c: F0 00 00 69 97 EF [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 05 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 05 00 69 97 00 E5 1C EF 65 49 [15:01:42]GetLastDocTimeStamp 1710169283 [15:01:42]current date 1710169317 [15:01:42]FM_GetShiftState [15:01:42]SAM_PROTO_GetShiftState [15:01:42]wFMCommunicate request_size=4 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 13 01 00 [15:01:42]Write to MH i2c: E2 08 00 6A 97 80 13 01 00 00 00 00 00 7E [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0E 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0E 00 6A 97 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 1A [15:01:42]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:01:42]wFMCommunicate OK [15:01:42]SAM_PROTO_GetShiftState done [15:01:42]FM_GetShiftState done [15:01:42]opened in 1710115571 [15:01:42]opened+sec_in_day 1710201971 [15:01:42]quantity*price = 64032 [15:01:42]sum+1 = 64033 [15:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 640.00 НСП 1% : 5.67 НДС 12% : 68.00 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 105 11.03.2024 15:01 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 94929 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 94930 ФПД: 204442645089342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150157&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94930&fm=204442645089342&tin=02508201610067®Number=0000000000090555&sum=64000 [15:01:44]StoreToDocumentArchive [15:01:44]shift 326 fd 94930 [15:01:44]save to /storage/0326/doc_00094930 [15:01:44]save last doc name /storage/0326/doc_00094930 to /storage/kkm_last_doc_name [15:01:44]save OK [15:01:44]Clear old archive folders... [15:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:01:44]tlvbuf is 002984E0 [15:01:44]SAM_PROTO_ClearQueue [15:01:44]wFMCommunicate request_size=4 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 09 00 00 [15:01:44]Write to MH i2c: E2 08 00 79 97 80 09 00 00 00 00 00 00 82 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 79 97 00 90 00 84 [15:01:44]RAPDU: 90 00 [15:01:44]wFMCommunicate OK [15:01:44]SAM_PROTO_ClearQueue done [15:01:44]KKMCreateOFDPacket [15:01:44]OFDProtocolAddRootSTLVToBuf [15:01:44]FM_MakeSignedData [15:01:44]FM_MakeSignedData [15:01:44]SAM_PROTO_SignData [15:01:44]wFMCommunicate request_size=4 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 0D 01 02 [15:01:44]Write to MH i2c: E2 08 00 7A 97 80 0D 01 02 00 00 00 00 8A [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 7A 97 00 90 00 85 [15:01:44]RAPDU: 90 00 [15:01:44]wFMCommunicate OK [15:01:44]wFMCommunicate request_size=255 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 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 E5 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 D1 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [15:01:44]Write to MH i2c: E2 02 01 7B 97 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 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 E5 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 D1 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 C1 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 7B 97 00 90 00 86 [15:01:44]RAPDU: 90 00 [15:01:44]wFMCommunicate OK [15:01:44]wFMCommunicate request_size=38 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 72 01 00 35 04 06 00 B9 F0 83 3C CC 3E [15:01:44]Write to MH i2c: E2 29 00 7C 97 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 72 01 00 35 04 06 00 B9 F0 83 3C CC 3E 00 00 CA [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 03 00 7C 97 00 90 00 87 [15:01:44]RAPDU: 90 00 [15:01:44]wFMCommunicate OK [15:01:44]wFMCommunicate request_size=4 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 0D 03 02 [15:01:44]Write to MH i2c: E2 08 00 7D 97 80 0D 03 02 00 00 00 00 8F [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 0B 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 0B 00 7D 97 00 90 00 63 FE A9 B0 2F 4A 90 00 53 [15:01:44]RAPDU: 90 00 63 FE A9 B0 2F 4A 90 00 [15:01:44]wFMCommunicate OK [15:01:44]SAM_PROTO_SignData done [15:01:44]FM_MakeSignedData done [15:01:44]CreateOFDProtocolMessage [15:01:44]wFMCommunicate request_size=4 [15:01:44]MH_SAM_APDU [15:01:44]CAPDU: 80 11 00 00 [15:01:44]Write to MH i2c: E2 08 00 7E 97 80 11 00 00 00 00 00 00 8F [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:44]Read from MH i2c: E2 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 17 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: E2 17 00 7E 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [15:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:01:44]wFMCommunicate OK [15:01:44]CreateOFDProtocolMessage done [15:01:44]OFDSenderStorePacket 94930 [15:01:44]StoreOFDPacket docnum=94930 [15:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 C6 87 23 01 3B 68 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 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 E5 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 D1 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 72 01 00 35 04 06 00 B9 F0 83 3C CC 3E 90 00 63 FE A9 B0 2F 4A [15:01:44]CheckFolder [15:01:44]dirname=/storage/ofd_packets [15:01:44]CheckFolder done [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00094930 [15:01:44]NVStorageSaveData ofd_packets/00094930 [15:01:44]File name is /storage/ofd_packets/00094930 [15:01:44]Write 329 bytes [15:01:44]NVStorageSaveData done [15:01:44]OFDSenderStorePacket done [15:01:44]KKMCreateOFDPacket done [15:01:44]OFD Sender: Processing packet 94930 [packets to send 30, broken 29] [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00094930 [15:01:44]OFD Sender: To server: pG, [15:01:44]CommunicateWithHost lk.salyk.kg:30040 [15:01:44]ConnectInit lk.salyk.kg [15:01:44]NVStorageSaveData kkm_last_timestamp [15:01:44]File name is /storage/kkm_last_timestamp [15:01:44]Write 4 bytes [15:01:44]NVStorageSaveData done [15:01:44]ExternCall_PrintAddStr [15:01:44]wPrintStart [15:01:44]Write to MH i2c: 01 00 00 7F 97 16 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 7F 97 00 80 00 00 00 FF 0F AB [15:01:44]RasterBufferAndPrint [15:01:44]line Счет N : (1)195887 [15:01:44]line ИНН: 02508201610067 [15:01:44]line Контрольно-Кассовый Чек [15:01:44]line ВОЗВРАТ ПРОДАЖИ [15:01:44]line ТРК (МРК, ГНК) : 12 [15:01:44]line Товар: 2710124130 [15:01:44]line Аи-92-К-5 [15:01:44]line 10.180 * 62.90 [15:01:44]line = 640.32 [15:01:44]line НДС 12% НСП 1% [15:01:44]line > о реализуемом товаре [15:01:44]line ОКРУГЛЕНИЕ: -0.32 [15:01:44]line ИТОГО: 640.00 [15:01:44]line НСП 1% : 5.67 [15:01:44]line НДС 12% : 68.00 [15:01:44]line Наличными: 640.00 [15:01:44]line Безнал.: 0.00 [15:01:44]line Место: АЗС № 6 "Партнер Нефть" [15:01:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:01:44]line СНО: Общий режим [15:01:44]line Чек 105 11.03.2024 15:01 [15:01:44]line Смена: 326 ФФД: 1.0 [15:01:44]line ЗНМ: 0300000009 [15:01:44]line РНМ: 0000000000090555 [15:01:44]line Версия ККМ: 001 [15:01:44]line ФД осн.: 94929 [15:01:44]line ФМ осн.: 0000000000874811 [15:01:44]line ФМ: 0000000000874811 [15:01:44]line ФД: 94930 [15:01:44]line ФПД: 204442645089342 [15:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150157&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94930&fm=204442645089342&tin=02508201610067®Number=0000000000090555&sum=64000 [15:01:44]Connected sock=10 [15:01:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 C6 87 23 01 3B 68 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 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 E5 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 D1 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 72 01 00 35 04 06 00 B9 F0 83 3C CC 3E 90 00 63 FE A9 B0 2F 4A [15:01:44]written 0, free lines is 4095 [15:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 48 9F 47 00 F4 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 72 01 00 F4 03 04 00 3E C8 EE 65 B6 04 01 00 00 CF 5B EA B8 97 90 8B DA [15:01:45]CommunicateWithHost err = 0 [15:01:45]CheckOFDResponse [15:01:45]1017 (14) - 77093643461234 [15:01:45]1041 (16) - 0000000000874811 [15:01:45]1040 (4) - 94930 [15:01:45]1012 (4) - 11.03.2024 09:00 [15:01:45]1206 (1) - 0 [15:01:45]OFD Sender: Remove packet 94930 [15:01:45]ProducePacketName [15:01:45]name=ofd_packets/00094930 [15:01:45]NVStorageDeleteData [15:01:45]Write to MH i2c: 01 00 00 AA 97 41 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 07 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 07 00 AA 97 00 80 00 00 00 5D 0D 32 [15:01:45]RasterBufferAndPrint [15:01:45]line [15:01:45]line [15:01:45]line [15:01:45]line [15:01:45]line [15:01:45]written 0, free lines is 3429 [15:01:45]process_action close_receipt done [15:01:45]requested_data is exist [15:01:45]produce_requested_data [15:01:45]requested_item fm.sn is exist - process it [15:01:45]wFMCommunicate request_size=4 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 11 00 00 [15:01:45]Write to MH i2c: E2 08 00 B1 97 80 11 00 00 00 00 00 00 C2 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 17 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 17 00 B1 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [15:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:01:45]wFMCommunicate OK [15:01:45]requested_item fd.num is exist - process it [15:01:45]SAM_PROTO_GetFieldsCounters [15:01:45]wFMCommunicate request_size=4 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 13 00 00 [15:01:45]Write to MH i2c: E2 08 00 B2 97 80 13 00 00 00 00 00 00 C5 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]OFD Sender: No OFD packet to send [15:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 62 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 62 00 B2 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [15:01: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:45]wFMCommunicate OK [15:01:45]SAM_PROTO_GetFieldsCounters done [15:01:45]requested_item shift.num is exist - process it [15:01:45]requested_item shift.opened is exist - process it [15:01:45]req_shift_opened [15:01:45]FM_GetShiftState [15:01:45]SAM_PROTO_GetShiftState [15:01:45]wFMCommunicate request_size=4 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 13 01 00 [15:01:45]Write to MH i2c: E2 08 00 B3 97 80 13 01 00 00 00 00 00 C7 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 0E 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 0E 00 B3 97 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 63 [15:01:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:01:45]wFMCommunicate OK [15:01:45]SAM_PROTO_GetShiftState done [15:01:45]FM_GetShiftState done [15:01:45]req_shift_opened done [15:01:45]requested_item shift.open_date is exist - process it [15:01:45]req_shift_open_date [15:01:45]req_shift_open_date done [15:01:45]produce_requested_data done [15:01:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94930,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:01:45]process_action_free close_receipt [15:01:45]json_value_free [15:01:45]json_value_free done [15:01:45]process_json_proto returns [15:01:45]Send response to host [15:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94930,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:01:45]free response buf [15:01:45]execute_script done [15:01:45]execute_script returns [15:01:45]free content buf [15:01:45]Sock 7.Close socket [15:01:45]Sock 7.Thread stoped [15:01:48]accept exits with 9 [15:01:48]New connection [15:01:48]New thread 3066871140 created [15:01:48]Thread 3067014500 joined [15:01:48]Waiting for new connection... [15:01:48] Sock 9.Parse request [15:01:48]Sock 9.Check first char [15:01:48]Sock 9.First char is OK [15:01:48]request: POST /json_proto HTTP/1.0 [15:01:48]Method: POST [15:01:48]URL: /json_proto [15:01:48]Method is POST - this is cgi request [15:01:48]url: /json_proto [15:01:48]query_string will be loaded in cgi processing [15:01:48]execute_cgi json_proto POST (null) [15:01:48]execute_cgi path=json_proto method=POST [15:01:48]POST find Content-Length [15:01:48]Host: 172.17.62.67:8080 [15:01:48]Content-Length: 671 [15:01:48]Content-Type: application/json [15:01:48] [15:01:48]POST finish read [15:01:48]Found Content-Length = 671 [15:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.020, "sum" : 640.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:48]execute_script... [15:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.020, "sum" : 640.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:48]POST & json_proto [15:01:48]process_json_proto [15:01:48]json parsed OK: [15:01:48]protocol is kg_v1.0 [15:01:48]action value=close_receipt [15:01:48]process_action close_receipt [15:01:48]cmd_close_receipt [15:01:48]MH_GetDate [15:01:48]Write to MH i2c: F0 00 00 B4 97 3A [15:01:48]Write i2c OK [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: F0 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: F0 05 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: F0 05 00 B4 97 00 EB 1C EF 65 9A [15:01:48]GetLastDocTimeStamp 1710169317 [15:01:48]current date 1710169323 [15:01:48]FM_GetShiftState [15:01:48]SAM_PROTO_GetShiftState [15:01:48]wFMCommunicate request_size=4 [15:01:48]MH_SAM_APDU [15:01:48]CAPDU: 80 13 01 00 [15:01:48]Write to MH i2c: E2 08 00 B5 97 80 13 01 00 00 00 00 00 C9 [15:01:48]Write i2c OK [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 [15:01:48]MH_I2C_Read... [15:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:48]Read from MH i2c: E2 0E 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 0E 00 B5 97 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 65 [15:01:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:01:48]wFMCommunicate OK [15:01:48]SAM_PROTO_GetShiftState done [15:01:48]FM_GetShiftState done [15:01:48]opened in 1710115571 [15:01:48]opened+sec_in_day 1710201971 [15:01:48]quantity*price = 64027 [15:01:48]sum+1 = 64029 [15:01:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 106 11.03.2024 15:02 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94931 ФПД: 179225057760284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150203&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94931&fm=179225057760284&tin=02508201610067®Number=0000000000090555&sum=64000 [15:01:49]StoreToDocumentArchive [15:01:49]shift 326 fd 94931 [15:01:49]save to /storage/0326/doc_00094931 [15:01:49]save last doc name /storage/0326/doc_00094931 to /storage/kkm_last_doc_name [15:01:49]save OK [15:01:49]Clear old archive folders... [15:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:01:49]tlvbuf is 001D3D60 [15:01:49]SAM_PROTO_ClearQueue [15:01:49]wFMCommunicate request_size=4 [15:01:49]MH_SAM_APDU [15:01:49]CAPDU: 80 09 00 00 [15:01:49]Write to MH i2c: E2 08 00 C2 97 80 09 00 00 00 00 00 00 CB [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:49]Read from MH i2c: E2 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 03 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 03 00 C2 97 00 90 00 CD [15:01:49]RAPDU: 90 00 [15:01:49]wFMCommunicate OK [15:01:49]SAM_PROTO_ClearQueue done [15:01:49]KKMCreateOFDPacket [15:01:49]OFDProtocolAddRootSTLVToBuf [15:01:49]FM_MakeSignedData [15:01:49]FM_MakeSignedData [15:01:49]SAM_PROTO_SignData [15:01:49]wFMCommunicate request_size=4 [15:01:49]MH_SAM_APDU [15:01:49]CAPDU: 80 0D 01 02 [15:01:49]Write to MH i2c: E2 08 00 C3 97 80 0D 01 02 00 00 00 00 D3 [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:49]Read from MH i2c: E2 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 03 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 03 00 C3 97 00 90 00 CE [15:01:49]RAPDU: 90 00 [15:01:49]wFMCommunicate OK [15:01:49]wFMCommunicate request_size=255 [15:01:49]MH_SAM_APDU [15:01:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 EB 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 72 01 00 35 04 06 00 [15:01:49]Write to MH i2c: E2 02 01 C4 97 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 EB 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 72 01 00 35 04 06 00 00 00 0D [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:49]Read from MH i2c: E2 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 03 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 03 00 C4 97 00 90 00 CF [15:01:49]RAPDU: 90 00 [15:01:49]wFMCommunicate OK [15:01:49]wFMCommunicate request_size=11 [15:01:49]MH_SAM_APDU [15:01:49]CAPDU: 80 0D 02 02 06 A3 01 15 E7 14 1C [15:01:49]Write to MH i2c: E2 0E 00 C5 97 80 0D 02 02 06 00 A3 01 15 E7 14 1C 00 00 B2 [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:49]Read from MH i2c: E2 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 03 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 03 00 C5 97 00 90 00 D0 [15:01:49]RAPDU: 90 00 [15:01:49]wFMCommunicate OK [15:01:49]wFMCommunicate request_size=4 [15:01:49]MH_SAM_APDU [15:01:49]CAPDU: 80 0D 03 02 [15:01:49]Write to MH i2c: E2 08 00 C6 97 80 0D 03 02 00 00 00 00 D8 [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:49]Read from MH i2c: E2 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 0B 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 0B 00 C6 97 00 39 A1 F6 0D E0 50 D2 07 90 00 BF [15:01:49]RAPDU: 39 A1 F6 0D E0 50 D2 07 90 00 [15:01:49]wFMCommunicate OK [15:01:49]SAM_PROTO_SignData done [15:01:49]FM_MakeSignedData done [15:01:49]CreateOFDProtocolMessage [15:01:49]wFMCommunicate request_size=4 [15:01:49]MH_SAM_APDU [15:01:49]CAPDU: 80 11 00 00 [15:01:49]Write to MH i2c: E2 08 00 C7 97 80 11 00 00 00 00 00 00 D8 [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:49]Read from MH i2c: E2 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 17 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 17 00 C7 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [15:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:01:49]wFMCommunicate OK [15:01:49]CreateOFDProtocolMessage done [15:01:49]OFDSenderStorePacket 94931 [15:01:49]StoreOFDPacket docnum=94931 [15:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 AB AF 08 01 2B FB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 EB 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 72 01 00 35 04 06 00 A3 01 15 E7 14 1C 39 A1 F6 0D E0 50 D2 07 [15:01:49]CheckFolder [15:01:49]dirname=/storage/ofd_packets [15:01:49]CheckFolder done [15:01:49]ProducePacketName [15:01:49]name=ofd_packets/00094931 [15:01:49]NVStorageSaveData ofd_packets/00094931 [15:01:49]File name is /storage/ofd_packets/00094931 [15:01:49]Write 302 bytes [15:01:49]NVStorageSaveData done [15:01:49]OFDSenderStorePacket done [15:01:49]KKMCreateOFDPacket done [15:01:49]NVStorageSaveData kkm_last_timestamp [15:01:49]File name is /storage/kkm_last_timestamp [15:01:49]Write 4 bytes [15:01:49]NVStorageSaveData done [15:01:49]ExternCall_PrintAddStr [15:01:49]wPrintStart [15:01:49]Write to MH i2c: 01 00 00 C8 97 5F [15:01:49]OFD Sender: Processing packet 94931 [packets to send 30, broken 29] [15:01:49]ProducePacketName [15:01:49]name=ofd_packets/00094931 [15:01:49]OFD Sender: To server: pG, [15:01:49]CommunicateWithHost lk.salyk.kg:30040 [15:01:49]ConnectInit lk.salyk.kg [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: 01 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: 01 07 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: 01 07 00 C8 97 00 80 00 00 00 FF 0F F4 [15:01:49]RasterBufferAndPrint [15:01:49]line Счет N : (1)195888 [15:01:49]line ИНН: 02508201610067 [15:01:49]line Контрольно-Кассовый Чек [15:01:49]line ПРОДАЖА [15:01:49]line ТРК (МРК, ГНК) : 13 [15:01:49]line Товар: 2710124130 [15:01:49]line SUPER 92-К-5 [15:01:49]line 10.020 * 63.90 [15:01:49]line = 640.28 [15:01:49]line НДС 12% НСП 1% [15:01:49]line > о реализуемом товаре [15:01:49]line ОКРУГЛЕНИЕ: -0.28 [15:01:49]line ИТОГО: 640.00 [15:01:49]line Внесено: 640.00 [15:01:49]line СДАЧА: 0.00 [15:01:49]line НСП 1% : 5.67 [15:01:49]line НДС 12% : 67.99 [15:01:49]line Наличными: 640.00 [15:01:49]line Безнал.: 0.00 [15:01:49]line Место: АЗС № 6 "Партнер Нефть" [15:01:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:01:49]line СНО: Общий режим [15:01:49]line Чек 106 11.03.2024 15:02 [15:01:49]line Смена: 326 ФФД: 1.0 [15:01:49]line ЗНМ: 0300000009 [15:01:49]line РНМ: 0000000000090555 [15:01:49]line Версия ККМ: 001 [15:01:49]line ФМ: 0000000000874811 [15:01:49]line ФД: 94931 [15:01:49]line ФПД: 179225057760284 [15:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150203&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94931&fm=179225057760284&tin=02508201610067®Number=0000000000090555&sum=64000 [15:01:49]written 0, free lines is 4095 [15:01:50]Connected sock=10 [15:01:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 AB AF 08 01 2B FB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 EB 1C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 72 01 00 35 04 06 00 A3 01 15 E7 14 1C 39 A1 F6 0D E0 50 D2 07 [15:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4F F8 47 00 D9 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 72 01 00 F4 03 04 00 43 C8 EE 65 B6 04 01 00 00 F3 83 F1 15 95 A5 3A 02 [15:01:50]CommunicateWithHost err = 0 [15:01:50]CheckOFDResponse [15:01:50]1017 (14) - 77093643461234 [15:01:50]1041 (16) - 0000000000874811 [15:01:50]1040 (4) - 94931 [15:01:50]1012 (4) - 11.03.2024 09:00 [15:01:50]1206 (1) - 0 [15:01:50]OFD Sender: Remove packet 94931 [15:01:50]ProducePacketName [15:01:50]name=ofd_packets/00094931 [15:01:50]NVStorageDeleteData [15:01:50]Write to MH i2c: 01 00 00 F3 97 8A [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: 01 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: 01 07 00 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: 01 07 00 F3 97 00 80 00 00 00 51 0D 6F [15:01:50]RasterBufferAndPrint [15:01:50]line [15:01:50]line [15:01:50]line [15:01:50]line [15:01:50]line [15:01:50]written 0, free lines is 3423 [15:01:50]process_action close_receipt done [15:01:50]requested_data is exist [15:01:50]produce_requested_data [15:01:50]requested_item fm.sn is exist - process it [15:01:50]wFMCommunicate request_size=4 [15:01:50]MH_SAM_APDU [15:01:50]CAPDU: 80 11 00 00 [15:01:50]Write to MH i2c: E2 08 00 FA 97 80 11 00 00 00 00 00 00 0B [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:50]Read from MH i2c: E2 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 17 00 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 17 00 FA 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [15:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:01:50]wFMCommunicate OK [15:01:50]requested_item fd.num is exist - process it [15:01:50]SAM_PROTO_GetFieldsCounters [15:01:50]wFMCommunicate request_size=4 [15:01:50]MH_SAM_APDU [15:01:50]CAPDU: 80 13 00 00 [15:01:50]Write to MH i2c: E2 08 00 FB 97 80 13 00 00 00 00 00 00 0E [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:50]Read from MH i2c: E2 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 62 00 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 62 00 FB 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:50]wFMCommunicate OK [15:01:50]SAM_PROTO_GetFieldsCounters done [15:01:50]requested_item shift.num is exist - process it [15:01:50]requested_item shift.opened is exist - process it [15:01:50]req_shift_opened [15:01:50]FM_GetShiftState [15:01:50]SAM_PROTO_GetShiftState [15:01:50]wFMCommunicate request_size=4 [15:01:50]MH_SAM_APDU [15:01:50]CAPDU: 80 13 01 00 [15:01:50]Write to MH i2c: E2 08 00 FC 97 80 13 01 00 00 00 00 00 10 [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:50]OFD Sender: No OFD packet to send [15:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:50]Read from MH i2c: E2 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 0E 00 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 0E 00 FC 97 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AC [15:01:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:01:50]wFMCommunicate OK [15:01:50]SAM_PROTO_GetShiftState done [15:01:50]FM_GetShiftState done [15:01:50]req_shift_opened done [15:01:50]requested_item shift.open_date is exist - process it [15:01:50]req_shift_open_date [15:01:50]req_shift_open_date done [15:01:50]produce_requested_data done [15:01:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94931,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:01:50]process_action_free close_receipt [15:01:50]json_value_free [15:01:50]json_value_free done [15:01:50]process_json_proto returns [15:01:50]Send response to host [15:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94931,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:01:50]free response buf [15:01:50]execute_script done [15:01:50]execute_script returns [15:01:50]free content buf [15:01:50]Sock 9.Close socket [15:01:50]Sock 9.Thread stoped [15:01:55]OFD Sender: No OFD packet to send [15:02:00]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:17]accept exits with 7 [15:03:17]New connection [15:03:17]New thread 3067014500 created [15:03:17]Thread 3066871140 joined [15:03:17]Waiting for new connection... [15:03:17] Sock 7.Parse request [15:03:17]Sock 7.Check first char [15:03:17]Sock 7.First char is OK [15:03:17]request: POST /json_proto HTTP/1.0 [15:03:17]Method: POST [15:03:17]URL: /json_proto [15:03:17]Method is POST - this is cgi request [15:03:17]url: /json_proto [15:03:17]query_string will be loaded in cgi processing [15:03:17]execute_cgi json_proto POST (null) [15:03:17]execute_cgi path=json_proto method=POST [15:03:17]POST find Content-Length [15:03:17]Host: 172.17.62.67:8080 [15:03:17]Content-Length: 819 [15:03:17]Content-Type: application/json [15:03:17] [15:03:17]POST finish read [15:03:17]Found Content-Length = 819 [15:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:17]execute_script... [15:03: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)195889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:17]POST & json_proto [15:03:17]process_json_proto [15:03:17]json parsed OK: [15:03:17]protocol is kg_v1.0 [15:03:17]action value=close_receipt [15:03:17]process_action close_receipt [15:03:17]cmd_close_receipt [15:03:17]MH_GetDate [15:03:17]Write to MH i2c: F0 00 00 FD 97 83 [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: F0 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: F0 05 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: F0 05 00 FD 97 00 43 1D EF 65 3C [15:03:17]GetLastDocTimeStamp 1710169323 [15:03:17]current date 1710169411 [15:03:17]FM_GetShiftState [15:03:17]SAM_PROTO_GetShiftState [15:03:17]wFMCommunicate request_size=4 [15:03:17]MH_SAM_APDU [15:03:17]CAPDU: 80 13 01 00 [15:03:17]Write to MH i2c: E2 08 00 FE 97 80 13 01 00 00 00 00 00 12 [15:03:17]Write i2c OK [15:03:17]MH_I2C_Read... [15:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:17]Read from MH i2c: E2 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 0E 00 [15:03:17]MH_I2C_Read... [15:03:17]Read from MH i2c: E2 0E 00 FE 97 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AE [15:03:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:03:17]wFMCommunicate OK [15:03:17]SAM_PROTO_GetShiftState done [15:03:17]FM_GetShiftState done [15:03:17]opened in 1710115571 [15:03:17]opened+sec_in_day 1710201971 [15:03:17]quantity*price = 100011 [15:03:17]sum+1 = 100012 [15:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 107 11.03.2024 15:03 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94932 ФПД: 190635191030493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150331&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94932&fm=190635191030493&tin=02508201610067®Number=0000000000090555&sum=100011 [15:03:18]StoreToDocumentArchive [15:03:18]shift 326 fd 94932 [15:03:18]save to /storage/0326/doc_00094932 [15:03:18]save last doc name /storage/0326/doc_00094932 to /storage/kkm_last_doc_name [15:03:18]save OK [15:03:18]Clear old archive folders... [15:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:18]tlvbuf is 0018CAC0 [15:03:18]SAM_PROTO_ClearQueue [15:03:18]wFMCommunicate request_size=4 [15:03:18]MH_SAM_APDU [15:03:18]CAPDU: 80 09 00 00 [15:03:18]Write to MH i2c: E2 08 00 0B 98 80 09 00 00 00 00 00 00 15 [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:18]Read from MH i2c: E2 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 03 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 03 00 0B 98 00 90 00 17 [15:03:18]RAPDU: 90 00 [15:03:18]wFMCommunicate OK [15:03:18]SAM_PROTO_ClearQueue done [15:03:18]KKMCreateOFDPacket [15:03:18]OFDProtocolAddRootSTLVToBuf [15:03:18]FM_MakeSignedData [15:03:18]FM_MakeSignedData [15:03:18]SAM_PROTO_SignData [15:03:18]wFMCommunicate request_size=4 [15:03:18]MH_SAM_APDU [15:03:18]CAPDU: 80 0D 01 02 [15:03:18]Write to MH i2c: E2 08 00 0C 98 80 0D 01 02 00 00 00 00 1D [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:18]Read from MH i2c: E2 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 03 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 03 00 0C 98 00 90 00 18 [15:03:18]RAPDU: 90 00 [15:03:18]wFMCommunicate OK [15:03:18]wFMCommunicate request_size=255 [15:03:18]MH_SAM_APDU [15: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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 43 1D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 72 01 00 35 04 06 00 AD [15:03:18]Write to MH i2c: E2 02 01 0D 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 43 1D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 72 01 00 35 04 06 00 AD 00 00 35 [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:18]Read from MH i2c: E2 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 03 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 03 00 0D 98 00 90 00 19 [15:03:18]RAPDU: 90 00 [15:03:18]wFMCommunicate OK [15:03:18]wFMCommunicate request_size=10 [15:03:18]MH_SAM_APDU [15:03:18]CAPDU: 80 0D 02 02 05 61 B6 D7 D2 DD [15:03:18]Write to MH i2c: E2 0D 00 0E 98 80 0D 02 02 05 00 61 B6 D7 D2 DD 00 00 C7 [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:18]Read from MH i2c: E2 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 03 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 03 00 0E 98 00 90 00 1A [15:03:18]RAPDU: 90 00 [15:03:18]wFMCommunicate OK [15:03:18]wFMCommunicate request_size=4 [15:03:18]MH_SAM_APDU [15:03:18]CAPDU: 80 0D 03 02 [15:03:18]Write to MH i2c: E2 08 00 0F 98 80 0D 03 02 00 00 00 00 22 [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:18]Read from MH i2c: E2 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 0B 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 0B 00 0F 98 00 49 F6 A2 F1 D7 21 3C AE 90 00 D7 [15:03:18]RAPDU: 49 F6 A2 F1 D7 21 3C AE 90 00 [15:03:18]wFMCommunicate OK [15:03:18]SAM_PROTO_SignData done [15:03:18]FM_MakeSignedData done [15:03:18]CreateOFDProtocolMessage [15:03:18]wFMCommunicate request_size=4 [15:03:18]MH_SAM_APDU [15:03:18]CAPDU: 80 11 00 00 [15:03:18]Write to MH i2c: E2 08 00 10 98 80 11 00 00 00 00 00 00 22 [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:18]Read from MH i2c: E2 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 17 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 17 00 10 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 72 [15:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:03:18]wFMCommunicate OK [15:03:18]CreateOFDProtocolMessage done [15:03:18]OFDSenderStorePacket 94932 [15:03:18]StoreOFDPacket docnum=94932 [15:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 05 CC 07 01 2D 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 43 1D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 72 01 00 35 04 06 00 AD 61 B6 D7 D2 DD 49 F6 A2 F1 D7 21 3C AE [15:03:18]CheckFolder [15:03:18]dirname=/storage/ofd_packets [15:03:18]CheckFolder done [15:03:18]ProducePacketName [15:03:18]name=ofd_packets/00094932 [15:03:18]NVStorageSaveData ofd_packets/00094932 [15:03:18]File name is /storage/ofd_packets/00094932 [15:03:18]Write 301 bytes [15:03:18]NVStorageSaveData done [15:03:18]OFDSenderStorePacket done [15:03:18]KKMCreateOFDPacket done [15:03:18]NVStorageSaveData kkm_last_timestamp [15:03:18]File name is /storage/kkm_last_timestamp [15:03:18]Write 4 bytes [15:03:18]NVStorageSaveData done [15:03:18]ExternCall_PrintAddStr [15:03:18]wPrintStart [15:03:18]Write to MH i2c: 01 00 00 11 98 A9 [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: 01 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: 01 07 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: 01 07 00 11 98 00 80 00 00 00 FF 0F 3E [15:03:18]RasterBufferAndPrint [15:03:18]line Счет N : (1)195889 [15:03:18]line ИНН: 02508201610067 [15:03:18]line Контрольно-Кассовый Чек [15:03:18]line ПРОДАЖА [15:03:18]line ТРК (МРК, ГНК) : 32 [15:03:18]line Товар: 2710124130 [15:03:18]line Аи-92-К-5 [15:03:18]line 15.900 * 62.90 [15:03:18]line = 1000.11 [15:03:18]line НДС 12% НСП 1% [15:03:18]line > о реализуемом товаре [15:03:18]line ИТОГО: 1000.11 [15:03:18]line НСП 1% : 8.85 [15:03:18]line НДС 12% : 106.21 [15:03:18]line Наличными: 0.00 [15:03:18]line Безнал.: 1000.11 [15:03:18]line Место: АЗС № 6 "Партнер Нефть" [15:03:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:03:18]line СНО: Общий режим [15:03:18]line Чек 107 11.03.2024 15:03 [15:03:18]line Смена: 326 ФФД: 1.0 [15:03:18]line ЗНМ: 0300000009 [15:03:18]line РНМ: 0000000000090555 [15:03:18]line Версия ККМ: 001 [15:03:18]line Платежная система: Бакай Банк [15:03:18]line ФМ: 0000000000874811 [15:03:18]line ФД: 94932 [15:03:18]line ФПД: 190635191030493 [15:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150331&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94932&fm=190635191030493&tin=02508201610067®Number=0000000000090555&sum=100011 [15:03:19]OFD Sender: Processing packet 94932 [packets to send 30, broken 29] [15:03:19]ProducePacketName [15:03:19]name=ofd_packets/00094932 [15:03:19]OFD Sender: To server: pG, [15:03:19]CommunicateWithHost lk.salyk.kg:30040 [15:03:19]ConnectInit lk.salyk.kg [15:03:19]written 0, free lines is 4095 [15:03:19]Connected sock=10 [15:03: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 31 31 0F 01 00 00 05 CC 07 01 2D 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 43 1D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 72 01 00 35 04 06 00 AD 61 B6 D7 D2 DD 49 F6 A2 F1 D7 21 3C AE [15: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 31 31 4F 00 00 00 E3 31 47 00 5C 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 72 01 00 F4 03 04 00 9D C8 EE 65 B6 04 01 00 00 F2 4C 5D CC 72 93 CF DA [15:03:19]CommunicateWithHost err = 0 [15:03:19]CheckOFDResponse [15:03:19]1017 (14) - 77093643461234 [15:03:19]1041 (16) - 0000000000874811 [15:03:19]1040 (4) - 94932 [15:03:19]1012 (4) - 11.03.2024 09:02 [15:03:19]1206 (1) - 0 [15:03:19]OFD Sender: Remove packet 94932 [15:03:19]ProducePacketName [15:03:19]name=ofd_packets/00094932 [15:03:19]NVStorageDeleteData [15:03:19]Write to MH i2c: 01 00 00 3B 98 D3 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: 01 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: 01 07 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: 01 07 00 3B 98 00 80 00 00 00 56 0D BD [15:03:19]RasterBufferAndPrint [15:03:19]line [15:03:19]line [15:03:19]line [15:03:19]line [15:03:19]line [15:03:19]written 0, free lines is 3422 [15:03:19]process_action close_receipt done [15:03:19]requested_data is exist [15:03:19]produce_requested_data [15:03:19]requested_item fm.sn is exist - process it [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 11 00 00 [15:03:19]Write to MH i2c: E2 08 00 42 98 80 11 00 00 00 00 00 00 54 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:19]Read from MH i2c: E2 17 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 17 00 42 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A4 [15:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:03:19]wFMCommunicate OK [15:03:19]requested_item fd.num is exist - process it [15:03:19]SAM_PROTO_GetFieldsCounters [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 13 00 00 [15:03:19]Write to MH i2c: E2 08 00 43 98 80 13 00 00 00 00 00 00 57 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 62 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 62 00 43 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [15:03: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:19]wFMCommunicate OK [15:03:19]SAM_PROTO_GetFieldsCounters done [15:03:19]requested_item shift.num is exist - process it [15:03:19]requested_item shift.opened is exist - process it [15:03:19]req_shift_opened [15:03:19]FM_GetShiftState [15:03:19]SAM_PROTO_GetShiftState [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 13 01 00 [15:03:19]Write to MH i2c: E2 08 00 44 98 80 13 01 00 00 00 00 00 59 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]OFD Sender: No OFD packet to send [15:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 44 98 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F5 [15:03:19]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:03:19]wFMCommunicate OK [15:03:19]SAM_PROTO_GetShiftState done [15:03:19]FM_GetShiftState done [15:03:19]req_shift_opened done [15:03:19]requested_item shift.open_date is exist - process it [15:03:19]req_shift_open_date [15:03:19]req_shift_open_date done [15:03:19]produce_requested_data done [15:03:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94932,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:03:19]process_action_free close_receipt [15:03:19]json_value_free [15:03:19]json_value_free done [15:03:19]process_json_proto returns [15:03:19]Send response to host [15:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94932,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:03:19]free response buf [15:03:19]execute_script done [15:03:19]execute_script returns [15:03:19]free content buf [15:03:19]Sock 7.Close socket [15:03:19]Sock 7.Thread stoped [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]accept exits with 9 [15:08:25]New connection [15:08:25]New thread 3066871140 created [15:08:25]Thread 3067014500 joined [15:08:25]Waiting for new connection... [15:08:25] Sock 9.Parse request [15:08:25]Sock 9.Check first char [15:08:25]Sock 9.First char is OK [15:08:25]request: POST /json_proto HTTP/1.0 [15:08:25]Method: POST [15:08:25]URL: /json_proto [15:08:25]Method is POST - this is cgi request [15:08:25]url: /json_proto [15:08:25]query_string will be loaded in cgi processing [15:08:25]execute_cgi json_proto POST (null) [15:08:25]execute_cgi path=json_proto method=POST [15:08:25]POST find Content-Length [15:08:25]Host: 172.17.62.67:8080 [15:08:25]Content-Length: 677 [15:08:25]Content-Type: application/json [15:08:25] [15:08:25]POST finish read [15:08:25]Found Content-Length = 677 [15:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:25]execute_script... [15:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:25]POST & json_proto [15:08:25]process_json_proto [15:08:25]json parsed OK: [15:08:25]protocol is kg_v1.0 [15:08:25]action value=close_receipt [15:08:25]process_action close_receipt [15:08:25]cmd_close_receipt [15:08:25]MH_GetDate [15:08:25]Write to MH i2c: F0 00 00 45 98 CC [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: F0 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: F0 05 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: F0 05 00 45 98 00 77 1E EF 65 BA [15:08:25]GetLastDocTimeStamp 1710169411 [15:08:25]current date 1710169719 [15:08:25]FM_GetShiftState [15:08:25]SAM_PROTO_GetShiftState [15:08:25]wFMCommunicate request_size=4 [15:08:25]MH_SAM_APDU [15:08:25]CAPDU: 80 13 01 00 [15:08:25]Write to MH i2c: E2 08 00 46 98 80 13 01 00 00 00 00 00 5B [15:08:25]Write i2c OK [15:08:25]MH_I2C_Read... [15:08:25]OFD Sender: No OFD packet to send [15:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:25]Read from MH i2c: E2 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 0E 00 [15:08:25]MH_I2C_Read... [15:08:25]Read from MH i2c: E2 0E 00 46 98 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F7 [15:08:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:08:25]wFMCommunicate OK [15:08:25]SAM_PROTO_GetShiftState done [15:08:25]FM_GetShiftState done [15:08:25]opened in 1710115571 [15:08:25]opened+sec_in_day 1710201971 [15:08:25]quantity*price = 40004 [15:08:25]sum+1 = 40005 [15:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 108 11.03.2024 15:08 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94933 ФПД: 210562283032516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150840&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94933&fm=210562283032516&tin=02508201610067®Number=0000000000090555&sum=40000 [15:08:26]StoreToDocumentArchive [15:08:26]shift 326 fd 94933 [15:08:26]save to /storage/0326/doc_00094933 [15:08:26]save last doc name /storage/0326/doc_00094933 to /storage/kkm_last_doc_name [15:08:26]save OK [15:08:26]Clear old archive folders... [15:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:26]tlvbuf is 002CB860 [15:08:26]SAM_PROTO_ClearQueue [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 09 00 00 [15:08:26]Write to MH i2c: E2 08 00 53 98 80 09 00 00 00 00 00 00 5D [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 53 98 00 90 00 5F [15:08:26]RAPDU: 90 00 [15:08:26]wFMCommunicate OK [15:08:26]SAM_PROTO_ClearQueue done [15:08:26]KKMCreateOFDPacket [15:08:26]OFDProtocolAddRootSTLVToBuf [15:08:26]FM_MakeSignedData [15:08:26]FM_MakeSignedData [15:08:26]SAM_PROTO_SignData [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 0D 01 02 [15:08:26]Write to MH i2c: E2 08 00 54 98 80 0D 01 02 00 00 00 00 65 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 54 98 00 90 00 60 [15:08:26]RAPDU: 90 00 [15:08:26]wFMCommunicate OK [15:08:26]wFMCommunicate request_size=255 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 6C 00 00 00 F4 03 04 00 78 1E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 72 01 00 35 04 06 00 BF [15:08:26]Write to MH i2c: E2 02 01 55 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 6C 00 00 00 F4 03 04 00 78 1E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 72 01 00 35 04 06 00 BF 00 00 4C [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 55 98 00 90 00 61 [15:08:26]RAPDU: 90 00 [15:08:26]wFMCommunicate OK [15:08:26]wFMCommunicate request_size=10 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 0D 02 02 05 81 5A 15 4F C4 [15:08:26]Write to MH i2c: E2 0D 00 56 98 80 0D 02 02 05 00 81 5A 15 4F C4 00 00 75 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 03 00 56 98 00 90 00 62 [15:08:26]RAPDU: 90 00 [15:08:26]wFMCommunicate OK [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 0D 03 02 [15:08:26]Write to MH i2c: E2 08 00 57 98 80 0D 03 02 00 00 00 00 6A [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 0B 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 0B 00 57 98 00 F1 4A F8 37 5F 46 AC 19 90 00 3F [15:08:26]RAPDU: F1 4A F8 37 5F 46 AC 19 90 00 [15:08:26]wFMCommunicate OK [15:08:26]SAM_PROTO_SignData done [15:08:26]FM_MakeSignedData done [15:08:26]CreateOFDProtocolMessage [15:08:26]wFMCommunicate request_size=4 [15:08:26]MH_SAM_APDU [15:08:26]CAPDU: 80 11 00 00 [15:08:26]Write to MH i2c: E2 08 00 58 98 80 11 00 00 00 00 00 00 6A [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:26]Read from MH i2c: E2 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 17 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: E2 17 00 58 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [15:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:08:26]wFMCommunicate OK [15:08:26]CreateOFDProtocolMessage done [15:08:26]OFDSenderStorePacket 94933 [15:08:26]StoreOFDPacket docnum=94933 [15:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 EC 07 01 0A E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 6C 00 00 00 F4 03 04 00 78 1E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 72 01 00 35 04 06 00 BF 81 5A 15 4F C4 F1 4A F8 37 5F 46 AC 19 [15:08:26]CheckFolder [15:08:26]dirname=/storage/ofd_packets [15:08:26]CheckFolder done [15:08:26]ProducePacketName [15:08:26]name=ofd_packets/00094933 [15:08:26]NVStorageSaveData ofd_packets/00094933 [15:08:26]File name is /storage/ofd_packets/00094933 [15:08:26]Write 301 bytes [15:08:26]NVStorageSaveData done [15:08:26]OFDSenderStorePacket done [15:08:26]KKMCreateOFDPacket done [15:08:26]NVStorageSaveData kkm_last_timestamp [15:08:26]File name is /storage/kkm_last_timestamp [15:08:26]Write 4 bytes [15:08:26]NVStorageSaveData done [15:08:26]ExternCall_PrintAddStr [15:08:26]wPrintStart [15:08:26]Write to MH i2c: 01 00 00 59 98 F1 [15:08:26]Write i2c OK [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: 01 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: 01 07 00 [15:08:26]MH_I2C_Read... [15:08:26]Read from MH i2c: 01 07 00 59 98 00 80 00 00 00 FF 0F 86 [15:08:26]RasterBufferAndPrint [15:08:26]line Счет N : (1)195890 [15:08:26]line ИНН: 02508201610067 [15:08:26]line Контрольно-Кассовый Чек [15:08:26]line ПРОДАЖА [15:08:26]line ТРК (МРК, ГНК) : 42 [15:08:26]line Товар: 2710124130 [15:08:26]line Аи-92-К-5 [15:08:26]line 6.360 * 62.90 [15:08:26]line = 400.04 [15:08:26]line НДС 12% НСП 1% [15:08:26]line > о реализуемом товаре [15:08:26]line ОКРУГЛЕНИЕ: -0.04 [15:08:26]line ИТОГО: 400.00 [15:08:26]line Внесено: 400.00 [15:08:26]line СДАЧА: 0.00 [15:08:26]line НСП 1% : 3.54 [15:08:26]line НДС 12% : 42.48 [15:08:26]line Наличными: 400.00 [15:08:26]line Безнал.: 0.00 [15:08:26]line Место: АЗС № 6 "Партнер Нефть" [15:08:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:08:26]line СНО: Общий режим [15:08:26]line Чек 108 11.03.2024 15:08 [15:08:26]line Смена: 326 ФФД: 1.0 [15:08:26]line ЗНМ: 0300000009 [15:08:26]line РНМ: 0000000000090555 [15:08:26]line Версия ККМ: 001 [15:08:26]line ФМ: 0000000000874811 [15:08:26]line ФД: 94933 [15:08:26]line ФПД: 210562283032516 [15:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T150840&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94933&fm=210562283032516&tin=02508201610067®Number=0000000000090555&sum=40000 [15:08:27]OFD Sender: Processing packet 94933 [packets to send 30, broken 29] [15:08:27]ProducePacketName [15:08:27]name=ofd_packets/00094933 [15:08:27]OFD Sender: To server: pG, [15:08:27]CommunicateWithHost lk.salyk.kg:30040 [15:08:27]ConnectInit lk.salyk.kg [15:08:27]written 0, free lines is 4095 [15:08:27]Connected sock=10 [15:08: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 31 31 0F 01 00 00 80 EC 07 01 0A E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 6C 00 00 00 F4 03 04 00 78 1E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 72 01 00 35 04 06 00 BF 81 5A 15 4F C4 F1 4A F8 37 5F 46 AC 19 [15:08: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 31 31 4F 00 00 00 A2 61 47 00 9F 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 72 01 00 F4 03 04 00 D1 C9 EE 65 B6 04 01 00 00 D9 EC 61 71 22 6F 52 26 [15:08:27]CommunicateWithHost err = 0 [15:08:27]CheckOFDResponse [15:08:27]1017 (14) - 77093643461234 [15:08:27]1041 (16) - 0000000000874811 [15:08:27]1040 (4) - 94933 [15:08:27]1012 (4) - 11.03.2024 09:07 [15:08:27]1206 (1) - 0 [15:08:27]OFD Sender: Remove packet 94933 [15:08:27]ProducePacketName [15:08:27]name=ofd_packets/00094933 [15:08:27]NVStorageDeleteData [15:08:27]Write to MH i2c: 01 00 00 84 98 1C [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: 01 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: 01 07 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: 01 07 00 84 98 00 80 00 00 00 4B 0D FB [15:08:27]RasterBufferAndPrint [15:08:27]line [15:08:27]line [15:08:27]line [15:08:27]line [15:08:27]line [15:08:27]written 0, free lines is 3409 [15:08:27]process_action close_receipt done [15:08:27]requested_data is exist [15:08:27]produce_requested_data [15:08:27]requested_item fm.sn is exist - process it [15:08:27]wFMCommunicate request_size=4 [15:08:27]MH_SAM_APDU [15:08:27]CAPDU: 80 11 00 00 [15:08:27]Write to MH i2c: E2 08 00 8B 98 80 11 00 00 00 00 00 00 9D [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:27]Read from MH i2c: E2 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 17 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 17 00 8B 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [15:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:08:27]wFMCommunicate OK [15:08:27]requested_item fd.num is exist - process it [15:08:27]SAM_PROTO_GetFieldsCounters [15:08:27]wFMCommunicate request_size=4 [15:08:27]MH_SAM_APDU [15:08:27]CAPDU: 80 13 00 00 [15:08:27]Write to MH i2c: E2 08 00 8C 98 80 13 00 00 00 00 00 00 A0 [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:27]Read from MH i2c: E2 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 62 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 62 00 8C 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [15:08: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:27]wFMCommunicate OK [15:08:27]SAM_PROTO_GetFieldsCounters done [15:08:27]requested_item shift.num is exist - process it [15:08:27]requested_item shift.opened is exist - process it [15:08:27]req_shift_opened [15:08:27]FM_GetShiftState [15:08:27]SAM_PROTO_GetShiftState [15:08:27]wFMCommunicate request_size=4 [15:08:27]MH_SAM_APDU [15:08:27]CAPDU: 80 13 01 00 [15:08:27]Write to MH i2c: E2 08 00 8D 98 80 13 01 00 00 00 00 00 A2 [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:27]Read from MH i2c: E2 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 0E 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 0E 00 8D 98 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3E [15:08:27]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:08:27]wFMCommunicate OK [15:08:27]SAM_PROTO_GetShiftState done [15:08:27]FM_GetShiftState done [15:08:27]req_shift_opened done [15:08:27]requested_item shift.open_date is exist - process it [15:08:27]req_shift_open_date [15:08:27]req_shift_open_date done [15:08:27]produce_requested_data done [15:08:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94933,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:08:27]process_action_free close_receipt [15:08:27]json_value_free [15:08:27]json_value_free done [15:08:27]process_json_proto returns [15:08:27]Send response to host [15:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94933,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:08:27]free response buf [15:08:27]execute_script done [15:08:27]execute_script returns [15:08:27]free content buf [15:08:27]Sock 9.Close socket [15:08:27]Sock 9.Thread stoped [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]accept exits with 7 [15:10:12]New connection [15:10:12]New thread 3067014500 created [15:10:12]Thread 3066871140 joined [15:10:12]Waiting for new connection... [15:10:12] Sock 7.Parse request [15:10:12]Sock 7.Check first char [15:10:12]Sock 7.First char is OK [15:10:12]request: POST /json_proto HTTP/1.0 [15:10:12]Method: POST [15:10:12]URL: /json_proto [15:10:12]Method is POST - this is cgi request [15:10:12]url: /json_proto [15:10:12]query_string will be loaded in cgi processing [15:10:12]execute_cgi json_proto POST (null) [15:10:12]execute_cgi path=json_proto method=POST [15:10:12]POST find Content-Length [15:10:12]Host: 172.17.62.67:8080 [15:10:12]Content-Length: 682 [15:10:12]Content-Type: application/json [15:10:12] [15:10:12]POST finish read [15:10:12]Found Content-Length = 682 [15:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:12]execute_script... [15:10:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:12]POST & json_proto [15:10:12]process_json_proto [15:10:12]json parsed OK: [15:10:12]protocol is kg_v1.0 [15:10:12]action value=close_receipt [15:10:12]process_action close_receipt [15:10:12]cmd_close_receipt [15:10:12]MH_GetDate [15:10:12]Write to MH i2c: F0 00 00 8E 98 15 [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: F0 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: F0 05 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: F0 05 00 8E 98 00 E3 1E EF 65 6F [15:10:12]GetLastDocTimeStamp 1710169720 [15:10:12]current date 1710169827 [15:10:12]FM_GetShiftState [15:10:12]SAM_PROTO_GetShiftState [15:10:12]wFMCommunicate request_size=4 [15:10:12]MH_SAM_APDU [15:10:12]CAPDU: 80 13 01 00 [15:10:12]Write to MH i2c: E2 08 00 8F 98 80 13 01 00 00 00 00 00 A4 [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:12]Read from MH i2c: E2 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 0E 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 0E 00 8F 98 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 40 [15:10:12]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:10:12]wFMCommunicate OK [15:10:12]SAM_PROTO_GetShiftState done [15:10:12]FM_GetShiftState done [15:10:12]opened in 1710115571 [15:10:12]opened+sec_in_day 1710201971 [15:10:12]quantity*price = 100011 [15:10:12]sum+1 = 100012 [15:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 109 11.03.2024 15:10 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94934 ФПД: 213653015460157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T151027&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94934&fm=213653015460157&tin=02508201610067®Number=0000000000090555&sum=100000 [15:10:13]StoreToDocumentArchive [15:10:13]shift 326 fd 94934 [15:10:13]save to /storage/0326/doc_00094934 [15:10:13]save last doc name /storage/0326/doc_00094934 to /storage/kkm_last_doc_name [15:10:13]save OK [15:10:13]Clear old archive folders... [15:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:13]tlvbuf is 002BCCC0 [15:10:13]SAM_PROTO_ClearQueue [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 09 00 00 [15:10:13]Write to MH i2c: E2 08 00 9C 98 80 09 00 00 00 00 00 00 A6 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 9C 98 00 90 00 A8 [15:10:13]RAPDU: 90 00 [15:10:13]wFMCommunicate OK [15:10:13]SAM_PROTO_ClearQueue done [15:10:13]KKMCreateOFDPacket [15:10:13]OFDProtocolAddRootSTLVToBuf [15:10:13]FM_MakeSignedData [15:10:13]FM_MakeSignedData [15:10:13]SAM_PROTO_SignData [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 0D 01 02 [15:10:13]Write to MH i2c: E2 08 00 9D 98 80 0D 01 02 00 00 00 00 AE [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 9D 98 00 90 00 A9 [15:10:13]RAPDU: 90 00 [15:10:13]wFMCommunicate OK [15:10:13]wFMCommunicate request_size=255 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 E3 1E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 72 01 00 35 04 06 00 C2 [15:10:13]Write to MH i2c: E2 02 01 9E 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 E3 1E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 72 01 00 35 04 06 00 C2 00 00 6A [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 9E 98 00 90 00 AA [15:10:13]RAPDU: 90 00 [15:10:13]wFMCommunicate OK [15:10:13]wFMCommunicate request_size=10 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 0D 02 02 05 50 F8 17 79 3D [15:10:13]Write to MH i2c: E2 0D 00 9F 98 80 0D 02 02 05 00 50 F8 17 79 3D 00 00 D0 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 9F 98 00 90 00 AB [15:10:13]RAPDU: 90 00 [15:10:13]wFMCommunicate OK [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 0D 03 02 [15:10:13]Write to MH i2c: E2 08 00 A0 98 80 0D 03 02 00 00 00 00 B3 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 0B 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 0B 00 A0 98 00 8C 16 51 2C 28 DD FC F8 90 00 CC [15:10:13]RAPDU: 8C 16 51 2C 28 DD FC F8 90 00 [15:10:13]wFMCommunicate OK [15:10:13]SAM_PROTO_SignData done [15:10:13]FM_MakeSignedData done [15:10:13]CreateOFDProtocolMessage [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 11 00 00 [15:10:13]Write to MH i2c: E2 08 00 A1 98 80 11 00 00 00 00 00 00 B3 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 17 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 17 00 A1 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [15:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:10:13]wFMCommunicate OK [15:10:13]CreateOFDProtocolMessage done [15:10:13]OFDSenderStorePacket 94934 [15:10:13]StoreOFDPacket docnum=94934 [15:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B 18 07 01 86 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 E3 1E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 72 01 00 35 04 06 00 C2 50 F8 17 79 3D 8C 16 51 2C 28 DD FC F8 [15:10:13]CheckFolder [15:10:13]dirname=/storage/ofd_packets [15:10:13]CheckFolder done [15:10:13]ProducePacketName [15:10:13]name=ofd_packets/00094934 [15:10:13]NVStorageSaveData ofd_packets/00094934 [15:10:13]File name is /storage/ofd_packets/00094934 [15:10:13]Write 301 bytes [15:10:13]NVStorageSaveData done [15:10:13]OFDSenderStorePacket done [15:10:13]KKMCreateOFDPacket done [15:10:13]NVStorageSaveData kkm_last_timestamp [15:10:13]File name is /storage/kkm_last_timestamp [15:10:13]Write 4 bytes [15:10:13]NVStorageSaveData done [15:10:13]ExternCall_PrintAddStr [15:10:13]wPrintStart [15:10:13]Write to MH i2c: 01 00 00 A2 98 3A [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 07 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 07 00 A2 98 00 80 00 00 00 FF 0F CF [15:10:13]RasterBufferAndPrint [15:10:13]line Счет N : (1)195891 [15:10:13]line ИНН: 02508201610067 [15:10:13]line Контрольно-Кассовый Чек [15:10:13]line ПРОДАЖА [15:10:13]line ТРК (МРК, ГНК) : 12 [15:10:13]line Товар: 2710124130 [15:10:13]line Аи-92-К-5 [15:10:13]line 15.900 * 62.90 [15:10:13]line = 1000.11 [15:10:13]line НДС 12% НСП 1% [15:10:13]line > о реализуемом товаре [15:10:13]line ОКРУГЛЕНИЕ: -0.11 [15:10:13]line ИТОГО: 1000.00 [15:10:13]line Внесено: 1000.00 [15:10:13]line СДАЧА: 0.00 [15:10:13]line НСП 1% : 8.85 [15:10:13]line НДС 12% : 106.21 [15:10:13]line Наличными: 1000.00 [15:10:13]line Безнал.: 0.00 [15:10:13]line Место: АЗС № 6 "Партнер Нефть" [15:10:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:10:13]line СНО: Общий режим [15:10:13]line Чек 109 11.03.2024 15:10 [15:10:13]line Смена: 326 ФФД: 1.0 [15:10:13]line ЗНМ: 0300000009 [15:10:13]line РНМ: 0000000000090555 [15:10:13]line Версия ККМ: 001 [15:10:13]line ФМ: 0000000000874811 [15:10:13]line ФД: 94934 [15:10:13]line ФПД: 213653015460157 [15:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T151027&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94934&fm=213653015460157&tin=02508201610067®Number=0000000000090555&sum=100000 [15:10:14]OFD Sender: Processing packet 94934 [packets to send 30, broken 29] [15:10:14]ProducePacketName [15:10:14]name=ofd_packets/00094934 [15:10:14]OFD Sender: To server: pG, [15:10:14]CommunicateWithHost lk.salyk.kg:30040 [15:10:14]ConnectInit lk.salyk.kg [15:10:14]written 0, free lines is 4095 [15:10:14]Connected sock=10 [15:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B 18 07 01 86 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 E3 1E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 72 01 00 35 04 06 00 C2 50 F8 17 79 3D 8C 16 51 2C 28 DD FC F8 [15:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 38 A7 47 00 E3 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 72 01 00 F4 03 04 00 3C CA EE 65 B6 04 01 00 00 67 19 0B B8 24 AB A7 4E [15:10:14]CommunicateWithHost err = 0 [15:10:14]CheckOFDResponse [15:10:14]1017 (14) - 77093643461234 [15:10:14]1041 (16) - 0000000000874811 [15:10:14]1040 (4) - 94934 [15:10:14]1012 (4) - 11.03.2024 09:09 [15:10:14]1206 (1) - 0 [15:10:14]OFD Sender: Remove packet 94934 [15:10:14]ProducePacketName [15:10:14]name=ofd_packets/00094934 [15:10:14]NVStorageDeleteData [15:10:14]Write to MH i2c: 01 00 00 CD 98 65 [15:10:14]Write i2c OK [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: 01 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: 01 07 00 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: 01 07 00 CD 98 00 80 00 00 00 4C 0D 45 [15:10:14]RasterBufferAndPrint [15:10:14]line [15:10:14]line [15:10:14]line [15:10:14]line [15:10:14]line [15:10:14]written 0, free lines is 3410 [15:10:14]process_action close_receipt done [15:10:14]requested_data is exist [15:10:14]produce_requested_data [15:10:14]requested_item fm.sn is exist - process it [15:10:14]wFMCommunicate request_size=4 [15:10:14]MH_SAM_APDU [15:10:14]CAPDU: 80 11 00 00 [15:10:14]Write to MH i2c: E2 08 00 D4 98 80 11 00 00 00 00 00 00 E6 [15:10:14]Write i2c OK [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: E2 [15:10:14]MH_I2C_Read... [15:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:14]Read from MH i2c: E2 17 00 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: E2 17 00 D4 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [15:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:10:14]wFMCommunicate OK [15:10:14]requested_item fd.num is exist - process it [15:10:14]SAM_PROTO_GetFieldsCounters [15:10:14]wFMCommunicate request_size=4 [15:10:14]MH_SAM_APDU [15:10:14]CAPDU: 80 13 00 00 [15:10:14]Write to MH i2c: E2 08 00 D5 98 80 13 00 00 00 00 00 00 E9 [15:10:14]Write i2c OK [15:10:14]MH_I2C_Read... [15:10:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:14]Read from MH i2c: E2 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: E2 62 00 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: E2 62 00 D5 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:10: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:14]wFMCommunicate OK [15:10:14]SAM_PROTO_GetFieldsCounters done [15:10:14]requested_item shift.num is exist - process it [15:10:14]requested_item shift.opened is exist - process it [15:10:14]req_shift_opened [15:10:14]FM_GetShiftState [15:10:14]SAM_PROTO_GetShiftState [15:10:14]wFMCommunicate request_size=4 [15:10:14]MH_SAM_APDU [15:10:14]CAPDU: 80 13 01 00 [15:10:14]Write to MH i2c: E2 08 00 D6 98 80 13 01 00 00 00 00 00 EB [15:10:14]Write i2c OK [15:10:14]MH_I2C_Read... [15:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:14]OFD Sender: No OFD packet to send [15:10:14]Read from MH i2c: E2 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: E2 0E 00 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: E2 0E 00 D6 98 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 87 [15:10:14]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:10:14]wFMCommunicate OK [15:10:14]SAM_PROTO_GetShiftState done [15:10:14]FM_GetShiftState done [15:10:14]req_shift_opened done [15:10:14]requested_item shift.open_date is exist - process it [15:10:14]req_shift_open_date [15:10:14]req_shift_open_date done [15:10:14]produce_requested_data done [15:10:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94934,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:10:14]process_action_free close_receipt [15:10:14]json_value_free [15:10:14]json_value_free done [15:10:14]process_json_proto returns [15:10:14]Send response to host [15:10:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94934,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:10:14]free response buf [15:10:14]execute_script done [15:10:14]execute_script returns [15:10:14]free content buf [15:10:14]Sock 7.Close socket [15:10:14]Sock 7.Thread stoped [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:03]accept exits with 9 [15:16:03]New connection [15:16:03]New thread 3066871140 created [15:16:03]Thread 3067014500 joined [15:16:03]Waiting for new connection... [15:16:03] Sock 9.Parse request [15:16:03]Sock 9.Check first char [15:16:03]Sock 9.First char is OK [15:16:03]request: POST /json_proto HTTP/1.0 [15:16:03]Method: POST [15:16:03]URL: /json_proto [15:16:03]Method is POST - this is cgi request [15:16:03]url: /json_proto [15:16:03]query_string will be loaded in cgi processing [15:16:03]execute_cgi json_proto POST (null) [15:16:03]execute_cgi path=json_proto method=POST [15:16:03]POST find Content-Length [15:16:03]Host: 172.17.62.67:8080 [15:16:03]Content-Length: 682 [15:16:03]Content-Type: application/json [15:16:03] [15:16:03]POST finish read [15:16:03]Found Content-Length = 682 [15:16:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:03]execute_script... [15:16: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)195892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:03]POST & json_proto [15:16:03]process_json_proto [15:16:03]json parsed OK: [15:16:03]protocol is kg_v1.0 [15:16:03]action value=close_receipt [15:16:03]process_action close_receipt [15:16:03]cmd_close_receipt [15:16:03]MH_GetDate [15:16:03]Write to MH i2c: F0 00 00 D7 98 5E [15:16:03]Write i2c OK [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: F0 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: F0 05 00 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: F0 05 00 D7 98 00 42 20 EF 65 19 [15:16:03]GetLastDocTimeStamp 1710169827 [15:16:03]current date 1710170178 [15:16:03]FM_GetShiftState [15:16:03]SAM_PROTO_GetShiftState [15:16:03]wFMCommunicate request_size=4 [15:16:03]MH_SAM_APDU [15:16:03]CAPDU: 80 13 01 00 [15:16:03]Write to MH i2c: E2 08 00 D8 98 80 13 01 00 00 00 00 00 ED [15:16:03]Write i2c OK [15:16:03]MH_I2C_Read... [15:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:03]Read from MH i2c: E2 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 0E 00 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 0E 00 D8 98 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 89 [15:16:03]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:16:03]wFMCommunicate OK [15:16:03]SAM_PROTO_GetShiftState done [15:16:03]FM_GetShiftState done [15:16:03]opened in 1710115571 [15:16:03]opened+sec_in_day 1710201971 [15:16:03]quantity*price = 100011 [15:16:03]sum+1 = 100012 [15:16:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 110 11.03.2024 15:16 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94935 ФПД: 248949879603753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T151618&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94935&fm=248949879603753&tin=02508201610067®Number=0000000000090555&sum=100000 [15:16:04]StoreToDocumentArchive [15:16:04]shift 326 fd 94935 [15:16:04]save to /storage/0326/doc_00094935 [15:16:04]save last doc name /storage/0326/doc_00094935 to /storage/kkm_last_doc_name [15:16:04]save OK [15:16:04]Clear old archive folders... [15:16:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:04]tlvbuf is 00248770 [15:16:04]SAM_PROTO_ClearQueue [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 09 00 00 [15:16:04]Write to MH i2c: E2 08 00 E5 98 80 09 00 00 00 00 00 00 EF [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:04]Read from MH i2c: E2 03 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 E5 98 00 90 00 F1 [15:16:04]RAPDU: 90 00 [15:16:04]wFMCommunicate OK [15:16:04]SAM_PROTO_ClearQueue done [15:16:04]KKMCreateOFDPacket [15:16:04]OFDProtocolAddRootSTLVToBuf [15:16:04]FM_MakeSignedData [15:16:04]FM_MakeSignedData [15:16:04]SAM_PROTO_SignData [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 0D 01 02 [15:16:04]Write to MH i2c: E2 08 00 E6 98 80 0D 01 02 00 00 00 00 F7 [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 E6 98 00 90 00 F2 [15:16:04]RAPDU: 90 00 [15:16:04]wFMCommunicate OK [15:16:04]wFMCommunicate request_size=255 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 42 20 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 72 01 00 35 04 06 00 E2 [15:16:04]Write to MH i2c: E2 02 01 E7 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 42 20 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 72 01 00 35 04 06 00 E2 00 00 36 [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:05]Read from MH i2c: E2 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 03 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 03 00 E7 98 00 90 00 F3 [15:16:05]RAPDU: 90 00 [15:16:05]wFMCommunicate OK [15:16:05]wFMCommunicate request_size=10 [15:16:05]MH_SAM_APDU [15:16:05]CAPDU: 80 0D 02 02 05 6B 29 24 02 29 [15:16:05]Write to MH i2c: E2 0D 00 E8 98 80 0D 02 02 05 00 6B 29 24 02 29 00 00 E7 [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:05]Read from MH i2c: E2 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 03 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 03 00 E8 98 00 90 00 F4 [15:16:05]RAPDU: 90 00 [15:16:05]wFMCommunicate OK [15:16:05]wFMCommunicate request_size=4 [15:16:05]MH_SAM_APDU [15:16:05]CAPDU: 80 0D 03 02 [15:16:05]Write to MH i2c: E2 08 00 E9 98 80 0D 03 02 00 00 00 00 FC [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:05]Read from MH i2c: E2 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 0B 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 0B 00 E9 98 00 F8 93 10 3D C3 27 61 3F 90 00 5F [15:16:05]RAPDU: F8 93 10 3D C3 27 61 3F 90 00 [15:16:05]wFMCommunicate OK [15:16:05]SAM_PROTO_SignData done [15:16:05]FM_MakeSignedData done [15:16:05]CreateOFDProtocolMessage [15:16:05]wFMCommunicate request_size=4 [15:16:05]MH_SAM_APDU [15:16:05]CAPDU: 80 11 00 00 [15:16:05]Write to MH i2c: E2 08 00 EA 98 80 11 00 00 00 00 00 00 FC [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:05]OFD Sender: No OFD packet to send [15:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:05]Read from MH i2c: E2 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 17 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 17 00 EA 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4C [15:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:16:05]wFMCommunicate OK [15:16:05]CreateOFDProtocolMessage done [15:16:05]OFDSenderStorePacket 94935 [15:16:05]StoreOFDPacket docnum=94935 [15:16:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DC C8 07 01 95 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 42 20 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 72 01 00 35 04 06 00 E2 6B 29 24 02 29 F8 93 10 3D C3 27 61 3F [15:16:05]CheckFolder [15:16:05]dirname=/storage/ofd_packets [15:16:05]CheckFolder done [15:16:05]ProducePacketName [15:16:05]name=ofd_packets/00094935 [15:16:05]NVStorageSaveData ofd_packets/00094935 [15:16:05]File name is /storage/ofd_packets/00094935 [15:16:05]Write 301 bytes [15:16:05]NVStorageSaveData done [15:16:05]OFDSenderStorePacket done [15:16:05]KKMCreateOFDPacket done [15:16:05]NVStorageSaveData kkm_last_timestamp [15:16:05]File name is /storage/kkm_last_timestamp [15:16:05]Write 4 bytes [15:16:05]NVStorageSaveData done [15:16:05]ExternCall_PrintAddStr [15:16:05]wPrintStart [15:16:05]Write to MH i2c: 01 00 00 EB 98 83 [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: 01 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: 01 07 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: 01 07 00 EB 98 00 80 00 00 00 FF 0F 18 [15:16:05]RasterBufferAndPrint [15:16:05]line Счет N : (1)195892 [15:16:05]line ИНН: 02508201610067 [15:16:05]line Контрольно-Кассовый Чек [15:16:05]line ПРОДАЖА [15:16:05]line ТРК (МРК, ГНК) : 12 [15:16:05]line Товар: 2710124130 [15:16:05]line Аи-92-К-5 [15:16:05]line 15.900 * 62.90 [15:16:05]line = 1000.11 [15:16:05]line НДС 12% НСП 1% [15:16:05]line > о реализуемом товаре [15:16:05]line ОКРУГЛЕНИЕ: -0.11 [15:16:05]line ИТОГО: 1000.00 [15:16:05]line Внесено: 1000.00 [15:16:05]line СДАЧА: 0.00 [15:16:05]line НСП 1% : 8.85 [15:16:05]line НДС 12% : 106.21 [15:16:05]line Наличными: 1000.00 [15:16:05]line Безнал.: 0.00 [15:16:05]line Место: АЗС № 6 "Партнер Нефть" [15:16:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:16:05]line СНО: Общий режим [15:16:05]line Чек 110 11.03.2024 15:16 [15:16:05]line Смена: 326 ФФД: 1.0 [15:16:05]line ЗНМ: 0300000009 [15:16:05]line РНМ: 0000000000090555 [15:16:05]line Версия ККМ: 001 [15:16:05]line ФМ: 0000000000874811 [15:16:05]line ФД: 94935 [15:16:05]line ФПД: 248949879603753 [15:16:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T151618&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94935&fm=248949879603753&tin=02508201610067®Number=0000000000090555&sum=100000 [15:16:05]OFD Sender: Processing packet 94935 [packets to send 30, broken 29] [15:16:05]ProducePacketName [15:16:05]name=ofd_packets/00094935 [15:16:05]OFD Sender: To server: pG, [15:16:05]CommunicateWithHost lk.salyk.kg:30040 [15:16:05]ConnectInit lk.salyk.kg [15:16:05]written 0, free lines is 4095 [15:16:05]Connected sock=10 [15:16: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 31 31 0F 01 00 00 DC C8 07 01 95 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 42 20 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 72 01 00 35 04 06 00 E2 6B 29 24 02 29 F8 93 10 3D C3 27 61 3F [15:16: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 31 31 4F 00 00 00 FB 46 47 00 B4 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 31 31 10 04 04 00 D7 72 01 00 F4 03 04 00 9B CB EE 65 B6 04 01 00 00 0F 9A F7 F8 AC 24 B0 56 [15:16:05]CommunicateWithHost err = 0 [15:16:05]CheckOFDResponse [15:16:05]1017 (14) - 77093643461234 [15:16:05]1041 (16) - 0000000000874811 [15:16:05]1040 (4) - 94935 [15:16:05]1012 (4) - 11.03.2024 09:15 [15:16:05]1206 (1) - 0 [15:16:05]OFD Sender: Remove packet 94935 [15:16:05]ProducePacketName [15:16:05]name=ofd_packets/00094935 [15:16:05]NVStorageDeleteData [15:16:06]Write to MH i2c: 01 00 00 16 99 AF [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 07 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 07 00 16 99 00 80 00 00 00 48 0D 8B [15:16:06]RasterBufferAndPrint [15:16:06]line [15:16:06]line [15:16:06]line [15:16:06]line [15:16:06]line [15:16:06]written 0, free lines is 3406 [15:16:06]process_action close_receipt done [15:16:06]requested_data is exist [15:16:06]produce_requested_data [15:16:06]requested_item fm.sn is exist - process it [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 11 00 00 [15:16:06]Write to MH i2c: E2 08 00 1D 99 80 11 00 00 00 00 00 00 30 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 17 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 17 00 1D 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 80 [15:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:16:06]wFMCommunicate OK [15:16:06]requested_item fd.num is exist - process it [15:16:06]SAM_PROTO_GetFieldsCounters [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 13 00 00 [15:16:06]Write to MH i2c: E2 08 00 1E 99 80 13 00 00 00 00 00 00 33 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 62 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 62 00 1E 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [15:16: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:06]wFMCommunicate OK [15:16:06]SAM_PROTO_GetFieldsCounters done [15:16:06]requested_item shift.num is exist - process it [15:16:06]requested_item shift.opened is exist - process it [15:16:06]req_shift_opened [15:16:06]FM_GetShiftState [15:16:06]SAM_PROTO_GetShiftState [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 13 01 00 [15:16:06]Write to MH i2c: E2 08 00 1F 99 80 13 01 00 00 00 00 00 35 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 0E 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 0E 00 1F 99 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D1 [15:16:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:16:06]wFMCommunicate OK [15:16:06]SAM_PROTO_GetShiftState done [15:16:06]FM_GetShiftState done [15:16:06]req_shift_opened done [15:16:06]requested_item shift.open_date is exist - process it [15:16:06]req_shift_open_date [15:16:06]req_shift_open_date done [15:16:06]produce_requested_data done [15:16:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94935,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:16:06]process_action_free close_receipt [15:16:06]json_value_free [15:16:06]json_value_free done [15:16:06]process_json_proto returns [15:16:06]Send response to host [15:16:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94935,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:16:06]free response buf [15:16:06]execute_script done [15:16:06]execute_script returns [15:16:06]free content buf [15:16:06]Sock 9.Close socket [15:16:06]Sock 9.Thread stoped [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:05]accept exits with 7 [15:17:05]New connection [15:17:05]New thread 3067014500 created [15:17:05]Thread 3066871140 joined [15:17:05]Waiting for new connection... [15:17:05] Sock 7.Parse request [15:17:05]Sock 7.Check first char [15:17:05]Sock 7.First char is OK [15:17:05]request: POST /json_proto HTTP/1.0 [15:17:05]Method: POST [15:17:05]URL: /json_proto [15:17:05]Method is POST - this is cgi request [15:17:05]url: /json_proto [15:17:05]query_string will be loaded in cgi processing [15:17:05]execute_cgi json_proto POST (null) [15:17:05]execute_cgi path=json_proto method=POST [15:17:05]POST find Content-Length [15:17:05]Host: 172.17.62.67:8080 [15:17:05]Content-Length: 677 [15:17:05]Content-Type: application/json [15:17:05] [15:17:05]POST finish read [15:17:05]Found Content-Length = 677 [15:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.640, "sum" : 480.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:05]execute_script... [15:17:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.640, "sum" : 480.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:05]POST & json_proto [15:17:05]process_json_proto [15:17:05]json parsed OK: [15:17:05]protocol is kg_v1.0 [15:17:05]action value=close_receipt [15:17:05]process_action close_receipt [15:17:05]cmd_close_receipt [15:17:05]MH_GetDate [15:17:05]Write to MH i2c: F0 00 00 20 99 A8 [15:17:05]Write i2c OK [15:17:05]MH_I2C_Read... [15:17:05]Read from MH i2c: F0 [15:17:05]MH_I2C_Read... [15:17:05]Read from MH i2c: F0 05 00 [15:17:05]MH_I2C_Read... [15:17:05]Read from MH i2c: F0 05 00 20 99 00 80 20 EF 65 A1 [15:17:05]GetLastDocTimeStamp 1710170178 [15:17:05]current date 1710170240 [15:17:05]FM_GetShiftState [15:17:05]SAM_PROTO_GetShiftState [15:17:05]wFMCommunicate request_size=4 [15:17:05]MH_SAM_APDU [15:17:05]CAPDU: 80 13 01 00 [15:17:05]Write to MH i2c: E2 08 00 21 99 80 13 01 00 00 00 00 00 37 [15:17:05]Write i2c OK [15:17:05]MH_I2C_Read... [15:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:06]Read from MH i2c: E2 [15:17:06]MH_I2C_Read... [15:17:06]Read from MH i2c: E2 0E 00 [15:17:06]MH_I2C_Read... [15:17:06]Read from MH i2c: E2 0E 00 21 99 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D3 [15:17:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:17:06]wFMCommunicate OK [15:17:06]SAM_PROTO_GetShiftState done [15:17:06]FM_GetShiftState done [15:17:06]opened in 1710115571 [15:17:06]opened+sec_in_day 1710201971 [15:17:06]quantity*price = 48055 [15:17:06]sum+1 = 48057 [15:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.03 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 111 11.03.2024 15:17 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94936 ФПД: 42622866362306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T151720&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94936&fm=42622866362306&tin=02508201610067®Number=0000000000090555&sum=48000 [15:17:07]StoreToDocumentArchive [15:17:07]shift 326 fd 94936 [15:17:07]save to /storage/0326/doc_00094936 [15:17:07]save last doc name /storage/0326/doc_00094936 to /storage/kkm_last_doc_name [15:17:07]save OK [15:17:07]Clear old archive folders... [15:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:07]tlvbuf is 00212B60 [15:17:07]SAM_PROTO_ClearQueue [15:17:07]wFMCommunicate request_size=4 [15:17:07]MH_SAM_APDU [15:17:07]CAPDU: 80 09 00 00 [15:17:07]Write to MH i2c: E2 08 00 2E 99 80 09 00 00 00 00 00 00 39 [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 [15:17:07]MH_I2C_Read... [15:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:07]Read from MH i2c: E2 03 00 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 03 00 2E 99 00 90 00 3B [15:17:07]RAPDU: 90 00 [15:17:07]wFMCommunicate OK [15:17:07]SAM_PROTO_ClearQueue done [15:17:07]KKMCreateOFDPacket [15:17:07]OFDProtocolAddRootSTLVToBuf [15:17:07]FM_MakeSignedData [15:17:07]FM_MakeSignedData [15:17:07]SAM_PROTO_SignData [15:17:07]wFMCommunicate request_size=4 [15:17:07]MH_SAM_APDU [15:17:07]CAPDU: 80 0D 01 02 [15:17:07]Write to MH i2c: E2 08 00 2F 99 80 0D 01 02 00 00 00 00 41 [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 [15:17:07]MH_I2C_Read... [15:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:07]Read from MH i2c: E2 03 00 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 03 00 2F 99 00 90 00 3C [15:17:07]RAPDU: 90 00 [15:17:07]wFMCommunicate OK [15:17:07]wFMCommunicate request_size=255 [15:17:07]MH_SAM_APDU [15:17:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 1D 00 00 00 00 00 37 04 06 00 92 18 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 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 80 20 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 72 01 00 35 04 06 00 26 [15:17:07]Write to MH i2c: E2 02 01 30 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 1D 00 00 00 00 00 37 04 06 00 92 18 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 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 80 20 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 72 01 00 35 04 06 00 26 00 00 96 [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:07]Read from MH i2c: E2 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 03 00 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 03 00 30 99 00 90 00 3D [15:17:07]RAPDU: 90 00 [15:17:07]wFMCommunicate OK [15:17:07]wFMCommunicate request_size=10 [15:17:07]MH_SAM_APDU [15:17:07]CAPDU: 80 0D 02 02 05 C3 E8 CF 0F C2 [15:17:07]Write to MH i2c: E2 0D 00 31 99 80 0D 02 02 05 00 C3 E8 CF 0F C2 00 00 99 [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:07]Read from MH i2c: E2 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 03 00 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 03 00 31 99 00 90 00 3E [15:17:07]RAPDU: 90 00 [15:17:07]wFMCommunicate OK [15:17:07]wFMCommunicate request_size=4 [15:17:07]MH_SAM_APDU [15:17:07]CAPDU: 80 0D 03 02 [15:17:07]Write to MH i2c: E2 08 00 32 99 80 0D 03 02 00 00 00 00 46 [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:07]Read from MH i2c: E2 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 0B 00 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 0B 00 32 99 00 90 FA 3A 7D FD CB 61 96 90 00 47 [15:17:07]RAPDU: 90 FA 3A 7D FD CB 61 96 90 00 [15:17:07]wFMCommunicate OK [15:17:07]SAM_PROTO_SignData done [15:17:07]FM_MakeSignedData done [15:17:07]CreateOFDProtocolMessage [15:17:07]wFMCommunicate request_size=4 [15:17:07]MH_SAM_APDU [15:17:07]CAPDU: 80 11 00 00 [15:17:07]Write to MH i2c: E2 08 00 33 99 80 11 00 00 00 00 00 00 46 [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:07]Read from MH i2c: E2 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 17 00 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: E2 17 00 33 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 96 [15:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:17:07]wFMCommunicate OK [15:17:07]CreateOFDProtocolMessage done [15:17:07]OFDSenderStorePacket 94936 [15:17:07]StoreOFDPacket docnum=94936 [15:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B6 38 07 01 FD 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 1D 00 00 00 00 00 37 04 06 00 92 18 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 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 80 20 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 72 01 00 35 04 06 00 26 C3 E8 CF 0F C2 90 FA 3A 7D FD CB 61 96 [15:17:07]CheckFolder [15:17:07]dirname=/storage/ofd_packets [15:17:07]CheckFolder done [15:17:07]ProducePacketName [15:17:07]name=ofd_packets/00094936 [15:17:07]NVStorageSaveData ofd_packets/00094936 [15:17:07]File name is /storage/ofd_packets/00094936 [15:17:07]Write 301 bytes [15:17:07]NVStorageSaveData done [15:17:07]OFDSenderStorePacket done [15:17:07]KKMCreateOFDPacket done [15:17:07]NVStorageSaveData kkm_last_timestamp [15:17:07]File name is /storage/kkm_last_timestamp [15:17:07]Write 4 bytes [15:17:07]NVStorageSaveData done [15:17:07]ExternCall_PrintAddStr [15:17:07]wPrintStart [15:17:07]Write to MH i2c: 01 00 00 34 99 CD [15:17:07]Write i2c OK [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: 01 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: 01 07 00 [15:17:07]MH_I2C_Read... [15:17:07]Read from MH i2c: 01 07 00 34 99 00 80 00 00 00 FF 0F 62 [15:17:07]RasterBufferAndPrint [15:17:07]line Счет N : (1)195893 [15:17:07]line ИНН: 02508201610067 [15:17:07]line Контрольно-Кассовый Чек [15:17:07]line ПРОДАЖА [15:17:07]line ТРК (МРК, ГНК) : 32 [15:17:07]line Товар: 2710124130 [15:17:07]line Аи-92-К-5 [15:17:07]line 7.640 * 62.90 [15:17:07]line = 480.56 [15:17:07]line НДС 12% НСП 1% [15:17:07]line > о реализуемом товаре [15:17:07]line ОКРУГЛЕНИЕ: -0.56 [15:17:07]line ИТОГО: 480.00 [15:17:07]line Внесено: 480.00 [15:17:07]line СДАЧА: 0.00 [15:17:07]line НСП 1% : 4.25 [15:17:07]line НДС 12% : 51.03 [15:17:07]line Наличными: 480.00 [15:17:07]line Безнал.: 0.00 [15:17:07]line Место: АЗС № 6 "Партнер Нефть" [15:17:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:17:07]line СНО: Общий режим [15:17:07]line Чек 111 11.03.2024 15:17 [15:17:07]line Смена: 326 ФФД: 1.0 [15:17:07]line ЗНМ: 0300000009 [15:17:07]line РНМ: 0000000000090555 [15:17:07]line Версия ККМ: 001 [15:17:07]line ФМ: 0000000000874811 [15:17:07]line ФД: 94936 [15:17:07]line ФПД: 42622866362306 [15:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T151720&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94936&fm=42622866362306&tin=02508201610067®Number=0000000000090555&sum=48000 [15:17:08]written 0, free lines is 4095 [15:17:08]OFD Sender: Processing packet 94936 [packets to send 30, broken 29] [15:17:08]ProducePacketName [15:17:08]name=ofd_packets/00094936 [15:17:08]OFD Sender: To server: pG, [15:17:08]CommunicateWithHost lk.salyk.kg:30040 [15:17:08]ConnectInit lk.salyk.kg [15:17:08]Connected sock=10 [15:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B6 38 07 01 FD 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 1D 00 00 00 00 00 37 04 06 00 92 18 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 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 80 20 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 72 01 00 35 04 06 00 26 C3 E8 CF 0F C2 90 FA 3A 7D FD CB 61 96 [15:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D1 C3 47 00 9D 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 72 01 00 F4 03 04 00 DA CB EE 65 B6 04 01 00 00 CD 7F 45 B7 69 E3 41 E5 [15:17:08]CommunicateWithHost err = 0 [15:17:08]CheckOFDResponse [15:17:08]1017 (14) - 77093643461234 [15:17:08]1041 (16) - 0000000000874811 [15:17:08]1040 (4) - 94936 [15:17:08]1012 (4) - 11.03.2024 09:16 [15:17:08]1206 (1) - 0 [15:17:08]OFD Sender: Remove packet 94936 [15:17:08]ProducePacketName [15:17:08]name=ofd_packets/00094936 [15:17:08]NVStorageDeleteData [15:17:08]Write to MH i2c: 01 00 00 5F 99 F8 [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: 01 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: 01 07 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: 01 07 00 5F 99 00 80 00 00 00 4B 0D D7 [15:17:08]RasterBufferAndPrint [15:17:08]line [15:17:08]line [15:17:08]line [15:17:08]line [15:17:08]line [15:17:08]written 0, free lines is 3409 [15:17:08]process_action close_receipt done [15:17:08]requested_data is exist [15:17:08]produce_requested_data [15:17:08]requested_item fm.sn is exist - process it [15:17:08]wFMCommunicate request_size=4 [15:17:08]MH_SAM_APDU [15:17:08]CAPDU: 80 11 00 00 [15:17:08]Write to MH i2c: E2 08 00 66 99 80 11 00 00 00 00 00 00 79 [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:08]Read from MH i2c: E2 17 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 17 00 66 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C9 [15:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:17:08]wFMCommunicate OK [15:17:08]requested_item fd.num is exist - process it [15:17:08]SAM_PROTO_GetFieldsCounters [15:17:08]wFMCommunicate request_size=4 [15:17:08]MH_SAM_APDU [15:17:08]CAPDU: 80 13 00 00 [15:17:08]Write to MH i2c: E2 08 00 67 99 80 13 00 00 00 00 00 00 7C [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 62 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 62 00 67 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D8 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [15:17: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D8 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:08]wFMCommunicate OK [15:17:08]SAM_PROTO_GetFieldsCounters done [15:17:08]requested_item shift.num is exist - process it [15:17:08]requested_item shift.opened is exist - process it [15:17:08]req_shift_opened [15:17:08]FM_GetShiftState [15:17:08]SAM_PROTO_GetShiftState [15:17:08]wFMCommunicate request_size=4 [15:17:08]MH_SAM_APDU [15:17:08]CAPDU: 80 13 01 00 [15:17:08]Write to MH i2c: E2 08 00 68 99 80 13 01 00 00 00 00 00 7E [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 0E 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 0E 00 68 99 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 1A [15:17:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:17:08]wFMCommunicate OK [15:17:08]SAM_PROTO_GetShiftState done [15:17:08]FM_GetShiftState done [15:17:08]req_shift_opened done [15:17:08]requested_item shift.open_date is exist - process it [15:17:08]req_shift_open_date [15:17:08]req_shift_open_date done [15:17:08]produce_requested_data done [15:17:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94936,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:17:08]process_action_free close_receipt [15:17:08]json_value_free [15:17:08]json_value_free done [15:17:08]process_json_proto returns [15:17:08]Send response to host [15:17:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94936,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:17:08]free response buf [15:17:08]execute_script done [15:17:08]execute_script returns [15:17:08]free content buf [15:17:08]Sock 7.Close socket [15:17:08]Sock 7.Thread stoped [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:31]accept exits with 9 [15:22:31]New connection [15:22:31]New thread 3066871140 created [15:22:31]Thread 3067014500 joined [15:22:31]Waiting for new connection... [15:22:31] Sock 9.Parse request [15:22:31]Sock 9.Check first char [15:22:31]Sock 9.First char is OK [15:22:31]request: POST /json_proto HTTP/1.0 [15:22:31]Method: POST [15:22:31]URL: /json_proto [15:22:31]Method is POST - this is cgi request [15:22:31]url: /json_proto [15:22:31]query_string will be loaded in cgi processing [15:22:31]execute_cgi json_proto POST (null) [15:22:31]execute_cgi path=json_proto method=POST [15:22:31]POST find Content-Length [15:22:31]Host: 172.17.62.67:8080 [15:22:31]Content-Length: 677 [15:22:31]Content-Type: application/json [15:22:31] [15:22:31]POST finish read [15:22:31]Found Content-Length = 677 [15:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:31]execute_script... [15:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:31]POST & json_proto [15:22:31]process_json_proto [15:22:31]json parsed OK: [15:22:31]protocol is kg_v1.0 [15:22:31]action value=close_receipt [15:22:31]process_action close_receipt [15:22:31]cmd_close_receipt [15:22:31]MH_GetDate [15:22:31]Write to MH i2c: F0 00 00 69 99 F1 [15:22:31]Write i2c OK [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: F0 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: F0 05 00 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: F0 05 00 69 99 00 C6 21 EF 65 31 [15:22:31]GetLastDocTimeStamp 1710170240 [15:22:31]current date 1710170566 [15:22:31]FM_GetShiftState [15:22:31]SAM_PROTO_GetShiftState [15:22:31]wFMCommunicate request_size=4 [15:22:31]MH_SAM_APDU [15:22:31]CAPDU: 80 13 01 00 [15:22:31]Write to MH i2c: E2 08 00 6A 99 80 13 01 00 00 00 00 00 80 [15:22:31]Write i2c OK [15:22:31]MH_I2C_Read... [15:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:31]Read from MH i2c: E2 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 0E 00 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 0E 00 6A 99 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 1C [15:22:31]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:22:31]wFMCommunicate OK [15:22:31]SAM_PROTO_GetShiftState done [15:22:31]FM_GetShiftState done [15:22:31]opened in 1710115571 [15:22:31]opened+sec_in_day 1710201971 [15:22:31]quantity*price = 20002 [15:22:31]sum+1 = 20003 [15:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 112 11.03.2024 15:22 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94937 ФПД: 200993859604971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T152246&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94937&fm=200993859604971&tin=02508201610067®Number=0000000000090555&sum=20000 [15:22:32]StoreToDocumentArchive [15:22:32]shift 326 fd 94937 [15:22:32]save to /storage/0326/doc_00094937 [15:22:32]save last doc name /storage/0326/doc_00094937 to /storage/kkm_last_doc_name [15:22:32]save OK [15:22:32]Clear old archive folders... [15:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:32]tlvbuf is 00197D00 [15:22:32]SAM_PROTO_ClearQueue [15:22:32]wFMCommunicate request_size=4 [15:22:32]MH_SAM_APDU [15:22:32]CAPDU: 80 09 00 00 [15:22:32]Write to MH i2c: E2 08 00 77 99 80 09 00 00 00 00 00 00 82 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:32]Read from MH i2c: E2 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 03 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 03 00 77 99 00 90 00 84 [15:22:32]RAPDU: 90 00 [15:22:32]wFMCommunicate OK [15:22:32]SAM_PROTO_ClearQueue done [15:22:32]KKMCreateOFDPacket [15:22:32]OFDProtocolAddRootSTLVToBuf [15:22:32]FM_MakeSignedData [15:22:32]FM_MakeSignedData [15:22:32]SAM_PROTO_SignData [15:22:32]wFMCommunicate request_size=4 [15:22:32]MH_SAM_APDU [15:22:32]CAPDU: 80 0D 01 02 [15:22:32]Write to MH i2c: E2 08 00 78 99 80 0D 01 02 00 00 00 00 8A [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:32]Read from MH i2c: E2 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 03 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 03 00 78 99 00 90 00 85 [15:22:32]RAPDU: 90 00 [15:22:32]wFMCommunicate OK [15:22:32]wFMCommunicate request_size=255 [15:22:32]MH_SAM_APDU [15:22: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 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C6 21 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 72 01 00 35 04 06 00 B6 [15:22:32]Write to MH i2c: E2 02 01 79 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C6 21 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 72 01 00 35 04 06 00 B6 00 00 F7 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:32]Read from MH i2c: E2 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 03 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: E2 03 00 79 99 00 90 00 86 [15:22:32]RAPDU: 90 00 [15:22:32]wFMCommunicate OK [15:22:32]wFMCommunicate request_size=10 [15:22:32]MH_SAM_APDU [15:22:32]CAPDU: 80 0D 02 02 05 CD 87 9A 91 EB [15:22:32]Write to MH i2c: E2 0D 00 7A 99 80 0D 02 02 05 00 CD 87 9A 91 EB 00 00 01 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 7A 99 00 90 00 87 [15:22:33]RAPDU: 90 00 [15:22:33]wFMCommunicate OK [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 0D 03 02 [15:22:33]Write to MH i2c: E2 08 00 7B 99 80 0D 03 02 00 00 00 00 8F [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 0B 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 0B 00 7B 99 00 EE DF 8B 77 1D 60 C1 46 90 00 E3 [15:22:33]RAPDU: EE DF 8B 77 1D 60 C1 46 90 00 [15:22:33]wFMCommunicate OK [15:22:33]SAM_PROTO_SignData done [15:22:33]FM_MakeSignedData done [15:22:33]CreateOFDProtocolMessage [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 11 00 00 [15:22:33]Write to MH i2c: E2 08 00 7C 99 80 11 00 00 00 00 00 00 8F [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 17 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 17 00 7C 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [15:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:22:33]wFMCommunicate OK [15:22:33]CreateOFDProtocolMessage done [15:22:33]OFDSenderStorePacket 94937 [15:22:33]StoreOFDPacket docnum=94937 [15:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 54 07 01 5B CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C6 21 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 72 01 00 35 04 06 00 B6 CD 87 9A 91 EB EE DF 8B 77 1D 60 C1 46 [15:22:33]CheckFolder [15:22:33]dirname=/storage/ofd_packets [15:22:33]CheckFolder done [15:22:33]ProducePacketName [15:22:33]name=ofd_packets/00094937 [15:22:33]NVStorageSaveData ofd_packets/00094937 [15:22:33]File name is /storage/ofd_packets/00094937 [15:22:33]Write 301 bytes [15:22:33]NVStorageSaveData done [15:22:33]OFDSenderStorePacket done [15:22:33]KKMCreateOFDPacket done [15:22:33]NVStorageSaveData kkm_last_timestamp [15:22:33]File name is /storage/kkm_last_timestamp [15:22:33]Write 4 bytes [15:22:33]NVStorageSaveData done [15:22:33]ExternCall_PrintAddStr [15:22:33]wPrintStart [15:22:33]Write to MH i2c: 01 00 00 7D 99 16 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 07 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 07 00 7D 99 00 80 00 00 00 FF 0F AB [15:22:33]RasterBufferAndPrint [15:22:33]line Счет N : (1)195894 [15:22:33]line ИНН: 02508201610067 [15:22:33]line Контрольно-Кассовый Чек [15:22:33]line ПРОДАЖА [15:22:33]line ТРК (МРК, ГНК) : 12 [15:22:33]line Товар: 2710124130 [15:22:33]line Аи-92-К-5 [15:22:33]line 3.180 * 62.90 [15:22:33]line = 200.02 [15:22:33]line НДС 12% НСП 1% [15:22:33]line > о реализуемом товаре [15:22:33]line ОКРУГЛЕНИЕ: -0.02 [15:22:33]line ИТОГО: 200.00 [15:22:33]line Внесено: 200.00 [15:22:33]line СДАЧА: 0.00 [15:22:33]line НСП 1% : 1.77 [15:22:33]line НДС 12% : 21.24 [15:22:33]line Наличными: 200.00 [15:22:33]line Безнал.: 0.00 [15:22:33]line Место: АЗС № 6 "Партнер Нефть" [15:22:33]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:22:33]line СНО: Общий режим [15:22:33]line Чек 112 11.03.2024 15:22 [15:22:33]line Смена: 326 ФФД: 1.0 [15:22:33]line ЗНМ: 0300000009 [15:22:33]line РНМ: 0000000000090555 [15:22:33]line Версия ККМ: 001 [15:22:33]line ФМ: 0000000000874811 [15:22:33]line ФД: 94937 [15:22:33]line ФПД: 200993859604971 [15:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T152246&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94937&fm=200993859604971&tin=02508201610067®Number=0000000000090555&sum=20000 [15:22:33]OFD Sender: Processing packet 94937 [packets to send 30, broken 29] [15:22:33]ProducePacketName [15:22:33]name=ofd_packets/00094937 [15:22:33]OFD Sender: To server: pG, [15:22:33]CommunicateWithHost lk.salyk.kg:30040 [15:22:33]ConnectInit lk.salyk.kg [15:22:33]written 0, free lines is 4095 [15:22:33]Connected sock=10 [15:22: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 31 31 0F 01 00 00 26 54 07 01 5B CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 C6 21 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 72 01 00 35 04 06 00 B6 CD 87 9A 91 EB EE DF 8B 77 1D 60 C1 46 [15:22: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 31 31 4F 00 00 00 ED 9F 47 00 98 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 72 01 00 F4 03 04 00 1F CD EE 65 B6 04 01 00 00 18 09 A6 F4 FB 03 5B 62 [15:22:33]CommunicateWithHost err = 0 [15:22:33]CheckOFDResponse [15:22:33]1017 (14) - 77093643461234 [15:22:33]1041 (16) - 0000000000874811 [15:22:33]1040 (4) - 94937 [15:22:33]1012 (4) - 11.03.2024 09:21 [15:22:33]1206 (1) - 0 [15:22:33]OFD Sender: Remove packet 94937 [15:22:33]ProducePacketName [15:22:33]name=ofd_packets/00094937 [15:22:33]NVStorageDeleteData [15:22:33]Write to MH i2c: 01 00 00 A8 99 41 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 07 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 07 00 A8 99 00 80 00 00 00 4A 0D 1F [15:22:33]RasterBufferAndPrint [15:22:33]line [15:22:33]line [15:22:33]line [15:22:33]line [15:22:33]line [15:22:33]written 0, free lines is 3408 [15:22:33]process_action close_receipt done [15:22:33]requested_data is exist [15:22:33]produce_requested_data [15:22:33]requested_item fm.sn is exist - process it [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 11 00 00 [15:22:33]Write to MH i2c: E2 08 00 AF 99 80 11 00 00 00 00 00 00 C2 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 17 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 17 00 AF 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [15:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:22:34]wFMCommunicate OK [15:22:34]requested_item fd.num is exist - process it [15:22:34]SAM_PROTO_GetFieldsCounters [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 13 00 00 [15:22:34]Write to MH i2c: E2 08 00 B0 99 80 13 00 00 00 00 00 00 C5 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 62 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 62 00 B0 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [15:22: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:34]wFMCommunicate OK [15:22:34]SAM_PROTO_GetFieldsCounters done [15:22:34]requested_item shift.num is exist - process it [15:22:34]requested_item shift.opened is exist - process it [15:22:34]req_shift_opened [15:22:34]FM_GetShiftState [15:22:34]SAM_PROTO_GetShiftState [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 13 01 00 [15:22:34]Write to MH i2c: E2 08 00 B1 99 80 13 01 00 00 00 00 00 C7 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 0E 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 0E 00 B1 99 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 63 [15:22:34]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:22:34]wFMCommunicate OK [15:22:34]SAM_PROTO_GetShiftState done [15:22:34]FM_GetShiftState done [15:22:34]req_shift_opened done [15:22:34]requested_item shift.open_date is exist - process it [15:22:34]req_shift_open_date [15:22:34]req_shift_open_date done [15:22:34]produce_requested_data done [15:22:34]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94937,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:22:34]process_action_free close_receipt [15:22:34]json_value_free [15:22:34]json_value_free done [15:22:34]process_json_proto returns [15:22:34]Send response to host [15:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94937,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:22:34]free response buf [15:22:34]execute_script done [15:22:34]execute_script returns [15:22:34]free content buf [15:22:34]Sock 9.Close socket [15:22:34]Sock 9.Thread stoped [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:48]accept exits with 7 [15:36:48]New connection [15:36:48]New thread 3067014500 created [15:36:48]Thread 3066871140 joined [15:36:48]Waiting for new connection... [15:36:48] Sock 7.Parse request [15:36:48]Sock 7.Check first char [15:36:48]Sock 7.First char is OK [15:36:48]request: POST /json_proto HTTP/1.0 [15:36:48]Method: POST [15:36:48]URL: /json_proto [15:36:48]Method is POST - this is cgi request [15:36:48]url: /json_proto [15:36:48]query_string will be loaded in cgi processing [15:36:48]execute_cgi json_proto POST (null) [15:36:48]execute_cgi path=json_proto method=POST [15:36:48]POST find Content-Length [15:36:48]Host: 172.17.62.67:8080 [15:36:48]Content-Length: 677 [15:36:48]Content-Type: application/json [15:36:48] [15:36:48]POST finish read [15:36:48]Found Content-Length = 677 [15:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "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:36:48]execute_script... [15:36:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "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:36:48]POST & json_proto [15:36:48]process_json_proto [15:36:48]json parsed OK: [15:36:48]protocol is kg_v1.0 [15:36:48]action value=close_receipt [15:36:48]process_action close_receipt [15:36:48]cmd_close_receipt [15:36:48]MH_GetDate [15:36:48]Write to MH i2c: F0 00 00 B2 99 3A [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 05 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 05 00 B2 99 00 1F 25 EF 65 D7 [15:36:48]GetLastDocTimeStamp 1710170566 [15:36:48]current date 1710171423 [15:36:48]FM_GetShiftState [15:36:48]SAM_PROTO_GetShiftState [15:36:48]wFMCommunicate request_size=4 [15:36:48]MH_SAM_APDU [15:36:48]CAPDU: 80 13 01 00 [15:36:48]Write to MH i2c: E2 08 00 B3 99 80 13 01 00 00 00 00 00 C9 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:48]Read from MH i2c: E2 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0E 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0E 00 B3 99 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 65 [15:36:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:36:48]wFMCommunicate OK [15:36:48]SAM_PROTO_GetShiftState done [15:36:48]FM_GetShiftState done [15:36:48]opened in 1710115571 [15:36:48]opened+sec_in_day 1710201971 [15:36:48]quantity*price = 60006 [15:36:48]sum+1 = 60008 [15:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 113 11.03.2024 15:37 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94938 ФПД: 161153055983820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T153703&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94938&fm=161153055983820&tin=02508201610067®Number=0000000000090555&sum=60000 [15:36:49]StoreToDocumentArchive [15:36:49]shift 326 fd 94938 [15:36:49]save to /storage/0326/doc_00094938 [15:36:49]save last doc name /storage/0326/doc_00094938 to /storage/kkm_last_doc_name [15:36:49]save OK [15:36:49]Clear old archive folders... [15:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:49]tlvbuf is 001D41A0 [15:36:49]SAM_PROTO_ClearQueue [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 09 00 00 [15:36:49]Write to MH i2c: E2 08 00 C0 99 80 09 00 00 00 00 00 00 CB [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 C0 99 00 90 00 CD [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]SAM_PROTO_ClearQueue done [15:36:49]KKMCreateOFDPacket [15:36:49]OFDProtocolAddRootSTLVToBuf [15:36:49]FM_MakeSignedData [15:36:49]FM_MakeSignedData [15:36:49]SAM_PROTO_SignData [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 01 02 [15:36:49]Write to MH i2c: E2 08 00 C1 99 80 0D 01 02 00 00 00 00 D3 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 C1 99 00 90 00 CE [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=255 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 71 00 00 00 F4 03 04 00 1F 25 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 72 01 00 35 04 06 00 92 [15:36:49]Write to MH i2c: E2 02 01 C2 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 71 00 00 00 F4 03 04 00 1F 25 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 72 01 00 35 04 06 00 92 00 00 11 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:50]OFD Sender: No OFD packet to send [15:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 03 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 03 00 C2 99 00 90 00 CF [15:36:50]RAPDU: 90 00 [15:36:50]wFMCommunicate OK [15:36:50]wFMCommunicate request_size=10 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 0D 02 02 05 91 5E A8 08 CC [15:36:50]Write to MH i2c: E2 0D 00 C3 99 80 0D 02 02 05 00 91 5E A8 08 CC 00 00 4B [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 03 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 03 00 C3 99 00 90 00 D0 [15:36:50]RAPDU: 90 00 [15:36:50]wFMCommunicate OK [15:36:50]wFMCommunicate request_size=4 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 0D 03 02 [15:36:50]Write to MH i2c: E2 08 00 C4 99 80 0D 03 02 00 00 00 00 D8 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 0B 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 0B 00 C4 99 00 6A DC EA 37 44 CE 53 1E 90 00 C3 [15:36:50]RAPDU: 6A DC EA 37 44 CE 53 1E 90 00 [15:36:50]wFMCommunicate OK [15:36:50]SAM_PROTO_SignData done [15:36:50]FM_MakeSignedData done [15:36:50]CreateOFDProtocolMessage [15:36:50]wFMCommunicate request_size=4 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 11 00 00 [15:36:50]Write to MH i2c: E2 08 00 C5 99 80 11 00 00 00 00 00 00 D8 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 17 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 17 00 C5 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [15:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:36:50]wFMCommunicate OK [15:36:50]CreateOFDProtocolMessage done [15:36:50]OFDSenderStorePacket 94938 [15:36:50]StoreOFDPacket docnum=94938 [15:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2D 42 07 01 02 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 71 00 00 00 F4 03 04 00 1F 25 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 72 01 00 35 04 06 00 92 91 5E A8 08 CC 6A DC EA 37 44 CE 53 1E [15:36:50]CheckFolder [15:36:50]dirname=/storage/ofd_packets [15:36:50]CheckFolder done [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00094938 [15:36:50]NVStorageSaveData ofd_packets/00094938 [15:36:50]File name is /storage/ofd_packets/00094938 [15:36:50]Write 301 bytes [15:36:50]NVStorageSaveData done [15:36:50]OFDSenderStorePacket done [15:36:50]KKMCreateOFDPacket done [15:36:50]NVStorageSaveData kkm_last_timestamp [15:36:50]File name is /storage/kkm_last_timestamp [15:36:50]Write 4 bytes [15:36:50]NVStorageSaveData done [15:36:50]ExternCall_PrintAddStr [15:36:50]wPrintStart [15:36:50]Write to MH i2c: 01 00 00 C6 99 5F [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 C6 99 00 80 00 00 00 FF 0F F4 [15:36:50]RasterBufferAndPrint [15:36:50]line Счет N : (1)195895 [15:36:50]line ИНН: 02508201610067 [15:36:50]line Контрольно-Кассовый Чек [15:36:50]line ПРОДАЖА [15:36:50]line ТРК (МРК, ГНК) : 32 [15:36:50]line Товар: 2710124130 [15:36:50]line Аи-92-К-5 [15:36:50]line 9.540 * 62.90 [15:36:50]line = 600.07 [15:36:50]line НДС 12% НСП 1% [15:36:50]line > о реализуемом товаре [15:36:50]line ОКРУГЛЕНИЕ: -0.07 [15:36:50]line ИТОГО: 600.00 [15:36:50]line Внесено: 600.00 [15:36:50]line СДАЧА: 0.00 [15:36:50]line НСП 1% : 5.31 [15:36:50]line НДС 12% : 63.72 [15:36:50]line Наличными: 600.00 [15:36:50]line Безнал.: 0.00 [15:36:50]line Место: АЗС № 6 "Партнер Нефть" [15:36:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:36:50]line СНО: Общий режим [15:36:50]line Чек 113 11.03.2024 15:37 [15:36:50]line Смена: 326 ФФД: 1.0 [15:36:50]line ЗНМ: 0300000009 [15:36:50]line РНМ: 0000000000090555 [15:36:50]line Версия ККМ: 001 [15:36:50]line ФМ: 0000000000874811 [15:36:50]line ФД: 94938 [15:36:50]line ФПД: 161153055983820 [15:36:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T153703&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94938&fm=161153055983820&tin=02508201610067®Number=0000000000090555&sum=60000 [15:36:50]OFD Sender: Processing packet 94938 [packets to send 30, broken 29] [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00094938 [15:36:50]OFD Sender: To server: pG, [15:36:50]CommunicateWithHost lk.salyk.kg:30040 [15:36:50]ConnectInit lk.salyk.kg [15:36:50]written 0, free lines is 4095 [15:36:50]Connected sock=10 [15:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2D 42 07 01 02 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 71 00 00 00 F4 03 04 00 1F 25 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 72 01 00 35 04 06 00 92 91 5E A8 08 CC 6A DC EA 37 44 CE 53 1E [15:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 0B D5 47 00 61 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 31 31 10 04 04 00 DA 72 01 00 F4 03 04 00 78 D0 EE 65 B6 04 01 00 00 38 B8 2D E8 F8 F6 17 67 [15:36:50]CommunicateWithHost err = 0 [15:36:50]CheckOFDResponse [15:36:50]1017 (14) - 77093643461234 [15:36:50]1041 (16) - 0000000000874811 [15:36:50]1040 (4) - 94938 [15:36:50]1012 (4) - 11.03.2024 09:35 [15:36:50]1206 (1) - 0 [15:36:50]OFD Sender: Remove packet 94938 [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00094938 [15:36:50]NVStorageDeleteData [15:36:51]Write to MH i2c: 01 00 00 F1 99 8A [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: 01 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: 01 07 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: 01 07 00 F1 99 00 80 00 00 00 47 0D 65 [15:36:51]RasterBufferAndPrint [15:36:51]line [15:36:51]line [15:36:51]line [15:36:51]line [15:36:51]line [15:36:51]written 0, free lines is 3405 [15:36:51]process_action close_receipt done [15:36:51]requested_data is exist [15:36:51]produce_requested_data [15:36:51]requested_item fm.sn is exist - process it [15:36:51]wFMCommunicate request_size=4 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 11 00 00 [15:36:51]Write to MH i2c: E2 08 00 F8 99 80 11 00 00 00 00 00 00 0B [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 17 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 17 00 F8 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [15:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:36:51]wFMCommunicate OK [15:36:51]requested_item fd.num is exist - process it [15:36:51]SAM_PROTO_GetFieldsCounters [15:36:51]wFMCommunicate request_size=4 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 13 00 00 [15:36:51]Write to MH i2c: E2 08 00 F9 99 80 13 00 00 00 00 00 00 0E [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 62 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 62 00 F9 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DA 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [15:36: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DA 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:51]wFMCommunicate OK [15:36:51]SAM_PROTO_GetFieldsCounters done [15:36:51]requested_item shift.num is exist - process it [15:36:51]requested_item shift.opened is exist - process it [15:36:51]req_shift_opened [15:36:51]FM_GetShiftState [15:36:51]SAM_PROTO_GetShiftState [15:36:51]wFMCommunicate request_size=4 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 13 01 00 [15:36:51]Write to MH i2c: E2 08 00 FA 99 80 13 01 00 00 00 00 00 10 [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 0E 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 0E 00 FA 99 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AC [15:36:51]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:36:51]wFMCommunicate OK [15:36:51]SAM_PROTO_GetShiftState done [15:36:51]FM_GetShiftState done [15:36:51]req_shift_opened done [15:36:51]requested_item shift.open_date is exist - process it [15:36:51]req_shift_open_date [15:36:51]req_shift_open_date done [15:36:51]produce_requested_data done [15:36:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94938,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:36:51]process_action_free close_receipt [15:36:51]json_value_free [15:36:51]json_value_free done [15:36:51]process_json_proto returns [15:36:51]Send response to host [15:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94938,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:36:51]free response buf [15:36:51]execute_script done [15:36:51]execute_script returns [15:36:51]free content buf [15:36:51]Sock 7.Close socket [15:36:51]Sock 7.Thread stoped [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:50]accept exits with 9 [15:42:50]New connection [15:42:50]New thread 3066871140 created [15:42:50]Thread 3067014500 joined [15:42:50]Waiting for new connection... [15:42:50] Sock 9.Parse request [15:42:50]Sock 9.Check first char [15:42:50]Sock 9.First char is OK [15:42:50]request: POST /json_proto HTTP/1.0 [15:42:50]Method: POST [15:42:50]URL: /json_proto [15:42:50]Method is POST - this is cgi request [15:42:50]url: /json_proto [15:42:50]query_string will be loaded in cgi processing [15:42:50]execute_cgi json_proto POST (null) [15:42:50]execute_cgi path=json_proto method=POST [15:42:50]POST find Content-Length [15:42:50]Host: 172.17.62.67:8080 [15:42:50]Content-Length: 805 [15:42:50]Content-Type: application/json [15:42:50] [15:42:50]POST finish read [15:42:50]Found Content-Length = 805 [15:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:50]execute_script... [15:42: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)195896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:50]POST & json_proto [15:42:50]process_json_proto [15:42:50]json parsed OK: [15:42:50]protocol is kg_v1.0 [15:42:50]action value=close_receipt [15:42:50]process_action close_receipt [15:42:50]cmd_close_receipt [15:42:50]MH_GetDate [15:42:50]Write to MH i2c: F0 00 00 FB 99 83 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: F0 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: F0 05 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: F0 05 00 FB 99 00 89 26 EF 65 8B [15:42:50]GetLastDocTimeStamp 1710171423 [15:42:50]current date 1710171785 [15:42:50]FM_GetShiftState [15:42:50]SAM_PROTO_GetShiftState [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 13 01 00 [15:42:50]Write to MH i2c: E2 08 00 FC 99 80 13 01 00 00 00 00 00 12 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 0E 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 0E 00 FC 99 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AE [15:42:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:42:50]wFMCommunicate OK [15:42:50]SAM_PROTO_GetShiftState done [15:42:50]FM_GetShiftState done [15:42:50]opened in 1710115571 [15:42:50]opened+sec_in_day 1710201971 [15:42:50]quantity*price = 100039 [15:42:50]sum+1 = 100041 [15:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 114 11.03.2024 15:43 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94939 ФПД: 270898774575754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T154305&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94939&fm=270898774575754&tin=02508201610067®Number=0000000000090555&sum=100040 [15:42:51]StoreToDocumentArchive [15:42:51]shift 326 fd 94939 [15:42:51]save to /storage/0326/doc_00094939 [15:42:51]save last doc name /storage/0326/doc_00094939 to /storage/kkm_last_doc_name [15:42:51]save OK [15:42:51]Clear old archive folders... [15:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:42:51]tlvbuf is 00212A60 [15:42:51]SAM_PROTO_ClearQueue [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 09 00 00 [15:42:51]Write to MH i2c: E2 08 00 09 9A 80 09 00 00 00 00 00 00 15 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 09 9A 00 90 00 17 [15:42:51]RAPDU: 90 00 [15:42:51]wFMCommunicate OK [15:42:51]SAM_PROTO_ClearQueue done [15:42:51]KKMCreateOFDPacket [15:42:51]OFDProtocolAddRootSTLVToBuf [15:42:51]FM_MakeSignedData [15:42:51]FM_MakeSignedData [15:42:51]SAM_PROTO_SignData [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 0D 01 02 [15:42:51]Write to MH i2c: E2 08 00 0A 9A 80 0D 01 02 00 00 00 00 1D [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 0A 9A 00 90 00 18 [15:42:51]RAPDU: 90 00 [15:42:51]wFMCommunicate OK [15:42:51]wFMCommunicate request_size=255 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 26 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 72 01 00 35 04 06 00 F6 61 89 3A [15:42:51]Write to MH i2c: E2 02 01 0B 9A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 26 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 72 01 00 35 04 06 00 F6 61 89 3A 00 00 CA [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 0B 9A 00 90 00 19 [15:42:51]RAPDU: 90 00 [15:42:51]wFMCommunicate OK [15:42:51]wFMCommunicate request_size=7 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 0D 02 02 02 8A 8A [15:42:51]Write to MH i2c: E2 0A 00 0C 9A 80 0D 02 02 02 00 8A 8A 00 00 38 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]OFD Sender: No OFD packet to send [15:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 0C 9A 00 90 00 1A [15:42:51]RAPDU: 90 00 [15:42:51]wFMCommunicate OK [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 0D 03 02 [15:42:51]Write to MH i2c: E2 08 00 0D 9A 80 0D 03 02 00 00 00 00 22 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0B 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0B 00 0D 9A 00 E2 A5 06 C2 75 AF 83 49 90 00 62 [15:42:51]RAPDU: E2 A5 06 C2 75 AF 83 49 90 00 [15:42:51]wFMCommunicate OK [15:42:51]SAM_PROTO_SignData done [15:42:51]FM_MakeSignedData done [15:42:51]CreateOFDProtocolMessage [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 11 00 00 [15:42:51]Write to MH i2c: E2 08 00 0E 9A 80 11 00 00 00 00 00 00 22 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 17 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 17 00 0E 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 72 [15:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:42:51]wFMCommunicate OK [15:42:51]CreateOFDProtocolMessage done [15:42:51]OFDSenderStorePacket 94939 [15:42:51]StoreOFDPacket docnum=94939 [15:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1C 79 04 01 D0 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 26 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 72 01 00 35 04 06 00 F6 61 89 3A 8A 8A E2 A5 06 C2 75 AF 83 49 [15:42:51]CheckFolder [15:42:51]dirname=/storage/ofd_packets [15:42:51]CheckFolder done [15:42:51]ProducePacketName [15:42:51]name=ofd_packets/00094939 [15:42:51]NVStorageSaveData ofd_packets/00094939 [15:42:51]File name is /storage/ofd_packets/00094939 [15:42:51]Write 298 bytes [15:42:51]NVStorageSaveData done [15:42:51]OFDSenderStorePacket done [15:42:51]KKMCreateOFDPacket done [15:42:51]NVStorageSaveData kkm_last_timestamp [15:42:51]File name is /storage/kkm_last_timestamp [15:42:51]Write 4 bytes [15:42:51]NVStorageSaveData done [15:42:51]ExternCall_PrintAddStr [15:42:51]wPrintStart [15:42:51]Write to MH i2c: 01 00 00 0F 9A A9 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 0F 9A 00 80 00 00 00 FF 0F 3E [15:42:51]RasterBufferAndPrint [15:42:51]line Счет N : (1)195896 [15:42:51]line ИНН: 02508201610067 [15:42:51]line Контрольно-Кассовый Чек [15:42:51]line ПРОДАЖА [15:42:51]line ТРК (МРК, ГНК) : 51 [15:42:51]line Товар: 2710194210 [15:42:51]line ДТ-К-5 [15:42:51]line 14.110 * 70.90 [15:42:51]line = 1000.40 [15:42:51]line НДС 12% НСП 1% [15:42:51]line > о реализуемом товаре [15:42:51]line ИТОГО: 1000.40 [15:42:51]line НСП 1% : 8.85 [15:42:51]line НДС 12% : 106.24 [15:42:51]line Наличными: 0.00 [15:42:51]line Безнал.: 1000.40 [15:42:51]line Место: АЗС № 6 "Партнер Нефть" [15:42:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:42:51]line СНО: Общий режим [15:42:51]line Чек 114 11.03.2024 15:43 [15:42:51]line Смена: 326 ФФД: 1.0 [15:42:51]line ЗНМ: 0300000009 [15:42:51]line РНМ: 0000000000090555 [15:42:51]line Версия ККМ: 001 [15:42:51]line Платежная система: О! деньги [15:42:51]line ФМ: 0000000000874811 [15:42:51]line ФД: 94939 [15:42:51]line ФПД: 270898774575754 [15:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T154305&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94939&fm=270898774575754&tin=02508201610067®Number=0000000000090555&sum=100040 [15:42:52]OFD Sender: Processing packet 94939 [packets to send 30, broken 29] [15:42:52]ProducePacketName [15:42:52]name=ofd_packets/00094939 [15:42:52]OFD Sender: To server: pG, [15:42:52]CommunicateWithHost lk.salyk.kg:30040 [15:42:52]ConnectInit lk.salyk.kg [15:42:52]written 0, free lines is 4095 [15:42:52]Connected sock=10 [15:42: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 31 31 0C 01 00 00 1C 79 04 01 D0 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 89 26 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 72 01 00 35 04 06 00 F6 61 89 3A 8A 8A E2 A5 06 C2 75 AF 83 49 [15:42: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 31 31 4F 00 00 00 D3 86 47 00 90 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 72 01 00 F4 03 04 00 E2 D1 EE 65 B6 04 01 00 00 88 73 18 D5 E4 BA 1D 32 [15:42:52]CommunicateWithHost err = 0 [15:42:52]CheckOFDResponse [15:42:52]1017 (14) - 77093643461234 [15:42:52]1041 (16) - 0000000000874811 [15:42:52]1040 (4) - 94939 [15:42:52]1012 (4) - 11.03.2024 09:41 [15:42:52]1206 (1) - 0 [15:42:52]OFD Sender: Remove packet 94939 [15:42:52]ProducePacketName [15:42:52]name=ofd_packets/00094939 [15:42:52]NVStorageDeleteData [15:42:52]Write to MH i2c: 01 00 00 39 9A D3 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 39 9A 00 80 00 00 00 52 0D B9 [15:42:52]RasterBufferAndPrint [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]written 0, free lines is 3417 [15:42:52]process_action close_receipt done [15:42:52]requested_data is exist [15:42:52]produce_requested_data [15:42:52]requested_item fm.sn is exist - process it [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 11 00 00 [15:42:52]Write to MH i2c: E2 08 00 40 9A 80 11 00 00 00 00 00 00 54 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 40 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A4 [15:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:42:52]wFMCommunicate OK [15:42:52]requested_item fd.num is exist - process it [15:42:52]SAM_PROTO_GetFieldsCounters [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 13 00 00 [15:42:52]Write to MH i2c: E2 08 00 41 9A 80 13 00 00 00 00 00 00 57 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 62 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 62 00 41 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [15:42:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:52]wFMCommunicate OK [15:42:52]SAM_PROTO_GetFieldsCounters done [15:42:52]requested_item shift.num is exist - process it [15:42:52]requested_item shift.opened is exist - process it [15:42:52]req_shift_opened [15:42:52]FM_GetShiftState [15:42:52]SAM_PROTO_GetShiftState [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 13 01 00 [15:42:52]Write to MH i2c: E2 08 00 42 9A 80 13 01 00 00 00 00 00 59 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 0E 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 0E 00 42 9A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F5 [15:42:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:42:52]wFMCommunicate OK [15:42:52]SAM_PROTO_GetShiftState done [15:42:52]FM_GetShiftState done [15:42:52]req_shift_opened done [15:42:52]requested_item shift.open_date is exist - process it [15:42:52]req_shift_open_date [15:42:52]req_shift_open_date done [15:42:52]produce_requested_data done [15:42:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94939,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:42:52]process_action_free close_receipt [15:42:52]json_value_free [15:42:52]json_value_free done [15:42:52]process_json_proto returns [15:42:52]Send response to host [15:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94939,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:42:52]free response buf [15:42:52]execute_script done [15:42:52]execute_script returns [15:42:52]free content buf [15:42:52]Sock 9.Close socket [15:42:52]Sock 9.Thread stoped [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:24]accept exits with 7 [15:44:24]New connection [15:44:24]New thread 3067014500 created [15:44:24]Thread 3066871140 joined [15:44:24]Waiting for new connection... [15:44:24] Sock 7.Parse request [15:44:24]Sock 7.Check first char [15:44:24]Sock 7.First char is OK [15:44:24]request: POST /json_proto HTTP/1.0 [15:44:24]Method: POST [15:44:24]URL: /json_proto [15:44:24]Method is POST - this is cgi request [15:44:24]url: /json_proto [15:44:24]query_string will be loaded in cgi processing [15:44:24]execute_cgi json_proto POST (null) [15:44:24]execute_cgi path=json_proto method=POST [15:44:24]POST find Content-Length [15:44:24]Host: 172.17.62.67:8080 [15:44:24]Content-Length: 679 [15:44:24]Content-Type: application/json [15:44:24] [15:44:24]POST finish read [15:44:24]Found Content-Length = 679 [15:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:24]execute_script... [15:44: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)195897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:24]POST & json_proto [15:44:24]process_json_proto [15:44:24]json parsed OK: [15:44:24]protocol is kg_v1.0 [15:44:24]action value=close_receipt [15:44:24]process_action close_receipt [15:44:24]cmd_close_receipt [15:44:24]MH_GetDate [15:44:24]Write to MH i2c: F0 00 00 43 9A CC [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: F0 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: F0 05 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: F0 05 00 43 9A 00 E7 26 EF 65 32 [15:44:24]GetLastDocTimeStamp 1710171785 [15:44:24]current date 1710171879 [15:44:24]FM_GetShiftState [15:44:24]SAM_PROTO_GetShiftState [15:44:24]wFMCommunicate request_size=4 [15:44:24]MH_SAM_APDU [15:44:24]CAPDU: 80 13 01 00 [15:44:24]Write to MH i2c: E2 08 00 44 9A 80 13 01 00 00 00 00 00 5B [15:44:24]Write i2c OK [15:44:24]MH_I2C_Read... [15:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:24]Read from MH i2c: E2 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 0E 00 [15:44:24]MH_I2C_Read... [15:44:24]Read from MH i2c: E2 0E 00 44 9A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F7 [15:44:24]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:44:24]wFMCommunicate OK [15:44:24]SAM_PROTO_GetShiftState done [15:44:24]FM_GetShiftState done [15:44:24]opened in 1710115571 [15:44:24]opened+sec_in_day 1710201971 [15:44:24]quantity*price = 100039 [15:44:24]sum+1 = 100041 [15:44:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 115 11.03.2024 15:44 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94940 ФПД: 37891585559276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T154439&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94940&fm=37891585559276&tin=02508201610067®Number=0000000000090555&sum=100000 [15:44:25]StoreToDocumentArchive [15:44:25]shift 326 fd 94940 [15:44:25]save to /storage/0326/doc_00094940 [15:44:25]save last doc name /storage/0326/doc_00094940 to /storage/kkm_last_doc_name [15:44:25]save OK [15:44:25]Clear old archive folders... [15:44:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:44:25]tlvbuf is 001975D0 [15:44:25]SAM_PROTO_ClearQueue [15:44:25]wFMCommunicate request_size=4 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 09 00 00 [15:44:25]Write to MH i2c: E2 08 00 51 9A 80 09 00 00 00 00 00 00 5D [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 51 9A 00 90 00 5F [15:44:25]RAPDU: 90 00 [15:44:25]wFMCommunicate OK [15:44:25]SAM_PROTO_ClearQueue done [15:44:25]KKMCreateOFDPacket [15:44:25]OFDProtocolAddRootSTLVToBuf [15:44:25]FM_MakeSignedData [15:44:25]FM_MakeSignedData [15:44:25]SAM_PROTO_SignData [15:44:25]wFMCommunicate request_size=4 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 0D 01 02 [15:44:25]Write to MH i2c: E2 08 00 52 9A 80 0D 01 02 00 00 00 00 65 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 52 9A 00 90 00 60 [15:44:25]RAPDU: 90 00 [15:44:25]wFMCommunicate OK [15:44:25]wFMCommunicate request_size=255 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E7 26 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 72 01 00 35 04 06 00 22 76 52 7F [15:44:25]Write to MH i2c: E2 02 01 53 9A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E7 26 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 72 01 00 35 04 06 00 22 76 52 7F 00 00 71 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:26]Read from MH i2c: E2 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: E2 03 00 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: E2 03 00 53 9A 00 90 00 61 [15:44:26]RAPDU: 90 00 [15:44:26]wFMCommunicate OK [15:44:26]wFMCommunicate request_size=7 [15:44:26]MH_SAM_APDU [15:44:26]CAPDU: 80 0D 02 02 02 4A EC [15:44:26]Write to MH i2c: E2 0A 00 54 9A 80 0D 02 02 02 00 4A EC 00 00 A2 [15:44:26]Write i2c OK [15:44:26]MH_I2C_Read... [15:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:26]Read from MH i2c: E2 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: E2 03 00 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: E2 03 00 54 9A 00 90 00 62 [15:44:26]RAPDU: 90 00 [15:44:26]wFMCommunicate OK [15:44:26]wFMCommunicate request_size=4 [15:44:26]MH_SAM_APDU [15:44:26]CAPDU: 80 0D 03 02 [15:44:26]Write to MH i2c: E2 08 00 55 9A 80 0D 03 02 00 00 00 00 6A [15:44:26]Write i2c OK [15:44:26]MH_I2C_Read... [15:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:26]Read from MH i2c: E2 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: E2 0B 00 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: E2 0B 00 55 9A 00 B9 03 4E 9B 45 DA E6 48 90 00 5D [15:44:26]RAPDU: B9 03 4E 9B 45 DA E6 48 90 00 [15:44:26]wFMCommunicate OK [15:44:26]SAM_PROTO_SignData done [15:44:26]FM_MakeSignedData done [15:44:26]CreateOFDProtocolMessage [15:44:26]wFMCommunicate request_size=4 [15:44:26]MH_SAM_APDU [15:44:26]CAPDU: 80 11 00 00 [15:44:26]Write to MH i2c: E2 08 00 56 9A 80 11 00 00 00 00 00 00 6A [15:44:26]Write i2c OK [15:44:26]MH_I2C_Read... [15:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:26]Read from MH i2c: E2 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: E2 17 00 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: E2 17 00 56 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [15:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:44:26]wFMCommunicate OK [15:44:26]CreateOFDProtocolMessage done [15:44:26]OFDSenderStorePacket 94940 [15:44:26]StoreOFDPacket docnum=94940 [15:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 44 48 04 01 FB BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E7 26 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 72 01 00 35 04 06 00 22 76 52 7F 4A EC B9 03 4E 9B 45 DA E6 48 [15:44:26]CheckFolder [15:44:26]dirname=/storage/ofd_packets [15:44:26]CheckFolder done [15:44:26]ProducePacketName [15:44:26]name=ofd_packets/00094940 [15:44:26]NVStorageSaveData ofd_packets/00094940 [15:44:26]File name is /storage/ofd_packets/00094940 [15:44:26]Write 298 bytes [15:44:26]NVStorageSaveData done [15:44:26]OFDSenderStorePacket done [15:44:26]KKMCreateOFDPacket done [15:44:26]NVStorageSaveData kkm_last_timestamp [15:44:26]File name is /storage/kkm_last_timestamp [15:44:26]Write 4 bytes [15:44:26]NVStorageSaveData done [15:44:26]ExternCall_PrintAddStr [15:44:26]wPrintStart [15:44:26]Write to MH i2c: 01 00 00 57 9A F1 [15:44:26]Write i2c OK [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: 01 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: 01 07 00 [15:44:26]MH_I2C_Read... [15:44:26]Read from MH i2c: 01 07 00 57 9A 00 80 00 00 00 FF 0F 86 [15:44:26]RasterBufferAndPrint [15:44:26]line Счет N : (1)195897 [15:44:26]line ИНН: 02508201610067 [15:44:26]line Контрольно-Кассовый Чек [15:44:26]line ПРОДАЖА [15:44:26]line ТРК (МРК, ГНК) : 51 [15:44:26]line Товар: 2710194210 [15:44:26]line ДТ-К-5 [15:44:26]line 14.110 * 70.90 [15:44:26]line = 1000.40 [15:44:26]line НДС 12% НСП 1% [15:44:26]line > о реализуемом товаре [15:44:26]line ОКРУГЛЕНИЕ: -0.40 [15:44:26]line ИТОГО: 1000.00 [15:44:26]line Внесено: 1000.00 [15:44:26]line СДАЧА: 0.00 [15:44:26]line НСП 1% : 8.85 [15:44:26]line НДС 12% : 106.24 [15:44:26]line Наличными: 1000.00 [15:44:26]line Безнал.: 0.00 [15:44:26]line Место: АЗС № 6 "Партнер Нефть" [15:44:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:44:26]line СНО: Общий режим [15:44:26]line Чек 115 11.03.2024 15:44 [15:44:26]line Смена: 326 ФФД: 1.0 [15:44:26]line ЗНМ: 0300000009 [15:44:26]line РНМ: 0000000000090555 [15:44:26]line Версия ККМ: 001 [15:44:26]line ФМ: 0000000000874811 [15:44:26]line ФД: 94940 [15:44:26]line ФПД: 37891585559276 [15:44:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T154439&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94940&fm=37891585559276&tin=02508201610067®Number=0000000000090555&sum=100000 [15:44:26]OFD Sender: Processing packet 94940 [packets to send 30, broken 29] [15:44:26]ProducePacketName [15:44:26]name=ofd_packets/00094940 [15:44:26]OFD Sender: To server: pG, [15:44:26]CommunicateWithHost lk.salyk.kg:30040 [15:44:26]ConnectInit lk.salyk.kg [15:44:26]written 0, free lines is 4095 [15:44:26]Connected sock=10 [15:44: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 31 31 0C 01 00 00 44 48 04 01 FB BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E7 26 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 72 01 00 35 04 06 00 22 76 52 7F 4A EC B9 03 4E 9B 45 DA E6 48 [15:44: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 31 31 4F 00 00 00 D7 6C 47 00 14 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 72 01 00 F4 03 04 00 40 D2 EE 65 B6 04 01 00 00 06 95 AB 31 BA 00 D9 62 [15:44:26]CommunicateWithHost err = 0 [15:44:26]CheckOFDResponse [15:44:26]1017 (14) - 77093643461234 [15:44:26]1041 (16) - 0000000000874811 [15:44:26]1040 (4) - 94940 [15:44:26]1012 (4) - 11.03.2024 09:43 [15:44:26]1206 (1) - 0 [15:44:26]OFD Sender: Remove packet 94940 [15:44:26]ProducePacketName [15:44:26]name=ofd_packets/00094940 [15:44:26]NVStorageDeleteData [15:44:27]Write to MH i2c: 01 00 00 82 9A 1C [15:44:27]Write i2c OK [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: 01 [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: 01 07 00 [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: 01 07 00 82 9A 00 80 00 00 00 42 0D F2 [15:44:27]RasterBufferAndPrint [15:44:27]line [15:44:27]line [15:44:27]line [15:44:27]line [15:44:27]line [15:44:27]written 0, free lines is 3400 [15:44:27]process_action close_receipt done [15:44:27]requested_data is exist [15:44:27]produce_requested_data [15:44:27]requested_item fm.sn is exist - process it [15:44:27]wFMCommunicate request_size=4 [15:44:27]MH_SAM_APDU [15:44:27]CAPDU: 80 11 00 00 [15:44:27]Write to MH i2c: E2 08 00 89 9A 80 11 00 00 00 00 00 00 9D [15:44:27]Write i2c OK [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: E2 [15:44:27]MH_I2C_Read... [15:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:27]Read from MH i2c: E2 17 00 [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: E2 17 00 89 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [15:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:44:27]wFMCommunicate OK [15:44:27]requested_item fd.num is exist - process it [15:44:27]SAM_PROTO_GetFieldsCounters [15:44:27]wFMCommunicate request_size=4 [15:44:27]MH_SAM_APDU [15:44:27]CAPDU: 80 13 00 00 [15:44:27]Write to MH i2c: E2 08 00 8A 9A 80 13 00 00 00 00 00 00 A0 [15:44:27]Write i2c OK [15:44:27]MH_I2C_Read... [15:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:27]Read from MH i2c: E2 [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: E2 62 00 [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: E2 62 00 8A 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DC 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [15:44: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DC 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:27]wFMCommunicate OK [15:44:27]SAM_PROTO_GetFieldsCounters done [15:44:27]requested_item shift.num is exist - process it [15:44:27]requested_item shift.opened is exist - process it [15:44:27]req_shift_opened [15:44:27]FM_GetShiftState [15:44:27]SAM_PROTO_GetShiftState [15:44:27]wFMCommunicate request_size=4 [15:44:27]MH_SAM_APDU [15:44:27]CAPDU: 80 13 01 00 [15:44:27]Write to MH i2c: E2 08 00 8B 9A 80 13 01 00 00 00 00 00 A2 [15:44:27]Write i2c OK [15:44:27]MH_I2C_Read... [15:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:27]OFD Sender: No OFD packet to send [15:44:27]Read from MH i2c: E2 [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: E2 0E 00 [15:44:27]MH_I2C_Read... [15:44:27]Read from MH i2c: E2 0E 00 8B 9A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3E [15:44:27]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:44:27]wFMCommunicate OK [15:44:27]SAM_PROTO_GetShiftState done [15:44:27]FM_GetShiftState done [15:44:27]req_shift_opened done [15:44:27]requested_item shift.open_date is exist - process it [15:44:27]req_shift_open_date [15:44:27]req_shift_open_date done [15:44:27]produce_requested_data done [15:44:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94940,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:44:27]process_action_free close_receipt [15:44:27]json_value_free [15:44:27]json_value_free done [15:44:27]process_json_proto returns [15:44:27]Send response to host [15:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94940,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:44:27]free response buf [15:44:27]execute_script done [15:44:27]execute_script returns [15:44:27]free content buf [15:44:27]Sock 7.Close socket [15:44:27]Sock 7.Thread stoped [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:18]accept exits with 9 [15:47:18]New connection [15:47:18]New thread 3066871140 created [15:47:18]Thread 3067014500 joined [15:47:18]Waiting for new connection... [15:47:18] Sock 9.Parse request [15:47:18]Sock 9.Check first char [15:47:18]Sock 9.First char is OK [15:47:18]request: POST /json_proto HTTP/1.0 [15:47:18]Method: POST [15:47:18]URL: /json_proto [15:47:18]Method is POST - this is cgi request [15:47:18]url: /json_proto [15:47:18]query_string will be loaded in cgi processing [15:47:18]execute_cgi json_proto POST (null) [15:47:18]execute_cgi path=json_proto method=POST [15:47:18]POST find Content-Length [15:47:18]Host: 172.17.62.67:8080 [15:47:18]Content-Length: 682 [15:47:18]Content-Type: application/json [15:47:18] [15:47:18]POST finish read [15:47:18]Found Content-Length = 682 [15:47:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 31.800, "sum" : 2000.22, "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" ] } } [15:47:18]execute_script... [15:47:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 31.800, "sum" : 2000.22, "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" ] } } [15:47:18]POST & json_proto [15:47:18]process_json_proto [15:47:18]json parsed OK: [15:47:18]protocol is kg_v1.0 [15:47:18]action value=close_receipt [15:47:18]process_action close_receipt [15:47:18]cmd_close_receipt [15:47:18]MH_GetDate [15:47:18]Write to MH i2c: F0 00 00 8C 9A 15 [15:47:18]Write i2c OK [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: F0 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: F0 05 00 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: F0 05 00 8C 9A 00 95 27 EF 65 2A [15:47:18]GetLastDocTimeStamp 1710171879 [15:47:18]current date 1710172053 [15:47:18]FM_GetShiftState [15:47:18]SAM_PROTO_GetShiftState [15:47:18]wFMCommunicate request_size=4 [15:47:18]MH_SAM_APDU [15:47:18]CAPDU: 80 13 01 00 [15:47:18]Write to MH i2c: E2 08 00 8D 9A 80 13 01 00 00 00 00 00 A4 [15:47:18]Write i2c OK [15:47:18]MH_I2C_Read... [15:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:18]Read from MH i2c: E2 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: E2 0E 00 [15:47:18]MH_I2C_Read... [15:47:18]Read from MH i2c: E2 0E 00 8D 9A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 40 [15:47:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:47:18]wFMCommunicate OK [15:47:18]SAM_PROTO_GetShiftState done [15:47:18]FM_GetShiftState done [15:47:18]opened in 1710115571 [15:47:18]opened+sec_in_day 1710201971 [15:47:18]quantity*price = 200022 [15:47:18]sum+1 = 200023 [15:47:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 116 11.03.2024 15:47 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94941 ФПД: 69074428143209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T154733&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94941&fm=69074428143209&tin=02508201610067®Number=0000000000090555&sum=200000 [15:47:19]StoreToDocumentArchive [15:47:19]shift 326 fd 94941 [15:47:19]save to /storage/0326/doc_00094941 [15:47:19]save last doc name /storage/0326/doc_00094941 to /storage/kkm_last_doc_name [15:47:19]save OK [15:47:19]Clear old archive folders... [15:47:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:19]tlvbuf is 003AC740 [15:47:19]SAM_PROTO_ClearQueue [15:47:19]wFMCommunicate request_size=4 [15:47:19]MH_SAM_APDU [15:47:19]CAPDU: 80 09 00 00 [15:47:19]Write to MH i2c: E2 08 00 9A 9A 80 09 00 00 00 00 00 00 A6 [15:47:19]Write i2c OK [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: E2 [15:47:19]MH_I2C_Read... [15:47:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:19]Read from MH i2c: E2 03 00 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: E2 03 00 9A 9A 00 90 00 A8 [15:47:19]RAPDU: 90 00 [15:47:19]wFMCommunicate OK [15:47:19]SAM_PROTO_ClearQueue done [15:47:19]KKMCreateOFDPacket [15:47:19]OFDProtocolAddRootSTLVToBuf [15:47:19]FM_MakeSignedData [15:47:19]FM_MakeSignedData [15:47:19]SAM_PROTO_SignData [15:47:19]wFMCommunicate request_size=4 [15:47:19]MH_SAM_APDU [15:47:19]CAPDU: 80 0D 01 02 [15:47:19]Write to MH i2c: E2 08 00 9B 9A 80 0D 01 02 00 00 00 00 AE [15:47:19]Write i2c OK [15:47:19]MH_I2C_Read... [15:47:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:19]Read from MH i2c: E2 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: E2 03 00 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: E2 03 00 9B 9A 00 90 00 A9 [15:47:19]RAPDU: 90 00 [15:47:19]wFMCommunicate OK [15:47:19]wFMCommunicate request_size=255 [15:47:19]MH_SAM_APDU [15:47:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 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 F9 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 74 00 00 00 F4 03 04 00 95 27 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 72 01 00 35 04 06 00 3E [15:47:19]Write to MH i2c: E2 02 01 9C 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 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 F9 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 74 00 00 00 F4 03 04 00 95 27 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 72 01 00 35 04 06 00 3E 00 00 AC [15:47:19]Write i2c OK [15:47:19]MH_I2C_Read... [15:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:20]Read from MH i2c: E2 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 03 00 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 03 00 9C 9A 00 90 00 AA [15:47:20]RAPDU: 90 00 [15:47:20]wFMCommunicate OK [15:47:20]wFMCommunicate request_size=10 [15:47:20]MH_SAM_APDU [15:47:20]CAPDU: 80 0D 02 02 05 D2 A4 C0 A6 69 [15:47:20]Write to MH i2c: E2 0D 00 9D 9A 80 0D 02 02 05 00 D2 A4 C0 A6 69 00 00 00 [15:47:20]Write i2c OK [15:47:20]MH_I2C_Read... [15:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:20]Read from MH i2c: E2 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 03 00 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 03 00 9D 9A 00 90 00 AB [15:47:20]RAPDU: 90 00 [15:47:20]wFMCommunicate OK [15:47:20]wFMCommunicate request_size=4 [15:47:20]MH_SAM_APDU [15:47:20]CAPDU: 80 0D 03 02 [15:47:20]Write to MH i2c: E2 08 00 9E 9A 80 0D 03 02 00 00 00 00 B3 [15:47:20]Write i2c OK [15:47:20]MH_I2C_Read... [15:47:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:20]Read from MH i2c: E2 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 0B 00 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 0B 00 9E 9A 00 DE F4 7E D0 C0 9B F0 2B 90 00 4A [15:47:20]RAPDU: DE F4 7E D0 C0 9B F0 2B 90 00 [15:47:20]wFMCommunicate OK [15:47:20]SAM_PROTO_SignData done [15:47:20]FM_MakeSignedData done [15:47:20]CreateOFDProtocolMessage [15:47:20]wFMCommunicate request_size=4 [15:47:20]MH_SAM_APDU [15:47:20]CAPDU: 80 11 00 00 [15:47:20]Write to MH i2c: E2 08 00 9F 9A 80 11 00 00 00 00 00 00 B3 [15:47:20]Write i2c OK [15:47:20]MH_I2C_Read... [15:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:20]Read from MH i2c: E2 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 17 00 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 17 00 9F 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [15:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:47:20]wFMCommunicate OK [15:47:20]CreateOFDProtocolMessage done [15:47:20]OFDSenderStorePacket 94941 [15:47:20]StoreOFDPacket docnum=94941 [15:47:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 06 D2 07 01 42 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 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 F9 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 74 00 00 00 F4 03 04 00 95 27 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 72 01 00 35 04 06 00 3E D2 A4 C0 A6 69 DE F4 7E D0 C0 9B F0 2B [15:47:20]CheckFolder [15:47:20]dirname=/storage/ofd_packets [15:47:20]CheckFolder done [15:47:20]ProducePacketName [15:47:20]name=ofd_packets/00094941 [15:47:20]NVStorageSaveData ofd_packets/00094941 [15:47:20]File name is /storage/ofd_packets/00094941 [15:47:20]Write 301 bytes [15:47:20]NVStorageSaveData done [15:47:20]OFDSenderStorePacket done [15:47:20]KKMCreateOFDPacket done [15:47:20]NVStorageSaveData kkm_last_timestamp [15:47:20]File name is /storage/kkm_last_timestamp [15:47:20]Write 4 bytes [15:47:20]NVStorageSaveData done [15:47:20]ExternCall_PrintAddStr [15:47:20]wPrintStart [15:47:20]Write to MH i2c: 01 00 00 A0 9A 3A [15:47:20]Write i2c OK [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: 01 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: 01 07 00 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: 01 07 00 A0 9A 00 80 00 00 00 FF 0F CF [15:47:20]RasterBufferAndPrint [15:47:20]line Счет N : (1)195898 [15:47:20]line ИНН: 02508201610067 [15:47:20]line Контрольно-Кассовый Чек [15:47:20]line ПРОДАЖА [15:47:20]line ТРК (МРК, ГНК) : 12 [15:47:20]line Товар: 2710124130 [15:47:20]line Аи-92-К-5 [15:47:20]line 31.800 * 62.90 [15:47:20]line = 2000.22 [15:47:20]line НДС 12% НСП 1% [15:47:20]line > о реализуемом товаре [15:47:20]line ОКРУГЛЕНИЕ: -0.22 [15:47:20]line ИТОГО: 2000.00 [15:47:20]line Внесено: 2000.00 [15:47:20]line СДАЧА: 0.00 [15:47:20]line НСП 1% : 17.70 [15:47:20]line НДС 12% : 212.41 [15:47:20]line Наличными: 2000.00 [15:47:20]line Безнал.: 0.00 [15:47:20]line Место: АЗС № 6 "Партнер Нефть" [15:47:20]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:47:20]line СНО: Общий режим [15:47:20]line Чек 116 11.03.2024 15:47 [15:47:20]line Смена: 326 ФФД: 1.0 [15:47:20]line ЗНМ: 0300000009 [15:47:20]line РНМ: 0000000000090555 [15:47:20]line Версия ККМ: 001 [15:47:20]line ФМ: 0000000000874811 [15:47:20]line ФД: 94941 [15:47:20]line ФПД: 69074428143209 [15:47:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T154733&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94941&fm=69074428143209&tin=02508201610067®Number=0000000000090555&sum=200000 [15:47:20]OFD Sender: Processing packet 94941 [packets to send 30, broken 29] [15:47:20]ProducePacketName [15:47:20]name=ofd_packets/00094941 [15:47:20]OFD Sender: To server: pG, [15:47:20]CommunicateWithHost lk.salyk.kg:30040 [15:47:20]ConnectInit lk.salyk.kg [15:47:20]written 0, free lines is 4095 [15:47:20]Connected sock=10 [15:47: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 31 31 0F 01 00 00 06 D2 07 01 42 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 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 F9 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 74 00 00 00 F4 03 04 00 95 27 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DD 72 01 00 35 04 06 00 3E D2 A4 C0 A6 69 DE F4 7E D0 C0 9B F0 2B [15:47: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 31 31 4F 00 00 00 7C 70 47 00 32 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 31 31 10 04 04 00 DD 72 01 00 F4 03 04 00 EE D2 EE 65 B6 04 01 00 00 60 75 D9 B7 18 9A A1 C3 [15:47:20]CommunicateWithHost err = 0 [15:47:20]CheckOFDResponse [15:47:20]1017 (14) - 77093643461234 [15:47:20]1041 (16) - 0000000000874811 [15:47:20]1040 (4) - 94941 [15:47:20]1012 (4) - 11.03.2024 09:46 [15:47:20]1206 (1) - 0 [15:47:20]OFD Sender: Remove packet 94941 [15:47:20]ProducePacketName [15:47:20]name=ofd_packets/00094941 [15:47:20]NVStorageDeleteData [15:47:21]Write to MH i2c: 01 00 00 CB 9A 65 [15:47:21]Write i2c OK [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: 01 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: 01 07 00 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: 01 07 00 CB 9A 00 80 00 00 00 53 0D 4C [15:47:21]RasterBufferAndPrint [15:47:21]line [15:47:21]line [15:47:21]line [15:47:21]line [15:47:21]line [15:47:21]written 0, free lines is 3417 [15:47:21]process_action close_receipt done [15:47:21]requested_data is exist [15:47:21]produce_requested_data [15:47:21]requested_item fm.sn is exist - process it [15:47:21]wFMCommunicate request_size=4 [15:47:21]MH_SAM_APDU [15:47:21]CAPDU: 80 11 00 00 [15:47:21]Write to MH i2c: E2 08 00 D2 9A 80 11 00 00 00 00 00 00 E6 [15:47:21]Write i2c OK [15:47:21]MH_I2C_Read... [15:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:21]Read from MH i2c: E2 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: E2 17 00 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: E2 17 00 D2 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [15:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:47:21]wFMCommunicate OK [15:47:21]requested_item fd.num is exist - process it [15:47:21]SAM_PROTO_GetFieldsCounters [15:47:21]wFMCommunicate request_size=4 [15:47:21]MH_SAM_APDU [15:47:21]CAPDU: 80 13 00 00 [15:47:21]Write to MH i2c: E2 08 00 D3 9A 80 13 00 00 00 00 00 00 E9 [15:47:21]Write i2c OK [15:47:21]MH_I2C_Read... [15:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:21]Read from MH i2c: E2 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: E2 62 00 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: E2 62 00 D3 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [15:47: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:21]wFMCommunicate OK [15:47:21]SAM_PROTO_GetFieldsCounters done [15:47:21]requested_item shift.num is exist - process it [15:47:21]requested_item shift.opened is exist - process it [15:47:21]req_shift_opened [15:47:21]FM_GetShiftState [15:47:21]SAM_PROTO_GetShiftState [15:47:21]wFMCommunicate request_size=4 [15:47:21]MH_SAM_APDU [15:47:21]CAPDU: 80 13 01 00 [15:47:21]Write to MH i2c: E2 08 00 D4 9A 80 13 01 00 00 00 00 00 EB [15:47:21]Write i2c OK [15:47:21]MH_I2C_Read... [15:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:21]Read from MH i2c: E2 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: E2 0E 00 [15:47:21]MH_I2C_Read... [15:47:21]Read from MH i2c: E2 0E 00 D4 9A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 87 [15:47:21]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:47:21]wFMCommunicate OK [15:47:21]SAM_PROTO_GetShiftState done [15:47:21]FM_GetShiftState done [15:47:21]req_shift_opened done [15:47:21]requested_item shift.open_date is exist - process it [15:47:21]req_shift_open_date [15:47:21]req_shift_open_date done [15:47:21]produce_requested_data done [15:47:21]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94941,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:47:21]process_action_free close_receipt [15:47:21]json_value_free [15:47:21]json_value_free done [15:47:21]process_json_proto returns [15:47:21]Send response to host [15:47:21]OFD Sender: No OFD packet to send [15:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94941,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:47:21]free response buf [15:47:21]execute_script done [15:47:21]execute_script returns [15:47:21]free content buf [15:47:21]Sock 9.Close socket [15:47:21]Sock 9.Thread stoped [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:14]accept exits with 7 [15:52:14]New connection [15:52:14]New thread 3067014500 created [15:52:14]Thread 3066871140 joined [15:52:14]Waiting for new connection... [15:52:14] Sock 7.Parse request [15:52:14]Sock 7.Check first char [15:52:14]Sock 7.First char is OK [15:52:14]request: POST /json_proto HTTP/1.0 [15:52:14]Method: POST [15:52:14]URL: /json_proto [15:52:14]Method is POST - this is cgi request [15:52:14]url: /json_proto [15:52:14]query_string will be loaded in cgi processing [15:52:14]execute_cgi json_proto POST (null) [15:52:14]execute_cgi path=json_proto method=POST [15:52:14]POST find Content-Length [15:52:14]Host: 172.17.62.67:8080 [15:52:14]Content-Length: 1179 [15:52:14]Content-Type: application/json [15:52:14] [15:52:14]POST finish read [15:52:14]Found Content-Length = 1179 [15:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195900\u000A11.03.2024 15:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699924\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:14]execute_script... [15:52:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195900\u000A11.03.2024 15:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699924\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:14]POST & json_proto [15:52:14]process_json_proto [15:52:14]json parsed OK: [15:52:14]protocol is kg_v1.0 [15:52:14]action value=print_text [15:52:14]process_action print_text [15:52:14]cmd_print_text [15:52:14]ExternCall_PrintAddStr [15:52:14]wPrintStart [15:52:14]Write to MH i2c: 01 00 00 D5 9A 6F [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 D5 9A 00 80 00 00 00 FF 0F 04 [15:52:14]RasterBufferAndPrint [15:52:14]line *****ТОВАРНЫЙ ЧЕК***** [15:52:14]line АЗС 6 [15:52:14]line Партнер нефть [15:52:14]line 02508201610067 [15:52:14]line Кассир : Карыбаев Б. [15:52:14]line Счет N : (1)195900 [15:52:14]line 11.03.2024 15:46 [15:52:14]line ПРОДАЖА [15:52:14]line ТРК (МРК, ГНК): 61 [15:52:14]line Вид ГСМ : 2710194210 [15:52:14]line ДТ-К-5 [15:52:14]line 10.000 x 70.90 [15:52:14]line ИТОГ: 709.00 [15:52:14]line Тип оплаты: Талоны: Партнер нефть [15:52:14]line 3699924 [15:52:14]line ______________________ [15:52:14]line (подпись) [15:52:14]written 0, free lines is 4095 [15:52:15]Write to MH i2c: 01 00 00 E9 9A 83 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 07 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 07 00 E9 9A 00 80 00 00 00 5E 0E 76 [15:52:15]RasterBufferAndPrint [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]line [15:52:15]written 0, free lines is 3682 [15:52:15]process_action print_text done [15:52:15]requested_data is exist [15:52:15]produce_requested_data [15:52:15]requested_item fm.sn is exist - process it [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 11 00 00 [15:52:15]Write to MH i2c: E2 08 00 F0 9A 80 11 00 00 00 00 00 00 04 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 17 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 17 00 F0 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 54 [15:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:52:15]wFMCommunicate OK [15:52:15]requested_item fd.num is exist - process it [15:52:15]SAM_PROTO_GetFieldsCounters [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 13 00 00 [15:52:15]Write to MH i2c: E2 08 00 F1 9A 80 13 00 00 00 00 00 00 07 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 62 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 62 00 F1 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [15:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:15]wFMCommunicate OK [15:52:15]SAM_PROTO_GetFieldsCounters done [15:52:15]requested_item shift.num is exist - process it [15:52:15]requested_item shift.opened is exist - process it [15:52:15]req_shift_opened [15:52:15]FM_GetShiftState [15:52:15]SAM_PROTO_GetShiftState [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 13 01 00 [15:52:15]Write to MH i2c: E2 08 00 F2 9A 80 13 01 00 00 00 00 00 09 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 0E 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 0E 00 F2 9A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A5 [15:52:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:52:15]wFMCommunicate OK [15:52:15]SAM_PROTO_GetShiftState done [15:52:15]FM_GetShiftState done [15:52:15]req_shift_opened done [15:52:15]requested_item shift.open_date is exist - process it [15:52:15]req_shift_open_date [15:52:15]req_shift_open_date done [15:52:15]produce_requested_data done [15:52:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94941,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:52:15]process_action_free print_text [15:52:15]json_value_free [15:52:15]json_value_free done [15:52:15]process_json_proto returns [15:52:15]Send response to host [15:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94941,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:52:15]free response buf [15:52:15]execute_script done [15:52:15]execute_script returns [15:52:15]free content buf [15:52:15]Sock 7.Close socket [15:52:15]Sock 7.Thread stoped [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]accept exits with 9 [15:53:21]New connection [15:53:21]New thread 3066871140 created [15:53:21]Thread 3067014500 joined [15:53:21]Waiting for new connection... [15:53:21] Sock 9.Parse request [15:53:21]Sock 9.Check first char [15:53:21]Sock 9.First char is OK [15:53:21]request: POST /json_proto HTTP/1.0 [15:53:21]Method: POST [15:53:21]URL: /json_proto [15:53:21]Method is POST - this is cgi request [15:53:21]url: /json_proto [15:53:21]query_string will be loaded in cgi processing [15:53:21]execute_cgi json_proto POST (null) [15:53:21]execute_cgi path=json_proto method=POST [15:53:21]POST find Content-Length [15:53:21]Host: 172.17.62.67:8080 [15:53:21]Content-Length: 1192 [15:53:21]Content-Type: application/json [15:53:21] [15:53:21]POST finish read [15:53:21]Found Content-Length = 1192 [15:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195899\u000A11.03.2024 15:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 150.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 10635.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:21]execute_script... [15:53:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195899\u000A11.03.2024 15:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 150.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 10635.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:21]POST & json_proto [15:53:21]process_json_proto [15:53:21]json parsed OK: [15:53:21]protocol is kg_v1.0 [15:53:21]action value=print_text [15:53:21]process_action print_text [15:53:21]cmd_print_text [15:53:21]ExternCall_PrintAddStr [15:53:21]wPrintStart [15:53:21]Write to MH i2c: 01 00 00 F3 9A 8D [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 F3 9A 00 80 00 00 00 FF 0F 22 [15:53:21]RasterBufferAndPrint [15:53:21]line *****ТОВАРНЫЙ ЧЕК***** [15:53:21]line АЗС 6 [15:53:21]line Партнер нефть [15:53:21]line 02508201610067 [15:53:21]line Кассир : Карыбаев Б. [15:53:21]line Счет N : (1)195899 [15:53:21]line 11.03.2024 15:47 [15:53:21]line ПРОДАЖА [15:53:21]line ТРК (МРК, ГНК): 51 [15:53:21]line Вид ГСМ : 2710194210 [15:53:21]line ДТ-К-5 [15:53:21]line 150.000 x 70.90 [15:53:21]line ИТОГ: 10635.00 [15:53:21]line Тип оплаты: Талоны: Топливная Карта [15:53:21]line 74820 [15:53:21]line ______________________ [15:53:21]line (подпись) [15:53:21]written 0, free lines is 4095 [15:53:21]OFD Sender: No OFD packet to send [15:53:21]Write to MH i2c: 01 00 00 07 9B A2 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 07 9B 00 80 00 00 00 60 0E 97 [15:53:21]RasterBufferAndPrint [15:53:21]line [15:53:21]line [15:53:21]line [15:53:21]line [15:53:21]line [15:53:21]written 0, free lines is 3684 [15:53:21]process_action print_text done [15:53:21]requested_data is exist [15:53:21]produce_requested_data [15:53:21]requested_item fm.sn is exist - process it [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 11 00 00 [15:53:21]Write to MH i2c: E2 08 00 0E 9B 80 11 00 00 00 00 00 00 23 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 17 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 17 00 0E 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 73 [15:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:53:21]wFMCommunicate OK [15:53:21]requested_item fd.num is exist - process it [15:53:21]SAM_PROTO_GetFieldsCounters [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 13 00 00 [15:53:21]Write to MH i2c: E2 08 00 0F 9B 80 13 00 00 00 00 00 00 26 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:22]Read from MH i2c: E2 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: E2 62 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: E2 62 00 0F 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [15:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:22]wFMCommunicate OK [15:53:22]SAM_PROTO_GetFieldsCounters done [15:53:22]requested_item shift.num is exist - process it [15:53:22]requested_item shift.opened is exist - process it [15:53:22]req_shift_opened [15:53:22]FM_GetShiftState [15:53:22]SAM_PROTO_GetShiftState [15:53:22]wFMCommunicate request_size=4 [15:53:22]MH_SAM_APDU [15:53:22]CAPDU: 80 13 01 00 [15:53:22]Write to MH i2c: E2 08 00 10 9B 80 13 01 00 00 00 00 00 28 [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:22]Read from MH i2c: E2 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: E2 0E 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: E2 0E 00 10 9B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C4 [15:53:22]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:53:22]wFMCommunicate OK [15:53:22]SAM_PROTO_GetShiftState done [15:53:22]FM_GetShiftState done [15:53:22]req_shift_opened done [15:53:22]requested_item shift.open_date is exist - process it [15:53:22]req_shift_open_date [15:53:22]req_shift_open_date done [15:53:22]produce_requested_data done [15:53:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94941,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:53:22]process_action_free print_text [15:53:22]json_value_free [15:53:22]json_value_free done [15:53:22]process_json_proto returns [15:53:22]Send response to host [15:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94941,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:53:22]free response buf [15:53:22]execute_script done [15:53:22]execute_script returns [15:53:22]free content buf [15:53:22]Sock 9.Close socket [15:53:22]Sock 9.Thread stoped [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:30]accept exits with 7 [15:56:30]New connection [15:56:30]New thread 3067014500 created [15:56:30]Thread 3066871140 joined [15:56:30]Waiting for new connection... [15:56:30] Sock 7.Parse request [15:56:30]Sock 7.Check first char [15:56:30]Sock 7.First char is OK [15:56:30]request: POST /json_proto HTTP/1.0 [15:56:30]Method: POST [15:56:30]URL: /json_proto [15:56:30]Method is POST - this is cgi request [15:56:30]url: /json_proto [15:56:30]query_string will be loaded in cgi processing [15:56:30]execute_cgi json_proto POST (null) [15:56:30]execute_cgi path=json_proto method=POST [15:56:30]POST find Content-Length [15:56:30]Host: 172.17.62.67:8080 [15:56:30]Content-Length: 682 [15:56:30]Content-Type: application/json [15:56:30] [15:56:30]POST finish read [15:56:30]Found Content-Length = 682 [15:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:30]execute_script... [15:56: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)195902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:30]POST & json_proto [15:56:30]process_json_proto [15:56:30]json parsed OK: [15:56:30]protocol is kg_v1.0 [15:56:30]action value=close_receipt [15:56:30]process_action close_receipt [15:56:30]cmd_close_receipt [15:56:30]MH_GetDate [15:56:30]Write to MH i2c: F0 00 00 11 9B 9B [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: F0 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: F0 05 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: F0 05 00 11 9B 00 BD 29 EF 65 DA [15:56:30]GetLastDocTimeStamp 1710172053 [15:56:30]current date 1710172605 [15:56:30]FM_GetShiftState [15:56:30]SAM_PROTO_GetShiftState [15:56:30]wFMCommunicate request_size=4 [15:56:30]MH_SAM_APDU [15:56:30]CAPDU: 80 13 01 00 [15:56:30]Write to MH i2c: E2 08 00 12 9B 80 13 01 00 00 00 00 00 2A [15:56:30]Write i2c OK [15:56:30]MH_I2C_Read... [15:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:30]Read from MH i2c: E2 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 [15:56:30]MH_I2C_Read... [15:56:30]Read from MH i2c: E2 0E 00 12 9B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C6 [15:56:30]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:56:30]wFMCommunicate OK [15:56:30]SAM_PROTO_GetShiftState done [15:56:30]FM_GetShiftState done [15:56:30]opened in 1710115571 [15:56:30]opened+sec_in_day 1710201971 [15:56:30]quantity*price = 100011 [15:56:30]sum+1 = 100012 [15:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 117 11.03.2024 15:56 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94942 ФПД: 37979240806812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T155645&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94942&fm=37979240806812&tin=02508201610067®Number=0000000000090555&sum=100000 [15:56:31]StoreToDocumentArchive [15:56:31]shift 326 fd 94942 [15:56:31]save to /storage/0326/doc_00094942 [15:56:31]save last doc name /storage/0326/doc_00094942 to /storage/kkm_last_doc_name [15:56:31]save OK [15:56:31]Clear old archive folders... [15:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:31]tlvbuf is 002BC480 [15:56:31]SAM_PROTO_ClearQueue [15:56:31]wFMCommunicate request_size=4 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 09 00 00 [15:56:31]Write to MH i2c: E2 08 00 1F 9B 80 09 00 00 00 00 00 00 2C [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:31]Read from MH i2c: E2 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 03 00 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 03 00 1F 9B 00 90 00 2E [15:56:31]RAPDU: 90 00 [15:56:31]wFMCommunicate OK [15:56:31]SAM_PROTO_ClearQueue done [15:56:31]KKMCreateOFDPacket [15:56:31]OFDProtocolAddRootSTLVToBuf [15:56:31]FM_MakeSignedData [15:56:31]FM_MakeSignedData [15:56:31]SAM_PROTO_SignData [15:56:31]wFMCommunicate request_size=4 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 0D 01 02 [15:56:31]Write to MH i2c: E2 08 00 20 9B 80 0D 01 02 00 00 00 00 34 [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:31]Read from MH i2c: E2 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 03 00 [15:56:31]MH_I2C_Read... [15:56:31]Read from MH i2c: E2 03 00 20 9B 00 90 00 2F [15:56:31]RAPDU: 90 00 [15:56:31]wFMCommunicate OK [15:56:31]wFMCommunicate request_size=255 [15:56:31]MH_SAM_APDU [15:56:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 29 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 72 01 00 35 04 06 00 22 [15:56:31]Write to MH i2c: E2 02 01 21 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 29 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 72 01 00 35 04 06 00 22 00 00 45 [15:56:31]Write i2c OK [15:56:31]MH_I2C_Read... [15:56:32]OFD Sender: No OFD packet to send [15:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 21 9B 00 90 00 30 [15:56:32]RAPDU: 90 00 [15:56:32]wFMCommunicate OK [15:56:32]wFMCommunicate request_size=10 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 0D 02 02 05 8A BB 28 39 9C [15:56:32]Write to MH i2c: E2 0D 00 22 9B 80 0D 02 02 05 00 8A BB 28 39 9C 00 00 83 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 03 00 22 9B 00 90 00 31 [15:56:32]RAPDU: 90 00 [15:56:32]wFMCommunicate OK [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 0D 03 02 [15:56:32]Write to MH i2c: E2 08 00 23 9B 80 0D 03 02 00 00 00 00 39 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 0B 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 0B 00 23 9B 00 52 19 A5 2A A0 71 D4 98 90 00 F1 [15:56:32]RAPDU: 52 19 A5 2A A0 71 D4 98 90 00 [15:56:32]wFMCommunicate OK [15:56:32]SAM_PROTO_SignData done [15:56:32]FM_MakeSignedData done [15:56:32]CreateOFDProtocolMessage [15:56:32]wFMCommunicate request_size=4 [15:56:32]MH_SAM_APDU [15:56:32]CAPDU: 80 11 00 00 [15:56:32]Write to MH i2c: E2 08 00 24 9B 80 11 00 00 00 00 00 00 39 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:32]Read from MH i2c: E2 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 17 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: E2 17 00 24 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 89 [15:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:56:32]wFMCommunicate OK [15:56:32]CreateOFDProtocolMessage done [15:56:32]OFDSenderStorePacket 94942 [15:56:32]StoreOFDPacket docnum=94942 [15:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 08 E9 07 01 67 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 29 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 72 01 00 35 04 06 00 22 8A BB 28 39 9C 52 19 A5 2A A0 71 D4 98 [15:56:32]CheckFolder [15:56:32]dirname=/storage/ofd_packets [15:56:32]CheckFolder done [15:56:32]ProducePacketName [15:56:32]name=ofd_packets/00094942 [15:56:32]NVStorageSaveData ofd_packets/00094942 [15:56:32]File name is /storage/ofd_packets/00094942 [15:56:32]Write 301 bytes [15:56:32]NVStorageSaveData done [15:56:32]OFDSenderStorePacket done [15:56:32]KKMCreateOFDPacket done [15:56:32]NVStorageSaveData kkm_last_timestamp [15:56:32]File name is /storage/kkm_last_timestamp [15:56:32]Write 4 bytes [15:56:32]NVStorageSaveData done [15:56:32]ExternCall_PrintAddStr [15:56:32]wPrintStart [15:56:32]Write to MH i2c: 01 00 00 25 9B C0 [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 07 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 07 00 25 9B 00 80 00 00 00 FF 0F 55 [15:56:32]RasterBufferAndPrint [15:56:32]line Счет N : (1)195902 [15:56:32]line ИНН: 02508201610067 [15:56:32]line Контрольно-Кассовый Чек [15:56:32]line ПРОДАЖА [15:56:32]line ТРК (МРК, ГНК) : 22 [15:56:32]line Товар: 2710124130 [15:56:32]line Аи-92-К-5 [15:56:32]line 15.900 * 62.90 [15:56:32]line = 1000.11 [15:56:32]line НДС 12% НСП 1% [15:56:32]line > о реализуемом товаре [15:56:32]line ОКРУГЛЕНИЕ: -0.11 [15:56:32]line ИТОГО: 1000.00 [15:56:32]line Внесено: 1000.00 [15:56:32]line СДАЧА: 0.00 [15:56:32]line НСП 1% : 8.85 [15:56:32]line НДС 12% : 106.21 [15:56:32]line Наличными: 1000.00 [15:56:32]line Безнал.: 0.00 [15:56:32]line Место: АЗС № 6 "Партнер Нефть" [15:56:32]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:56:32]line СНО: Общий режим [15:56:32]line Чек 117 11.03.2024 15:56 [15:56:32]line Смена: 326 ФФД: 1.0 [15:56:32]line ЗНМ: 0300000009 [15:56:32]line РНМ: 0000000000090555 [15:56:32]line Версия ККМ: 001 [15:56:32]line ФМ: 0000000000874811 [15:56:32]line ФД: 94942 [15:56:32]line ФПД: 37979240806812 [15:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T155645&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94942&fm=37979240806812&tin=02508201610067®Number=0000000000090555&sum=100000 [15:56:32]OFD Sender: Processing packet 94942 [packets to send 30, broken 29] [15:56:32]ProducePacketName [15:56:32]name=ofd_packets/00094942 [15:56:32]OFD Sender: To server: pG, [15:56:32]CommunicateWithHost lk.salyk.kg:30040 [15:56:32]ConnectInit lk.salyk.kg [15:56:32]written 0, free lines is 4095 [15:56:32]Connected sock=10 [15:56: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 31 31 0F 01 00 00 08 E9 07 01 67 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 29 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DE 72 01 00 35 04 06 00 22 8A BB 28 39 9C 52 19 A5 2A A0 71 D4 98 [15:56: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 31 31 4F 00 00 00 70 BC 47 00 6D 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 31 31 10 04 04 00 DE 72 01 00 F4 03 04 00 16 D5 EE 65 B6 04 01 00 00 2C CD E1 85 44 87 75 C5 [15:56:32]CommunicateWithHost err = 0 [15:56:32]CheckOFDResponse [15:56:32]1017 (14) - 77093643461234 [15:56:32]1041 (16) - 0000000000874811 [15:56:32]1040 (4) - 94942 [15:56:32]1012 (4) - 11.03.2024 09:55 [15:56:32]1206 (1) - 0 [15:56:32]OFD Sender: Remove packet 94942 [15:56:32]ProducePacketName [15:56:32]name=ofd_packets/00094942 [15:56:32]NVStorageDeleteData [15:56:32]Write to MH i2c: 01 00 00 50 9B EB [15:56:32]Write i2c OK [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 07 00 [15:56:32]MH_I2C_Read... [15:56:32]Read from MH i2c: 01 07 00 50 9B 00 80 00 00 00 49 0D C8 [15:56:32]RasterBufferAndPrint [15:56:32]line [15:56:32]line [15:56:32]line [15:56:32]line [15:56:32]line [15:56:32]written 0, free lines is 3407 [15:56:32]process_action close_receipt done [15:56:32]requested_data is exist [15:56:32]produce_requested_data [15:56:32]requested_item fm.sn is exist - process it [15:56:33]wFMCommunicate request_size=4 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 11 00 00 [15:56:33]Write to MH i2c: E2 08 00 57 9B 80 11 00 00 00 00 00 00 6C [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 17 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 17 00 57 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BC [15:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:56:33]wFMCommunicate OK [15:56:33]requested_item fd.num is exist - process it [15:56:33]SAM_PROTO_GetFieldsCounters [15:56:33]wFMCommunicate request_size=4 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 13 00 00 [15:56:33]Write to MH i2c: E2 08 00 58 9B 80 13 00 00 00 00 00 00 6F [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 62 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 62 00 58 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [15:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:33]wFMCommunicate OK [15:56:33]SAM_PROTO_GetFieldsCounters done [15:56:33]requested_item shift.num is exist - process it [15:56:33]requested_item shift.opened is exist - process it [15:56:33]req_shift_opened [15:56:33]FM_GetShiftState [15:56:33]SAM_PROTO_GetShiftState [15:56:33]wFMCommunicate request_size=4 [15:56:33]MH_SAM_APDU [15:56:33]CAPDU: 80 13 01 00 [15:56:33]Write to MH i2c: E2 08 00 59 9B 80 13 01 00 00 00 00 00 71 [15:56:33]Write i2c OK [15:56:33]MH_I2C_Read... [15:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:33]Read from MH i2c: E2 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 0E 00 [15:56:33]MH_I2C_Read... [15:56:33]Read from MH i2c: E2 0E 00 59 9B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0D [15:56:33]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:56:33]wFMCommunicate OK [15:56:33]SAM_PROTO_GetShiftState done [15:56:33]FM_GetShiftState done [15:56:33]req_shift_opened done [15:56:33]requested_item shift.open_date is exist - process it [15:56:33]req_shift_open_date [15:56:33]req_shift_open_date done [15:56:33]produce_requested_data done [15:56:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94942,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:56:33]process_action_free close_receipt [15:56:33]json_value_free [15:56:33]json_value_free done [15:56:33]process_json_proto returns [15:56:33]Send response to host [15:56:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94942,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:56:33]free response buf [15:56:33]execute_script done [15:56:33]execute_script returns [15:56:33]free content buf [15:56:33]Sock 7.Close socket [15:56:33]Sock 7.Thread stoped [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:04]accept exits with 9 [15:57:04]New connection [15:57:04]New thread 3066871140 created [15:57:04]Thread 3067014500 joined [15:57:04]Waiting for new connection... [15:57:04] Sock 9.Parse request [15:57:04]Sock 9.Check first char [15:57:04]Sock 9.First char is OK [15:57:04]request: POST /json_proto HTTP/1.0 [15:57:04]Method: POST [15:57:04]URL: /json_proto [15:57:04]Method is POST - this is cgi request [15:57:04]url: /json_proto [15:57:04]query_string will be loaded in cgi processing [15:57:04]execute_cgi json_proto POST (null) [15:57:04]execute_cgi path=json_proto method=POST [15:57:04]POST find Content-Length [15:57:04]Host: 172.17.62.67:8080 [15:57:04]Content-Length: 1186 [15:57:04]Content-Type: application/json [15:57:04] [15:57:04]POST finish read [15:57:04]Found Content-Length = 1186 [15:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195901\u000A11.03.2024 15:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 2127.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699925;26;27\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:04]execute_script... [15:57:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195901\u000A11.03.2024 15:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 2127.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699925;26;27\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:04]POST & json_proto [15:57:04]process_json_proto [15:57:04]json parsed OK: [15:57:04]protocol is kg_v1.0 [15:57:04]action value=print_text [15:57:04]process_action print_text [15:57:04]cmd_print_text [15:57:04]ExternCall_PrintAddStr [15:57:04]wPrintStart [15:57:04]Write to MH i2c: 01 00 00 5A 9B F5 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 5A 9B 00 80 00 00 00 FF 0F 8A [15:57:04]RasterBufferAndPrint [15:57:04]line *****ТОВАРНЫЙ ЧЕК***** [15:57:04]line АЗС 6 [15:57:04]line Партнер нефть [15:57:04]line 02508201610067 [15:57:04]line Кассир : Карыбаев Б. [15:57:04]line Счет N : (1)195901 [15:57:04]line 11.03.2024 15:51 [15:57:04]line ПРОДАЖА [15:57:04]line ТРК (МРК, ГНК): 51 [15:57:04]line Вид ГСМ : 2710194210 [15:57:04]line ДТ-К-5 [15:57:04]line 30.000 x 70.90 [15:57:04]line ИТОГ: 2127.00 [15:57:04]line Тип оплаты: Талоны: Партнер нефть [15:57:04]line 3699925;26;27 [15:57:04]line ______________________ [15:57:04]line (подпись) [15:57:04]written 0, free lines is 4095 [15:57:04]Write to MH i2c: 01 00 00 6E 9B 09 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 6E 9B 00 80 00 00 00 66 0E 04 [15:57:04]RasterBufferAndPrint [15:57:04]line [15:57:04]line [15:57:04]line [15:57:04]line [15:57:04]line [15:57:04]written 0, free lines is 3690 [15:57:04]process_action print_text done [15:57:04]requested_data is exist [15:57:04]produce_requested_data [15:57:04]requested_item fm.sn is exist - process it [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 11 00 00 [15:57:04]Write to MH i2c: E2 08 00 75 9B 80 11 00 00 00 00 00 00 8A [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 17 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 17 00 75 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DA [15:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:57:04]wFMCommunicate OK [15:57:04]requested_item fd.num is exist - process it [15:57:04]SAM_PROTO_GetFieldsCounters [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 13 00 00 [15:57:04]Write to MH i2c: E2 08 00 76 9B 80 13 00 00 00 00 00 00 8D [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 62 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 62 00 76 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [15:57: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:04]wFMCommunicate OK [15:57:04]SAM_PROTO_GetFieldsCounters done [15:57:04]requested_item shift.num is exist - process it [15:57:04]requested_item shift.opened is exist - process it [15:57:04]req_shift_opened [15:57:04]FM_GetShiftState [15:57:04]SAM_PROTO_GetShiftState [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 13 01 00 [15:57:04]Write to MH i2c: E2 08 00 77 9B 80 13 01 00 00 00 00 00 8F [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 0E 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 0E 00 77 9B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2B [15:57:04]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:57:04]wFMCommunicate OK [15:57:04]SAM_PROTO_GetShiftState done [15:57:04]FM_GetShiftState done [15:57:04]req_shift_opened done [15:57:04]requested_item shift.open_date is exist - process it [15:57:04]req_shift_open_date [15:57:04]req_shift_open_date done [15:57:04]produce_requested_data done [15:57:04]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94942,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:57:04]process_action_free print_text [15:57:04]json_value_free [15:57:04]json_value_free done [15:57:04]process_json_proto returns [15:57:04]Send response to host [15:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94942,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:57:04]free response buf [15:57:04]execute_script done [15:57:04]execute_script returns [15:57:04]free content buf [15:57:04]Sock 9.Close socket [15:57:04]Sock 9.Thread stoped [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:15]accept exits with 7 [15:58:15]New connection [15:58:15]New thread 3067014500 created [15:58:15]Thread 3066871140 joined [15:58:15]Waiting for new connection... [15:58:15] Sock 7.Parse request [15:58:15]Sock 7.Check first char [15:58:15]Sock 7.First char is OK [15:58:15]request: POST /json_proto HTTP/1.0 [15:58:15]Method: POST [15:58:15]URL: /json_proto [15:58:15]Method is POST - this is cgi request [15:58:15]url: /json_proto [15:58:15]query_string will be loaded in cgi processing [15:58:15]execute_cgi json_proto POST (null) [15:58:15]execute_cgi path=json_proto method=POST [15:58:15]POST find Content-Length [15:58:15]Host: 172.17.62.67:8080 [15:58:15]Content-Length: 679 [15:58:15]Content-Type: application/json [15:58:15] [15:58:15]POST finish read [15:58:15]Found Content-Length = 679 [15:58:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:15]execute_script... [15:58:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:15]POST & json_proto [15:58:15]process_json_proto [15:58:15]json parsed OK: [15:58:15]protocol is kg_v1.0 [15:58:15]action value=close_receipt [15:58:15]process_action close_receipt [15:58:15]cmd_close_receipt [15:58:15]MH_GetDate [15:58:15]Write to MH i2c: F0 00 00 78 9B 02 [15:58:15]Write i2c OK [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: F0 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: F0 05 00 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: F0 05 00 78 9B 00 26 2A EF 65 AB [15:58:15]GetLastDocTimeStamp 1710172605 [15:58:15]current date 1710172710 [15:58:15]FM_GetShiftState [15:58:15]SAM_PROTO_GetShiftState [15:58:15]wFMCommunicate request_size=4 [15:58:15]MH_SAM_APDU [15:58:15]CAPDU: 80 13 01 00 [15:58:15]Write to MH i2c: E2 08 00 79 9B 80 13 01 00 00 00 00 00 91 [15:58:15]Write i2c OK [15:58:15]MH_I2C_Read... [15:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:15]Read from MH i2c: E2 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: E2 0E 00 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: E2 0E 00 79 9B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2D [15:58:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:58:15]wFMCommunicate OK [15:58:15]SAM_PROTO_GetShiftState done [15:58:15]FM_GetShiftState done [15:58:15]opened in 1710115571 [15:58:15]opened+sec_in_day 1710201971 [15:58:15]quantity*price = 100039 [15:58:15]sum+1 = 100041 [15:58:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 118 11.03.2024 15:58 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94943 ФПД: 220160281360871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T155830&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94943&fm=220160281360871&tin=02508201610067®Number=0000000000090555&sum=100000 [15:58:16]StoreToDocumentArchive [15:58:16]shift 326 fd 94943 [15:58:16]save to /storage/0326/doc_00094943 [15:58:16]save last doc name /storage/0326/doc_00094943 to /storage/kkm_last_doc_name [15:58:16]save OK [15:58:16]Clear old archive folders... [15:58:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:58:16]tlvbuf is 00430600 [15:58:16]SAM_PROTO_ClearQueue [15:58:16]wFMCommunicate request_size=4 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 09 00 00 [15:58:16]Write to MH i2c: E2 08 00 86 9B 80 09 00 00 00 00 00 00 93 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:16]Read from MH i2c: E2 03 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 86 9B 00 90 00 95 [15:58:16]RAPDU: 90 00 [15:58:16]wFMCommunicate OK [15:58:16]SAM_PROTO_ClearQueue done [15:58:16]KKMCreateOFDPacket [15:58:16]OFDProtocolAddRootSTLVToBuf [15:58:16]FM_MakeSignedData [15:58:16]FM_MakeSignedData [15:58:16]SAM_PROTO_SignData [15:58:16]wFMCommunicate request_size=4 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 0D 01 02 [15:58:16]Write to MH i2c: E2 08 00 87 9B 80 0D 01 02 00 00 00 00 9B [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:16]Read from MH i2c: E2 03 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 87 9B 00 90 00 96 [15:58:16]RAPDU: 90 00 [15:58:16]wFMCommunicate OK [15:58:16]wFMCommunicate request_size=255 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 26 2A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 72 01 00 35 04 06 00 C8 3C 0F 5D [15:58:16]Write to MH i2c: E2 02 01 88 9B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 26 2A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 72 01 00 35 04 06 00 C8 3C 0F 5D 00 00 F7 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 88 9B 00 90 00 97 [15:58:16]RAPDU: 90 00 [15:58:16]wFMCommunicate OK [15:58:16]wFMCommunicate request_size=7 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 0D 02 02 02 39 E7 [15:58:16]Write to MH i2c: E2 0A 00 89 9B 80 0D 02 02 02 00 39 E7 00 00 C2 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 89 9B 00 90 00 98 [15:58:16]RAPDU: 90 00 [15:58:16]wFMCommunicate OK [15:58:16]wFMCommunicate request_size=4 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 0D 03 02 [15:58:16]Write to MH i2c: E2 08 00 8A 9B 80 0D 03 02 00 00 00 00 A0 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 0B 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 0B 00 8A 9B 00 9D A7 79 6C AA 80 F1 00 90 00 E5 [15:58:16]RAPDU: 9D A7 79 6C AA 80 F1 00 90 00 [15:58:16]wFMCommunicate OK [15:58:16]SAM_PROTO_SignData done [15:58:16]FM_MakeSignedData done [15:58:16]CreateOFDProtocolMessage [15:58:16]wFMCommunicate request_size=4 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 11 00 00 [15:58:16]Write to MH i2c: E2 08 00 8B 9B 80 11 00 00 00 00 00 00 A0 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 17 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 17 00 8B 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F0 [15:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:58:16]wFMCommunicate OK [15:58:16]CreateOFDProtocolMessage done [15:58:16]OFDSenderStorePacket 94943 [15:58:16]StoreOFDPacket docnum=94943 [15:58:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D3 C8 04 01 C5 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 26 2A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 72 01 00 35 04 06 00 C8 3C 0F 5D 39 E7 9D A7 79 6C AA 80 F1 00 [15:58:16]CheckFolder [15:58:16]dirname=/storage/ofd_packets [15:58:16]CheckFolder done [15:58:16]ProducePacketName [15:58:16]name=ofd_packets/00094943 [15:58:16]NVStorageSaveData ofd_packets/00094943 [15:58:16]File name is /storage/ofd_packets/00094943 [15:58:16]Write 298 bytes [15:58:16]NVStorageSaveData done [15:58:16]OFDSenderStorePacket done [15:58:16]KKMCreateOFDPacket done [15:58:16]NVStorageSaveData kkm_last_timestamp [15:58:16]File name is /storage/kkm_last_timestamp [15:58:16]Write 4 bytes [15:58:16]NVStorageSaveData done [15:58:16]ExternCall_PrintAddStr [15:58:16]wPrintStart [15:58:16]Write to MH i2c: 01 00 00 8C 9B 27 [15:58:16]OFD Sender: Processing packet 94943 [packets to send 30, broken 29] [15:58:16]ProducePacketName [15:58:16]name=ofd_packets/00094943 [15:58:16]OFD Sender: To server: pG, [15:58:16]CommunicateWithHost lk.salyk.kg:30040 [15:58:16]ConnectInit lk.salyk.kg [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 07 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 07 00 8C 9B 00 80 00 00 00 FF 0F BC [15:58:16]RasterBufferAndPrint [15:58:16]line Счет N : (1)195903 [15:58:16]line ИНН: 02508201610067 [15:58:16]line Контрольно-Кассовый Чек [15:58:16]line ПРОДАЖА [15:58:16]line ТРК (МРК, ГНК) : 61 [15:58:16]line Товар: 2710194210 [15:58:16]line ДТ-К-5 [15:58:16]line 14.110 * 70.90 [15:58:16]line = 1000.40 [15:58:16]line НДС 12% НСП 1% [15:58:16]line > о реализуемом товаре [15:58:16]line ОКРУГЛЕНИЕ: -0.40 [15:58:16]line ИТОГО: 1000.00 [15:58:16]line Внесено: 1000.00 [15:58:16]line СДАЧА: 0.00 [15:58:16]line НСП 1% : 8.85 [15:58:16]line НДС 12% : 106.24 [15:58:16]line Наличными: 1000.00 [15:58:16]line Безнал.: 0.00 [15:58:16]line Место: АЗС № 6 "Партнер Нефть" [15:58:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:58:16]line СНО: Общий режим [15:58:16]line Чек 118 11.03.2024 15:58 [15:58:16]line Смена: 326 ФФД: 1.0 [15:58:16]line ЗНМ: 0300000009 [15:58:16]line РНМ: 0000000000090555 [15:58:16]line Версия ККМ: 001 [15:58:16]line ФМ: 0000000000874811 [15:58:16]line ФД: 94943 [15:58:16]line ФПД: 220160281360871 [15:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T155830&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94943&fm=220160281360871&tin=02508201610067®Number=0000000000090555&sum=100000 [15:58:17]Connected sock=10 [15:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D3 C8 04 01 C5 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 26 2A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 72 01 00 35 04 06 00 C8 3C 0F 5D 39 E7 9D A7 79 6C AA 80 F1 00 [15:58:17]written 0, free lines is 4095 [15:58:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2E 05 47 00 F6 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DF 72 01 00 F4 03 04 00 7F D5 EE 65 B6 04 01 00 00 D1 2D 66 67 56 17 66 00 [15:58:17]CommunicateWithHost err = 0 [15:58:17]CheckOFDResponse [15:58:17]1017 (14) - 77093643461234 [15:58:17]1041 (16) - 0000000000874811 [15:58:17]1040 (4) - 94943 [15:58:17]1012 (4) - 11.03.2024 09:57 [15:58:17]1206 (1) - 0 [15:58:17]OFD Sender: Remove packet 94943 [15:58:17]ProducePacketName [15:58:17]name=ofd_packets/00094943 [15:58:17]NVStorageDeleteData [15:58:17]Write to MH i2c: 01 00 00 B7 9B 52 [15:58:17]Write i2c OK [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: 01 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: 01 07 00 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: 01 07 00 B7 9B 00 80 00 00 00 49 0D 2F [15:58:17]RasterBufferAndPrint [15:58:17]line [15:58:17]line [15:58:17]line [15:58:17]line [15:58:17]line [15:58:17]written 0, free lines is 3407 [15:58:17]process_action close_receipt done [15:58:17]requested_data is exist [15:58:17]produce_requested_data [15:58:17]requested_item fm.sn is exist - process it [15:58:17]wFMCommunicate request_size=4 [15:58:17]MH_SAM_APDU [15:58:17]CAPDU: 80 11 00 00 [15:58:17]Write to MH i2c: E2 08 00 BE 9B 80 11 00 00 00 00 00 00 D3 [15:58:17]Write i2c OK [15:58:17]MH_I2C_Read... [15:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:17]Read from MH i2c: E2 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: E2 17 00 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: E2 17 00 BE 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 23 [15:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:58:17]wFMCommunicate OK [15:58:17]requested_item fd.num is exist - process it [15:58:17]SAM_PROTO_GetFieldsCounters [15:58:17]wFMCommunicate request_size=4 [15:58:17]MH_SAM_APDU [15:58:17]CAPDU: 80 13 00 00 [15:58:17]Write to MH i2c: E2 08 00 BF 9B 80 13 00 00 00 00 00 00 D6 [15:58:17]Write i2c OK [15:58:17]MH_I2C_Read... [15:58:17]OFD Sender: No OFD packet to send [15:58:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:17]Read from MH i2c: E2 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: E2 62 00 [15:58:17]MH_I2C_Read... [15:58:17]Read from MH i2c: E2 62 00 BF 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DF 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [15:58:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DF 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:17]wFMCommunicate OK [15:58:17]SAM_PROTO_GetFieldsCounters done [15:58:17]requested_item shift.num is exist - process it [15:58:17]requested_item shift.opened is exist - process it [15:58:17]req_shift_opened [15:58:17]FM_GetShiftState [15:58:17]SAM_PROTO_GetShiftState [15:58:17]wFMCommunicate request_size=4 [15:58:17]MH_SAM_APDU [15:58:17]CAPDU: 80 13 01 00 [15:58:17]Write to MH i2c: E2 08 00 C0 9B 80 13 01 00 00 00 00 00 D8 [15:58:17]Write i2c OK [15:58:17]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 0E 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 0E 00 C0 9B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 74 [15:58:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [15:58:18]wFMCommunicate OK [15:58:18]SAM_PROTO_GetShiftState done [15:58:18]FM_GetShiftState done [15:58:18]req_shift_opened done [15:58:18]requested_item shift.open_date is exist - process it [15:58:18]req_shift_open_date [15:58:18]req_shift_open_date done [15:58:18]produce_requested_data done [15:58:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94943,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [15:58:18]process_action_free close_receipt [15:58:18]json_value_free [15:58:18]json_value_free done [15:58:18]process_json_proto returns [15:58:18]Send response to host [15:58:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94943,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [15:58:18]free response buf [15:58:18]execute_script done [15:58:18]execute_script returns [15:58:18]free content buf [15:58:18]Sock 7.Close socket [15:58:18]Sock 7.Thread stoped [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:40]accept exits with 9 [16:02:40]New connection [16:02:40]New thread 3066871140 created [16:02:40]Thread 3067014500 joined [16:02:40]Waiting for new connection... [16:02:40] Sock 9.Parse request [16:02:40]Sock 9.Check first char [16:02:40]Sock 9.First char is OK [16:02:40]request: POST /json_proto HTTP/1.0 [16:02:40]Method: POST [16:02:40]URL: /json_proto [16:02:40]Method is POST - this is cgi request [16:02:40]url: /json_proto [16:02:40]query_string will be loaded in cgi processing [16:02:40]execute_cgi json_proto POST (null) [16:02:40]execute_cgi path=json_proto method=POST [16:02:40]POST find Content-Length [16:02:40]Host: 172.17.62.67:8080 [16:02:40]Content-Length: 819 [16:02:40]Content-Type: application/json [16:02:40] [16:02:40]POST finish read [16:02:40]Found Content-Length = 819 [16:02:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.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" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:40]execute_script... [16:02: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)195904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.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" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:40]POST & json_proto [16:02:40]process_json_proto [16:02:40]json parsed OK: [16:02:40]protocol is kg_v1.0 [16:02:40]action value=close_receipt [16:02:40]process_action close_receipt [16:02:40]cmd_close_receipt [16:02:40]MH_GetDate [16:02:40]Write to MH i2c: F0 00 00 C1 9B 4B [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: F0 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: F0 05 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: F0 05 00 C1 9B 00 2F 2B EF 65 FE [16:02:40]GetLastDocTimeStamp 1710172710 [16:02:40]current date 1710172975 [16:02:40]FM_GetShiftState [16:02:40]SAM_PROTO_GetShiftState [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 13 01 00 [16:02:40]Write to MH i2c: E2 08 00 C2 9B 80 13 01 00 00 00 00 00 DA [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 0E 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 0E 00 C2 9B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 76 [16:02:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:02:40]wFMCommunicate OK [16:02:40]SAM_PROTO_GetShiftState done [16:02:40]FM_GetShiftState done [16:02:40]opened in 1710115571 [16:02:40]opened+sec_in_day 1710201971 [16:02:40]quantity*price = 150050 [16:02:40]sum+1 = 150052 [16:02:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.51 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.51 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 119 11.03.2024 16:02 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94944 ФПД: 202648463596038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T160255&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94944&fm=202648463596038&tin=02508201610067®Number=0000000000090555&sum=150051 [16:02:41]StoreToDocumentArchive [16:02:41]shift 326 fd 94944 [16:02:41]save to /storage/0326/doc_00094944 [16:02:41]save last doc name /storage/0326/doc_00094944 to /storage/kkm_last_doc_name [16:02:41]save OK [16:02:41]Clear old archive folders... [16:02:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:41]tlvbuf is 0026EC20 [16:02:41]SAM_PROTO_ClearQueue [16:02:41]wFMCommunicate request_size=4 [16:02:41]MH_SAM_APDU [16:02:41]CAPDU: 80 09 00 00 [16:02:41]Write to MH i2c: E2 08 00 CF 9B 80 09 00 00 00 00 00 00 DC [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:41]Read from MH i2c: E2 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 03 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 03 00 CF 9B 00 90 00 DE [16:02:41]RAPDU: 90 00 [16:02:41]wFMCommunicate OK [16:02:41]SAM_PROTO_ClearQueue done [16:02:41]KKMCreateOFDPacket [16:02:41]OFDProtocolAddRootSTLVToBuf [16:02:41]FM_MakeSignedData [16:02:41]FM_MakeSignedData [16:02:41]SAM_PROTO_SignData [16:02:41]wFMCommunicate request_size=4 [16:02:41]MH_SAM_APDU [16:02:41]CAPDU: 80 0D 01 02 [16:02:41]Write to MH i2c: E2 08 00 D0 9B 80 0D 01 02 00 00 00 00 E4 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:41]Read from MH i2c: E2 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 03 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: E2 03 00 D0 9B 00 90 00 DF [16:02:41]RAPDU: 90 00 [16:02:41]wFMCommunicate OK [16:02:41]wFMCommunicate request_size=255 [16:02:41]MH_SAM_APDU [16:02: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 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2F 2B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 72 01 00 35 04 06 00 B8 [16:02:41]Write to MH i2c: E2 02 01 D1 9B 80 0D 02 02 FA 00 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 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2F 2B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 72 01 00 35 04 06 00 B8 00 00 4F [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 D1 9B 00 90 00 E0 [16:02:42]RAPDU: 90 00 [16:02:42]wFMCommunicate OK [16:02:42]wFMCommunicate request_size=10 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 0D 02 02 05 4E C5 AF DA 06 [16:02:42]Write to MH i2c: E2 0D 00 D2 9B 80 0D 02 02 05 00 4E C5 AF DA 06 00 00 93 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 03 00 D2 9B 00 90 00 E1 [16:02:42]RAPDU: 90 00 [16:02:42]wFMCommunicate OK [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 0D 03 02 [16:02:42]Write to MH i2c: E2 08 00 D3 9B 80 0D 03 02 00 00 00 00 E9 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0B 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0B 00 D3 9B 00 E2 3E 17 71 B8 96 58 1A 90 00 52 [16:02:42]RAPDU: E2 3E 17 71 B8 96 58 1A 90 00 [16:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_SignData done [16:02:42]FM_MakeSignedData done [16:02:42]CreateOFDProtocolMessage [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 11 00 00 [16:02:42]Write to MH i2c: E2 08 00 D4 9B 80 11 00 00 00 00 00 00 E9 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 17 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 17 00 D4 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 39 [16:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:02:42]wFMCommunicate OK [16:02:42]CreateOFDProtocolMessage done [16:02:42]OFDSenderStorePacket 94944 [16:02:42]StoreOFDPacket docnum=94944 [16:02:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8A 52 07 01 E2 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2F 2B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 72 01 00 35 04 06 00 B8 4E C5 AF DA 06 E2 3E 17 71 B8 96 58 1A [16:02:42]CheckFolder [16:02:42]dirname=/storage/ofd_packets [16:02:42]CheckFolder done [16:02:42]ProducePacketName [16:02:42]name=ofd_packets/00094944 [16:02:42]NVStorageSaveData ofd_packets/00094944 [16:02:42]File name is /storage/ofd_packets/00094944 [16:02:42]Write 301 bytes [16:02:42]NVStorageSaveData done [16:02:42]OFDSenderStorePacket done [16:02:42]KKMCreateOFDPacket done [16:02:42]NVStorageSaveData kkm_last_timestamp [16:02:42]File name is /storage/kkm_last_timestamp [16:02:42]Write 4 bytes [16:02:42]NVStorageSaveData done [16:02:42]ExternCall_PrintAddStr [16:02:42]wPrintStart [16:02:42]Write to MH i2c: 01 00 00 D5 9B 70 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 07 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 07 00 D5 9B 00 80 00 00 00 FF 0F 05 [16:02:42]RasterBufferAndPrint [16:02:42]line Счет N : (1)195904 [16:02:42]line ИНН: 02508201610067 [16:02:42]line Контрольно-Кассовый Чек [16:02:42]line ПРОДАЖА [16:02:42]line ТРК (МРК, ГНК) : 41 [16:02:42]line Товар: 2710124500 [16:02:42]line Аи-95-К-5 [16:02:42]line 21.590 * 69.50 [16:02:42]line = 1500.51 [16:02:42]line НДС 12% НСП 1% [16:02:42]line > о реализуемом товаре [16:02:42]line ИТОГО: 1500.51 [16:02:42]line НСП 1% : 13.28 [16:02:42]line НДС 12% : 159.35 [16:02:42]line Наличными: 0.00 [16:02:42]line Безнал.: 1500.51 [16:02:42]line Место: АЗС № 6 "Партнер Нефть" [16:02:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:02:42]line СНО: Общий режим [16:02:42]line Чек 119 11.03.2024 16:02 [16:02:42]line Смена: 326 ФФД: 1.0 [16:02:42]line ЗНМ: 0300000009 [16:02:42]line РНМ: 0000000000090555 [16:02:42]line Версия ККМ: 001 [16:02:42]line Платежная система: Бакай Банк [16:02:42]line ФМ: 0000000000874811 [16:02:42]line ФД: 94944 [16:02:42]line ФПД: 202648463596038 [16:02:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T160255&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94944&fm=202648463596038&tin=02508201610067®Number=0000000000090555&sum=150051 [16:02:42]OFD Sender: Processing packet 94944 [packets to send 30, broken 29] [16:02:42]ProducePacketName [16:02:42]name=ofd_packets/00094944 [16:02:42]OFD Sender: To server: pG, [16:02:42]CommunicateWithHost lk.salyk.kg:30040 [16:02:42]ConnectInit lk.salyk.kg [16:02:42]written 0, free lines is 4095 [16:02:42]Connected sock=10 [16:02: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 31 31 0F 01 00 00 8A 52 07 01 E2 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2F 2B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 72 01 00 35 04 06 00 B8 4E C5 AF DA 06 E2 3E 17 71 B8 96 58 1A [16:02: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 31 31 4F 00 00 00 7C 2F 47 00 2F EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E0 72 01 00 F4 03 04 00 88 D6 EE 65 B6 04 01 00 00 1B BA 63 A0 5D 54 32 81 [16:02:42]CommunicateWithHost err = 0 [16:02:42]CheckOFDResponse [16:02:42]1017 (14) - 77093643461234 [16:02:42]1041 (16) - 0000000000874811 [16:02:42]1040 (4) - 94944 [16:02:42]1012 (4) - 11.03.2024 10:01 [16:02:42]1206 (1) - 0 [16:02:42]OFD Sender: Remove packet 94944 [16:02:42]ProducePacketName [16:02:42]name=ofd_packets/00094944 [16:02:42]NVStorageDeleteData [16:02:43]Write to MH i2c: 01 00 00 FF 9B 9A [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 07 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: 01 07 00 FF 9B 00 80 00 00 00 5C 0D 8A [16:02:43]RasterBufferAndPrint [16:02:43]line [16:02:43]line [16:02:43]line [16:02:43]line [16:02:43]line [16:02:43]written 0, free lines is 3424 [16:02:43]process_action close_receipt done [16:02:43]requested_data is exist [16:02:43]produce_requested_data [16:02:43]requested_item fm.sn is exist - process it [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 11 00 00 [16:02:43]Write to MH i2c: E2 08 00 06 9C 80 11 00 00 00 00 00 00 1C [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 17 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 17 00 06 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6C [16:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:02:43]wFMCommunicate OK [16:02:43]requested_item fd.num is exist - process it [16:02:43]SAM_PROTO_GetFieldsCounters [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 13 00 00 [16:02:43]Write to MH i2c: E2 08 00 07 9C 80 13 00 00 00 00 00 00 1F [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 62 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 62 00 07 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [16:02:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:43]wFMCommunicate OK [16:02:43]SAM_PROTO_GetFieldsCounters done [16:02:43]requested_item shift.num is exist - process it [16:02:43]requested_item shift.opened is exist - process it [16:02:43]req_shift_opened [16:02:43]FM_GetShiftState [16:02:43]SAM_PROTO_GetShiftState [16:02:43]wFMCommunicate request_size=4 [16:02:43]MH_SAM_APDU [16:02:43]CAPDU: 80 13 01 00 [16:02:43]Write to MH i2c: E2 08 00 08 9C 80 13 01 00 00 00 00 00 21 [16:02:43]Write i2c OK [16:02:43]MH_I2C_Read... [16:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:43]Read from MH i2c: E2 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 0E 00 [16:02:43]MH_I2C_Read... [16:02:43]Read from MH i2c: E2 0E 00 08 9C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BD [16:02:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:02:43]wFMCommunicate OK [16:02:43]SAM_PROTO_GetShiftState done [16:02:43]FM_GetShiftState done [16:02:43]req_shift_opened done [16:02:43]requested_item shift.open_date is exist - process it [16:02:43]req_shift_open_date [16:02:43]req_shift_open_date done [16:02:43]produce_requested_data done [16:02:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94944,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:02:43]process_action_free close_receipt [16:02:43]json_value_free [16:02:43]json_value_free done [16:02:43]process_json_proto returns [16:02:43]Send response to host [16:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94944,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:02:43]free response buf [16:02:43]execute_script done [16:02:43]execute_script returns [16:02:43]free content buf [16:02:43]Sock 9.Close socket [16:02:43]Sock 9.Thread stoped [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:02]accept exits with 7 [16:06:02]New connection [16:06:02]New thread 3067014500 created [16:06:02]Thread 3066871140 joined [16:06:02]Waiting for new connection... [16:06:02] Sock 7.Parse request [16:06:02]Sock 7.Check first char [16:06:02]Sock 7.First char is OK [16:06:02]request: POST /json_proto HTTP/1.0 [16:06:02]Method: POST [16:06:02]URL: /json_proto [16:06:02]Method is POST - this is cgi request [16:06:02]url: /json_proto [16:06:02]query_string will be loaded in cgi processing [16:06:02]execute_cgi json_proto POST (null) [16:06:02]execute_cgi path=json_proto method=POST [16:06:02]POST find Content-Length [16:06:02]Host: 172.17.62.67:8080 [16:06:02]Content-Length: 816 [16:06:02]Content-Type: application/json [16:06:02] [16:06:02]POST finish read [16:06:02]Found Content-Length = 816 [16:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "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.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:02]execute_script... [16:06: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)195905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "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.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:02]POST & json_proto [16:06:02]process_json_proto [16:06:02]json parsed OK: [16:06:02]protocol is kg_v1.0 [16:06:02]action value=close_receipt [16:06:02]process_action close_receipt [16:06:02]cmd_close_receipt [16:06:02]MH_GetDate [16:06:02]Write to MH i2c: F0 00 00 09 9C 94 [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: F0 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: F0 05 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: F0 05 00 09 9C 00 F9 2B EF 65 11 [16:06:02]GetLastDocTimeStamp 1710172975 [16:06:02]current date 1710173177 [16:06:02]FM_GetShiftState [16:06:02]SAM_PROTO_GetShiftState [16:06:02]wFMCommunicate request_size=4 [16:06:02]MH_SAM_APDU [16:06:02]CAPDU: 80 13 01 00 [16:06:02]Write to MH i2c: E2 08 00 0A 9C 80 13 01 00 00 00 00 00 23 [16:06:02]Write i2c OK [16:06:02]MH_I2C_Read... [16:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:02]Read from MH i2c: E2 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 0E 00 [16:06:02]MH_I2C_Read... [16:06:02]Read from MH i2c: E2 0E 00 0A 9C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BF [16:06:02]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:06:02]wFMCommunicate OK [16:06:02]SAM_PROTO_GetShiftState done [16:06:02]FM_GetShiftState done [16:06:02]opened in 1710115571 [16:06:02]opened+sec_in_day 1710201971 [16:06:02]quantity*price = 50040 [16:06:02]sum+1 = 50041 [16:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 120 11.03.2024 16:06 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94945 ФПД: 279738729384420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T160617&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94945&fm=279738729384420&tin=02508201610067®Number=0000000000090555&sum=50040 [16:06:03]StoreToDocumentArchive [16:06:03]shift 326 fd 94945 [16:06:03]save to /storage/0326/doc_00094945 [16:06:03]save last doc name /storage/0326/doc_00094945 to /storage/kkm_last_doc_name [16:06:03]save OK [16:06:03]Clear old archive folders... [16:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:03]tlvbuf is 002E9940 [16:06:03]SAM_PROTO_ClearQueue [16:06:03]wFMCommunicate request_size=4 [16:06:03]MH_SAM_APDU [16:06:03]CAPDU: 80 09 00 00 [16:06:03]Write to MH i2c: E2 08 00 17 9C 80 09 00 00 00 00 00 00 25 [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:03]Read from MH i2c: E2 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 03 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 03 00 17 9C 00 90 00 27 [16:06:03]RAPDU: 90 00 [16:06:03]wFMCommunicate OK [16:06:03]SAM_PROTO_ClearQueue done [16:06:03]KKMCreateOFDPacket [16:06:03]OFDProtocolAddRootSTLVToBuf [16:06:03]FM_MakeSignedData [16:06:03]FM_MakeSignedData [16:06:03]SAM_PROTO_SignData [16:06:03]wFMCommunicate request_size=4 [16:06:03]MH_SAM_APDU [16:06:03]CAPDU: 80 0D 01 02 [16:06:03]Write to MH i2c: E2 08 00 18 9C 80 0D 01 02 00 00 00 00 2D [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:03]Read from MH i2c: E2 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 03 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 03 00 18 9C 00 90 00 28 [16:06:03]RAPDU: 90 00 [16:06:03]wFMCommunicate OK [16:06:03]wFMCommunicate request_size=255 [16:06:03]MH_SAM_APDU [16:06:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F9 2B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 72 01 00 35 04 06 00 FE [16:06:03]Write to MH i2c: E2 02 01 19 9C 80 0D 02 02 FA 00 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 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F9 2B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 72 01 00 35 04 06 00 FE 00 00 80 [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]OFD Sender: No OFD packet to send [16:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:03]Read from MH i2c: E2 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 03 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 03 00 19 9C 00 90 00 29 [16:06:03]RAPDU: 90 00 [16:06:03]wFMCommunicate OK [16:06:03]wFMCommunicate request_size=10 [16:06:03]MH_SAM_APDU [16:06:03]CAPDU: 80 0D 02 02 05 6B BF 98 49 E4 [16:06:03]Write to MH i2c: E2 0D 00 1A 9C 80 0D 02 02 05 00 6B BF 98 49 E4 00 00 29 [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:03]Read from MH i2c: E2 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 03 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 03 00 1A 9C 00 90 00 2A [16:06:03]RAPDU: 90 00 [16:06:03]wFMCommunicate OK [16:06:03]wFMCommunicate request_size=4 [16:06:03]MH_SAM_APDU [16:06:03]CAPDU: 80 0D 03 02 [16:06:03]Write to MH i2c: E2 08 00 1B 9C 80 0D 03 02 00 00 00 00 32 [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:03]Read from MH i2c: E2 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 0B 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 0B 00 1B 9C 00 94 7E C1 04 0C 6F 87 B0 90 00 BC [16:06:03]RAPDU: 94 7E C1 04 0C 6F 87 B0 90 00 [16:06:03]wFMCommunicate OK [16:06:03]SAM_PROTO_SignData done [16:06:03]FM_MakeSignedData done [16:06:03]CreateOFDProtocolMessage [16:06:03]wFMCommunicate request_size=4 [16:06:03]MH_SAM_APDU [16:06:03]CAPDU: 80 11 00 00 [16:06:03]Write to MH i2c: E2 08 00 1C 9C 80 11 00 00 00 00 00 00 32 [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:03]Read from MH i2c: E2 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 17 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: E2 17 00 1C 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 82 [16:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:06:03]wFMCommunicate OK [16:06:03]CreateOFDProtocolMessage done [16:06:03]OFDSenderStorePacket 94945 [16:06:03]StoreOFDPacket docnum=94945 [16:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A4 C4 07 01 1A FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F9 2B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 72 01 00 35 04 06 00 FE 6B BF 98 49 E4 94 7E C1 04 0C 6F 87 B0 [16:06:03]CheckFolder [16:06:03]dirname=/storage/ofd_packets [16:06:03]CheckFolder done [16:06:03]ProducePacketName [16:06:03]name=ofd_packets/00094945 [16:06:03]NVStorageSaveData ofd_packets/00094945 [16:06:03]File name is /storage/ofd_packets/00094945 [16:06:03]Write 301 bytes [16:06:03]NVStorageSaveData done [16:06:03]OFDSenderStorePacket done [16:06:03]KKMCreateOFDPacket done [16:06:03]NVStorageSaveData kkm_last_timestamp [16:06:03]File name is /storage/kkm_last_timestamp [16:06:03]Write 4 bytes [16:06:03]NVStorageSaveData done [16:06:03]ExternCall_PrintAddStr [16:06:03]wPrintStart [16:06:03]Write to MH i2c: 01 00 00 1D 9C B9 [16:06:03]Write i2c OK [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: 01 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: 01 07 00 [16:06:03]MH_I2C_Read... [16:06:03]Read from MH i2c: 01 07 00 1D 9C 00 80 00 00 00 FF 0F 4E [16:06:03]RasterBufferAndPrint [16:06:03]line Счет N : (1)195905 [16:06:03]line ИНН: 02508201610067 [16:06:03]line Контрольно-Кассовый Чек [16:06:03]line ПРОДАЖА [16:06:03]line ТРК (МРК, ГНК) : 41 [16:06:03]line Товар: 2710124500 [16:06:03]line Аи-95-К-5 [16:06:03]line 7.200 * 69.50 [16:06:03]line = 500.40 [16:06:03]line НДС 12% НСП 1% [16:06:03]line > о реализуемом товаре [16:06:03]line ИТОГО: 500.40 [16:06:03]line НСП 1% : 4.43 [16:06:03]line НДС 12% : 53.14 [16:06:03]line Наличными: 0.00 [16:06:03]line Безнал.: 500.40 [16:06:03]line Место: АЗС № 6 "Партнер Нефть" [16:06:03]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:06:03]line СНО: Общий режим [16:06:03]line Чек 120 11.03.2024 16:06 [16:06:03]line Смена: 326 ФФД: 1.0 [16:06:03]line ЗНМ: 0300000009 [16:06:03]line РНМ: 0000000000090555 [16:06:03]line Версия ККМ: 001 [16:06:03]line Платежная система: Бакай Банк [16:06:03]line ФМ: 0000000000874811 [16:06:03]line ФД: 94945 [16:06:03]line ФПД: 279738729384420 [16:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T160617&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94945&fm=279738729384420&tin=02508201610067®Number=0000000000090555&sum=50040 [16:06:04]OFD Sender: Processing packet 94945 [packets to send 30, broken 29] [16:06:04]ProducePacketName [16:06:04]name=ofd_packets/00094945 [16:06:04]OFD Sender: To server: pG, [16:06:04]CommunicateWithHost lk.salyk.kg:30040 [16:06:04]ConnectInit lk.salyk.kg [16:06:04]written 0, free lines is 4095 [16:06:04]Connected sock=10 [16:06: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 31 31 0F 01 00 00 A4 C4 07 01 1A FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F9 2B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 72 01 00 35 04 06 00 FE 6B BF 98 49 E4 94 7E C1 04 0C 6F 87 B0 [16:06: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 31 31 4F 00 00 00 AD FD 47 00 96 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E1 72 01 00 F4 03 04 00 52 D7 EE 65 B6 04 01 00 00 8A 09 6B BE 84 D5 BE 57 [16:06:04]CommunicateWithHost err = 0 [16:06:04]CheckOFDResponse [16:06:04]1017 (14) - 77093643461234 [16:06:04]1041 (16) - 0000000000874811 [16:06:04]1040 (4) - 94945 [16:06:04]1012 (4) - 11.03.2024 10:05 [16:06:04]1206 (1) - 0 [16:06:04]OFD Sender: Remove packet 94945 [16:06:04]ProducePacketName [16:06:04]name=ofd_packets/00094945 [16:06:04]NVStorageDeleteData [16:06:04]Write to MH i2c: 01 00 00 47 9C E3 [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: 01 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: 01 07 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: 01 07 00 47 9C 00 80 00 00 00 56 0D CD [16:06:04]RasterBufferAndPrint [16:06:04]line [16:06:04]line [16:06:04]line [16:06:04]line [16:06:04]line [16:06:04]written 0, free lines is 3420 [16:06:04]process_action close_receipt done [16:06:04]requested_data is exist [16:06:04]produce_requested_data [16:06:04]requested_item fm.sn is exist - process it [16:06:04]wFMCommunicate request_size=4 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 11 00 00 [16:06:04]Write to MH i2c: E2 08 00 4E 9C 80 11 00 00 00 00 00 00 64 [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 17 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 17 00 4E 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [16:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:06:04]wFMCommunicate OK [16:06:04]requested_item fd.num is exist - process it [16:06:04]SAM_PROTO_GetFieldsCounters [16:06:04]wFMCommunicate request_size=4 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 13 00 00 [16:06:04]Write to MH i2c: E2 08 00 4F 9C 80 13 00 00 00 00 00 00 67 [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 62 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 62 00 4F 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [16:06: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:04]wFMCommunicate OK [16:06:04]SAM_PROTO_GetFieldsCounters done [16:06:04]requested_item shift.num is exist - process it [16:06:04]requested_item shift.opened is exist - process it [16:06:04]req_shift_opened [16:06:04]FM_GetShiftState [16:06:04]SAM_PROTO_GetShiftState [16:06:04]wFMCommunicate request_size=4 [16:06:04]MH_SAM_APDU [16:06:04]CAPDU: 80 13 01 00 [16:06:04]Write to MH i2c: E2 08 00 50 9C 80 13 01 00 00 00 00 00 69 [16:06:04]Write i2c OK [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 [16:06:04]MH_I2C_Read... [16:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:04]Read from MH i2c: E2 0E 00 [16:06:04]MH_I2C_Read... [16:06:04]Read from MH i2c: E2 0E 00 50 9C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 05 [16:06:04]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:06:04]wFMCommunicate OK [16:06:04]SAM_PROTO_GetShiftState done [16:06:04]FM_GetShiftState done [16:06:04]req_shift_opened done [16:06:04]requested_item shift.open_date is exist - process it [16:06:04]req_shift_open_date [16:06:04]req_shift_open_date done [16:06:04]produce_requested_data done [16:06:04]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94945,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:06:04]process_action_free close_receipt [16:06:04]json_value_free [16:06:04]json_value_free done [16:06:04]process_json_proto returns [16:06:04]Send response to host [16:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94945,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:06:05]free response buf [16:06:05]execute_script done [16:06:05]execute_script returns [16:06:05]free content buf [16:06:05]Sock 7.Close socket [16:06:05]Sock 7.Thread stoped [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:18]accept exits with 9 [16:07:18]New connection [16:07:18]New thread 3066871140 created [16:07:18]Thread 3067014500 joined [16:07:18]Waiting for new connection... [16:07:18] Sock 9.Parse request [16:07:18]Sock 9.Check first char [16:07:18]Sock 9.First char is OK [16:07:18]request: POST /json_proto HTTP/1.0 [16:07:18]Method: POST [16:07:18]URL: /json_proto [16:07:18]Method is POST - this is cgi request [16:07:18]url: /json_proto [16:07:18]query_string will be loaded in cgi processing [16:07:18]execute_cgi json_proto POST (null) [16:07:18]execute_cgi path=json_proto method=POST [16:07:18]POST find Content-Length [16:07:18]Host: 172.17.62.67:8080 [16:07:18]Content-Length: 816 [16:07:18]Content-Type: application/json [16:07:18] [16:07:18]POST finish read [16:07:18]Found Content-Length = 816 [16:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:18]execute_script... [16:07:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "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.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:18]POST & json_proto [16:07:18]process_json_proto [16:07:18]json parsed OK: [16:07:18]protocol is kg_v1.0 [16:07:18]action value=close_receipt [16:07:18]process_action close_receipt [16:07:18]cmd_close_receipt [16:07:18]MH_GetDate [16:07:18]Write to MH i2c: F0 00 00 51 9C DC [16:07:18]Write i2c OK [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: F0 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: F0 05 00 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: F0 05 00 51 9C 00 45 2C EF 65 A6 [16:07:18]GetLastDocTimeStamp 1710173177 [16:07:18]current date 1710173253 [16:07:18]FM_GetShiftState [16:07:18]SAM_PROTO_GetShiftState [16:07:18]wFMCommunicate request_size=4 [16:07:18]MH_SAM_APDU [16:07:18]CAPDU: 80 13 01 00 [16:07:18]Write to MH i2c: E2 08 00 52 9C 80 13 01 00 00 00 00 00 6B [16:07:18]Write i2c OK [16:07:18]MH_I2C_Read... [16:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:18]Read from MH i2c: E2 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: E2 0E 00 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: E2 0E 00 52 9C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 07 [16:07:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:07:18]wFMCommunicate OK [16:07:18]SAM_PROTO_GetShiftState done [16:07:18]FM_GetShiftState done [16:07:18]opened in 1710115571 [16:07:18]opened+sec_in_day 1710201971 [16:07:18]quantity*price = 100039 [16:07:18]sum+1 = 100041 [16:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 121 11.03.2024 16:07 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94946 ФПД: 139886010355404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T160733&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94946&fm=139886010355404&tin=02508201610067®Number=0000000000090555&sum=100040 [16:07:19]StoreToDocumentArchive [16:07:19]shift 326 fd 94946 [16:07:19]save to /storage/0326/doc_00094946 [16:07:19]save last doc name /storage/0326/doc_00094946 to /storage/kkm_last_doc_name [16:07:19]save OK [16:07:19]Clear old archive folders... [16:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:07:19]tlvbuf is 003E3510 [16:07:19]SAM_PROTO_ClearQueue [16:07:19]wFMCommunicate request_size=4 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 09 00 00 [16:07:19]Write to MH i2c: E2 08 00 5F 9C 80 09 00 00 00 00 00 00 6D [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:19]Read from MH i2c: E2 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 5F 9C 00 90 00 6F [16:07:19]RAPDU: 90 00 [16:07:19]wFMCommunicate OK [16:07:19]SAM_PROTO_ClearQueue done [16:07:19]KKMCreateOFDPacket [16:07:19]OFDProtocolAddRootSTLVToBuf [16:07:19]FM_MakeSignedData [16:07:19]FM_MakeSignedData [16:07:19]SAM_PROTO_SignData [16:07:19]wFMCommunicate request_size=4 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 0D 01 02 [16:07:19]Write to MH i2c: E2 08 00 60 9C 80 0D 01 02 00 00 00 00 75 [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:19]Read from MH i2c: E2 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 60 9C 00 90 00 70 [16:07:19]RAPDU: 90 00 [16:07:19]wFMCommunicate OK [16:07:19]wFMCommunicate request_size=255 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 45 2C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 72 01 00 35 04 06 00 7F 39 BF F4 [16:07:19]Write to MH i2c: E2 02 01 61 9C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 45 2C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 72 01 00 35 04 06 00 7F 39 BF F4 00 00 43 [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:19]Read from MH i2c: E2 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 61 9C 00 90 00 71 [16:07:19]RAPDU: 90 00 [16:07:19]wFMCommunicate OK [16:07:19]wFMCommunicate request_size=7 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 0D 02 02 02 CE CC [16:07:19]Write to MH i2c: E2 0A 00 62 9C 80 0D 02 02 02 00 CE CC 00 00 16 [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:19]Read from MH i2c: E2 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 62 9C 00 90 00 72 [16:07:19]RAPDU: 90 00 [16:07:19]wFMCommunicate OK [16:07:19]wFMCommunicate request_size=4 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 0D 03 02 [16:07:19]Write to MH i2c: E2 08 00 63 9C 80 0D 03 02 00 00 00 00 7A [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:19]Read from MH i2c: E2 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 0B 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 0B 00 63 9C 00 8C 72 A0 6B 7F 4A 71 57 90 00 15 [16:07:19]RAPDU: 8C 72 A0 6B 7F 4A 71 57 90 00 [16:07:19]wFMCommunicate OK [16:07:19]SAM_PROTO_SignData done [16:07:19]FM_MakeSignedData done [16:07:19]CreateOFDProtocolMessage [16:07:19]wFMCommunicate request_size=4 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 11 00 00 [16:07:19]Write to MH i2c: E2 08 00 64 9C 80 11 00 00 00 00 00 00 7A [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:19]Read from MH i2c: E2 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 17 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 17 00 64 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CA [16:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:07:19]wFMCommunicate OK [16:07:19]CreateOFDProtocolMessage done [16:07:19]OFDSenderStorePacket 94946 [16:07:19]StoreOFDPacket docnum=94946 [16:07:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 14 C9 04 01 74 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 45 2C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 72 01 00 35 04 06 00 7F 39 BF F4 CE CC 8C 72 A0 6B 7F 4A 71 57 [16:07:19]CheckFolder [16:07:19]dirname=/storage/ofd_packets [16:07:19]CheckFolder done [16:07:19]ProducePacketName [16:07:19]name=ofd_packets/00094946 [16:07:19]NVStorageSaveData ofd_packets/00094946 [16:07:19]File name is /storage/ofd_packets/00094946 [16:07:19]Write 298 bytes [16:07:19]NVStorageSaveData done [16:07:19]OFDSenderStorePacket done [16:07:19]KKMCreateOFDPacket done [16:07:19]NVStorageSaveData kkm_last_timestamp [16:07:19]File name is /storage/kkm_last_timestamp [16:07:19]OFD Sender: Processing packet 94946 [packets to send 30, broken 29] [16:07:19]ProducePacketName [16:07:19]name=ofd_packets/00094946 [16:07:19]OFD Sender: To server: pG, [16:07:19]CommunicateWithHost lk.salyk.kg:30040 [16:07:19]ConnectInit lk.salyk.kg [16:07:19]Write 4 bytes [16:07:19]NVStorageSaveData done [16:07:19]ExternCall_PrintAddStr [16:07:19]wPrintStart [16:07:19]Write to MH i2c: 01 00 00 65 9C 01 [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: 01 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: 01 07 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: 01 07 00 65 9C 00 80 00 00 00 FF 0F 96 [16:07:19]RasterBufferAndPrint [16:07:19]line Счет N : (1)195906 [16:07:19]line ИНН: 02508201610067 [16:07:19]line Контрольно-Кассовый Чек [16:07:19]line ПРОДАЖА [16:07:19]line ТРК (МРК, ГНК) : 51 [16:07:19]line Товар: 2710194210 [16:07:19]line ДТ-К-5 [16:07:19]line 14.110 * 70.90 [16:07:19]line = 1000.40 [16:07:19]line НДС 12% НСП 1% [16:07:19]line > о реализуемом товаре [16:07:19]line ИТОГО: 1000.40 [16:07:19]line НСП 1% : 8.85 [16:07:19]line НДС 12% : 106.24 [16:07:19]line Наличными: 0.00 [16:07:19]line Безнал.: 1000.40 [16:07:19]line Место: АЗС № 6 "Партнер Нефть" [16:07:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:07:19]line СНО: Общий режим [16:07:19]line Чек 121 11.03.2024 16:07 [16:07:19]line Смена: 326 ФФД: 1.0 [16:07:19]line ЗНМ: 0300000009 [16:07:19]line РНМ: 0000000000090555 [16:07:19]line Версия ККМ: 001 [16:07:20]line Платежная система: Бакай Банк [16:07:20]line ФМ: 0000000000874811 [16:07:20]line ФД: 94946 [16:07:20]line ФПД: 139886010355404 [16:07:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T160733&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94946&fm=139886010355404&tin=02508201610067®Number=0000000000090555&sum=100040 [16:07:20]Connected sock=11 [16:07: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 31 31 0C 01 00 00 14 C9 04 01 74 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 45 2C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E2 72 01 00 35 04 06 00 7F 39 BF F4 CE CC 8C 72 A0 6B 7F 4A 71 57 [16:07:20]written 0, free lines is 4095 [16:07: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 31 31 4F 00 00 00 7F FE 47 00 0A 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 31 31 10 04 04 00 E2 72 01 00 F4 03 04 00 9E D7 EE 65 B6 04 01 00 00 C4 41 A0 73 A0 63 D1 A8 [16:07:20]CommunicateWithHost err = 0 [16:07:20]CheckOFDResponse [16:07:20]1017 (14) - 77093643461234 [16:07:20]1041 (16) - 0000000000874811 [16:07:20]1040 (4) - 94946 [16:07:20]1012 (4) - 11.03.2024 10:06 [16:07:20]1206 (1) - 0 [16:07:20]OFD Sender: Remove packet 94946 [16:07:20]ProducePacketName [16:07:20]name=ofd_packets/00094946 [16:07:20]NVStorageDeleteData [16:07:20]Write to MH i2c: 01 00 00 8F 9C 2B [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 07 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 07 00 8F 9C 00 80 00 00 00 59 0D 18 [16:07:20]RasterBufferAndPrint [16:07:20]line [16:07:20]line [16:07:20]line [16:07:20]line [16:07:20]line [16:07:20]written 0, free lines is 3423 [16:07:20]process_action close_receipt done [16:07:20]requested_data is exist [16:07:20]produce_requested_data [16:07:20]requested_item fm.sn is exist - process it [16:07:20]wFMCommunicate request_size=4 [16:07:20]MH_SAM_APDU [16:07:20]CAPDU: 80 11 00 00 [16:07:20]Write to MH i2c: E2 08 00 96 9C 80 11 00 00 00 00 00 00 AC [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:20]Read from MH i2c: E2 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 17 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 17 00 96 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FC [16:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:07:20]wFMCommunicate OK [16:07:20]requested_item fd.num is exist - process it [16:07:20]SAM_PROTO_GetFieldsCounters [16:07:20]wFMCommunicate request_size=4 [16:07:20]MH_SAM_APDU [16:07:20]CAPDU: 80 13 00 00 [16:07:20]Write to MH i2c: E2 08 00 97 9C 80 13 00 00 00 00 00 00 AF [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]OFD Sender: No OFD packet to send [16:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:20]Read from MH i2c: E2 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 62 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 62 00 97 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [16:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:20]wFMCommunicate OK [16:07:20]SAM_PROTO_GetFieldsCounters done [16:07:20]requested_item shift.num is exist - process it [16:07:20]requested_item shift.opened is exist - process it [16:07:20]req_shift_opened [16:07:20]FM_GetShiftState [16:07:20]SAM_PROTO_GetShiftState [16:07:20]wFMCommunicate request_size=4 [16:07:20]MH_SAM_APDU [16:07:20]CAPDU: 80 13 01 00 [16:07:20]Write to MH i2c: E2 08 00 98 9C 80 13 01 00 00 00 00 00 B1 [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:20]Read from MH i2c: E2 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 0E 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 0E 00 98 9C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4D [16:07:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:07:20]wFMCommunicate OK [16:07:20]SAM_PROTO_GetShiftState done [16:07:20]FM_GetShiftState done [16:07:20]req_shift_opened done [16:07:20]requested_item shift.open_date is exist - process it [16:07:20]req_shift_open_date [16:07:20]req_shift_open_date done [16:07:20]produce_requested_data done [16:07:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94946,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:07:20]process_action_free close_receipt [16:07:20]json_value_free [16:07:20]json_value_free done [16:07:20]process_json_proto returns [16:07:20]Send response to host [16:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94946,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:07:20]free response buf [16:07:20]execute_script done [16:07:20]execute_script returns [16:07:20]free content buf [16:07:20]Sock 9.Close socket [16:07:20]Sock 9.Thread stoped [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]accept exits with 7 [16:08:35]New connection [16:08:35]New thread 3067014500 created [16:08:35]Thread 3066871140 joined [16:08:35]Waiting for new connection... [16:08:35] Sock 7.Parse request [16:08:35]Sock 7.Check first char [16:08:35]Sock 7.First char is OK [16:08:35]request: POST /json_proto HTTP/1.0 [16:08:35]Method: POST [16:08:35]URL: /json_proto [16:08:35]Method is POST - this is cgi request [16:08:35]url: /json_proto [16:08:35]query_string will be loaded in cgi processing [16:08:35]execute_cgi json_proto POST (null) [16:08:35]execute_cgi path=json_proto method=POST [16:08:35]POST find Content-Length [16:08:35]Host: 172.17.62.67:8080 [16:08:35]Content-Length: 682 [16:08:35]Content-Type: application/json [16:08:35] [16:08:35]POST finish read [16:08:35]Found Content-Length = 682 [16:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:35]execute_script... [16:08: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)195907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:35]POST & json_proto [16:08:35]process_json_proto [16:08:35]json parsed OK: [16:08:35]protocol is kg_v1.0 [16:08:35]action value=close_receipt [16:08:35]process_action close_receipt [16:08:35]cmd_close_receipt [16:08:35]MH_GetDate [16:08:35]Write to MH i2c: F0 00 00 99 9C 24 [16:08:35]Write i2c OK [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: F0 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: F0 05 00 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: F0 05 00 99 9C 00 92 2C EF 65 3B [16:08:35]GetLastDocTimeStamp 1710173253 [16:08:35]current date 1710173330 [16:08:35]FM_GetShiftState [16:08:35]SAM_PROTO_GetShiftState [16:08:35]wFMCommunicate request_size=4 [16:08:35]MH_SAM_APDU [16:08:35]CAPDU: 80 13 01 00 [16:08:35]Write to MH i2c: E2 08 00 9A 9C 80 13 01 00 00 00 00 00 B3 [16:08:35]Write i2c OK [16:08:35]MH_I2C_Read... [16:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:35]Read from MH i2c: E2 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: E2 0E 00 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: E2 0E 00 9A 9C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4F [16:08:35]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:08:35]wFMCommunicate OK [16:08:35]SAM_PROTO_GetShiftState done [16:08:35]FM_GetShiftState done [16:08:35]opened in 1710115571 [16:08:35]opened+sec_in_day 1710201971 [16:08:35]quantity*price = 100011 [16:08:35]sum+1 = 100012 [16:08:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 122 11.03.2024 16:08 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94947 ФПД: 141084585652791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T160850&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94947&fm=141084585652791&tin=02508201610067®Number=0000000000090555&sum=100000 [16:08:36]StoreToDocumentArchive [16:08:36]shift 326 fd 94947 [16:08:36]save to /storage/0326/doc_00094947 [16:08:36]save last doc name /storage/0326/doc_00094947 to /storage/kkm_last_doc_name [16:08:36]save OK [16:08:36]Clear old archive folders... [16:08:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:36]tlvbuf is 00430C60 [16:08:36]SAM_PROTO_ClearQueue [16:08:36]wFMCommunicate request_size=4 [16:08:36]MH_SAM_APDU [16:08:36]CAPDU: 80 09 00 00 [16:08:36]Write to MH i2c: E2 08 00 A7 9C 80 09 00 00 00 00 00 00 B5 [16:08:36]Write i2c OK [16:08:36]MH_I2C_Read... [16:08:36]Read from MH i2c: E2 [16:08:36]MH_I2C_Read... [16:08:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:36]Read from MH i2c: E2 03 00 [16:08:36]MH_I2C_Read... [16:08:36]Read from MH i2c: E2 03 00 A7 9C 00 90 00 B7 [16:08:36]RAPDU: 90 00 [16:08:36]wFMCommunicate OK [16:08:36]SAM_PROTO_ClearQueue done [16:08:36]KKMCreateOFDPacket [16:08:36]OFDProtocolAddRootSTLVToBuf [16:08:36]FM_MakeSignedData [16:08:36]FM_MakeSignedData [16:08:36]SAM_PROTO_SignData [16:08:36]wFMCommunicate request_size=4 [16:08:36]MH_SAM_APDU [16:08:36]CAPDU: 80 0D 01 02 [16:08:36]Write to MH i2c: E2 08 00 A8 9C 80 0D 01 02 00 00 00 00 BD [16:08:36]Write i2c OK [16:08:36]MH_I2C_Read... [16:08:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:36]Read from MH i2c: E2 [16:08:36]MH_I2C_Read... [16:08:36]Read from MH i2c: E2 03 00 [16:08:36]MH_I2C_Read... [16:08:36]Read from MH i2c: E2 03 00 A8 9C 00 90 00 B8 [16:08:36]RAPDU: 90 00 [16:08:36]wFMCommunicate OK [16:08:36]wFMCommunicate request_size=255 [16:08:36]MH_SAM_APDU [16:08:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 92 2C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 72 01 00 35 04 06 00 80 [16:08:36]Write to MH i2c: E2 02 01 A9 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 92 2C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 72 01 00 35 04 06 00 80 00 00 0E [16:08:36]Write i2c OK [16:08:36]MH_I2C_Read... [16:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:37]Read from MH i2c: E2 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 03 00 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 03 00 A9 9C 00 90 00 B9 [16:08:37]RAPDU: 90 00 [16:08:37]wFMCommunicate OK [16:08:37]wFMCommunicate request_size=10 [16:08:37]MH_SAM_APDU [16:08:37]CAPDU: 80 0D 02 02 05 50 D0 9C 72 37 [16:08:37]Write to MH i2c: E2 0D 00 AA 9C 80 0D 02 02 05 00 50 D0 9C 72 37 00 00 2F [16:08:37]Write i2c OK [16:08:37]MH_I2C_Read... [16:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:37]Read from MH i2c: E2 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 03 00 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 03 00 AA 9C 00 90 00 BA [16:08:37]RAPDU: 90 00 [16:08:37]wFMCommunicate OK [16:08:37]wFMCommunicate request_size=4 [16:08:37]MH_SAM_APDU [16:08:37]CAPDU: 80 0D 03 02 [16:08:37]Write to MH i2c: E2 08 00 AB 9C 80 0D 03 02 00 00 00 00 C2 [16:08:37]Write i2c OK [16:08:37]MH_I2C_Read... [16:08:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:37]Read from MH i2c: E2 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 0B 00 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 0B 00 AB 9C 00 4F C1 7F 80 16 80 4F 98 90 00 4F [16:08:37]RAPDU: 4F C1 7F 80 16 80 4F 98 90 00 [16:08:37]wFMCommunicate OK [16:08:37]SAM_PROTO_SignData done [16:08:37]FM_MakeSignedData done [16:08:37]CreateOFDProtocolMessage [16:08:37]wFMCommunicate request_size=4 [16:08:37]MH_SAM_APDU [16:08:37]CAPDU: 80 11 00 00 [16:08:37]Write to MH i2c: E2 08 00 AC 9C 80 11 00 00 00 00 00 00 C2 [16:08:37]Write i2c OK [16:08:37]MH_I2C_Read... [16:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:37]Read from MH i2c: E2 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 17 00 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 17 00 AC 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [16:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:08:37]wFMCommunicate OK [16:08:37]CreateOFDProtocolMessage done [16:08:37]OFDSenderStorePacket 94947 [16:08:37]StoreOFDPacket docnum=94947 [16:08:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B 41 07 01 4A 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 92 2C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 72 01 00 35 04 06 00 80 50 D0 9C 72 37 4F C1 7F 80 16 80 4F 98 [16:08:37]CheckFolder [16:08:37]dirname=/storage/ofd_packets [16:08:37]CheckFolder done [16:08:37]ProducePacketName [16:08:37]name=ofd_packets/00094947 [16:08:37]NVStorageSaveData ofd_packets/00094947 [16:08:37]File name is /storage/ofd_packets/00094947 [16:08:37]Write 301 bytes [16:08:37]NVStorageSaveData done [16:08:37]OFDSenderStorePacket done [16:08:37]KKMCreateOFDPacket done [16:08:37]NVStorageSaveData kkm_last_timestamp [16:08:37]File name is /storage/kkm_last_timestamp [16:08:37]Write 4 bytes [16:08:37]NVStorageSaveData done [16:08:37]ExternCall_PrintAddStr [16:08:37]wPrintStart [16:08:37]Write to MH i2c: 01 00 00 AD 9C 49 [16:08:37]Write i2c OK [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: 01 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: 01 07 00 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: 01 07 00 AD 9C 00 80 00 00 00 FF 0F DE [16:08:37]RasterBufferAndPrint [16:08:37]line Счет N : (1)195907 [16:08:37]line ИНН: 02508201610067 [16:08:37]line Контрольно-Кассовый Чек [16:08:37]line ПРОДАЖА [16:08:37]line ТРК (МРК, ГНК) : 32 [16:08:37]line Товар: 2710124130 [16:08:37]line Аи-92-К-5 [16:08:37]line 15.900 * 62.90 [16:08:37]line = 1000.11 [16:08:37]line НДС 12% НСП 1% [16:08:37]line > о реализуемом товаре [16:08:37]line ОКРУГЛЕНИЕ: -0.11 [16:08:37]line ИТОГО: 1000.00 [16:08:37]line Внесено: 1000.00 [16:08:37]line СДАЧА: 0.00 [16:08:37]line НСП 1% : 8.85 [16:08:37]line НДС 12% : 106.21 [16:08:37]line Наличными: 1000.00 [16:08:37]line Безнал.: 0.00 [16:08:37]line Место: АЗС № 6 "Партнер Нефть" [16:08:37]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:08:37]line СНО: Общий режим [16:08:37]line Чек 122 11.03.2024 16:08 [16:08:37]line Смена: 326 ФФД: 1.0 [16:08:37]line ЗНМ: 0300000009 [16:08:37]line РНМ: 0000000000090555 [16:08:37]line Версия ККМ: 001 [16:08:37]line ФМ: 0000000000874811 [16:08:37]line ФД: 94947 [16:08:37]line ФПД: 141084585652791 [16:08:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T160850&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94947&fm=141084585652791&tin=02508201610067®Number=0000000000090555&sum=100000 [16:08:37]OFD Sender: Processing packet 94947 [packets to send 30, broken 29] [16:08:37]ProducePacketName [16:08:37]name=ofd_packets/00094947 [16:08:37]OFD Sender: To server: pG, [16:08:37]CommunicateWithHost lk.salyk.kg:30040 [16:08:37]ConnectInit lk.salyk.kg [16:08:37]written 0, free lines is 4095 [16:08:37]Connected sock=10 [16:08: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 31 31 0F 01 00 00 4B 41 07 01 4A 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 92 2C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E3 72 01 00 35 04 06 00 80 50 D0 9C 72 37 4F C1 7F 80 16 80 4F 98 [16:08: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 31 31 4F 00 00 00 8C DF 47 00 B3 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 31 31 10 04 04 00 E3 72 01 00 F4 03 04 00 EB D7 EE 65 B6 04 01 00 00 C2 CA 8A 69 CF AA 7E 1A [16:08:37]CommunicateWithHost err = 0 [16:08:37]CheckOFDResponse [16:08:37]1017 (14) - 77093643461234 [16:08:37]1041 (16) - 0000000000874811 [16:08:37]1040 (4) - 94947 [16:08:37]1012 (4) - 11.03.2024 10:07 [16:08:37]1206 (1) - 0 [16:08:37]OFD Sender: Remove packet 94947 [16:08:37]ProducePacketName [16:08:37]name=ofd_packets/00094947 [16:08:37]NVStorageDeleteData [16:08:38]Write to MH i2c: 01 00 00 D8 9C 74 [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: 01 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: 01 07 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: 01 07 00 D8 9C 00 80 00 00 00 4F 0D 57 [16:08:38]RasterBufferAndPrint [16:08:38]line [16:08:38]line [16:08:38]line [16:08:38]line [16:08:38]line [16:08:38]written 0, free lines is 3413 [16:08:38]process_action close_receipt done [16:08:38]requested_data is exist [16:08:38]produce_requested_data [16:08:38]requested_item fm.sn is exist - process it [16:08:38]wFMCommunicate request_size=4 [16:08:38]MH_SAM_APDU [16:08:38]CAPDU: 80 11 00 00 [16:08:38]Write to MH i2c: E2 08 00 DF 9C 80 11 00 00 00 00 00 00 F5 [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:38]Read from MH i2c: E2 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 17 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 17 00 DF 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [16:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:08:38]wFMCommunicate OK [16:08:38]requested_item fd.num is exist - process it [16:08:38]SAM_PROTO_GetFieldsCounters [16:08:38]wFMCommunicate request_size=4 [16:08:38]MH_SAM_APDU [16:08:38]CAPDU: 80 13 00 00 [16:08:38]Write to MH i2c: E2 08 00 E0 9C 80 13 00 00 00 00 00 00 F8 [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:38]Read from MH i2c: E2 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 62 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 62 00 E0 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:08: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:38]wFMCommunicate OK [16:08:38]SAM_PROTO_GetFieldsCounters done [16:08:38]requested_item shift.num is exist - process it [16:08:38]requested_item shift.opened is exist - process it [16:08:38]req_shift_opened [16:08:38]FM_GetShiftState [16:08:38]SAM_PROTO_GetShiftState [16:08:38]wFMCommunicate request_size=4 [16:08:38]MH_SAM_APDU [16:08:38]CAPDU: 80 13 01 00 [16:08:38]Write to MH i2c: E2 08 00 E1 9C 80 13 01 00 00 00 00 00 FA [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:38]Read from MH i2c: E2 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 0E 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 0E 00 E1 9C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 96 [16:08:38]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:08:38]wFMCommunicate OK [16:08:38]SAM_PROTO_GetShiftState done [16:08:38]FM_GetShiftState done [16:08:38]req_shift_opened done [16:08:38]requested_item shift.open_date is exist - process it [16:08:38]req_shift_open_date [16:08:38]req_shift_open_date done [16:08:38]produce_requested_data done [16:08:38]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94947,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:08:38]process_action_free close_receipt [16:08:38]json_value_free [16:08:38]json_value_free done [16:08:38]process_json_proto returns [16:08:38]Send response to host [16:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94947,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:08:38]free response buf [16:08:38]execute_script done [16:08:38]execute_script returns [16:08:38]free content buf [16:08:38]Sock 7.Close socket [16:08:38]Sock 7.Thread stoped [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:50]accept exits with 9 [16:11:50]New connection [16:11:50]New thread 3066871140 created [16:11:50]Thread 3067014500 joined [16:11:50]Waiting for new connection... [16:11:50] Sock 9.Parse request [16:11:50]Sock 9.Check first char [16:11:50]Sock 9.First char is OK [16:11:50]request: POST /json_proto HTTP/1.0 [16:11:50]Method: POST [16:11:50]URL: /json_proto [16:11:50]Method is POST - this is cgi request [16:11:50]url: /json_proto [16:11:50]query_string will be loaded in cgi processing [16:11:50]execute_cgi json_proto POST (null) [16:11:50]execute_cgi path=json_proto method=POST [16:11:50]POST find Content-Length [16:11:50]Host: 172.17.62.67:8080 [16:11:50]Content-Length: 679 [16:11:50]Content-Type: application/json [16:11:50] [16:11:50]POST finish read [16:11:50]Found Content-Length = 679 [16:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:50]execute_script... [16:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:50]POST & json_proto [16:11:50]process_json_proto [16:11:50]json parsed OK: [16:11:50]protocol is kg_v1.0 [16:11:50]action value=close_receipt [16:11:50]process_action close_receipt [16:11:50]cmd_close_receipt [16:11:50]MH_GetDate [16:11:50]Write to MH i2c: F0 00 00 E2 9C 6D [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: F0 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: F0 05 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: F0 05 00 E2 9C 00 55 2D EF 65 48 [16:11:50]GetLastDocTimeStamp 1710173330 [16:11:50]current date 1710173525 [16:11:50]FM_GetShiftState [16:11:50]SAM_PROTO_GetShiftState [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 13 01 00 [16:11:50]Write to MH i2c: E2 08 00 E3 9C 80 13 01 00 00 00 00 00 FC [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0E 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0E 00 E3 9C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 98 [16:11:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:11:50]wFMCommunicate OK [16:11:50]SAM_PROTO_GetShiftState done [16:11:50]FM_GetShiftState done [16:11:50]opened in 1710115571 [16:11:50]opened+sec_in_day 1710201971 [16:11:50]quantity*price = 100039 [16:11:50]sum+1 = 100041 [16:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 123 11.03.2024 16:12 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94948 ФПД: 108691366666006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T161205&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94948&fm=108691366666006&tin=02508201610067®Number=0000000000090555&sum=100000 [16:11:51]StoreToDocumentArchive [16:11:51]shift 326 fd 94948 [16:11:51]save to /storage/0326/doc_00094948 [16:11:51]save last doc name /storage/0326/doc_00094948 to /storage/kkm_last_doc_name [16:11:51]save OK [16:11:51]Clear old archive folders... [16:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:11:51]tlvbuf is 001FBC40 [16:11:51]SAM_PROTO_ClearQueue [16:11:51]wFMCommunicate request_size=4 [16:11:51]MH_SAM_APDU [16:11:51]CAPDU: 80 09 00 00 [16:11:51]Write to MH i2c: E2 08 00 F0 9C 80 09 00 00 00 00 00 00 FE [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:51]Read from MH i2c: E2 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 03 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 03 00 F0 9C 00 90 00 00 [16:11:51]RAPDU: 90 00 [16:11:51]wFMCommunicate OK [16:11:51]SAM_PROTO_ClearQueue done [16:11:51]KKMCreateOFDPacket [16:11:51]OFDProtocolAddRootSTLVToBuf [16:11:51]FM_MakeSignedData [16:11:51]FM_MakeSignedData [16:11:51]SAM_PROTO_SignData [16:11:51]wFMCommunicate request_size=4 [16:11:51]MH_SAM_APDU [16:11:51]CAPDU: 80 0D 01 02 [16:11:51]Write to MH i2c: E2 08 00 F1 9C 80 0D 01 02 00 00 00 00 06 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:51]Read from MH i2c: E2 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 03 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 03 00 F1 9C 00 90 00 01 [16:11:51]RAPDU: 90 00 [16:11:51]wFMCommunicate OK [16:11:51]wFMCommunicate request_size=255 [16:11:51]MH_SAM_APDU [16:11:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 55 2D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 72 01 00 35 04 06 00 62 DA AE 4C [16:11:51]Write to MH i2c: E2 02 01 F2 9C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 55 2D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 72 01 00 35 04 06 00 62 DA AE 4C 00 00 64 [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 F2 9C 00 90 00 02 [16:11:52]RAPDU: 90 00 [16:11:52]wFMCommunicate OK [16:11:52]wFMCommunicate request_size=7 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 0D 02 02 02 DF 16 [16:11:52]Write to MH i2c: E2 0A 00 F3 9C 80 0D 02 02 02 00 DF 16 00 00 02 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 F3 9C 00 90 00 03 [16:11:52]RAPDU: 90 00 [16:11:52]wFMCommunicate OK [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 0D 03 02 [16:11:52]Write to MH i2c: E2 08 00 F4 9C 80 0D 03 02 00 00 00 00 0B [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 0B 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 0B 00 F4 9C 00 87 A2 C7 A4 22 42 83 25 90 00 AC [16:11:52]RAPDU: 87 A2 C7 A4 22 42 83 25 90 00 [16:11:52]wFMCommunicate OK [16:11:52]SAM_PROTO_SignData done [16:11:52]FM_MakeSignedData done [16:11:52]CreateOFDProtocolMessage [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 11 00 00 [16:11:52]Write to MH i2c: E2 08 00 F5 9C 80 11 00 00 00 00 00 00 0B [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 17 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 17 00 F5 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [16:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:11:52]wFMCommunicate OK [16:11:52]CreateOFDProtocolMessage done [16:11:52]OFDSenderStorePacket 94948 [16:11:52]StoreOFDPacket docnum=94948 [16:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 E6 67 04 01 48 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 55 2D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 72 01 00 35 04 06 00 62 DA AE 4C DF 16 87 A2 C7 A4 22 42 83 25 [16:11:52]CheckFolder [16:11:52]dirname=/storage/ofd_packets [16:11:52]CheckFolder done [16:11:52]ProducePacketName [16:11:52]name=ofd_packets/00094948 [16:11:52]NVStorageSaveData ofd_packets/00094948 [16:11:52]File name is /storage/ofd_packets/00094948 [16:11:52]Write 298 bytes [16:11:52]NVStorageSaveData done [16:11:52]OFDSenderStorePacket done [16:11:52]KKMCreateOFDPacket done [16:11:52]NVStorageSaveData kkm_last_timestamp [16:11:52]File name is /storage/kkm_last_timestamp [16:11:52]Write 4 bytes [16:11:52]NVStorageSaveData done [16:11:52]ExternCall_PrintAddStr [16:11:52]wPrintStart [16:11:52]Write to MH i2c: 01 00 00 F6 9C 92 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: 01 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: 01 07 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: 01 07 00 F6 9C 00 80 00 00 00 FF 0F 27 [16:11:52]RasterBufferAndPrint [16:11:52]line Счет N : (1)195908 [16:11:52]line ИНН: 02508201610067 [16:11:52]line Контрольно-Кассовый Чек [16:11:52]line ПРОДАЖА [16:11:52]line ТРК (МРК, ГНК) : 51 [16:11:52]line Товар: 2710194210 [16:11:52]line ДТ-К-5 [16:11:52]line 14.110 * 70.90 [16:11:52]line = 1000.40 [16:11:52]line НДС 12% НСП 1% [16:11:52]line > о реализуемом товаре [16:11:52]line ОКРУГЛЕНИЕ: -0.40 [16:11:52]line ИТОГО: 1000.00 [16:11:52]line Внесено: 1000.00 [16:11:52]line СДАЧА: 0.00 [16:11:52]line НСП 1% : 8.85 [16:11:52]line НДС 12% : 106.24 [16:11:52]line Наличными: 1000.00 [16:11:52]line Безнал.: 0.00 [16:11:52]line Место: АЗС № 6 "Партнер Нефть" [16:11:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:11:52]line СНО: Общий режим [16:11:52]line Чек 123 11.03.2024 16:12 [16:11:52]line Смена: 326 ФФД: 1.0 [16:11:52]line ЗНМ: 0300000009 [16:11:52]line РНМ: 0000000000090555 [16:11:52]line Версия ККМ: 001 [16:11:52]line ФМ: 0000000000874811 [16:11:52]line ФД: 94948 [16:11:52]line ФПД: 108691366666006 [16:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T161205&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94948&fm=108691366666006&tin=02508201610067®Number=0000000000090555&sum=100000 [16:11:52]OFD Sender: Processing packet 94948 [packets to send 30, broken 29] [16:11:52]ProducePacketName [16:11:52]name=ofd_packets/00094948 [16:11:52]OFD Sender: To server: pG, [16:11:52]CommunicateWithHost lk.salyk.kg:30040 [16:11:52]ConnectInit lk.salyk.kg [16:11:52]written 0, free lines is 4095 [16:11:52]Connected sock=10 [16:11: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 31 31 0C 01 00 00 E6 67 04 01 48 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 55 2D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 72 01 00 35 04 06 00 62 DA AE 4C DF 16 87 A2 C7 A4 22 42 83 25 [16:11: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 31 31 4F 00 00 00 32 A7 47 00 7C CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E4 72 01 00 F4 03 04 00 AE D8 EE 65 B6 04 01 00 00 F1 75 DB 4B 3E F9 2C 66 [16:11:52]CommunicateWithHost err = 0 [16:11:52]CheckOFDResponse [16:11:52]1017 (14) - 77093643461234 [16:11:52]1041 (16) - 0000000000874811 [16:11:52]1040 (4) - 94948 [16:11:52]1012 (4) - 11.03.2024 10:10 [16:11:52]1206 (1) - 0 [16:11:52]OFD Sender: Remove packet 94948 [16:11:52]ProducePacketName [16:11:52]name=ofd_packets/00094948 [16:11:52]NVStorageDeleteData [16:11:53]Write to MH i2c: 01 00 00 21 9D BE [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: 01 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: 01 07 00 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: 01 07 00 21 9D 00 80 00 00 00 48 0D 9A [16:11:53]RasterBufferAndPrint [16:11:53]line [16:11:53]line [16:11:53]line [16:11:53]line [16:11:53]line [16:11:53]written 0, free lines is 3406 [16:11:53]process_action close_receipt done [16:11:53]requested_data is exist [16:11:53]produce_requested_data [16:11:53]requested_item fm.sn is exist - process it [16:11:53]wFMCommunicate request_size=4 [16:11:53]MH_SAM_APDU [16:11:53]CAPDU: 80 11 00 00 [16:11:53]Write to MH i2c: E2 08 00 28 9D 80 11 00 00 00 00 00 00 3F [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:53]Read from MH i2c: E2 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: E2 17 00 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: E2 17 00 28 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8F [16:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:11:53]wFMCommunicate OK [16:11:53]requested_item fd.num is exist - process it [16:11:53]SAM_PROTO_GetFieldsCounters [16:11:53]wFMCommunicate request_size=4 [16:11:53]MH_SAM_APDU [16:11:53]CAPDU: 80 13 00 00 [16:11:53]Write to MH i2c: E2 08 00 29 9D 80 13 00 00 00 00 00 00 42 [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:53]Read from MH i2c: E2 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: E2 62 00 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: E2 62 00 29 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [16:11:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:53]wFMCommunicate OK [16:11:53]SAM_PROTO_GetFieldsCounters done [16:11:53]requested_item shift.num is exist - process it [16:11:53]requested_item shift.opened is exist - process it [16:11:53]req_shift_opened [16:11:53]FM_GetShiftState [16:11:53]SAM_PROTO_GetShiftState [16:11:53]wFMCommunicate request_size=4 [16:11:53]MH_SAM_APDU [16:11:53]CAPDU: 80 13 01 00 [16:11:53]Write to MH i2c: E2 08 00 2A 9D 80 13 01 00 00 00 00 00 44 [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:53]Read from MH i2c: E2 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: E2 0E 00 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: E2 0E 00 2A 9D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E0 [16:11:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:11:53]wFMCommunicate OK [16:11:53]SAM_PROTO_GetShiftState done [16:11:53]FM_GetShiftState done [16:11:53]req_shift_opened done [16:11:53]requested_item shift.open_date is exist - process it [16:11:53]req_shift_open_date [16:11:53]req_shift_open_date done [16:11:53]produce_requested_data done [16:11:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94948,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:11:53]process_action_free close_receipt [16:11:53]json_value_free [16:11:53]json_value_free done [16:11:53]process_json_proto returns [16:11:53]Send response to host [16:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94948,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:11:53]free response buf [16:11:53]execute_script done [16:11:53]execute_script returns [16:11:53]free content buf [16:11:53]Sock 9.Close socket [16:11:53]Sock 9.Thread stoped [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:17]accept exits with 7 [16:13:17]New connection [16:13:17]New thread 3067014500 created [16:13:17]Thread 3066871140 joined [16:13:17]Waiting for new connection... [16:13:17] Sock 7.Parse request [16:13:17]Sock 7.Check first char [16:13:17]Sock 7.First char is OK [16:13:17]request: POST /json_proto HTTP/1.0 [16:13:17]Method: POST [16:13:17]URL: /json_proto [16:13:17]Method is POST - this is cgi request [16:13:17]url: /json_proto [16:13:17]query_string will be loaded in cgi processing [16:13:17]execute_cgi json_proto POST (null) [16:13:17]execute_cgi path=json_proto method=POST [16:13:17]POST find Content-Length [16:13:17]Host: 172.17.62.67:8080 [16:13:17]Content-Length: 677 [16:13:17]Content-Type: application/json [16:13:17] [16:13:17]POST finish read [16:13:17]Found Content-Length = 677 [16:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:17]execute_script... [16:13: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)195909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:17]POST & json_proto [16:13:17]process_json_proto [16:13:17]json parsed OK: [16:13:17]protocol is kg_v1.0 [16:13:17]action value=close_receipt [16:13:17]process_action close_receipt [16:13:17]cmd_close_receipt [16:13:17]MH_GetDate [16:13:17]Write to MH i2c: F0 00 00 2B 9D B7 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: F0 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: F0 05 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: F0 05 00 2B 9D 00 AD 2D EF 65 EA [16:13:17]GetLastDocTimeStamp 1710173525 [16:13:17]current date 1710173613 [16:13:17]FM_GetShiftState [16:13:17]SAM_PROTO_GetShiftState [16:13:17]wFMCommunicate request_size=4 [16:13:17]MH_SAM_APDU [16:13:17]CAPDU: 80 13 01 00 [16:13:17]Write to MH i2c: E2 08 00 2C 9D 80 13 01 00 00 00 00 00 46 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:17]Read from MH i2c: E2 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 0E 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 0E 00 2C 9D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E2 [16:13:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:13:17]wFMCommunicate OK [16:13:17]SAM_PROTO_GetShiftState done [16:13:17]FM_GetShiftState done [16:13:17]opened in 1710115571 [16:13:17]opened+sec_in_day 1710201971 [16:13:17]quantity*price = 50005 [16:13:17]sum+1 = 50007 [16:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 124 11.03.2024 16:13 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94949 ФПД: 100372735253872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T161333&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94949&fm=100372735253872&tin=02508201610067®Number=0000000000090555&sum=50000 [16:13:19]StoreToDocumentArchive [16:13:19]shift 326 fd 94949 [16:13:19]save to /storage/0326/doc_00094949 [16:13:19]save last doc name /storage/0326/doc_00094949 to /storage/kkm_last_doc_name [16:13:19]save OK [16:13:19]Clear old archive folders... [16:13:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:19]tlvbuf is 00192100 [16:13:19]SAM_PROTO_ClearQueue [16:13:19]wFMCommunicate request_size=4 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 09 00 00 [16:13:19]Write to MH i2c: E2 08 00 39 9D 80 09 00 00 00 00 00 00 48 [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 39 9D 00 90 00 4A [16:13:19]RAPDU: 90 00 [16:13:19]wFMCommunicate OK [16:13:19]SAM_PROTO_ClearQueue done [16:13:19]KKMCreateOFDPacket [16:13:19]OFDProtocolAddRootSTLVToBuf [16:13:19]FM_MakeSignedData [16:13:19]FM_MakeSignedData [16:13:19]SAM_PROTO_SignData [16:13:19]wFMCommunicate request_size=4 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 0D 01 02 [16:13:19]Write to MH i2c: E2 08 00 3A 9D 80 0D 01 02 00 00 00 00 50 [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 3A 9D 00 90 00 4B [16:13:19]RAPDU: 90 00 [16:13:19]wFMCommunicate OK [16:13:19]wFMCommunicate request_size=255 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AD 2D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 72 01 00 35 04 06 00 5B [16:13:19]Write to MH i2c: E2 02 01 3B 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AD 2D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 72 01 00 35 04 06 00 5B 00 00 9D [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 3B 9D 00 90 00 4C [16:13:19]RAPDU: 90 00 [16:13:19]wFMCommunicate OK [16:13:19]wFMCommunicate request_size=10 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 0D 02 02 05 49 D9 3A DD 70 [16:13:19]Write to MH i2c: E2 0D 00 3C 9D 80 0D 02 02 05 00 49 D9 3A DD 70 00 00 06 [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 03 00 3C 9D 00 90 00 4D [16:13:19]RAPDU: 90 00 [16:13:19]wFMCommunicate OK [16:13:19]wFMCommunicate request_size=4 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 0D 03 02 [16:13:19]Write to MH i2c: E2 08 00 3D 9D 80 0D 03 02 00 00 00 00 55 [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 0B 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 0B 00 3D 9D 00 78 EF F0 47 7E 18 12 31 90 00 CD [16:13:19]RAPDU: 78 EF F0 47 7E 18 12 31 90 00 [16:13:19]wFMCommunicate OK [16:13:19]SAM_PROTO_SignData done [16:13:19]FM_MakeSignedData done [16:13:19]CreateOFDProtocolMessage [16:13:19]wFMCommunicate request_size=4 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 11 00 00 [16:13:19]Write to MH i2c: E2 08 00 3E 9D 80 11 00 00 00 00 00 00 55 [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 17 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 17 00 3E 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [16:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:13:19]wFMCommunicate OK [16:13:19]CreateOFDProtocolMessage done [16:13:19]OFDSenderStorePacket 94949 [16:13:19]StoreOFDPacket docnum=94949 [16:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 57 4A 07 01 6E 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AD 2D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 72 01 00 35 04 06 00 5B 49 D9 3A DD 70 78 EF F0 47 7E 18 12 31 [16:13:19]CheckFolder [16:13:19]dirname=/storage/ofd_packets [16:13:19]CheckFolder done [16:13:19]ProducePacketName [16:13:19]name=ofd_packets/00094949 [16:13:19]NVStorageSaveData ofd_packets/00094949 [16:13:19]File name is /storage/ofd_packets/00094949 [16:13:19]Write 301 bytes [16:13:19]NVStorageSaveData done [16:13:19]OFDSenderStorePacket done [16:13:19]KKMCreateOFDPacket done [16:13:19]NVStorageSaveData kkm_last_timestamp [16:13:19]File name is /storage/kkm_last_timestamp [16:13:19]Write 4 bytes [16:13:19]NVStorageSaveData done [16:13:19]ExternCall_PrintAddStr [16:13:19]wPrintStart [16:13:19]Write to MH i2c: 01 00 00 3F 9D DC [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: 01 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: 01 07 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: 01 07 00 3F 9D 00 80 00 00 00 FF 0F 71 [16:13:19]RasterBufferAndPrint [16:13:19]line Счет N : (1)195909 [16:13:19]line ИНН: 02508201610067 [16:13:19]line Контрольно-Кассовый Чек [16:13:19]line ПРОДАЖА [16:13:19]line ТРК (МРК, ГНК) : 22 [16:13:19]line Товар: 2710124130 [16:13:19]line Аи-92-К-5 [16:13:19]line 7.950 * 62.90 [16:13:19]line = 500.06 [16:13:19]line НДС 12% НСП 1% [16:13:19]line > о реализуемом товаре [16:13:19]line ОКРУГЛЕНИЕ: -0.06 [16:13:19]line ИТОГО: 500.00 [16:13:19]line Внесено: 500.00 [16:13:19]line СДАЧА: 0.00 [16:13:19]line НСП 1% : 4.42 [16:13:19]line НДС 12% : 53.10 [16:13:19]line Наличными: 500.00 [16:13:19]line Безнал.: 0.00 [16:13:19]line Место: АЗС № 6 "Партнер Нефть" [16:13:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:13:19]line СНО: Общий режим [16:13:19]line Чек 124 11.03.2024 16:13 [16:13:19]line Смена: 326 ФФД: 1.0 [16:13:19]line ЗНМ: 0300000009 [16:13:19]line РНМ: 0000000000090555 [16:13:19]line Версия ККМ: 001 [16:13:19]line ФМ: 0000000000874811 [16:13:19]line ФД: 94949 [16:13:19]line ФПД: 100372735253872 [16:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T161333&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94949&fm=100372735253872&tin=02508201610067®Number=0000000000090555&sum=50000 [16:13:19]OFD Sender: Processing packet 94949 [packets to send 30, broken 29] [16:13:19]ProducePacketName [16:13:19]name=ofd_packets/00094949 [16:13:19]OFD Sender: To server: pG, [16:13:19]CommunicateWithHost lk.salyk.kg:30040 [16:13:19]ConnectInit lk.salyk.kg [16:13:19]written 0, free lines is 4095 [16:13:20]Connected sock=10 [16:13: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 31 31 0F 01 00 00 57 4A 07 01 6E 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AD 2D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E5 72 01 00 35 04 06 00 5B 49 D9 3A DD 70 78 EF F0 47 7E 18 12 31 [16:13: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 31 31 4F 00 00 00 9C AA 47 00 A4 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 31 31 10 04 04 00 E5 72 01 00 F4 03 04 00 06 D9 EE 65 B6 04 01 00 00 9C 5E 03 B4 AD 9E 48 3B [16:13:20]CommunicateWithHost err = 0 [16:13:20]CheckOFDResponse [16:13:20]1017 (14) - 77093643461234 [16:13:20]1041 (16) - 0000000000874811 [16:13:20]1040 (4) - 94949 [16:13:20]1012 (4) - 11.03.2024 10:12 [16:13:20]1206 (1) - 0 [16:13:20]OFD Sender: Remove packet 94949 [16:13:20]ProducePacketName [16:13:20]name=ofd_packets/00094949 [16:13:20]NVStorageDeleteData [16:13:20]Write to MH i2c: 01 00 00 6A 9D 07 [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: 01 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: 01 07 00 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: 01 07 00 6A 9D 00 80 00 00 00 50 0D EB [16:13:20]RasterBufferAndPrint [16:13:20]line [16:13:20]line [16:13:20]line [16:13:20]line [16:13:20]line [16:13:20]written 0, free lines is 3414 [16:13:20]process_action close_receipt done [16:13:20]requested_data is exist [16:13:20]produce_requested_data [16:13:20]requested_item fm.sn is exist - process it [16:13:20]wFMCommunicate request_size=4 [16:13:20]MH_SAM_APDU [16:13:20]CAPDU: 80 11 00 00 [16:13:20]Write to MH i2c: E2 08 00 71 9D 80 11 00 00 00 00 00 00 88 [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:20]Read from MH i2c: E2 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: E2 17 00 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: E2 17 00 71 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D8 [16:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:13:20]wFMCommunicate OK [16:13:20]requested_item fd.num is exist - process it [16:13:20]SAM_PROTO_GetFieldsCounters [16:13:20]wFMCommunicate request_size=4 [16:13:20]MH_SAM_APDU [16:13:20]CAPDU: 80 13 00 00 [16:13:20]Write to MH i2c: E2 08 00 72 9D 80 13 00 00 00 00 00 00 8B [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:20]Read from MH i2c: E2 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: E2 62 00 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: E2 62 00 72 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [16:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:20]wFMCommunicate OK [16:13:20]SAM_PROTO_GetFieldsCounters done [16:13:20]requested_item shift.num is exist - process it [16:13:20]requested_item shift.opened is exist - process it [16:13:20]req_shift_opened [16:13:20]FM_GetShiftState [16:13:20]SAM_PROTO_GetShiftState [16:13:20]wFMCommunicate request_size=4 [16:13:20]MH_SAM_APDU [16:13:20]CAPDU: 80 13 01 00 [16:13:20]Write to MH i2c: E2 08 00 73 9D 80 13 01 00 00 00 00 00 8D [16:13:20]Write i2c OK [16:13:20]MH_I2C_Read... [16:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:20]Read from MH i2c: E2 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: E2 0E 00 [16:13:20]MH_I2C_Read... [16:13:20]Read from MH i2c: E2 0E 00 73 9D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 29 [16:13:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:13:20]wFMCommunicate OK [16:13:20]SAM_PROTO_GetShiftState done [16:13:20]FM_GetShiftState done [16:13:20]req_shift_opened done [16:13:20]requested_item shift.open_date is exist - process it [16:13:20]req_shift_open_date [16:13:20]req_shift_open_date done [16:13:20]produce_requested_data done [16:13:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94949,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:13:20]process_action_free close_receipt [16:13:20]json_value_free [16:13:20]json_value_free done [16:13:20]process_json_proto returns [16:13:20]Send response to host [16:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94949,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:13:20]free response buf [16:13:20]execute_script done [16:13:20]execute_script returns [16:13:20]free content buf [16:13:20]Sock 7.Close socket [16:13:20]Sock 7.Thread stoped [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:36]accept exits with 9 [16:15:36]New connection [16:15:36]New thread 3066871140 created [16:15:36]Thread 3067014500 joined [16:15:36]Waiting for new connection... [16:15:36] Sock 9.Parse request [16:15:36]Sock 9.Check first char [16:15:36]Sock 9.First char is OK [16:15:36]request: POST /json_proto HTTP/1.0 [16:15:36]Method: POST [16:15:36]URL: /json_proto [16:15:36]Method is POST - this is cgi request [16:15:36]url: /json_proto [16:15:36]query_string will be loaded in cgi processing [16:15:36]execute_cgi json_proto POST (null) [16:15:36]execute_cgi path=json_proto method=POST [16:15:36]POST find Content-Length [16:15:36]Host: 172.17.62.67:8080 [16:15:36]Content-Length: 677 [16:15:36]Content-Type: application/json [16:15:36] [16:15:36]POST finish read [16:15:36]Found Content-Length = 677 [16:15:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:36]execute_script... [16:15: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)195910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:36]POST & json_proto [16:15:36]process_json_proto [16:15:36]json parsed OK: [16:15:36]protocol is kg_v1.0 [16:15:36]action value=close_receipt [16:15:36]process_action close_receipt [16:15:36]cmd_close_receipt [16:15:36]MH_GetDate [16:15:36]Write to MH i2c: F0 00 00 74 9D 00 [16:15:36]Write i2c OK [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: F0 [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: F0 05 00 [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: F0 05 00 74 9D 00 37 2E EF 65 BE [16:15:36]GetLastDocTimeStamp 1710173613 [16:15:36]current date 1710173751 [16:15:36]FM_GetShiftState [16:15:36]SAM_PROTO_GetShiftState [16:15:36]wFMCommunicate request_size=4 [16:15:36]MH_SAM_APDU [16:15:36]CAPDU: 80 13 01 00 [16:15:36]Write to MH i2c: E2 08 00 75 9D 80 13 01 00 00 00 00 00 8F [16:15:36]Write i2c OK [16:15:36]MH_I2C_Read... [16:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:36]Read from MH i2c: E2 [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: E2 0E 00 [16:15:36]MH_I2C_Read... [16:15:36]Read from MH i2c: E2 0E 00 75 9D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2B [16:15:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:15:36]wFMCommunicate OK [16:15:36]SAM_PROTO_GetShiftState done [16:15:36]FM_GetShiftState done [16:15:36]opened in 1710115571 [16:15:36]opened+sec_in_day 1710201971 [16:15:36]quantity*price = 50040 [16:15:36]sum+1 = 50041 [16:15:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 125 11.03.2024 16:15 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94950 ФПД: 111700748025543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T161551&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94950&fm=111700748025543&tin=02508201610067®Number=0000000000090555&sum=50000 [16:15:37]StoreToDocumentArchive [16:15:37]shift 326 fd 94950 [16:15:37]save to /storage/0326/doc_00094950 [16:15:37]save last doc name /storage/0326/doc_00094950 to /storage/kkm_last_doc_name [16:15:37]save OK [16:15:37]Clear old archive folders... [16:15:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:37]tlvbuf is 00459E20 [16:15:37]SAM_PROTO_ClearQueue [16:15:37]wFMCommunicate request_size=4 [16:15:37]MH_SAM_APDU [16:15:37]CAPDU: 80 09 00 00 [16:15:37]Write to MH i2c: E2 08 00 82 9D 80 09 00 00 00 00 00 00 91 [16:15:37]Write i2c OK [16:15:37]MH_I2C_Read... [16:15:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:37]Read from MH i2c: E2 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: E2 03 00 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: E2 03 00 82 9D 00 90 00 93 [16:15:37]RAPDU: 90 00 [16:15:37]wFMCommunicate OK [16:15:37]SAM_PROTO_ClearQueue done [16:15:37]KKMCreateOFDPacket [16:15:37]OFDProtocolAddRootSTLVToBuf [16:15:37]FM_MakeSignedData [16:15:37]FM_MakeSignedData [16:15:37]SAM_PROTO_SignData [16:15:37]wFMCommunicate request_size=4 [16:15:37]MH_SAM_APDU [16:15:37]CAPDU: 80 0D 01 02 [16:15:37]Write to MH i2c: E2 08 00 83 9D 80 0D 01 02 00 00 00 00 99 [16:15:37]Write i2c OK [16:15:37]MH_I2C_Read... [16:15:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:37]Read from MH i2c: E2 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: E2 03 00 [16:15:37]MH_I2C_Read... [16:15:37]Read from MH i2c: E2 03 00 83 9D 00 90 00 94 [16:15:37]RAPDU: 90 00 [16:15:37]wFMCommunicate OK [16:15:37]wFMCommunicate request_size=255 [16:15:37]MH_SAM_APDU [16:15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 37 2E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 72 01 00 35 04 06 00 65 [16:15:37]Write to MH i2c: E2 02 01 84 9D 80 0D 02 02 FA 00 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 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 37 2E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 72 01 00 35 04 06 00 65 00 00 4E [16:15:37]Write i2c OK [16:15:37]MH_I2C_Read... [16:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:38]Read from MH i2c: E2 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 03 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 03 00 84 9D 00 90 00 95 [16:15:38]RAPDU: 90 00 [16:15:38]wFMCommunicate OK [16:15:38]wFMCommunicate request_size=10 [16:15:38]MH_SAM_APDU [16:15:38]CAPDU: 80 0D 02 02 05 97 5B 68 3E C7 [16:15:38]Write to MH i2c: E2 0D 00 85 9D 80 0D 02 02 05 00 97 5B 68 3E C7 00 00 05 [16:15:38]Write i2c OK [16:15:38]MH_I2C_Read... [16:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:38]Read from MH i2c: E2 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 03 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 03 00 85 9D 00 90 00 96 [16:15:38]RAPDU: 90 00 [16:15:38]wFMCommunicate OK [16:15:38]wFMCommunicate request_size=4 [16:15:38]MH_SAM_APDU [16:15:38]CAPDU: 80 0D 03 02 [16:15:38]Write to MH i2c: E2 08 00 86 9D 80 0D 03 02 00 00 00 00 9E [16:15:38]Write i2c OK [16:15:38]MH_I2C_Read... [16:15:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:38]Read from MH i2c: E2 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 0B 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 0B 00 86 9D 00 13 B3 66 C0 CA AA 67 02 90 00 68 [16:15:38]RAPDU: 13 B3 66 C0 CA AA 67 02 90 00 [16:15:38]wFMCommunicate OK [16:15:38]SAM_PROTO_SignData done [16:15:38]FM_MakeSignedData done [16:15:38]CreateOFDProtocolMessage [16:15:38]wFMCommunicate request_size=4 [16:15:38]MH_SAM_APDU [16:15:38]CAPDU: 80 11 00 00 [16:15:38]Write to MH i2c: E2 08 00 87 9D 80 11 00 00 00 00 00 00 9E [16:15:38]Write i2c OK [16:15:38]MH_I2C_Read... [16:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:38]Read from MH i2c: E2 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 17 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: E2 17 00 87 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [16:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:15:38]wFMCommunicate OK [16:15:38]CreateOFDProtocolMessage done [16:15:38]OFDSenderStorePacket 94950 [16:15:38]StoreOFDPacket docnum=94950 [16:15:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 35 72 07 01 05 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 37 2E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 72 01 00 35 04 06 00 65 97 5B 68 3E C7 13 B3 66 C0 CA AA 67 02 [16:15:38]CheckFolder [16:15:38]dirname=/storage/ofd_packets [16:15:38]CheckFolder done [16:15:38]ProducePacketName [16:15:38]name=ofd_packets/00094950 [16:15:38]NVStorageSaveData ofd_packets/00094950 [16:15:38]File name is /storage/ofd_packets/00094950 [16:15:38]Write 301 bytes [16:15:38]NVStorageSaveData done [16:15:38]OFDSenderStorePacket done [16:15:38]KKMCreateOFDPacket done [16:15:38]NVStorageSaveData kkm_last_timestamp [16:15:38]File name is /storage/kkm_last_timestamp [16:15:38]Write 4 bytes [16:15:38]NVStorageSaveData done [16:15:38]ExternCall_PrintAddStr [16:15:38]wPrintStart [16:15:38]Write to MH i2c: 01 00 00 88 9D 25 [16:15:38]Write i2c OK [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: 01 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: 01 07 00 [16:15:38]MH_I2C_Read... [16:15:38]Read from MH i2c: 01 07 00 88 9D 00 80 00 00 00 FF 0F BA [16:15:38]RasterBufferAndPrint [16:15:38]line Счет N : (1)195910 [16:15:38]line ИНН: 02508201610067 [16:15:38]line Контрольно-Кассовый Чек [16:15:38]line ПРОДАЖА [16:15:38]line ТРК (МРК, ГНК) : 31 [16:15:38]line Товар: 2710124500 [16:15:38]line Аи-95-К-5 [16:15:38]line 7.200 * 69.50 [16:15:38]line = 500.40 [16:15:38]line НДС 12% НСП 1% [16:15:38]line > о реализуемом товаре [16:15:38]line ОКРУГЛЕНИЕ: -0.40 [16:15:38]line ИТОГО: 500.00 [16:15:38]line Внесено: 500.00 [16:15:38]line СДАЧА: 0.00 [16:15:38]line НСП 1% : 4.43 [16:15:38]line НДС 12% : 53.14 [16:15:38]line Наличными: 500.00 [16:15:38]line Безнал.: 0.00 [16:15:38]line Место: АЗС № 6 "Партнер Нефть" [16:15:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:15:38]line СНО: Общий режим [16:15:38]line Чек 125 11.03.2024 16:15 [16:15:38]line Смена: 326 ФФД: 1.0 [16:15:38]line ЗНМ: 0300000009 [16:15:38]line РНМ: 0000000000090555 [16:15:38]line Версия ККМ: 001 [16:15:38]line ФМ: 0000000000874811 [16:15:38]line ФД: 94950 [16:15:38]line ФПД: 111700748025543 [16:15:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T161551&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94950&fm=111700748025543&tin=02508201610067®Number=0000000000090555&sum=50000 [16:15:38]OFD Sender: Processing packet 94950 [packets to send 30, broken 29] [16:15:38]ProducePacketName [16:15:38]name=ofd_packets/00094950 [16:15:38]OFD Sender: To server: pG, [16:15:38]CommunicateWithHost lk.salyk.kg:30040 [16:15:38]ConnectInit lk.salyk.kg [16:15:38]written 0, free lines is 4095 [16:15:38]Connected sock=10 [16:15: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 31 31 0F 01 00 00 35 72 07 01 05 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 37 2E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 72 01 00 35 04 06 00 65 97 5B 68 3E C7 13 B3 66 C0 CA AA 67 02 [16:15: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 31 31 4F 00 00 00 90 12 47 00 6B B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E6 72 01 00 F4 03 04 00 90 D9 EE 65 B6 04 01 00 00 A2 85 AC 61 78 A1 09 30 [16:15:38]CommunicateWithHost err = 0 [16:15:38]CheckOFDResponse [16:15:38]1017 (14) - 77093643461234 [16:15:38]1041 (16) - 0000000000874811 [16:15:38]1040 (4) - 94950 [16:15:38]1012 (4) - 11.03.2024 10:14 [16:15:38]1206 (1) - 0 [16:15:38]OFD Sender: Remove packet 94950 [16:15:38]ProducePacketName [16:15:38]name=ofd_packets/00094950 [16:15:38]NVStorageDeleteData [16:15:39]Write to MH i2c: 01 00 00 B3 9D 50 [16:15:39]Write i2c OK [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: 01 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: 01 07 00 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: 01 07 00 B3 9D 00 80 00 00 00 55 0D 39 [16:15:39]RasterBufferAndPrint [16:15:39]line [16:15:39]line [16:15:39]line [16:15:39]line [16:15:39]line [16:15:39]written 0, free lines is 3421 [16:15:39]process_action close_receipt done [16:15:39]requested_data is exist [16:15:39]produce_requested_data [16:15:39]requested_item fm.sn is exist - process it [16:15:39]wFMCommunicate request_size=4 [16:15:39]MH_SAM_APDU [16:15:39]CAPDU: 80 11 00 00 [16:15:39]Write to MH i2c: E2 08 00 BA 9D 80 11 00 00 00 00 00 00 D1 [16:15:39]Write i2c OK [16:15:39]MH_I2C_Read... [16:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:39]Read from MH i2c: E2 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 17 00 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 17 00 BA 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 21 [16:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:15:39]wFMCommunicate OK [16:15:39]requested_item fd.num is exist - process it [16:15:39]SAM_PROTO_GetFieldsCounters [16:15:39]wFMCommunicate request_size=4 [16:15:39]MH_SAM_APDU [16:15:39]CAPDU: 80 13 00 00 [16:15:39]Write to MH i2c: E2 08 00 BB 9D 80 13 00 00 00 00 00 00 D4 [16:15:39]Write i2c OK [16:15:39]MH_I2C_Read... [16:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:39]Read from MH i2c: E2 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 62 00 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 62 00 BB 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [16:15: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:39]wFMCommunicate OK [16:15:39]SAM_PROTO_GetFieldsCounters done [16:15:39]requested_item shift.num is exist - process it [16:15:39]requested_item shift.opened is exist - process it [16:15:39]req_shift_opened [16:15:39]FM_GetShiftState [16:15:39]SAM_PROTO_GetShiftState [16:15:39]wFMCommunicate request_size=4 [16:15:39]MH_SAM_APDU [16:15:39]CAPDU: 80 13 01 00 [16:15:39]Write to MH i2c: E2 08 00 BC 9D 80 13 01 00 00 00 00 00 D6 [16:15:39]Write i2c OK [16:15:39]MH_I2C_Read... [16:15:39]OFD Sender: No OFD packet to send [16:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:39]Read from MH i2c: E2 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 0E 00 [16:15:39]MH_I2C_Read... [16:15:39]Read from MH i2c: E2 0E 00 BC 9D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 72 [16:15:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:15:39]wFMCommunicate OK [16:15:39]SAM_PROTO_GetShiftState done [16:15:39]FM_GetShiftState done [16:15:39]req_shift_opened done [16:15:39]requested_item shift.open_date is exist - process it [16:15:39]req_shift_open_date [16:15:39]req_shift_open_date done [16:15:39]produce_requested_data done [16:15:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94950,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:15:39]process_action_free close_receipt [16:15:39]json_value_free [16:15:39]json_value_free done [16:15:39]process_json_proto returns [16:15:39]Send response to host [16:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94950,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:15:39]free response buf [16:15:39]execute_script done [16:15:39]execute_script returns [16:15:39]free content buf [16:15:39]Sock 9.Close socket [16:15:39]Sock 9.Thread stoped [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:07]accept exits with 7 [16:17:07]New connection [16:17:07]New thread 3067014500 created [16:17:07]Thread 3066871140 joined [16:17:07]Waiting for new connection... [16:17:07] Sock 7.Parse request [16:17:07]Sock 7.Check first char [16:17:07]Sock 7.First char is OK [16:17:07]request: POST /json_proto HTTP/1.0 [16:17:07]Method: POST [16:17:07]URL: /json_proto [16:17:07]Method is POST - this is cgi request [16:17:07]url: /json_proto [16:17:07]query_string will be loaded in cgi processing [16:17:07]execute_cgi json_proto POST (null) [16:17:07]execute_cgi path=json_proto method=POST [16:17:07]POST find Content-Length [16:17:07]Host: 172.17.62.67:8080 [16:17:07]Content-Length: 612 [16:17:07]Content-Type: application/json [16:17:07] [16:17:07]POST finish read [16:17:07]Found Content-Length = 612 [16:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11524", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:07]execute_script... [16:17:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11524", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:07]POST & json_proto [16:17:07]process_json_proto [16:17:07]json parsed OK: [16:17:07]protocol is kg_v1.0 [16:17:07]action value=close_receipt [16:17:07]process_action close_receipt [16:17:07]cmd_close_receipt [16:17:07]MH_GetDate [16:17:07]Write to MH i2c: F0 00 00 BD 9D 49 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 05 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: F0 05 00 BD 9D 00 92 2E EF 65 62 [16:17:07]GetLastDocTimeStamp 1710173751 [16:17:07]current date 1710173842 [16:17:07]FM_GetShiftState [16:17:07]SAM_PROTO_GetShiftState [16:17:07]wFMCommunicate request_size=4 [16:17:07]MH_SAM_APDU [16:17:07]CAPDU: 80 13 01 00 [16:17:07]Write to MH i2c: E2 08 00 BE 9D 80 13 01 00 00 00 00 00 D8 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:07]Read from MH i2c: E2 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 0E 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: E2 0E 00 BE 9D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 74 [16:17:07]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:17:07]wFMCommunicate OK [16:17:07]SAM_PROTO_GetShiftState done [16:17:07]FM_GetShiftState done [16:17:07]opened in 1710115571 [16:17:07]opened+sec_in_day 1710201971 [16:17:07]quantity*price = 7500 [16:17:07]sum+1 = 7501 [16:17:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 126 11.03.2024 16:17 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94951 ФПД: 93389323067447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T161722&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94951&fm=93389323067447&tin=02508201610067®Number=0000000000090555&sum=7500 0 [16:17:08]StoreToDocumentArchive [16:17:08]shift 326 fd 94951 [16:17:08]save to /storage/0326/doc_00094951 [16:17:08]save last doc name /storage/0326/doc_00094951 to /storage/kkm_last_doc_name [16:17:08]save OK [16:17:08]Clear old archive folders... [16:17:08]ProcessDocumentItem done err = 0, tmpTLVsize=268 [16:17:08]tlvbuf is 001FB9B0 [16:17:08]SAM_PROTO_ClearQueue [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 09 00 00 [16:17:08]Write to MH i2c: E2 08 00 CB 9D 80 09 00 00 00 00 00 00 DA [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 CB 9D 00 90 00 DC [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_ClearQueue done [16:17:08]KKMCreateOFDPacket [16:17:08]OFDProtocolAddRootSTLVToBuf [16:17:08]FM_MakeSignedData [16:17:08]FM_MakeSignedData [16:17:08]SAM_PROTO_SignData [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 01 02 [16:17:08]Write to MH i2c: E2 08 00 CC 9D 80 0D 01 02 00 00 00 00 E2 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 CC 9D 00 90 00 DD [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=255 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 92 2E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [16:17:08]Write to MH i2c: E2 02 01 CD 9D 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 92 2E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 BA [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 CD 9D 00 90 00 DE [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=27 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 02 02 16 34 38 31 31 10 04 04 00 E7 72 01 00 35 04 06 00 54 EF E5 6D 60 37 [16:17:08]Write to MH i2c: E2 1E 00 CE 9D 80 0D 02 02 16 00 34 38 31 31 10 04 04 00 E7 72 01 00 35 04 06 00 54 EF E5 6D 60 37 00 00 BC [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 03 00 CE 9D 00 90 00 DF [16:17:08]RAPDU: 90 00 [16:17:08]wFMCommunicate OK [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 0D 03 02 [16:17:08]Write to MH i2c: E2 08 00 CF 9D 80 0D 03 02 00 00 00 00 E7 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0B 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0B 00 CF 9D 00 A9 E6 84 7E FA BA 4A F2 90 00 69 [16:17:08]RAPDU: A9 E6 84 7E FA BA 4A F2 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_SignData done [16:17:08]FM_MakeSignedData done [16:17:08]CreateOFDProtocolMessage [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 11 00 00 [16:17:08]Write to MH i2c: E2 08 00 D0 9D 80 11 00 00 00 00 00 00 E7 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 D0 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [16:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:17:08]wFMCommunicate OK [16:17:08]CreateOFDProtocolMessage done [16:17:08]OFDSenderStorePacket 94951 [16:17:08]StoreOFDPacket docnum=94951 [16:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 20 01 00 00 A2 93 18 01 EF AD 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 92 2E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E7 72 01 00 35 04 06 00 54 EF E5 6D 60 37 A9 E6 84 7E FA BA 4A F2 [16:17:08]CheckFolder [16:17:08]dirname=/storage/ofd_packets [16:17:08]CheckFolder done [16:17:08]ProducePacketName [16:17:08]name=ofd_packets/00094951 [16:17:08]NVStorageSaveData ofd_packets/00094951 [16:17:08]File name is /storage/ofd_packets/00094951 [16:17:08]Write 318 bytes [16:17:08]NVStorageSaveData done [16:17:08]OFDSenderStorePacket done [16:17:08]KKMCreateOFDPacket done [16:17:08]NVStorageSaveData kkm_last_timestamp [16:17:08]File name is /storage/kkm_last_timestamp [16:17:08]Write 4 bytes [16:17:08]NVStorageSaveData done [16:17:08]ExternCall_PrintAddStr [16:17:08]wPrintStart [16:17:08]Write to MH i2c: 01 00 00 D1 9D 6E [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 D1 9D 00 80 00 00 00 FF 0F 03 [16:17:08]RasterBufferAndPrint [16:17:08]line Счет N : (3)11524 [16:17:08]line ИНН: 02508201610067 [16:17:08]line Контрольно-Кассовый Чек [16:17:08]line ПРОДАЖА [16:17:08]line Товар: 4870001570057 [16:17:08]line Напиток Pepsi 0,5л [16:17:08]line 1.000 * 75.00 [16:17:08]line = 75.00 [16:17:08]line НДС 12% НСП 1% [16:17:08]line > о реализуемом товаре [16:17:08]line ИТОГО: 75.00 [16:17:08]line НСП 1% : 0.66 [16:17:08]line НДС 12% : 7.96 [16:17:08]line Наличными: 75.00 [16:17:08]line Безнал.: 0.00 [16:17:08]line Место: АЗС № 6 "Партнер Нефть" [16:17:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:17:08]line СНО: Общий режим [16:17:08]line Чек 126 11.03.2024 16:17 [16:17:08]line Смена: 326 ФФД: 1.0 [16:17:08]line ЗНМ: 0300000009 [16:17:08]line РНМ: 0000000000090555 [16:17:08]line Версия ККМ: 001 [16:17:08]line ФМ: 0000000000874811 [16:17:08]line ФД: 94951 [16:17:08]line ФПД: 93389323067447 [16:17:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T161722&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94951&fm=93389323067447&tin=02508201610067®Number=0000000000090555&sum=7500 [16:17:09]line 0 [16:17:09]OFD Sender: Processing packet 94951 [packets to send 30, broken 29] [16:17:09]ProducePacketName [16:17:09]name=ofd_packets/00094951 [16:17:09]OFD Sender: To server: pG, [16:17:09]CommunicateWithHost lk.salyk.kg:30040 [16:17:09]ConnectInit lk.salyk.kg [16:17:09]written 0, free lines is 4095 [16:17:09]Connected sock=10 [16:17:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 20 01 00 00 A2 93 18 01 EF AD 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 92 2E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E7 72 01 00 35 04 06 00 54 EF E5 6D 60 37 A9 E6 84 7E FA BA 4A F2 [16:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F6 06 47 00 90 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E7 72 01 00 F4 03 04 00 EB D9 EE 65 B6 04 01 00 00 C9 D4 42 66 DB 20 E9 DC [16:17:09]CommunicateWithHost err = 0 [16:17:09]CheckOFDResponse [16:17:09]1017 (14) - 77093643461234 [16:17:09]1041 (16) - 0000000000874811 [16:17:09]1040 (4) - 94951 [16:17:09]1012 (4) - 11.03.2024 10:16 [16:17:09]1206 (1) - 0 [16:17:09]OFD Sender: Remove packet 94951 [16:17:09]ProducePacketName [16:17:09]name=ofd_packets/00094951 [16:17:09]NVStorageDeleteData [16:17:09]Write to MH i2c: 01 00 00 F9 9D 96 [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 F9 9D 00 80 00 00 00 6C 0D 96 [16:17:09]RasterBufferAndPrint [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]line [16:17:09]written 0, free lines is 3441 [16:17:09]process_action close_receipt done [16:17:09]requested_data is exist [16:17:09]produce_requested_data [16:17:09]requested_item fm.sn is exist - process it [16:17:09]wFMCommunicate request_size=4 [16:17:09]MH_SAM_APDU [16:17:09]CAPDU: 80 11 00 00 [16:17:09]Write to MH i2c: E2 08 00 00 9E 80 11 00 00 00 00 00 00 18 [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:09]Read from MH i2c: E2 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: E2 17 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: E2 17 00 00 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 68 [16:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:17:09]wFMCommunicate OK [16:17:09]requested_item fd.num is exist - process it [16:17:09]SAM_PROTO_GetFieldsCounters [16:17:09]wFMCommunicate request_size=4 [16:17:09]MH_SAM_APDU [16:17:09]CAPDU: 80 13 00 00 [16:17:09]Write to MH i2c: E2 08 00 01 9E 80 13 00 00 00 00 00 00 1B [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:09]Read from MH i2c: E2 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: E2 62 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: E2 62 00 01 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [16:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:09]wFMCommunicate OK [16:17:09]SAM_PROTO_GetFieldsCounters done [16:17:09]requested_item shift.num is exist - process it [16:17:09]requested_item shift.opened is exist - process it [16:17:09]req_shift_opened [16:17:09]FM_GetShiftState [16:17:09]SAM_PROTO_GetShiftState [16:17:09]wFMCommunicate request_size=4 [16:17:09]MH_SAM_APDU [16:17:09]CAPDU: 80 13 01 00 [16:17:09]Write to MH i2c: E2 08 00 02 9E 80 13 01 00 00 00 00 00 1D [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:09]Read from MH i2c: E2 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: E2 0E 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: E2 0E 00 02 9E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B9 [16:17:09]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:17:09]wFMCommunicate OK [16:17:09]SAM_PROTO_GetShiftState done [16:17:09]FM_GetShiftState done [16:17:09]req_shift_opened done [16:17:09]requested_item shift.open_date is exist - process it [16:17:09]req_shift_open_date [16:17:09]req_shift_open_date done [16:17:09]produce_requested_data done [16:17:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94951,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:17:09]process_action_free close_receipt [16:17:09]json_value_free [16:17:09]json_value_free done [16:17:09]process_json_proto returns [16:17:09]Send response to host [16:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94951,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:17:09]free response buf [16:17:09]execute_script done [16:17:09]execute_script returns [16:17:09]free content buf [16:17:09]Sock 7.Close socket [16:17:09]Sock 7.Thread stoped [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:02]accept exits with 9 [16:20:02]New connection [16:20:02]New thread 3066871140 created [16:20:02]Thread 3067014500 joined [16:20:02]Waiting for new connection... [16:20:02] Sock 9.Parse request [16:20:02]Sock 9.Check first char [16:20:02]Sock 9.First char is OK [16:20:02]request: POST /json_proto HTTP/1.0 [16:20:02]Method: POST [16:20:02]URL: /json_proto [16:20:02]Method is POST - this is cgi request [16:20:02]url: /json_proto [16:20:02]query_string will be loaded in cgi processing [16:20:02]execute_cgi json_proto POST (null) [16:20:02]execute_cgi path=json_proto method=POST [16:20:02]POST find Content-Length [16:20:02]Host: 172.17.62.67:8080 [16:20:02]Content-Length: 677 [16:20:02]Content-Type: application/json [16:20:02] [16:20:02]POST finish read [16:20:02]Found Content-Length = 677 [16:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:02]execute_script... [16:20:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:02]POST & json_proto [16:20:02]process_json_proto [16:20:02]json parsed OK: [16:20:02]protocol is kg_v1.0 [16:20:02]action value=close_receipt [16:20:02]process_action close_receipt [16:20:02]cmd_close_receipt [16:20:02]MH_GetDate [16:20:02]Write to MH i2c: F0 00 00 03 9E 90 [16:20:02]Write i2c OK [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: F0 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: F0 05 00 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: F0 05 00 03 9E 00 42 2F EF 65 5A [16:20:02]GetLastDocTimeStamp 1710173842 [16:20:02]current date 1710174018 [16:20:02]FM_GetShiftState [16:20:02]SAM_PROTO_GetShiftState [16:20:02]wFMCommunicate request_size=4 [16:20:02]MH_SAM_APDU [16:20:02]CAPDU: 80 13 01 00 [16:20:02]Write to MH i2c: E2 08 00 04 9E 80 13 01 00 00 00 00 00 1F [16:20:02]Write i2c OK [16:20:02]MH_I2C_Read... [16:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:02]Read from MH i2c: E2 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: E2 0E 00 [16:20:02]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 0E 00 04 9E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BB [16:20:03]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:20:03]wFMCommunicate OK [16:20:03]SAM_PROTO_GetShiftState done [16:20:03]FM_GetShiftState done [16:20:03]opened in 1710115571 [16:20:03]opened+sec_in_day 1710201971 [16:20:03]quantity*price = 50005 [16:20:03]sum+1 = 50007 [16:20:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 127 11.03.2024 16:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94952 ФПД: 274184765722022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162018&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94952&fm=274184765722022&tin=02508201610067®Number=0000000000090555&sum=50000 [16:20:04]StoreToDocumentArchive [16:20:04]shift 326 fd 94952 [16:20:04]save to /storage/0326/doc_00094952 [16:20:04]save last doc name /storage/0326/doc_00094952 to /storage/kkm_last_doc_name [16:20:04]save OK [16:20:04]Clear old archive folders... [16:20:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:04]tlvbuf is 001E1AE0 [16:20:04]SAM_PROTO_ClearQueue [16:20:04]wFMCommunicate request_size=4 [16:20:04]MH_SAM_APDU [16:20:04]CAPDU: 80 09 00 00 [16:20:04]Write to MH i2c: E2 08 00 11 9E 80 09 00 00 00 00 00 00 21 [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:04]Read from MH i2c: E2 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 03 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 03 00 11 9E 00 90 00 23 [16:20:04]RAPDU: 90 00 [16:20:04]wFMCommunicate OK [16:20:04]SAM_PROTO_ClearQueue done [16:20:04]KKMCreateOFDPacket [16:20:04]OFDProtocolAddRootSTLVToBuf [16:20:04]FM_MakeSignedData [16:20:04]FM_MakeSignedData [16:20:04]SAM_PROTO_SignData [16:20:04]wFMCommunicate request_size=4 [16:20:04]MH_SAM_APDU [16:20:04]CAPDU: 80 0D 01 02 [16:20:04]Write to MH i2c: E2 08 00 12 9E 80 0D 01 02 00 00 00 00 29 [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:04]Read from MH i2c: E2 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 03 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 03 00 12 9E 00 90 00 24 [16:20:04]RAPDU: 90 00 [16:20:04]wFMCommunicate OK [16:20:04]wFMCommunicate request_size=255 [16:20:04]MH_SAM_APDU [16:20:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 42 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 72 01 00 35 04 06 00 F9 [16:20:04]Write to MH i2c: E2 02 01 13 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 42 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 72 01 00 35 04 06 00 F9 00 00 B1 [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:04]Read from MH i2c: E2 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 03 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 03 00 13 9E 00 90 00 25 [16:20:04]RAPDU: 90 00 [16:20:04]wFMCommunicate OK [16:20:04]wFMCommunicate request_size=10 [16:20:04]MH_SAM_APDU [16:20:04]CAPDU: 80 0D 02 02 05 5E 9D 90 4D A6 [16:20:04]Write to MH i2c: E2 0D 00 14 9E 80 0D 02 02 05 00 5E 9D 90 4D A6 00 00 B4 [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:04]Read from MH i2c: E2 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 03 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 03 00 14 9E 00 90 00 26 [16:20:04]RAPDU: 90 00 [16:20:04]wFMCommunicate OK [16:20:04]wFMCommunicate request_size=4 [16:20:04]MH_SAM_APDU [16:20:04]CAPDU: 80 0D 03 02 [16:20:04]Write to MH i2c: E2 08 00 15 9E 80 0D 03 02 00 00 00 00 2E [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:04]Read from MH i2c: E2 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 0B 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 0B 00 15 9E 00 8C 4A 69 19 51 29 CD 85 90 00 53 [16:20:04]RAPDU: 8C 4A 69 19 51 29 CD 85 90 00 [16:20:04]wFMCommunicate OK [16:20:04]SAM_PROTO_SignData done [16:20:04]FM_MakeSignedData done [16:20:04]CreateOFDProtocolMessage [16:20:04]wFMCommunicate request_size=4 [16:20:04]MH_SAM_APDU [16:20:04]CAPDU: 80 11 00 00 [16:20:04]Write to MH i2c: E2 08 00 16 9E 80 11 00 00 00 00 00 00 2E [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:04]Read from MH i2c: E2 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 17 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: E2 17 00 16 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7E [16:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:20:04]wFMCommunicate OK [16:20:04]CreateOFDProtocolMessage done [16:20:04]OFDSenderStorePacket 94952 [16:20:04]StoreOFDPacket docnum=94952 [16:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5E A8 07 01 14 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 42 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 72 01 00 35 04 06 00 F9 5E 9D 90 4D A6 8C 4A 69 19 51 29 CD 85 [16:20:04]CheckFolder [16:20:04]dirname=/storage/ofd_packets [16:20:04]CheckFolder done [16:20:04]ProducePacketName [16:20:04]name=ofd_packets/00094952 [16:20:04]NVStorageSaveData ofd_packets/00094952 [16:20:04]File name is /storage/ofd_packets/00094952 [16:20:04]Write 301 bytes [16:20:04]NVStorageSaveData done [16:20:04]OFDSenderStorePacket done [16:20:04]KKMCreateOFDPacket done [16:20:04]NVStorageSaveData kkm_last_timestamp [16:20:04]File name is /storage/kkm_last_timestamp [16:20:04]Write 4 bytes [16:20:04]NVStorageSaveData done [16:20:04]ExternCall_PrintAddStr [16:20:04]wPrintStart [16:20:04]Write to MH i2c: 01 00 00 17 9E B5 [16:20:04]Write i2c OK [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: 01 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: 01 07 00 [16:20:04]MH_I2C_Read... [16:20:04]Read from MH i2c: 01 07 00 17 9E 00 80 00 00 00 FF 0F 4A [16:20:04]RasterBufferAndPrint [16:20:04]line Счет N : (1)195911 [16:20:04]line ИНН: 02508201610067 [16:20:04]line Контрольно-Кассовый Чек [16:20:04]line ПРОДАЖА [16:20:04]line ТРК (МРК, ГНК) : 42 [16:20:04]line Товар: 2710124130 [16:20:04]line Аи-92-К-5 [16:20:04]line 7.950 * 62.90 [16:20:04]line = 500.06 [16:20:04]line НДС 12% НСП 1% [16:20:04]line > о реализуемом товаре [16:20:04]line ОКРУГЛЕНИЕ: -0.06 [16:20:04]line ИТОГО: 500.00 [16:20:04]line Внесено: 500.00 [16:20:04]line СДАЧА: 0.00 [16:20:04]line НСП 1% : 4.42 [16:20:04]line НДС 12% : 53.10 [16:20:04]line Наличными: 500.00 [16:20:04]line Безнал.: 0.00 [16:20:04]line Место: АЗС № 6 "Партнер Нефть" [16:20:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:20:04]line СНО: Общий режим [16:20:04]line Чек 127 11.03.2024 16:20 [16:20:04]line Смена: 326 ФФД: 1.0 [16:20:04]line ЗНМ: 0300000009 [16:20:04]line РНМ: 0000000000090555 [16:20:04]line Версия ККМ: 001 [16:20:04]line ФМ: 0000000000874811 [16:20:04]line ФД: 94952 [16:20:04]line ФПД: 274184765722022 [16:20:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162018&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94952&fm=274184765722022&tin=02508201610067®Number=0000000000090555&sum=50000 [16:20:05]OFD Sender: Processing packet 94952 [packets to send 30, broken 29] [16:20:05]ProducePacketName [16:20:05]name=ofd_packets/00094952 [16:20:05]OFD Sender: To server: pG, [16:20:05]CommunicateWithHost lk.salyk.kg:30040 [16:20:05]ConnectInit lk.salyk.kg [16:20:05]written 0, free lines is 4095 [16:20:05]Connected sock=10 [16: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 31 31 0F 01 00 00 5E A8 07 01 14 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 42 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E8 72 01 00 35 04 06 00 F9 5E 9D 90 4D A6 8C 4A 69 19 51 29 CD 85 [16: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 31 31 4F 00 00 00 46 BC 47 00 7B 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 31 31 10 04 04 00 E8 72 01 00 F4 03 04 00 9B DA EE 65 B6 04 01 00 00 79 D7 47 F0 4E 1B 85 61 [16:20:05]CommunicateWithHost err = 0 [16:20:05]CheckOFDResponse [16:20:05]1017 (14) - 77093643461234 [16:20:05]1041 (16) - 0000000000874811 [16:20:05]1040 (4) - 94952 [16:20:05]1012 (4) - 11.03.2024 10:19 [16:20:05]1206 (1) - 0 [16:20:05]OFD Sender: Remove packet 94952 [16:20:05]ProducePacketName [16:20:05]name=ofd_packets/00094952 [16:20:05]NVStorageDeleteData [16:20:05]Write to MH i2c: 01 00 00 42 9E E0 [16:20:05]Write i2c OK [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: 01 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: 01 07 00 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: 01 07 00 42 9E 00 80 00 00 00 49 0D BD [16:20:05]RasterBufferAndPrint [16:20:05]line [16:20:05]line [16:20:05]line [16:20:05]line [16:20:05]line [16:20:05]written 0, free lines is 3407 [16:20:05]process_action close_receipt done [16:20:05]requested_data is exist [16:20:05]produce_requested_data [16:20:05]requested_item fm.sn is exist - process it [16:20:05]wFMCommunicate request_size=4 [16:20:05]MH_SAM_APDU [16:20:05]CAPDU: 80 11 00 00 [16:20:05]Write to MH i2c: E2 08 00 49 9E 80 11 00 00 00 00 00 00 61 [16:20:05]Write i2c OK [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 [16:20:05]MH_I2C_Read... [16:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:05]Read from MH i2c: E2 17 00 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 17 00 49 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B1 [16:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:20:05]wFMCommunicate OK [16:20:05]requested_item fd.num is exist - process it [16:20:05]SAM_PROTO_GetFieldsCounters [16:20:05]wFMCommunicate request_size=4 [16:20:05]MH_SAM_APDU [16:20:05]CAPDU: 80 13 00 00 [16:20:05]Write to MH i2c: E2 08 00 4A 9E 80 13 00 00 00 00 00 00 64 [16:20:05]Write i2c OK [16:20:05]MH_I2C_Read... [16:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:05]Read from MH i2c: E2 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 62 00 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 62 00 4A 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E8 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:20: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E8 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:05]wFMCommunicate OK [16:20:05]SAM_PROTO_GetFieldsCounters done [16:20:05]requested_item shift.num is exist - process it [16:20:05]requested_item shift.opened is exist - process it [16:20:05]req_shift_opened [16:20:05]FM_GetShiftState [16:20:05]SAM_PROTO_GetShiftState [16:20:05]wFMCommunicate request_size=4 [16:20:05]MH_SAM_APDU [16:20:05]CAPDU: 80 13 01 00 [16:20:05]Write to MH i2c: E2 08 00 4B 9E 80 13 01 00 00 00 00 00 66 [16:20:05]Write i2c OK [16:20:05]MH_I2C_Read... [16:20:05]OFD Sender: No OFD packet to send [16:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:05]Read from MH i2c: E2 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 0E 00 [16:20:05]MH_I2C_Read... [16:20:05]Read from MH i2c: E2 0E 00 4B 9E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 02 [16:20:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:20:05]wFMCommunicate OK [16:20:05]SAM_PROTO_GetShiftState done [16:20:05]FM_GetShiftState done [16:20:05]req_shift_opened done [16:20:05]requested_item shift.open_date is exist - process it [16:20:05]req_shift_open_date [16:20:05]req_shift_open_date done [16:20:05]produce_requested_data done [16:20:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94952,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:20:05]process_action_free close_receipt [16:20:05]json_value_free [16:20:05]json_value_free done [16:20:05]process_json_proto returns [16:20:05]Send response to host [16:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94952,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:20:05]free response buf [16:20:05]execute_script done [16:20:05]execute_script returns [16:20:05]free content buf [16:20:05]Sock 9.Close socket [16:20:05]Sock 9.Thread stoped [16:20:10]OFD Sender: No OFD packet to send [16:20:15]accept exits with 7 [16:20:15]New connection [16:20:15]New thread 3067014500 created [16:20:15]Thread 3066871140 joined [16:20:15]Waiting for new connection... [16:20:15] Sock 7.Parse request [16:20:15]Sock 7.Check first char [16:20:15]Sock 7.First char is OK [16:20:15]request: POST /json_proto HTTP/1.0 [16:20:15]Method: POST [16:20:15]URL: /json_proto [16:20:15]Method is POST - this is cgi request [16:20:15]url: /json_proto [16:20:15]query_string will be loaded in cgi processing [16:20:15]execute_cgi json_proto POST (null) [16:20:15]execute_cgi path=json_proto method=POST [16:20:15]POST find Content-Length [16:20:15]Host: 172.17.62.67:8080 [16:20:15]Content-Length: 677 [16:20:15]Content-Type: application/json [16:20:15] [16:20:15]POST finish read [16:20:15]Found Content-Length = 677 [16:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:15]execute_script... [16:20:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:15]POST & json_proto [16:20:15]process_json_proto [16:20:15]json parsed OK: [16:20:15]protocol is kg_v1.0 [16:20:15]action value=close_receipt [16:20:15]process_action close_receipt [16:20:15]cmd_close_receipt [16:20:15]MH_GetDate [16:20:15]Write to MH i2c: F0 00 00 4C 9E D9 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: F0 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: F0 05 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: F0 05 00 4C 9E 00 4E 2F EF 65 AF [16:20:15]GetLastDocTimeStamp 1710174018 [16:20:15]current date 1710174030 [16:20:15]FM_GetShiftState [16:20:15]SAM_PROTO_GetShiftState [16:20:15]wFMCommunicate request_size=4 [16:20:15]MH_SAM_APDU [16:20:15]CAPDU: 80 13 01 00 [16:20:15]Write to MH i2c: E2 08 00 4D 9E 80 13 01 00 00 00 00 00 68 [16:20:15]Write i2c OK [16:20:15]MH_I2C_Read... [16:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:15]Read from MH i2c: E2 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 0E 00 [16:20:15]MH_I2C_Read... [16:20:15]Read from MH i2c: E2 0E 00 4D 9E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 04 [16:20:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:20:15]wFMCommunicate OK [16:20:15]SAM_PROTO_GetShiftState done [16:20:15]FM_GetShiftState done [16:20:15]opened in 1710115571 [16:20:15]opened+sec_in_day 1710201971 [16:20:15]quantity*price = 50005 [16:20:15]sum+1 = 50007 [16:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 128 11.03.2024 16:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94953 ФПД: 67773387908357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162030&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94953&fm=67773387908357&tin=02508201610067®Number=0000000000090555&sum=50000 [16:20:16]StoreToDocumentArchive [16:20:16]shift 326 fd 94953 [16:20:16]save to /storage/0326/doc_00094953 [16:20:16]save last doc name /storage/0326/doc_00094953 to /storage/kkm_last_doc_name [16:20:16]save OK [16:20:16]Clear old archive folders... [16:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:16]tlvbuf is 001FB5E0 [16:20:16]SAM_PROTO_ClearQueue [16:20:16]wFMCommunicate request_size=4 [16:20:16]MH_SAM_APDU [16:20:16]CAPDU: 80 09 00 00 [16:20:16]Write to MH i2c: E2 08 00 5A 9E 80 09 00 00 00 00 00 00 6A [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 03 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 03 00 5A 9E 00 90 00 6C [16:20:16]RAPDU: 90 00 [16:20:16]wFMCommunicate OK [16:20:16]SAM_PROTO_ClearQueue done [16:20:16]KKMCreateOFDPacket [16:20:16]OFDProtocolAddRootSTLVToBuf [16:20:16]FM_MakeSignedData [16:20:16]FM_MakeSignedData [16:20:16]SAM_PROTO_SignData [16:20:16]wFMCommunicate request_size=4 [16:20:16]MH_SAM_APDU [16:20:16]CAPDU: 80 0D 01 02 [16:20:16]Write to MH i2c: E2 08 00 5B 9E 80 0D 01 02 00 00 00 00 72 [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 03 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 03 00 5B 9E 00 90 00 6D [16:20:16]RAPDU: 90 00 [16:20:16]wFMCommunicate OK [16:20:16]wFMCommunicate request_size=255 [16:20:16]MH_SAM_APDU [16:20:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4E 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 72 01 00 35 04 06 00 3D [16:20:16]Write to MH i2c: E2 02 01 5C 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4E 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 72 01 00 35 04 06 00 3D 00 00 4C [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 03 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 03 00 5C 9E 00 90 00 6E [16:20:16]RAPDU: 90 00 [16:20:16]wFMCommunicate OK [16:20:16]wFMCommunicate request_size=10 [16:20:16]MH_SAM_APDU [16:20:16]CAPDU: 80 0D 02 02 05 A3 B8 B6 25 05 [16:20:16]Write to MH i2c: E2 0D 00 5D 9E 80 0D 02 02 05 00 A3 B8 B6 25 05 00 00 BA [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 03 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 03 00 5D 9E 00 90 00 6F [16:20:16]RAPDU: 90 00 [16:20:16]wFMCommunicate OK [16:20:16]wFMCommunicate request_size=4 [16:20:16]MH_SAM_APDU [16:20:16]CAPDU: 80 0D 03 02 [16:20:16]Write to MH i2c: E2 08 00 5E 9E 80 0D 03 02 00 00 00 00 77 [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 0B 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 0B 00 5E 9E 00 4D DF DE 7D 89 22 4D 55 90 00 4C [16:20:16]RAPDU: 4D DF DE 7D 89 22 4D 55 90 00 [16:20:16]wFMCommunicate OK [16:20:16]SAM_PROTO_SignData done [16:20:16]FM_MakeSignedData done [16:20:16]CreateOFDProtocolMessage [16:20:16]wFMCommunicate request_size=4 [16:20:16]MH_SAM_APDU [16:20:16]CAPDU: 80 11 00 00 [16:20:16]Write to MH i2c: E2 08 00 5F 9E 80 11 00 00 00 00 00 00 77 [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 17 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 17 00 5F 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [16:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:20:16]wFMCommunicate OK [16:20:16]CreateOFDProtocolMessage done [16:20:16]OFDSenderStorePacket 94953 [16:20:16]StoreOFDPacket docnum=94953 [16:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DE 4B 07 01 1B 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4E 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 72 01 00 35 04 06 00 3D A3 B8 B6 25 05 4D DF DE 7D 89 22 4D 55 [16:20:16]CheckFolder [16:20:16]dirname=/storage/ofd_packets [16:20:16]CheckFolder done [16:20:16]ProducePacketName [16:20:16]name=ofd_packets/00094953 [16:20:16]NVStorageSaveData ofd_packets/00094953 [16:20:16]File name is /storage/ofd_packets/00094953 [16:20:16]Write 301 bytes [16:20:16]NVStorageSaveData done [16:20:16]OFDSenderStorePacket done [16:20:16]KKMCreateOFDPacket done [16:20:16]NVStorageSaveData kkm_last_timestamp [16:20:16]File name is /storage/kkm_last_timestamp [16:20:16]Write 4 bytes [16:20:16]NVStorageSaveData done [16:20:16]ExternCall_PrintAddStr [16:20:16]wPrintStart [16:20:16]Write to MH i2c: 01 00 00 60 9E FE [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: 01 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: 01 07 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: 01 07 00 60 9E 00 80 00 00 00 FF 0F 93 [16:20:16]RasterBufferAndPrint [16:20:16]line Счет N : (1)195912 [16:20:16]line ИНН: 02508201610067 [16:20:16]line Контрольно-Кассовый Чек [16:20:16]line ПРОДАЖА [16:20:16]line ТРК (МРК, ГНК) : 32 [16:20:16]line Товар: 2710124130 [16:20:16]line Аи-92-К-5 [16:20:16]line 7.950 * 62.90 [16:20:16]line = 500.06 [16:20:16]line НДС 12% НСП 1% [16:20:16]line > о реализуемом товаре [16:20:16]line ОКРУГЛЕНИЕ: -0.06 [16:20:16]line ИТОГО: 500.00 [16:20:16]line Внесено: 500.00 [16:20:16]line СДАЧА: 0.00 [16:20:16]line НСП 1% : 4.42 [16:20:16]line НДС 12% : 53.10 [16:20:16]line Наличными: 500.00 [16:20:16]line Безнал.: 0.00 [16:20:16]line Место: АЗС № 6 "Партнер Нефть" [16:20:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:20:16]line СНО: Общий режим [16:20:16]line Чек 128 11.03.2024 16:20 [16:20:16]line Смена: 326 ФФД: 1.0 [16:20:16]line ЗНМ: 0300000009 [16:20:16]line РНМ: 0000000000090555 [16:20:16]line Версия ККМ: 001 [16:20:16]line ФМ: 0000000000874811 [16:20:16]line ФД: 94953 [16:20:16]line ФПД: 67773387908357 [16:20:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162030&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94953&fm=67773387908357&tin=02508201610067®Number=0000000000090555&sum=50000 [16:20:16]written 0, free lines is 4095 [16:20:16]OFD Sender: Processing packet 94953 [packets to send 30, broken 29] [16:20:16]ProducePacketName [16:20:16]name=ofd_packets/00094953 [16:20:16]OFD Sender: To server: pG, [16:20:16]CommunicateWithHost lk.salyk.kg:30040 [16:20:16]ConnectInit lk.salyk.kg [16:20:16]Connected sock=10 [16:20: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 31 31 0F 01 00 00 DE 4B 07 01 1B 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 4E 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 72 01 00 35 04 06 00 3D A3 B8 B6 25 05 4D DF DE 7D 89 22 4D 55 [16:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D8 AF 47 00 00 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 E9 72 01 00 F4 03 04 00 A7 DA EE 65 B6 04 01 00 00 AC 71 F2 81 E9 3A 46 31 [16:20:17]CommunicateWithHost err = 0 [16:20:17]CheckOFDResponse [16:20:17]1017 (14) - 77093643461234 [16:20:17]1041 (16) - 0000000000874811 [16:20:17]1040 (4) - 94953 [16:20:17]1012 (4) - 11.03.2024 10:19 [16:20:17]1206 (1) - 0 [16:20:17]OFD Sender: Remove packet 94953 [16:20:17]ProducePacketName [16:20:17]name=ofd_packets/00094953 [16:20:17]NVStorageDeleteData [16:20:17]Write to MH i2c: 01 00 00 8B 9E 29 [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: 01 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: 01 07 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: 01 07 00 8B 9E 00 80 00 00 00 50 0D 0D [16:20:17]RasterBufferAndPrint [16:20:17]line [16:20:17]line [16:20:17]line [16:20:17]line [16:20:17]line [16:20:17]written 0, free lines is 3418 [16:20:17]process_action close_receipt done [16:20:17]requested_data is exist [16:20:17]produce_requested_data [16:20:17]requested_item fm.sn is exist - process it [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 11 00 00 [16:20:17]Write to MH i2c: E2 08 00 92 9E 80 11 00 00 00 00 00 00 AA [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 17 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 17 00 92 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FA [16:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:20:17]wFMCommunicate OK [16:20:17]requested_item fd.num is exist - process it [16:20:17]SAM_PROTO_GetFieldsCounters [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 13 00 00 [16:20:17]Write to MH i2c: E2 08 00 93 9E 80 13 00 00 00 00 00 00 AD [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 62 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 62 00 93 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [16:20:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 E9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:17]wFMCommunicate OK [16:20:17]SAM_PROTO_GetFieldsCounters done [16:20:17]requested_item shift.num is exist - process it [16:20:17]requested_item shift.opened is exist - process it [16:20:17]req_shift_opened [16:20:17]FM_GetShiftState [16:20:17]SAM_PROTO_GetShiftState [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 13 01 00 [16:20:17]Write to MH i2c: E2 08 00 94 9E 80 13 01 00 00 00 00 00 AF [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 0E 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 0E 00 94 9E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4B [16:20:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:20:17]wFMCommunicate OK [16:20:17]SAM_PROTO_GetShiftState done [16:20:17]FM_GetShiftState done [16:20:17]req_shift_opened done [16:20:17]requested_item shift.open_date is exist - process it [16:20:17]req_shift_open_date [16:20:17]req_shift_open_date done [16:20:17]produce_requested_data done [16:20:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94953,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:20:17]process_action_free close_receipt [16:20:17]json_value_free [16:20:17]json_value_free done [16:20:17]process_json_proto returns [16:20:17]Send response to host [16:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94953,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:20:17]free response buf [16:20:17]execute_script done [16:20:17]execute_script returns [16:20:17]free content buf [16:20:17]Sock 7.Close socket [16:20:17]Sock 7.Thread stoped [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:24]accept exits with 9 [16:20:24]New connection [16:20:24]New thread 3066871140 created [16:20:24]Thread 3067014500 joined [16:20:24]Waiting for new connection... [16:20:24] Sock 9.Parse request [16:20:24]Sock 9.Check first char [16:20:24]Sock 9.First char is OK [16:20:24]request: POST /json_proto HTTP/1.0 [16:20:24]Method: POST [16:20:24]URL: /json_proto [16:20:24]Method is POST - this is cgi request [16:20:24]url: /json_proto [16:20:24]query_string will be loaded in cgi processing [16:20:24]execute_cgi json_proto POST (null) [16:20:24]execute_cgi path=json_proto method=POST [16:20:24]POST find Content-Length [16:20:24]Host: 172.17.62.67:8080 [16:20:24]Content-Length: 733 [16:20:24]Content-Type: application/json [16:20:24] [16:20:24]POST finish read [16:20:24]Found Content-Length = 733 [16:20:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94952, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:24]execute_script... [16:20:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94952, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:24]POST & json_proto [16:20:24]process_json_proto [16:20:24]json parsed OK: [16:20:24]protocol is kg_v1.0 [16:20:24]action value=close_receipt [16:20:24]process_action close_receipt [16:20:24]cmd_close_receipt [16:20:24]MH_GetDate [16:20:24]Write to MH i2c: F0 00 00 95 9E 22 [16:20:24]Write i2c OK [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: F0 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: F0 05 00 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: F0 05 00 95 9E 00 57 2F EF 65 01 [16:20:24]GetLastDocTimeStamp 1710174030 [16:20:24]current date 1710174039 [16:20:24]FM_GetShiftState [16:20:24]SAM_PROTO_GetShiftState [16:20:24]wFMCommunicate request_size=4 [16:20:24]MH_SAM_APDU [16:20:24]CAPDU: 80 13 01 00 [16:20:24]Write to MH i2c: E2 08 00 96 9E 80 13 01 00 00 00 00 00 B1 [16:20:24]Write i2c OK [16:20:24]MH_I2C_Read... [16:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:24]Read from MH i2c: E2 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: E2 0E 00 [16:20:24]MH_I2C_Read... [16:20:24]Read from MH i2c: E2 0E 00 96 9E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4D [16:20:24]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:20:24]wFMCommunicate OK [16:20:24]SAM_PROTO_GetShiftState done [16:20:24]FM_GetShiftState done [16:20:24]opened in 1710115571 [16:20:24]opened+sec_in_day 1710201971 [16:20:24]quantity*price = 50005 [16:20:24]sum+1 = 50007 [16:20:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 129 11.03.2024 16:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 94952 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 94954 ФПД: 245716505151303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162039&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94954&fm=245716505151303&tin=02508201610067®Number=0000000000090555&sum=50000 [16:20:25]StoreToDocumentArchive [16:20:25]shift 326 fd 94954 [16:20:25]save to /storage/0326/doc_00094954 [16:20:25]save last doc name /storage/0326/doc_00094954 to /storage/kkm_last_doc_name [16:20:25]save OK [16:20:25]Clear old archive folders... [16:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:20:25]tlvbuf is 004CDCA0 [16:20:25]SAM_PROTO_ClearQueue [16:20:25]wFMCommunicate request_size=4 [16:20:25]MH_SAM_APDU [16:20:25]CAPDU: 80 09 00 00 [16:20:25]Write to MH i2c: E2 08 00 A5 9E 80 09 00 00 00 00 00 00 B5 [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:25]Read from MH i2c: E2 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 03 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 03 00 A5 9E 00 90 00 B7 [16:20:25]RAPDU: 90 00 [16:20:25]wFMCommunicate OK [16:20:25]SAM_PROTO_ClearQueue done [16:20:25]KKMCreateOFDPacket [16:20:25]OFDProtocolAddRootSTLVToBuf [16:20:25]FM_MakeSignedData [16:20:25]FM_MakeSignedData [16:20:25]SAM_PROTO_SignData [16:20:25]wFMCommunicate request_size=4 [16:20:25]MH_SAM_APDU [16:20:25]CAPDU: 80 0D 01 02 [16:20:25]Write to MH i2c: E2 08 00 A6 9E 80 0D 01 02 00 00 00 00 BD [16:20:25]Write i2c OK [16:20:25]MH_I2C_Read... [16:20:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:25]Read from MH i2c: E2 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 03 00 [16:20:25]MH_I2C_Read... [16:20:25]Read from MH i2c: E2 03 00 A6 9E 00 90 00 B8 [16:20:25]RAPDU: 90 00 [16:20:25]wFMCommunicate OK [16:20:25]wFMCommunicate request_size=255 [16:20:25]MH_SAM_APDU [16:20:25]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 57 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 E8 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [16:20:26]Write to MH i2c: E2 02 01 A7 9E 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 57 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 E8 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 C5 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:26]Read from MH i2c: E2 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 A7 9E 00 90 00 B9 [16:20:26]RAPDU: 90 00 [16:20:26]wFMCommunicate OK [16:20:26]wFMCommunicate request_size=38 [16:20:26]MH_SAM_APDU [16:20:26]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 72 01 00 35 04 06 00 DF 7A 55 01 47 47 [16:20:26]Write to MH i2c: E2 29 00 A8 9E 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 72 01 00 35 04 06 00 DF 7A 55 01 47 47 00 00 E0 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:26]Read from MH i2c: E2 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 03 00 A8 9E 00 90 00 BA [16:20:26]RAPDU: 90 00 [16:20:26]wFMCommunicate OK [16:20:26]wFMCommunicate request_size=4 [16:20:26]MH_SAM_APDU [16:20:26]CAPDU: 80 0D 03 02 [16:20:26]Write to MH i2c: E2 08 00 A9 9E 80 0D 03 02 00 00 00 00 C2 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:26]Read from MH i2c: E2 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 0B 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 0B 00 A9 9E 00 24 96 B2 3B 80 35 B3 D2 90 00 A4 [16:20:26]RAPDU: 24 96 B2 3B 80 35 B3 D2 90 00 [16:20:26]wFMCommunicate OK [16:20:26]SAM_PROTO_SignData done [16:20:26]FM_MakeSignedData done [16:20:26]CreateOFDProtocolMessage [16:20:26]wFMCommunicate request_size=4 [16:20:26]MH_SAM_APDU [16:20:26]CAPDU: 80 11 00 00 [16:20:26]Write to MH i2c: E2 08 00 AA 9E 80 11 00 00 00 00 00 00 C2 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:26]Read from MH i2c: E2 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 17 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: E2 17 00 AA 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [16:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:20:26]wFMCommunicate OK [16:20:26]CreateOFDProtocolMessage done [16:20:26]OFDSenderStorePacket 94954 [16:20:26]StoreOFDPacket docnum=94954 [16:20:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 1D 21 23 01 62 1D 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 57 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 E8 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 72 01 00 35 04 06 00 DF 7A 55 01 47 47 24 96 B2 3B 80 35 B3 D2 [16:20:26]CheckFolder [16:20:26]dirname=/storage/ofd_packets [16:20:26]CheckFolder done [16:20:26]ProducePacketName [16:20:26]name=ofd_packets/00094954 [16:20:26]NVStorageSaveData ofd_packets/00094954 [16:20:26]File name is /storage/ofd_packets/00094954 [16:20:26]Write 329 bytes [16:20:26]NVStorageSaveData done [16:20:26]OFDSenderStorePacket done [16:20:26]KKMCreateOFDPacket done [16:20:26]NVStorageSaveData kkm_last_timestamp [16:20:26]File name is /storage/kkm_last_timestamp [16:20:26]Write 4 bytes [16:20:26]NVStorageSaveData done [16:20:26]ExternCall_PrintAddStr [16:20:26]wPrintStart [16:20:26]Write to MH i2c: 01 00 00 AB 9E 49 [16:20:26]Write i2c OK [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: 01 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: 01 07 00 [16:20:26]MH_I2C_Read... [16:20:26]Read from MH i2c: 01 07 00 AB 9E 00 80 00 00 00 FF 0F DE [16:20:26]RasterBufferAndPrint [16:20:26]line Счет N : (1)195911 [16:20:26]line ИНН: 02508201610067 [16:20:26]line Контрольно-Кассовый Чек [16:20:26]line ВОЗВРАТ ПРОДАЖИ [16:20:26]line ТРК (МРК, ГНК) : 42 [16:20:26]line Товар: 2710124130 [16:20:26]line Аи-92-К-5 [16:20:26]line 7.950 * 62.90 [16:20:26]line = 500.06 [16:20:26]line НДС 12% НСП 1% [16:20:26]line > о реализуемом товаре [16:20:26]line ОКРУГЛЕНИЕ: -0.06 [16:20:26]line ИТОГО: 500.00 [16:20:26]line НСП 1% : 4.42 [16:20:26]line НДС 12% : 53.10 [16:20:26]line Наличными: 500.00 [16:20:26]line Безнал.: 0.00 [16:20:26]line Место: АЗС № 6 "Партнер Нефть" [16:20:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:20:26]line СНО: Общий режим [16:20:26]line Чек 129 11.03.2024 16:20 [16:20:26]line Смена: 326 ФФД: 1.0 [16:20:26]line ЗНМ: 0300000009 [16:20:26]line РНМ: 0000000000090555 [16:20:26]line Версия ККМ: 001 [16:20:26]line ФД осн.: 94952 [16:20:26]line ФМ осн.: 0000000000874811 [16:20:26]line ФМ: 0000000000874811 [16:20:26]line ФД: 94954 [16:20:26]line ФПД: 245716505151303 [16:20:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162039&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94954&fm=245716505151303&tin=02508201610067®Number=0000000000090555&sum=50000 [16:20:26]written 0, free lines is 4095 [16:20:26]OFD Sender: Processing packet 94954 [packets to send 30, broken 29] [16:20:26]ProducePacketName [16:20:26]name=ofd_packets/00094954 [16:20:26]OFD Sender: To server: pG, [16:20:26]CommunicateWithHost lk.salyk.kg:30040 [16:20:26]ConnectInit lk.salyk.kg [16:20:26]Connected sock=10 [16:20: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 31 31 2B 01 00 00 1D 21 23 01 62 1D 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 57 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 E8 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 72 01 00 35 04 06 00 DF 7A 55 01 47 47 24 96 B2 3B 80 35 B3 D2 [16:20: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 31 31 4F 00 00 00 4C F8 47 00 3B 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EA 72 01 00 F4 03 04 00 B0 DA EE 65 B6 04 01 00 00 94 46 04 E8 CC 43 9D AD [16:20:26]CommunicateWithHost err = 0 [16:20:26]CheckOFDResponse [16:20:26]1017 (14) - 77093643461234 [16:20:26]1041 (16) - 0000000000874811 [16:20:26]1040 (4) - 94954 [16:20:26]1012 (4) - 11.03.2024 10:19 [16:20:26]1206 (1) - 0 [16:20:26]OFD Sender: Remove packet 94954 [16:20:26]ProducePacketName [16:20:26]name=ofd_packets/00094954 [16:20:26]NVStorageDeleteData [16:20:27]Write to MH i2c: 01 00 00 D6 9E 74 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 07 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: 01 07 00 D6 9E 00 80 00 00 00 5E 0D 66 [16:20:27]RasterBufferAndPrint [16:20:27]line [16:20:27]line [16:20:27]line [16:20:27]line [16:20:27]line [16:20:27]written 0, free lines is 3436 [16:20:27]process_action close_receipt done [16:20:27]requested_data is exist [16:20:27]produce_requested_data [16:20:27]requested_item fm.sn is exist - process it [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 11 00 00 [16:20:27]Write to MH i2c: E2 08 00 DD 9E 80 11 00 00 00 00 00 00 F5 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 17 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 17 00 DD 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [16:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:20:27]wFMCommunicate OK [16:20:27]requested_item fd.num is exist - process it [16:20:27]SAM_PROTO_GetFieldsCounters [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 13 00 00 [16:20:27]Write to MH i2c: E2 08 00 DE 9E 80 13 00 00 00 00 00 00 F8 [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 62 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 62 00 DE 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EA 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:20: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EA 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:27]wFMCommunicate OK [16:20:27]SAM_PROTO_GetFieldsCounters done [16:20:27]requested_item shift.num is exist - process it [16:20:27]requested_item shift.opened is exist - process it [16:20:27]req_shift_opened [16:20:27]FM_GetShiftState [16:20:27]SAM_PROTO_GetShiftState [16:20:27]wFMCommunicate request_size=4 [16:20:27]MH_SAM_APDU [16:20:27]CAPDU: 80 13 01 00 [16:20:27]Write to MH i2c: E2 08 00 DF 9E 80 13 01 00 00 00 00 00 FA [16:20:27]Write i2c OK [16:20:27]MH_I2C_Read... [16:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:27]Read from MH i2c: E2 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 0E 00 [16:20:27]MH_I2C_Read... [16:20:27]Read from MH i2c: E2 0E 00 DF 9E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 96 [16:20:27]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:20:27]wFMCommunicate OK [16:20:27]SAM_PROTO_GetShiftState done [16:20:27]FM_GetShiftState done [16:20:27]req_shift_opened done [16:20:27]requested_item shift.open_date is exist - process it [16:20:27]req_shift_open_date [16:20:27]req_shift_open_date done [16:20:27]produce_requested_data done [16:20:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94954,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:20:27]process_action_free close_receipt [16:20:27]json_value_free [16:20:27]json_value_free done [16:20:27]process_json_proto returns [16:20:27]Send response to host [16:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94954,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:20:27]free response buf [16:20:27]execute_script done [16:20:27]execute_script returns [16:20:27]free content buf [16:20:27]Sock 9.Close socket [16:20:27]Sock 9.Thread stoped [16:20:27]OFD Sender: No OFD packet to send [16:20:28]accept exits with 7 [16:20:28]New connection [16:20:28]New thread 3067014500 created [16:20:28]Thread 3066871140 joined [16:20:28]Waiting for new connection... [16:20:28] Sock 7.Parse request [16:20:28]Sock 7.Check first char [16:20:28]Sock 7.First char is OK [16:20:28]request: POST /json_proto HTTP/1.0 [16:20:28]Method: POST [16:20:28]URL: /json_proto [16:20:28]Method is POST - this is cgi request [16:20:28]url: /json_proto [16:20:28]query_string will be loaded in cgi processing [16:20:28]execute_cgi json_proto POST (null) [16:20:28]execute_cgi path=json_proto method=POST [16:20:28]POST find Content-Length [16:20:28]Host: 172.17.62.67:8080 [16:20:28]Content-Length: 677 [16:20:28]Content-Type: application/json [16:20:28] [16:20:28]POST finish read [16:20:28]Found Content-Length = 677 [16:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:28]execute_script... [16:20: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)195913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:28]POST & json_proto [16:20:28]process_json_proto [16:20:28]json parsed OK: [16:20:28]protocol is kg_v1.0 [16:20:28]action value=close_receipt [16:20:28]process_action close_receipt [16:20:28]cmd_close_receipt [16:20:28]MH_GetDate [16:20:28]Write to MH i2c: F0 00 00 E0 9E 6D [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 05 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 05 00 E0 9E 00 5B 2F EF 65 50 [16:20:28]GetLastDocTimeStamp 1710174039 [16:20:28]current date 1710174043 [16:20:28]FM_GetShiftState [16:20:28]SAM_PROTO_GetShiftState [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 13 01 00 [16:20:28]Write to MH i2c: E2 08 00 E1 9E 80 13 01 00 00 00 00 00 FC [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0E 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0E 00 E1 9E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 98 [16:20:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:20:28]wFMCommunicate OK [16:20:28]SAM_PROTO_GetShiftState done [16:20:28]FM_GetShiftState done [16:20:28]opened in 1710115571 [16:20:28]opened+sec_in_day 1710201971 [16:20:28]quantity*price = 30003 [16:20:28]sum+1 = 30004 [16:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 130 11.03.2024 16:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94955 ФПД: 277527822061510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162043&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94955&fm=277527822061510&tin=02508201610067®Number=0000000000090555&sum=30000 [16:20:29]StoreToDocumentArchive [16:20:29]shift 326 fd 94955 [16:20:29]save to /storage/0326/doc_00094955 [16:20:29]save last doc name /storage/0326/doc_00094955 to /storage/kkm_last_doc_name [16:20:29]save OK [16:20:29]Clear old archive folders... [16:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:29]tlvbuf is 00225820 [16:20:29]SAM_PROTO_ClearQueue [16:20:29]wFMCommunicate request_size=4 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 09 00 00 [16:20:29]Write to MH i2c: E2 08 00 EE 9E 80 09 00 00 00 00 00 00 FE [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 EE 9E 00 90 00 00 [16:20:29]RAPDU: 90 00 [16:20:29]wFMCommunicate OK [16:20:29]SAM_PROTO_ClearQueue done [16:20:29]KKMCreateOFDPacket [16:20:29]OFDProtocolAddRootSTLVToBuf [16:20:29]FM_MakeSignedData [16:20:29]FM_MakeSignedData [16:20:29]SAM_PROTO_SignData [16:20:29]wFMCommunicate request_size=4 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 0D 01 02 [16:20:29]Write to MH i2c: E2 08 00 EF 9E 80 0D 01 02 00 00 00 00 06 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 EF 9E 00 90 00 01 [16:20:29]RAPDU: 90 00 [16:20:29]wFMCommunicate OK [16:20:29]wFMCommunicate request_size=255 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5B 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 72 01 00 35 04 06 00 FC [16:20:29]Write to MH i2c: E2 02 01 F0 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5B 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 72 01 00 35 04 06 00 FC 00 00 E5 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 03 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 03 00 F0 9E 00 90 00 02 [16:20:30]RAPDU: 90 00 [16:20:30]wFMCommunicate OK [16:20:30]wFMCommunicate request_size=10 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 0D 02 02 05 68 FB 3F CF C6 [16:20:30]Write to MH i2c: E2 0D 00 F1 9E 80 0D 02 02 05 00 68 FB 3F CF C6 00 00 4A [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 03 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 03 00 F1 9E 00 90 00 03 [16:20:30]RAPDU: 90 00 [16:20:30]wFMCommunicate OK [16:20:30]wFMCommunicate request_size=4 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 0D 03 02 [16:20:30]Write to MH i2c: E2 08 00 F2 9E 80 0D 03 02 00 00 00 00 0B [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 0B 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 0B 00 F2 9E 00 DA C6 26 F2 F6 39 C9 4C 90 00 08 [16:20:30]RAPDU: DA C6 26 F2 F6 39 C9 4C 90 00 [16:20:30]wFMCommunicate OK [16:20:30]SAM_PROTO_SignData done [16:20:30]FM_MakeSignedData done [16:20:30]CreateOFDProtocolMessage [16:20:30]wFMCommunicate request_size=4 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 11 00 00 [16:20:30]Write to MH i2c: E2 08 00 F3 9E 80 11 00 00 00 00 00 00 0B [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 17 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 17 00 F3 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [16:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:20:30]wFMCommunicate OK [16:20:30]CreateOFDProtocolMessage done [16:20:30]OFDSenderStorePacket 94955 [16:20:30]StoreOFDPacket docnum=94955 [16:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 76 AD 07 01 85 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5B 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 72 01 00 35 04 06 00 FC 68 FB 3F CF C6 DA C6 26 F2 F6 39 C9 4C [16:20:30]CheckFolder [16:20:30]dirname=/storage/ofd_packets [16:20:30]CheckFolder done [16:20:30]ProducePacketName [16:20:30]name=ofd_packets/00094955 [16:20:30]NVStorageSaveData ofd_packets/00094955 [16:20:30]File name is /storage/ofd_packets/00094955 [16:20:30]Write 301 bytes [16:20:30]NVStorageSaveData done [16:20:30]OFDSenderStorePacket done [16:20:30]KKMCreateOFDPacket done [16:20:30]NVStorageSaveData kkm_last_timestamp [16:20:30]File name is /storage/kkm_last_timestamp [16:20:30]Write 4 bytes [16:20:30]NVStorageSaveData done [16:20:30]ExternCall_PrintAddStr [16:20:30]wPrintStart [16:20:30]Write to MH i2c: 01 00 00 F4 9E 92 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 07 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 07 00 F4 9E 00 80 00 00 00 FF 0F 27 [16:20:30]RasterBufferAndPrint [16:20:30]line Счет N : (1)195913 [16:20:30]line ИНН: 02508201610067 [16:20:30]line Контрольно-Кассовый Чек [16:20:30]line ПРОДАЖА [16:20:30]line ТРК (МРК, ГНК) : 42 [16:20:30]line Товар: 2710124130 [16:20:30]line Аи-92-К-5 [16:20:30]line 4.770 * 62.90 [16:20:30]line = 300.03 [16:20:30]line НДС 12% НСП 1% [16:20:30]line > о реализуемом товаре [16:20:30]line ОКРУГЛЕНИЕ: -0.03 [16:20:30]line ИТОГО: 300.00 [16:20:30]line Внесено: 300.00 [16:20:30]line СДАЧА: 0.00 [16:20:30]line НСП 1% : 2.65 [16:20:30]line НДС 12% : 31.86 [16:20:30]line Наличными: 300.00 [16:20:30]line Безнал.: 0.00 [16:20:30]line Место: АЗС № 6 "Партнер Нефть" [16:20:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:20:30]line СНО: Общий режим [16:20:30]line Чек 130 11.03.2024 16:20 [16:20:30]line Смена: 326 ФФД: 1.0 [16:20:30]line ЗНМ: 0300000009 [16:20:30]line РНМ: 0000000000090555 [16:20:30]line Версия ККМ: 001 [16:20:30]line ФМ: 0000000000874811 [16:20:30]line ФД: 94955 [16:20:30]line ФПД: 277527822061510 [16:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162043&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94955&fm=277527822061510&tin=02508201610067®Number=0000000000090555&sum=30000 [16:20:30]written 0, free lines is 4095 [16:20:30]OFD Sender: Processing packet 94955 [packets to send 30, broken 29] [16:20:30]ProducePacketName [16:20:30]name=ofd_packets/00094955 [16:20:30]OFD Sender: To server: pG, [16:20:30]CommunicateWithHost lk.salyk.kg:30040 [16:20:30]ConnectInit lk.salyk.kg [16:20:30]Connected sock=10 [16:20: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 31 31 0F 01 00 00 76 AD 07 01 85 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5B 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 72 01 00 35 04 06 00 FC 68 FB 3F CF C6 DA C6 26 F2 F6 39 C9 4C [16:20: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 31 31 4F 00 00 00 7D CC 47 00 63 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EB 72 01 00 F4 03 04 00 B4 DA EE 65 B6 04 01 00 00 A3 CD AB B9 6D 0B BA 06 [16:20:30]CommunicateWithHost err = 0 [16:20:30]CheckOFDResponse [16:20:30]1017 (14) - 77093643461234 [16:20:30]1041 (16) - 0000000000874811 [16:20:30]1040 (4) - 94955 [16:20:30]1012 (4) - 11.03.2024 10:19 [16:20:30]1206 (1) - 0 [16:20:30]OFD Sender: Remove packet 94955 [16:20:30]ProducePacketName [16:20:30]name=ofd_packets/00094955 [16:20:30]NVStorageDeleteData [16:20:31]Write to MH i2c: 01 00 00 1F 9F BE [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: 01 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: 01 07 00 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: 01 07 00 1F 9F 00 80 00 00 00 63 0D B5 [16:20:31]RasterBufferAndPrint [16:20:31]line [16:20:31]line [16:20:31]line [16:20:31]line [16:20:31]line [16:20:31]written 0, free lines is 3451 [16:20:31]process_action close_receipt done [16:20:31]requested_data is exist [16:20:31]produce_requested_data [16:20:31]requested_item fm.sn is exist - process it [16:20:31]wFMCommunicate request_size=4 [16:20:31]MH_SAM_APDU [16:20:31]CAPDU: 80 11 00 00 [16:20:31]Write to MH i2c: E2 08 00 26 9F 80 11 00 00 00 00 00 00 3F [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:31]Read from MH i2c: E2 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 17 00 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 17 00 26 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8F [16:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:20:31]wFMCommunicate OK [16:20:31]requested_item fd.num is exist - process it [16:20:31]SAM_PROTO_GetFieldsCounters [16:20:31]wFMCommunicate request_size=4 [16:20:31]MH_SAM_APDU [16:20:31]CAPDU: 80 13 00 00 [16:20:31]Write to MH i2c: E2 08 00 27 9F 80 13 00 00 00 00 00 00 42 [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:31]Read from MH i2c: E2 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 62 00 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 62 00 27 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EB 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [16:20: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EB 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:31]wFMCommunicate OK [16:20:31]SAM_PROTO_GetFieldsCounters done [16:20:31]requested_item shift.num is exist - process it [16:20:31]requested_item shift.opened is exist - process it [16:20:31]req_shift_opened [16:20:31]FM_GetShiftState [16:20:31]SAM_PROTO_GetShiftState [16:20:31]wFMCommunicate request_size=4 [16:20:31]MH_SAM_APDU [16:20:31]CAPDU: 80 13 01 00 [16:20:31]Write to MH i2c: E2 08 00 28 9F 80 13 01 00 00 00 00 00 44 [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:31]Read from MH i2c: E2 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 0E 00 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: E2 0E 00 28 9F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E0 [16:20:31]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:20:31]wFMCommunicate OK [16:20:31]SAM_PROTO_GetShiftState done [16:20:31]FM_GetShiftState done [16:20:31]req_shift_opened done [16:20:31]requested_item shift.open_date is exist - process it [16:20:31]req_shift_open_date [16:20:31]req_shift_open_date done [16:20:31]produce_requested_data done [16:20:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94955,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:20:31]process_action_free close_receipt [16:20:31]json_value_free [16:20:31]json_value_free done [16:20:31]process_json_proto returns [16:20:31]Send response to host [16:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94955,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:20:31]free response buf [16:20:31]execute_script done [16:20:31]execute_script returns [16:20:31]free content buf [16:20:31]Sock 7.Close socket [16:20:31]Sock 7.Thread stoped [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:30]accept exits with 9 [16:22:30]New connection [16:22:30]New thread 3066871140 created [16:22:30]Thread 3067014500 joined [16:22:30]Waiting for new connection... [16:22:30] Sock 9.Parse request [16:22:30]Sock 9.Check first char [16:22:30]Sock 9.First char is OK [16:22:30]request: POST /json_proto HTTP/1.0 [16:22:30]Method: POST [16:22:30]URL: /json_proto [16:22:30]Method is POST - this is cgi request [16:22:30]url: /json_proto [16:22:30]query_string will be loaded in cgi processing [16:22:30]execute_cgi json_proto POST (null) [16:22:30]execute_cgi path=json_proto method=POST [16:22:30]POST find Content-Length [16:22:30]Host: 172.17.62.67:8080 [16:22:30]Content-Length: 682 [16:22:30]Content-Type: application/json [16:22:30] [16:22:30]POST finish read [16:22:30]Found Content-Length = 682 [16:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:30]execute_script... [16: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)195914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:30]POST & json_proto [16:22:30]process_json_proto [16:22:30]json parsed OK: [16:22:30]protocol is kg_v1.0 [16:22:30]action value=close_receipt [16:22:30]process_action close_receipt [16:22:30]cmd_close_receipt [16:22:30]MH_GetDate [16:22:30]Write to MH i2c: F0 00 00 29 9F B7 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 05 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: F0 05 00 29 9F 00 D5 2F EF 65 14 [16:22:30]GetLastDocTimeStamp 1710174043 [16:22:30]current date 1710174165 [16:22:30]FM_GetShiftState [16:22:30]SAM_PROTO_GetShiftState [16:22:30]wFMCommunicate request_size=4 [16:22:30]MH_SAM_APDU [16:22:30]CAPDU: 80 13 01 00 [16:22:30]Write to MH i2c: E2 08 00 2A 9F 80 13 01 00 00 00 00 00 46 [16:22:30]Write i2c OK [16:22:30]MH_I2C_Read... [16:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:30]Read from MH i2c: E2 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 0E 00 [16:22:30]MH_I2C_Read... [16:22:30]Read from MH i2c: E2 0E 00 2A 9F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E2 [16:22:30]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:22:30]wFMCommunicate OK [16:22:30]SAM_PROTO_GetShiftState done [16:22:30]FM_GetShiftState done [16:22:30]opened in 1710115571 [16:22:30]opened+sec_in_day 1710201971 [16:22:30]quantity*price = 100011 [16:22:30]sum+1 = 100012 [16:22:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 131 11.03.2024 16:22 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94956 ФПД: 188407871777133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162246&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94956&fm=188407871777133&tin=02508201610067®Number=0000000000090555&sum=100000 [16:22:31]StoreToDocumentArchive [16:22:31]shift 326 fd 94956 [16:22:31]save to /storage/0326/doc_00094956 [16:22:31]save last doc name /storage/0326/doc_00094956 to /storage/kkm_last_doc_name [16:22:31]save OK [16:22:31]Clear old archive folders... [16:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:31]tlvbuf is 00430600 [16:22:31]SAM_PROTO_ClearQueue [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 09 00 00 [16:22:31]Write to MH i2c: E2 08 00 37 9F 80 09 00 00 00 00 00 00 48 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 03 00 37 9F 00 90 00 4A [16:22:31]RAPDU: 90 00 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_ClearQueue done [16:22:31]KKMCreateOFDPacket [16:22:31]OFDProtocolAddRootSTLVToBuf [16:22:31]FM_MakeSignedData [16:22:31]FM_MakeSignedData [16:22:31]SAM_PROTO_SignData [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 0D 01 02 [16:22:31]Write to MH i2c: E2 08 00 38 9F 80 0D 01 02 00 00 00 00 50 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 38 9F 00 90 00 4B [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=255 [16:22:32]MH_SAM_APDU [16:22: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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 D6 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 72 01 00 35 04 06 00 AB [16:22:32]Write to MH i2c: E2 02 01 39 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 D6 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 72 01 00 35 04 06 00 AB 00 00 25 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 39 9F 00 90 00 4C [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=10 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 02 02 05 5B 20 45 29 6D [16:22:32]Write to MH i2c: E2 0D 00 3A 9F 80 0D 02 02 05 00 5B 20 45 29 6D 00 00 B3 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 3A 9F 00 90 00 4D [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 03 02 [16:22:32]Write to MH i2c: E2 08 00 3B 9F 80 0D 03 02 00 00 00 00 55 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0B 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0B 00 3B 9F 00 63 DF 0D A5 0A 7C F9 C3 90 00 8C [16:22:32]RAPDU: 63 DF 0D A5 0A 7C F9 C3 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_SignData done [16:22:32]FM_MakeSignedData done [16:22:32]CreateOFDProtocolMessage [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 11 00 00 [16:22:32]Write to MH i2c: E2 08 00 3C 9F 80 11 00 00 00 00 00 00 55 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 3C 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [16:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:22:32]wFMCommunicate OK [16:22:32]CreateOFDProtocolMessage done [16:22:32]OFDSenderStorePacket 94956 [16:22:32]StoreOFDPacket docnum=94956 [16:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2E B2 07 01 39 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 D6 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 72 01 00 35 04 06 00 AB 5B 20 45 29 6D 63 DF 0D A5 0A 7C F9 C3 [16:22:32]CheckFolder [16:22:32]dirname=/storage/ofd_packets [16:22:32]CheckFolder done [16:22:32]ProducePacketName [16:22:32]name=ofd_packets/00094956 [16:22:32]NVStorageSaveData ofd_packets/00094956 [16:22:32]File name is /storage/ofd_packets/00094956 [16:22:32]Write 301 bytes [16:22:32]NVStorageSaveData done [16:22:32]OFDSenderStorePacket done [16:22:32]KKMCreateOFDPacket done [16:22:32]NVStorageSaveData kkm_last_timestamp [16:22:32]File name is /storage/kkm_last_timestamp [16:22:32]Write 4 bytes [16:22:32]NVStorageSaveData done [16:22:32]ExternCall_PrintAddStr [16:22:32]wPrintStart [16:22:32]Write to MH i2c: 01 00 00 3D 9F DC [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 3D 9F 00 80 00 00 00 FF 0F 71 [16:22:32]RasterBufferAndPrint [16:22:32]line Счет N : (1)195914 [16:22:32]line ИНН: 02508201610067 [16:22:32]line Контрольно-Кассовый Чек [16:22:32]line ПРОДАЖА [16:22:32]line ТРК (МРК, ГНК) : 32 [16:22:32]line Товар: 2710124130 [16:22:32]line Аи-92-К-5 [16:22:32]line 15.900 * 62.90 [16:22:32]line = 1000.11 [16:22:32]line НДС 12% НСП 1% [16:22:32]line > о реализуемом товаре [16:22:32]line ОКРУГЛЕНИЕ: -0.11 [16:22:32]line ИТОГО: 1000.00 [16:22:32]line Внесено: 1000.00 [16:22:32]line СДАЧА: 0.00 [16:22:32]line НСП 1% : 8.85 [16:22:32]line НДС 12% : 106.21 [16:22:32]line Наличными: 1000.00 [16:22:32]line Безнал.: 0.00 [16:22:32]line Место: АЗС № 6 "Партнер Нефть" [16:22:32]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:22:32]line СНО: Общий режим [16:22:32]line Чек 131 11.03.2024 16:22 [16:22:32]line Смена: 326 ФФД: 1.0 [16:22:32]line ЗНМ: 0300000009 [16:22:32]line РНМ: 0000000000090555 [16:22:32]line Версия ККМ: 001 [16:22:32]line ФМ: 0000000000874811 [16:22:32]line ФД: 94956 [16:22:32]line ФПД: 188407871777133 [16:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162246&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94956&fm=188407871777133&tin=02508201610067®Number=0000000000090555&sum=100000 [16:22:32]OFD Sender: Processing packet 94956 [packets to send 30, broken 29] [16:22:32]ProducePacketName [16:22:32]name=ofd_packets/00094956 [16:22:32]OFD Sender: To server: pG, [16:22:32]CommunicateWithHost lk.salyk.kg:30040 [16:22:32]ConnectInit lk.salyk.kg [16:22:32]written 0, free lines is 4095 [16:22:32]Connected sock=10 [16: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 31 31 0F 01 00 00 2E B2 07 01 39 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 D6 2F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 72 01 00 35 04 06 00 AB 5B 20 45 29 6D 63 DF 0D A5 0A 7C F9 C3 [16:22: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 31 31 4F 00 00 00 B9 19 47 00 7A 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EC 72 01 00 F4 03 04 00 2E DB EE 65 B6 04 01 00 00 DB E3 86 FF A0 8E 5D A2 [16:22:33]CommunicateWithHost err = 0 [16:22:33]CheckOFDResponse [16:22:33]1017 (14) - 77093643461234 [16:22:33]1041 (16) - 0000000000874811 [16:22:33]1040 (4) - 94956 [16:22:33]1012 (4) - 11.03.2024 10:21 [16:22:33]1206 (1) - 0 [16:22:33]OFD Sender: Remove packet 94956 [16:22:33]ProducePacketName [16:22:33]name=ofd_packets/00094956 [16:22:33]NVStorageDeleteData [16:22:33]Write to MH i2c: 01 00 00 68 9F 07 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 07 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 07 00 68 9F 00 80 00 00 00 4B 0D E6 [16:22:33]RasterBufferAndPrint [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]written 0, free lines is 3409 [16:22:33]process_action close_receipt done [16:22:33]requested_data is exist [16:22:33]produce_requested_data [16:22:33]requested_item fm.sn is exist - process it [16:22:33]wFMCommunicate request_size=4 [16:22:33]MH_SAM_APDU [16:22:33]CAPDU: 80 11 00 00 [16:22:33]Write to MH i2c: E2 08 00 6F 9F 80 11 00 00 00 00 00 00 88 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 [16:22:33]MH_I2C_Read... [16:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:33]Read from MH i2c: E2 17 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 17 00 6F 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D8 [16:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:22:33]wFMCommunicate OK [16:22:33]requested_item fd.num is exist - process it [16:22:33]SAM_PROTO_GetFieldsCounters [16:22:33]wFMCommunicate request_size=4 [16:22:33]MH_SAM_APDU [16:22:33]CAPDU: 80 13 00 00 [16:22:33]Write to MH i2c: E2 08 00 70 9F 80 13 00 00 00 00 00 00 8B [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:33]Read from MH i2c: E2 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 62 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 62 00 70 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EC 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [16:22: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EC 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:33]wFMCommunicate OK [16:22:33]SAM_PROTO_GetFieldsCounters done [16:22:33]requested_item shift.num is exist - process it [16:22:33]requested_item shift.opened is exist - process it [16:22:33]req_shift_opened [16:22:33]FM_GetShiftState [16:22:33]SAM_PROTO_GetShiftState [16:22:33]wFMCommunicate request_size=4 [16:22:33]MH_SAM_APDU [16:22:33]CAPDU: 80 13 01 00 [16:22:33]Write to MH i2c: E2 08 00 71 9F 80 13 01 00 00 00 00 00 8D [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]OFD Sender: No OFD packet to send [16:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:33]Read from MH i2c: E2 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 0E 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: E2 0E 00 71 9F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 29 [16:22:33]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:22:33]wFMCommunicate OK [16:22:33]SAM_PROTO_GetShiftState done [16:22:33]FM_GetShiftState done [16:22:33]req_shift_opened done [16:22:33]requested_item shift.open_date is exist - process it [16:22:33]req_shift_open_date [16:22:33]req_shift_open_date done [16:22:33]produce_requested_data done [16:22:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94956,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:22:33]process_action_free close_receipt [16:22:33]json_value_free [16:22:33]json_value_free done [16:22:33]process_json_proto returns [16:22:33]Send response to host [16:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94956,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:22:33]free response buf [16:22:33]execute_script done [16:22:33]execute_script returns [16:22:33]free content buf [16:22:33]Sock 9.Close socket [16:22:33]Sock 9.Thread stoped [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:54]accept exits with 7 [16:23:54]New connection [16:23:54]New thread 3067014500 created [16:23:54]Thread 3066871140 joined [16:23:54]Waiting for new connection... [16:23:54] Sock 7.Parse request [16:23:54]Sock 7.Check first char [16:23:54]Sock 7.First char is OK [16:23:54]request: POST /json_proto HTTP/1.0 [16:23:54]Method: POST [16:23:54]URL: /json_proto [16:23:54]Method is POST - this is cgi request [16:23:54]url: /json_proto [16:23:54]query_string will be loaded in cgi processing [16:23:54]execute_cgi json_proto POST (null) [16:23:54]execute_cgi path=json_proto method=POST [16:23:54]POST find Content-Length [16:23:54]Host: 172.17.62.67:8080 [16:23:54]Content-Length: 805 [16:23:54]Content-Type: application/json [16:23:54] [16:23:54]POST finish read [16:23:54]Found Content-Length = 805 [16:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:54]execute_script... [16:23: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)195915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:54]POST & json_proto [16:23:54]process_json_proto [16:23:54]json parsed OK: [16:23:54]protocol is kg_v1.0 [16:23:54]action value=close_receipt [16:23:54]process_action close_receipt [16:23:54]cmd_close_receipt [16:23:54]MH_GetDate [16:23:54]Write to MH i2c: F0 00 00 72 9F 00 [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: F0 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: F0 05 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: F0 05 00 72 9F 00 29 30 EF 65 B2 [16:23:54]GetLastDocTimeStamp 1710174166 [16:23:54]current date 1710174249 [16:23:54]FM_GetShiftState [16:23:54]SAM_PROTO_GetShiftState [16:23:54]wFMCommunicate request_size=4 [16:23:54]MH_SAM_APDU [16:23:54]CAPDU: 80 13 01 00 [16:23:54]Write to MH i2c: E2 08 00 73 9F 80 13 01 00 00 00 00 00 8F [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:54]Read from MH i2c: E2 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: E2 0E 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: E2 0E 00 73 9F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2B [16:23:54]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:23:54]wFMCommunicate OK [16:23:54]SAM_PROTO_GetShiftState done [16:23:54]FM_GetShiftState done [16:23:54]opened in 1710115571 [16:23:54]opened+sec_in_day 1710201971 [16:23:54]quantity*price = 40004 [16:23:54]sum+1 = 40005 [16:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.04 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 132 11.03.2024 16:24 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94957 ФПД: 198281544549679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162410&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94957&fm=198281544549679&tin=02508201610067®Number=0000000000090555&sum=40004 [16:23:55]StoreToDocumentArchive [16:23:55]shift 326 fd 94957 [16:23:55]save to /storage/0326/doc_00094957 [16:23:55]save last doc name /storage/0326/doc_00094957 to /storage/kkm_last_doc_name [16:23:55]save OK [16:23:55]Clear old archive folders... [16:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:55]tlvbuf is 003ACA30 [16:23:55]SAM_PROTO_ClearQueue [16:23:55]wFMCommunicate request_size=4 [16:23:55]MH_SAM_APDU [16:23:55]CAPDU: 80 09 00 00 [16:23:55]Write to MH i2c: E2 08 00 80 9F 80 09 00 00 00 00 00 00 91 [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 [16:23:55]MH_I2C_Read... [16:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 80 9F 00 90 00 93 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]SAM_PROTO_ClearQueue done [16:23:56]KKMCreateOFDPacket [16:23:56]OFDProtocolAddRootSTLVToBuf [16:23:56]FM_MakeSignedData [16:23:56]FM_MakeSignedData [16:23:56]SAM_PROTO_SignData [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 01 02 [16:23:56]Write to MH i2c: E2 08 00 81 9F 80 0D 01 02 00 00 00 00 99 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 81 9F 00 90 00 94 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]wFMCommunicate request_size=255 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 2A 30 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 72 01 00 35 04 06 00 B4 [16:23:56]Write to MH i2c: E2 02 01 82 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 2A 30 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 72 01 00 35 04 06 00 B4 00 00 71 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 82 9F 00 90 00 95 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]wFMCommunicate request_size=10 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 02 02 05 56 05 07 45 2F [16:23:56]Write to MH i2c: E2 0D 00 83 9F 80 0D 02 02 05 00 56 05 07 45 2F 00 00 7C [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 83 9F 00 90 00 96 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 03 02 [16:23:56]Write to MH i2c: E2 08 00 84 9F 80 0D 03 02 00 00 00 00 9E [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 0B 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 0B 00 84 9F 00 2E 58 77 AD C7 B2 9E AD 90 00 0D [16:23:56]RAPDU: 2E 58 77 AD C7 B2 9E AD 90 00 [16:23:56]wFMCommunicate OK [16:23:56]SAM_PROTO_SignData done [16:23:56]FM_MakeSignedData done [16:23:56]CreateOFDProtocolMessage [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 11 00 00 [16:23:56]Write to MH i2c: E2 08 00 85 9F 80 11 00 00 00 00 00 00 9E [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 17 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 17 00 85 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [16:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:23:56]wFMCommunicate OK [16:23:56]CreateOFDProtocolMessage done [16:23:56]OFDSenderStorePacket 94957 [16:23:56]StoreOFDPacket docnum=94957 [16:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8D 50 07 01 3E 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 2A 30 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 72 01 00 35 04 06 00 B4 56 05 07 45 2F 2E 58 77 AD C7 B2 9E AD [16:23:56]CheckFolder [16:23:56]dirname=/storage/ofd_packets [16:23:56]CheckFolder done [16:23:56]ProducePacketName [16:23:56]name=ofd_packets/00094957 [16:23:56]NVStorageSaveData ofd_packets/00094957 [16:23:56]File name is /storage/ofd_packets/00094957 [16:23:56]Write 301 bytes [16:23:56]NVStorageSaveData done [16:23:56]OFDSenderStorePacket done [16:23:56]KKMCreateOFDPacket done [16:23:56]NVStorageSaveData kkm_last_timestamp [16:23:56]File name is /storage/kkm_last_timestamp [16:23:56]Write 4 bytes [16:23:56]NVStorageSaveData done [16:23:56]ExternCall_PrintAddStr [16:23:56]wPrintStart [16:23:56]Write to MH i2c: 01 00 00 86 9F 25 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 07 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 07 00 86 9F 00 80 00 00 00 FF 0F BA [16:23:56]RasterBufferAndPrint [16:23:56]line Счет N : (1)195915 [16:23:56]line ИНН: 02508201610067 [16:23:56]line Контрольно-Кассовый Чек [16:23:56]line ПРОДАЖА [16:23:56]line ТРК (МРК, ГНК) : 12 [16:23:56]line Товар: 2710124130 [16:23:56]line Аи-92-К-5 [16:23:56]line 6.360 * 62.90 [16:23:56]line = 400.04 [16:23:56]line НДС 12% НСП 1% [16:23:56]line > о реализуемом товаре [16:23:56]line ИТОГО: 400.04 [16:23:56]line НСП 1% : 3.54 [16:23:56]line НДС 12% : 42.48 [16:23:56]line Наличными: 0.00 [16:23:56]line Безнал.: 400.04 [16:23:56]line Место: АЗС № 6 "Партнер Нефть" [16:23:56]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:23:56]line СНО: Общий режим [16:23:56]line Чек 132 11.03.2024 16:24 [16:23:56]line Смена: 326 ФФД: 1.0 [16:23:56]line ЗНМ: 0300000009 [16:23:56]line РНМ: 0000000000090555 [16:23:56]line Версия ККМ: 001 [16:23:56]line Платежная система: О! деньги [16:23:56]line ФМ: 0000000000874811 [16:23:56]line ФД: 94957 [16:23:56]line ФПД: 198281544549679 [16:23:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162410&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94957&fm=198281544549679&tin=02508201610067®Number=0000000000090555&sum=40004 [16:23:56]written 0, free lines is 4095 [16:23:56]OFD Sender: Processing packet 94957 [packets to send 30, broken 29] [16:23:56]ProducePacketName [16:23:56]name=ofd_packets/00094957 [16:23:56]OFD Sender: To server: pG, [16:23:56]CommunicateWithHost lk.salyk.kg:30040 [16:23:56]ConnectInit lk.salyk.kg [16:23:56]Connected sock=10 [16:23: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 31 31 0F 01 00 00 8D 50 07 01 3E 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 2A 30 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 ED 72 01 00 35 04 06 00 B4 56 05 07 45 2F 2E 58 77 AD C7 B2 9E AD [16:23:56]Write to MH i2c: 01 00 00 B0 9F 4F [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 07 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: 01 07 00 B0 9F 00 80 00 00 00 72 0D 55 [16:23:56]RasterBufferAndPrint [16:23:56]line [16:23:56]line [16:23:56]line [16:23:56]line [16:23:56]line [16:23:56]written 0, free lines is 3450 [16:23:56]process_action close_receipt done [16:23:56]requested_data is exist [16:23:56]produce_requested_data [16:23:56]requested_item fm.sn is exist - process it [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 11 00 00 [16:23:56]Write to MH i2c: E2 08 00 B7 9F 80 11 00 00 00 00 00 00 D0 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 17 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 17 00 B7 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 20 [16:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:23:57]wFMCommunicate OK [16:23:57]requested_item fd.num is exist - process it [16:23:57]SAM_PROTO_GetFieldsCounters [16:23:57]wFMCommunicate request_size=4 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 13 00 00 [16:23:57]Write to MH i2c: E2 08 00 B8 9F 80 13 00 00 00 00 00 00 D3 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23: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 31 31 4F 00 00 00 A8 EC 47 00 0D 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 31 31 10 04 04 00 ED 72 01 00 F4 03 04 00 82 DB EE 65 B6 04 01 00 00 7D 46 F5 5F E3 A2 0A 26 [16:23:57]CommunicateWithHost err = 0 [16:23:57]CheckOFDResponse [16:23:57]1017 (14) - 77093643461234 [16:23:57]1041 (16) - 0000000000874811 [16:23:57]1040 (4) - 94957 [16:23:57]1012 (4) - 11.03.2024 10:22 [16:23:57]1206 (1) - 0 [16:23:57]OFD Sender: Remove packet 94957 [16:23:57]ProducePacketName [16:23:57]name=ofd_packets/00094957 [16:23:57]NVStorageDeleteData [16:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 62 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 62 00 B8 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 ED 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [16:23: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 ED 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:57]wFMCommunicate OK [16:23:57]SAM_PROTO_GetFieldsCounters done [16:23:57]requested_item shift.num is exist - process it [16:23:57]requested_item shift.opened is exist - process it [16:23:57]req_shift_opened [16:23:57]FM_GetShiftState [16:23:57]SAM_PROTO_GetShiftState [16:23:57]wFMCommunicate request_size=4 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 13 01 00 [16:23:57]Write to MH i2c: E2 08 00 B9 9F 80 13 01 00 00 00 00 00 D5 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 0E 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 0E 00 B9 9F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 71 [16:23:57]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:23:57]wFMCommunicate OK [16:23:57]SAM_PROTO_GetShiftState done [16:23:57]FM_GetShiftState done [16:23:57]req_shift_opened done [16:23:57]requested_item shift.open_date is exist - process it [16:23:57]req_shift_open_date [16:23:57]req_shift_open_date done [16:23:57]produce_requested_data done [16:23:57]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94957,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:23:57]process_action_free close_receipt [16:23:57]json_value_free [16:23:57]json_value_free done [16:23:57]process_json_proto returns [16:23:57]Send response to host [16:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94957,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:23:57]free response buf [16:23:57]execute_script done [16:23:57]execute_script returns [16:23:57]free content buf [16:23:57]Sock 7.Close socket [16:23:57]Sock 7.Thread stoped [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:27:59]accept exits with 9 [16:27:59]New connection [16:27:59]New thread 3066871140 created [16:27:59]Thread 3067014500 joined [16:27:59]Waiting for new connection... [16:27:59] Sock 9.Parse request [16:27:59]Sock 9.Check first char [16:27:59]Sock 9.First char is OK [16:27:59]request: POST /json_proto HTTP/1.0 [16:27:59]Method: POST [16:27:59]URL: /json_proto [16:27:59]Method is POST - this is cgi request [16:27:59]url: /json_proto [16:27:59]query_string will be loaded in cgi processing [16:27:59]execute_cgi json_proto POST (null) [16:27:59]execute_cgi path=json_proto method=POST [16:27:59]POST find Content-Length [16:27:59]Host: 172.17.62.67:8080 [16:27:59]Content-Length: 677 [16:27:59]Content-Type: application/json [16:27:59] [16:27:59]POST finish read [16:27:59]Found Content-Length = 677 [16:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:59]execute_script... [16:27: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)195916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:59]POST & json_proto [16:27:59]process_json_proto [16:27:59]json parsed OK: [16:27:59]protocol is kg_v1.0 [16:27:59]action value=close_receipt [16:27:59]process_action close_receipt [16:27:59]cmd_close_receipt [16:27:59]MH_GetDate [16:27:59]Write to MH i2c: F0 00 00 BA 9F 48 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: F0 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: F0 05 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: F0 05 00 BA 9F 00 1E 31 EF 65 F0 [16:27:59]GetLastDocTimeStamp 1710174250 [16:27:59]current date 1710174494 [16:27:59]FM_GetShiftState [16:27:59]SAM_PROTO_GetShiftState [16:27:59]wFMCommunicate request_size=4 [16:27:59]MH_SAM_APDU [16:27:59]CAPDU: 80 13 01 00 [16:27:59]Write to MH i2c: E2 08 00 BB 9F 80 13 01 00 00 00 00 00 D7 [16:27:59]Write i2c OK [16:27:59]MH_I2C_Read... [16:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:59]Read from MH i2c: E2 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 0E 00 [16:27:59]MH_I2C_Read... [16:27:59]Read from MH i2c: E2 0E 00 BB 9F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 73 [16:27:59]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:27:59]wFMCommunicate OK [16:27:59]SAM_PROTO_GetShiftState done [16:27:59]FM_GetShiftState done [16:27:59]opened in 1710115571 [16:27:59]opened+sec_in_day 1710201971 [16:27:59]quantity*price = 50005 [16:27:59]sum+1 = 50007 [16:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 133 11.03.2024 16:28 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94958 ФПД: 266019812434778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162814&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94958&fm=266019812434778&tin=02508201610067®Number=0000000000090555&sum=50000 [16:28:00]StoreToDocumentArchive [16:28:00]shift 326 fd 94958 [16:28:00]save to /storage/0326/doc_00094958 [16:28:00]save last doc name /storage/0326/doc_00094958 to /storage/kkm_last_doc_name [16:28:00]save OK [16:28:00]Clear old archive folders... [16:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:00]tlvbuf is 001D3790 [16:28:00]SAM_PROTO_ClearQueue [16:28:00]wFMCommunicate request_size=4 [16:28:00]MH_SAM_APDU [16:28:00]CAPDU: 80 09 00 00 [16:28:00]Write to MH i2c: E2 08 00 C8 9F 80 09 00 00 00 00 00 00 D9 [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 [16:28:00]MH_I2C_Read... [16:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:00]Read from MH i2c: E2 03 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 03 00 C8 9F 00 90 00 DB [16:28:00]RAPDU: 90 00 [16:28:00]wFMCommunicate OK [16:28:00]SAM_PROTO_ClearQueue done [16:28:00]KKMCreateOFDPacket [16:28:00]OFDProtocolAddRootSTLVToBuf [16:28:00]FM_MakeSignedData [16:28:00]FM_MakeSignedData [16:28:00]SAM_PROTO_SignData [16:28:00]wFMCommunicate request_size=4 [16:28:00]MH_SAM_APDU [16:28:00]CAPDU: 80 0D 01 02 [16:28:00]Write to MH i2c: E2 08 00 C9 9F 80 0D 01 02 00 00 00 00 E1 [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:00]Read from MH i2c: E2 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 03 00 [16:28:00]MH_I2C_Read... [16:28:00]Read from MH i2c: E2 03 00 C9 9F 00 90 00 DC [16:28:00]RAPDU: 90 00 [16:28:00]wFMCommunicate OK [16:28:00]wFMCommunicate request_size=255 [16:28:00]MH_SAM_APDU [16:28:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 1E 31 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 72 01 00 35 04 06 00 F1 [16:28:00]Write to MH i2c: E2 02 01 CA 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 1E 31 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 72 01 00 35 04 06 00 F1 00 00 4B [16:28:00]Write i2c OK [16:28:00]MH_I2C_Read... [16:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:01]Read from MH i2c: E2 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 03 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 03 00 CA 9F 00 90 00 DD [16:28:01]RAPDU: 90 00 [16:28:01]wFMCommunicate OK [16:28:01]wFMCommunicate request_size=10 [16:28:01]MH_SAM_APDU [16:28:01]CAPDU: 80 0D 02 02 05 F1 90 6C 63 5A [16:28:01]Write to MH i2c: E2 0D 00 CB 9F 80 0D 02 02 05 00 F1 90 6C 63 5A 00 00 98 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:01]Read from MH i2c: E2 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 03 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 03 00 CB 9F 00 90 00 DE [16:28:01]RAPDU: 90 00 [16:28:01]wFMCommunicate OK [16:28:01]wFMCommunicate request_size=4 [16:28:01]MH_SAM_APDU [16:28:01]CAPDU: 80 0D 03 02 [16:28:01]Write to MH i2c: E2 08 00 CC 9F 80 0D 03 02 00 00 00 00 E6 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:01]Read from MH i2c: E2 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 0B 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 0B 00 CC 9F 00 3A 75 96 C8 7E 25 0B 85 90 00 27 [16:28:01]RAPDU: 3A 75 96 C8 7E 25 0B 85 90 00 [16:28:01]wFMCommunicate OK [16:28:01]SAM_PROTO_SignData done [16:28:01]FM_MakeSignedData done [16:28:01]CreateOFDProtocolMessage [16:28:01]wFMCommunicate request_size=4 [16:28:01]MH_SAM_APDU [16:28:01]CAPDU: 80 11 00 00 [16:28:01]Write to MH i2c: E2 08 00 CD 9F 80 11 00 00 00 00 00 00 E6 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:01]Read from MH i2c: E2 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 17 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 17 00 CD 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [16:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:28:01]wFMCommunicate OK [16:28:01]CreateOFDProtocolMessage done [16:28:01]OFDSenderStorePacket 94958 [16:28:01]StoreOFDPacket docnum=94958 [16:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1C E3 07 01 03 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 1E 31 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 72 01 00 35 04 06 00 F1 F1 90 6C 63 5A 3A 75 96 C8 7E 25 0B 85 [16:28:01]CheckFolder [16:28:01]dirname=/storage/ofd_packets [16:28:01]CheckFolder done [16:28:01]ProducePacketName [16:28:01]name=ofd_packets/00094958 [16:28:01]NVStorageSaveData ofd_packets/00094958 [16:28:01]File name is /storage/ofd_packets/00094958 [16:28:01]Write 301 bytes [16:28:01]NVStorageSaveData done [16:28:01]OFDSenderStorePacket done [16:28:01]KKMCreateOFDPacket done [16:28:01]NVStorageSaveData kkm_last_timestamp [16:28:01]File name is /storage/kkm_last_timestamp [16:28:01]Write 4 bytes [16:28:01]NVStorageSaveData done [16:28:01]ExternCall_PrintAddStr [16:28:01]wPrintStart [16:28:01]Write to MH i2c: 01 00 00 CE 9F 6D [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 07 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 07 00 CE 9F 00 80 00 00 00 FF 0F 02 [16:28:01]RasterBufferAndPrint [16:28:01]line Счет N : (1)195916 [16:28:01]line ИНН: 02508201610067 [16:28:01]line Контрольно-Кассовый Чек [16:28:01]line ПРОДАЖА [16:28:01]line ТРК (МРК, ГНК) : 12 [16:28:01]line Товар: 2710124130 [16:28:01]line Аи-92-К-5 [16:28:01]line 7.950 * 62.90 [16:28:01]line = 500.06 [16:28:01]line НДС 12% НСП 1% [16:28:01]line > о реализуемом товаре [16:28:01]line ОКРУГЛЕНИЕ: -0.06 [16:28:01]line ИТОГО: 500.00 [16:28:01]line Внесено: 500.00 [16:28:01]line СДАЧА: 0.00 [16:28:01]line НСП 1% : 4.42 [16:28:01]line НДС 12% : 53.10 [16:28:01]line Наличными: 500.00 [16:28:01]line Безнал.: 0.00 [16:28:01]line Место: АЗС № 6 "Партнер Нефть" [16:28:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:28:01]line СНО: Общий режим [16:28:01]line Чек 133 11.03.2024 16:28 [16:28:01]line Смена: 326 ФФД: 1.0 [16:28:01]line ЗНМ: 0300000009 [16:28:01]line РНМ: 0000000000090555 [16:28:01]line Версия ККМ: 001 [16:28:01]line ФМ: 0000000000874811 [16:28:01]line ФД: 94958 [16:28:01]line ФПД: 266019812434778 [16:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T162814&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94958&fm=266019812434778&tin=02508201610067®Number=0000000000090555&sum=50000 [16:28:01]written 0, free lines is 4095 [16:28:01]OFD Sender: Processing packet 94958 [packets to send 30, broken 29] [16:28:01]ProducePacketName [16:28:01]name=ofd_packets/00094958 [16:28:01]OFD Sender: To server: pG, [16:28:01]CommunicateWithHost lk.salyk.kg:30040 [16:28:01]ConnectInit lk.salyk.kg [16:28:01]Connected sock=11 [16:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1C E3 07 01 03 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 1E 31 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 72 01 00 35 04 06 00 F1 F1 90 6C 63 5A 3A 75 96 C8 7E 25 0B 85 [16:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 20 45 47 00 30 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EE 72 01 00 F4 03 04 00 77 DC EE 65 B6 04 01 00 00 1C CE 62 B5 70 0A 65 0D [16:28:01]CommunicateWithHost err = 0 [16:28:01]CheckOFDResponse [16:28:01]1017 (14) - 77093643461234 [16:28:01]1041 (16) - 0000000000874811 [16:28:01]1040 (4) - 94958 [16:28:01]1012 (4) - 11.03.2024 10:27 [16:28:01]1206 (1) - 0 [16:28:01]OFD Sender: Remove packet 94958 [16:28:01]ProducePacketName [16:28:01]name=ofd_packets/00094958 [16:28:01]NVStorageDeleteData [16:28:01]Write to MH i2c: 01 00 00 F9 9F 98 [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 07 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: 01 07 00 F9 9F 00 80 00 00 00 57 0D 83 [16:28:01]RasterBufferAndPrint [16:28:01]line [16:28:01]line [16:28:01]line [16:28:01]line [16:28:01]line [16:28:01]written 0, free lines is 3421 [16:28:01]process_action close_receipt done [16:28:01]requested_data is exist [16:28:01]produce_requested_data [16:28:01]requested_item fm.sn is exist - process it [16:28:01]wFMCommunicate request_size=4 [16:28:01]MH_SAM_APDU [16:28:01]CAPDU: 80 11 00 00 [16:28:01]Write to MH i2c: E2 08 00 00 A0 80 11 00 00 00 00 00 00 1A [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:01]Read from MH i2c: E2 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 17 00 [16:28:01]MH_I2C_Read... [16:28:01]Read from MH i2c: E2 17 00 00 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6A [16:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:28:01]wFMCommunicate OK [16:28:01]requested_item fd.num is exist - process it [16:28:01]SAM_PROTO_GetFieldsCounters [16:28:01]wFMCommunicate request_size=4 [16:28:01]MH_SAM_APDU [16:28:01]CAPDU: 80 13 00 00 [16:28:01]Write to MH i2c: E2 08 00 01 A0 80 13 00 00 00 00 00 00 1D [16:28:01]Write i2c OK [16:28:01]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 62 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 62 00 01 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [16:28: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:02]wFMCommunicate OK [16:28:02]SAM_PROTO_GetFieldsCounters done [16:28:02]requested_item shift.num is exist - process it [16:28:02]requested_item shift.opened is exist - process it [16:28:02]req_shift_opened [16:28:02]FM_GetShiftState [16:28:02]SAM_PROTO_GetShiftState [16:28:02]wFMCommunicate request_size=4 [16:28:02]MH_SAM_APDU [16:28:02]CAPDU: 80 13 01 00 [16:28:02]Write to MH i2c: E2 08 00 02 A0 80 13 01 00 00 00 00 00 1F [16:28:02]Write i2c OK [16:28:02]MH_I2C_Read... [16:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:02]Read from MH i2c: E2 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 0E 00 [16:28:02]MH_I2C_Read... [16:28:02]Read from MH i2c: E2 0E 00 02 A0 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BB [16:28:02]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:28:02]wFMCommunicate OK [16:28:02]SAM_PROTO_GetShiftState done [16:28:02]FM_GetShiftState done [16:28:02]req_shift_opened done [16:28:02]requested_item shift.open_date is exist - process it [16:28:02]req_shift_open_date [16:28:02]req_shift_open_date done [16:28:02]produce_requested_data done [16:28:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94958,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:28:02]process_action_free close_receipt [16:28:02]json_value_free [16:28:02]json_value_free done [16:28:02]process_json_proto returns [16:28:02]Send response to host [16:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94958,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:28:02]free response buf [16:28:02]execute_script done [16:28:02]execute_script returns [16:28:02]free content buf [16:28:02]Sock 9.Close socket [16:28:02]Sock 9.Thread stoped [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:33]accept exits with 7 [16:36:33]New connection [16:36:33]New thread 3067014500 created [16:36:33]Thread 3066871140 joined [16:36:33]Waiting for new connection... [16:36:33] Sock 7.Parse request [16:36:33]Sock 7.Check first char [16:36:33]Sock 7.First char is OK [16:36:33]request: POST /json_proto HTTP/1.0 [16:36:33]Method: POST [16:36:33]URL: /json_proto [16:36:33]Method is POST - this is cgi request [16:36:33]url: /json_proto [16:36:33]query_string will be loaded in cgi processing [16:36:33]execute_cgi json_proto POST (null) [16:36:33]execute_cgi path=json_proto method=POST [16:36:33]POST find Content-Length [16:36:33]Host: 172.17.62.67:8080 [16:36:33]Content-Length: 813 [16:36:33]Content-Type: application/json [16:36:33] [16:36:33]POST finish read [16:36:33]Found Content-Length = 813 [16:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:33]execute_script... [16:36: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)195917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:33]POST & json_proto [16:36:33]process_json_proto [16:36:33]json parsed OK: [16:36:33]protocol is kg_v1.0 [16:36:33]action value=close_receipt [16:36:33]process_action close_receipt [16:36:33]cmd_close_receipt [16:36:33]MH_GetDate [16:36:33]Write to MH i2c: F0 00 00 03 A0 92 [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: F0 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: F0 05 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: F0 05 00 03 A0 00 20 33 EF 65 3E [16:36:33]GetLastDocTimeStamp 1710174494 [16:36:33]current date 1710175008 [16:36:33]FM_GetShiftState [16:36:33]SAM_PROTO_GetShiftState [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 13 01 00 [16:36:33]Write to MH i2c: E2 08 00 04 A0 80 13 01 00 00 00 00 00 21 [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 0E 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 0E 00 04 A0 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BD [16:36:33]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:36:33]wFMCommunicate OK [16:36:33]SAM_PROTO_GetShiftState done [16:36:33]FM_GetShiftState done [16:36:33]opened in 1710115571 [16:36:33]opened+sec_in_day 1710201971 [16:36:33]quantity*price = 50055 [16:36:33]sum+1 = 50056 [16:36:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.55 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.55 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 134 11.03.2024 16:36 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94959 ФПД: 101698933166389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T163648&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94959&fm=101698933166389&tin=02508201610067®Number=0000000000090555&sum=50055 [16:36:34]StoreToDocumentArchive [16:36:34]shift 326 fd 94959 [16:36:34]save to /storage/0326/doc_00094959 [16:36:34]save last doc name /storage/0326/doc_00094959 to /storage/kkm_last_doc_name [16:36:34]save OK [16:36:34]Clear old archive folders... [16:36:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:36:34]tlvbuf is 002102C0 [16:36:34]SAM_PROTO_ClearQueue [16:36:34]wFMCommunicate request_size=4 [16:36:34]MH_SAM_APDU [16:36:34]CAPDU: 80 09 00 00 [16:36:34]Write to MH i2c: E2 08 00 11 A0 80 09 00 00 00 00 00 00 23 [16:36:34]Write i2c OK [16:36:34]MH_I2C_Read... [16:36:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:34]Read from MH i2c: E2 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 03 00 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 03 00 11 A0 00 90 00 25 [16:36:34]RAPDU: 90 00 [16:36:34]wFMCommunicate OK [16:36:34]SAM_PROTO_ClearQueue done [16:36:34]KKMCreateOFDPacket [16:36:34]OFDProtocolAddRootSTLVToBuf [16:36:34]FM_MakeSignedData [16:36:34]FM_MakeSignedData [16:36:34]SAM_PROTO_SignData [16:36:34]wFMCommunicate request_size=4 [16:36:34]MH_SAM_APDU [16:36:34]CAPDU: 80 0D 01 02 [16:36:34]Write to MH i2c: E2 08 00 12 A0 80 0D 01 02 00 00 00 00 2B [16:36:34]Write i2c OK [16:36:34]MH_I2C_Read... [16:36:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:34]Read from MH i2c: E2 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 03 00 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 03 00 12 A0 00 90 00 26 [16:36:34]RAPDU: 90 00 [16:36:34]wFMCommunicate OK [16:36:34]wFMCommunicate request_size=255 [16:36:34]MH_SAM_APDU [16:36:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 20 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 72 01 00 35 04 06 00 5C 7E A0 C9 [16:36:34]Write to MH i2c: E2 02 01 13 A0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 20 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 72 01 00 35 04 06 00 5C 7E A0 C9 00 00 8B [16:36:34]Write i2c OK [16:36:34]MH_I2C_Read... [16:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:34]Read from MH i2c: E2 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 03 00 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 03 00 13 A0 00 90 00 27 [16:36:34]RAPDU: 90 00 [16:36:34]wFMCommunicate OK [16:36:34]wFMCommunicate request_size=7 [16:36:34]MH_SAM_APDU [16:36:34]CAPDU: 80 0D 02 02 02 11 35 [16:36:34]Write to MH i2c: E2 0A 00 14 A0 80 0D 02 02 02 00 11 35 00 00 78 [16:36:34]Write i2c OK [16:36:34]MH_I2C_Read... [16:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:34]Read from MH i2c: E2 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 03 00 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 03 00 14 A0 00 90 00 28 [16:36:34]RAPDU: 90 00 [16:36:34]wFMCommunicate OK [16:36:34]wFMCommunicate request_size=4 [16:36:34]MH_SAM_APDU [16:36:34]CAPDU: 80 0D 03 02 [16:36:34]Write to MH i2c: E2 08 00 15 A0 80 0D 03 02 00 00 00 00 30 [16:36:34]Write i2c OK [16:36:34]MH_I2C_Read... [16:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 0B 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 0B 00 15 A0 00 D3 38 FD BF 9A A4 1D 5B 90 00 AE [16:36:35]RAPDU: D3 38 FD BF 9A A4 1D 5B 90 00 [16:36:35]wFMCommunicate OK [16:36:35]SAM_PROTO_SignData done [16:36:35]FM_MakeSignedData done [16:36:35]CreateOFDProtocolMessage [16:36:35]wFMCommunicate request_size=4 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 11 00 00 [16:36:35]Write to MH i2c: E2 08 00 16 A0 80 11 00 00 00 00 00 00 30 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 17 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 17 00 16 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 80 [16:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:36:35]wFMCommunicate OK [16:36:35]CreateOFDProtocolMessage done [16:36:35]OFDSenderStorePacket 94959 [16:36:35]StoreOFDPacket docnum=94959 [16:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 12 8D 04 01 20 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 20 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 72 01 00 35 04 06 00 5C 7E A0 C9 11 35 D3 38 FD BF 9A A4 1D 5B [16:36:35]CheckFolder [16:36:35]dirname=/storage/ofd_packets [16:36:35]CheckFolder done [16:36:35]ProducePacketName [16:36:35]name=ofd_packets/00094959 [16:36:35]NVStorageSaveData ofd_packets/00094959 [16:36:35]File name is /storage/ofd_packets/00094959 [16:36:35]Write 298 bytes [16:36:35]NVStorageSaveData done [16:36:35]OFDSenderStorePacket done [16:36:35]KKMCreateOFDPacket done [16:36:35]NVStorageSaveData kkm_last_timestamp [16:36:35]File name is /storage/kkm_last_timestamp [16:36:35]Write 4 bytes [16:36:35]NVStorageSaveData done [16:36:35]ExternCall_PrintAddStr [16:36:35]wPrintStart [16:36:35]Write to MH i2c: 01 00 00 17 A0 B7 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 07 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 07 00 17 A0 00 80 00 00 00 FF 0F 4C [16:36:35]RasterBufferAndPrint [16:36:35]line Счет N : (1)195917 [16:36:35]line ИНН: 02508201610067 [16:36:35]line Контрольно-Кассовый Чек [16:36:35]line ПРОДАЖА [16:36:35]line ТРК (МРК, ГНК) : 51 [16:36:35]line Товар: 2710194210 [16:36:35]line ДТ-К-5 [16:36:35]line 7.060 * 70.90 [16:36:35]line = 500.55 [16:36:35]line НДС 12% НСП 1% [16:36:35]line > о реализуемом товаре [16:36:35]line ИТОГО: 500.55 [16:36:35]line НСП 1% : 4.43 [16:36:35]line НДС 12% : 53.16 [16:36:35]line Наличными: 0.00 [16:36:35]line Безнал.: 500.55 [16:36:35]line Место: АЗС № 6 "Партнер Нефть" [16:36:35]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:36:35]line СНО: Общий режим [16:36:35]line Чек 134 11.03.2024 16:36 [16:36:35]line Смена: 326 ФФД: 1.0 [16:36:35]line ЗНМ: 0300000009 [16:36:35]line РНМ: 0000000000090555 [16:36:35]line Версия ККМ: 001 [16:36:35]line Платежная система: Бакай Банк [16:36:35]line ФМ: 0000000000874811 [16:36:35]line ФД: 94959 [16:36:35]line ФПД: 101698933166389 [16:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T163648&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94959&fm=101698933166389&tin=02508201610067®Number=0000000000090555&sum=50055 [16:36:35]OFD Sender: Processing packet 94959 [packets to send 30, broken 29] [16:36:35]ProducePacketName [16:36:35]name=ofd_packets/00094959 [16:36:35]OFD Sender: To server: pG, [16:36:35]CommunicateWithHost lk.salyk.kg:30040 [16:36:35]ConnectInit lk.salyk.kg [16:36:35]written 0, free lines is 4095 [16:36:35]Connected sock=11 [16:36:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 12 8D 04 01 20 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 20 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 EF 72 01 00 35 04 06 00 5C 7E A0 C9 11 35 D3 38 FD BF 9A A4 1D 5B [16:36: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 31 31 4F 00 00 00 29 45 47 00 0B 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 31 31 10 04 04 00 EF 72 01 00 F4 03 04 00 79 DE EE 65 B6 04 01 00 00 56 35 DE 7A F5 94 37 D7 [16:36:35]CommunicateWithHost err = 0 [16:36:35]CheckOFDResponse [16:36:35]1017 (14) - 77093643461234 [16:36:35]1041 (16) - 0000000000874811 [16:36:35]1040 (4) - 94959 [16:36:35]1012 (4) - 11.03.2024 10:35 [16:36:35]1206 (1) - 0 [16:36:35]OFD Sender: Remove packet 94959 [16:36:35]ProducePacketName [16:36:35]name=ofd_packets/00094959 [16:36:35]NVStorageDeleteData [16:36:35]Write to MH i2c: 01 00 00 41 A0 E1 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 07 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 07 00 41 A0 00 80 00 00 00 61 0D D6 [16:36:35]RasterBufferAndPrint [16:36:35]line [16:36:35]line [16:36:35]line [16:36:35]line [16:36:35]line [16:36:35]written 0, free lines is 3431 [16:36:35]process_action close_receipt done [16:36:35]requested_data is exist [16:36:35]produce_requested_data [16:36:35]requested_item fm.sn is exist - process it [16:36:35]wFMCommunicate request_size=4 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 11 00 00 [16:36:35]Write to MH i2c: E2 08 00 48 A0 80 11 00 00 00 00 00 00 62 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 17 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 17 00 48 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [16:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:36:35]wFMCommunicate OK [16:36:35]requested_item fd.num is exist - process it [16:36:35]SAM_PROTO_GetFieldsCounters [16:36:35]wFMCommunicate request_size=4 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 13 00 00 [16:36:35]Write to MH i2c: E2 08 00 49 A0 80 13 00 00 00 00 00 00 65 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:36]Read from MH i2c: E2 [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: E2 62 00 [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: E2 62 00 49 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EF 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [16:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 EF 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:36]wFMCommunicate OK [16:36:36]SAM_PROTO_GetFieldsCounters done [16:36:36]requested_item shift.num is exist - process it [16:36:36]requested_item shift.opened is exist - process it [16:36:36]req_shift_opened [16:36:36]FM_GetShiftState [16:36:36]SAM_PROTO_GetShiftState [16:36:36]wFMCommunicate request_size=4 [16:36:36]MH_SAM_APDU [16:36:36]CAPDU: 80 13 01 00 [16:36:36]Write to MH i2c: E2 08 00 4A A0 80 13 01 00 00 00 00 00 67 [16:36:36]Write i2c OK [16:36:36]MH_I2C_Read... [16:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:36]Read from MH i2c: E2 [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: E2 0E 00 [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: E2 0E 00 4A A0 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 03 [16:36:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:36:36]wFMCommunicate OK [16:36:36]SAM_PROTO_GetShiftState done [16:36:36]FM_GetShiftState done [16:36:36]req_shift_opened done [16:36:36]requested_item shift.open_date is exist - process it [16:36:36]req_shift_open_date [16:36:36]req_shift_open_date done [16:36:36]produce_requested_data done [16:36:36]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94959,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:36:36]process_action_free close_receipt [16:36:36]json_value_free [16:36:36]json_value_free done [16:36:36]process_json_proto returns [16:36:36]Send response to host [16:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94959,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:36:36]free response buf [16:36:36]execute_script done [16:36:36]execute_script returns [16:36:36]free content buf [16:36:36]Sock 7.Close socket [16:36:36]Sock 7.Thread stoped [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:40]accept exits with 9 [16:37:40]New connection [16:37:40]New thread 3066871140 created [16:37:40]Thread 3067014500 joined [16:37:40]Waiting for new connection... [16:37:40] Sock 9.Parse request [16:37:40]Sock 9.Check first char [16:37:40]Sock 9.First char is OK [16:37:40]request: POST /json_proto HTTP/1.0 [16:37:40]Method: POST [16:37:40]URL: /json_proto [16:37:40]Method is POST - this is cgi request [16:37:40]url: /json_proto [16:37:40]query_string will be loaded in cgi processing [16:37:40]execute_cgi json_proto POST (null) [16:37:40]execute_cgi path=json_proto method=POST [16:37:40]POST find Content-Length [16:37:40]Host: 172.17.62.67:8080 [16:37:40]Content-Length: 674 [16:37:40]Content-Type: application/json [16:37:40] [16:37:40]POST finish read [16:37:40]Found Content-Length = 674 [16:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:40]execute_script... [16:37: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)195918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:40]POST & json_proto [16:37:40]process_json_proto [16:37:40]json parsed OK: [16:37:40]protocol is kg_v1.0 [16:37:40]action value=close_receipt [16:37:40]process_action close_receipt [16:37:40]cmd_close_receipt [16:37:40]MH_GetDate [16:37:40]Write to MH i2c: F0 00 00 4B A0 DA [16:37:40]Write i2c OK [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: F0 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: F0 05 00 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: F0 05 00 4B A0 00 63 33 EF 65 C9 [16:37:40]GetLastDocTimeStamp 1710175008 [16:37:40]current date 1710175075 [16:37:40]FM_GetShiftState [16:37:40]SAM_PROTO_GetShiftState [16:37:40]wFMCommunicate request_size=4 [16:37:40]MH_SAM_APDU [16:37:40]CAPDU: 80 13 01 00 [16:37:40]Write to MH i2c: E2 08 00 4C A0 80 13 01 00 00 00 00 00 69 [16:37:40]Write i2c OK [16:37:40]MH_I2C_Read... [16:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:40]Read from MH i2c: E2 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: E2 0E 00 [16:37:40]MH_I2C_Read... [16:37:40]Read from MH i2c: E2 0E 00 4C A0 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 05 [16:37:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:37:40]wFMCommunicate OK [16:37:40]SAM_PROTO_GetShiftState done [16:37:40]FM_GetShiftState done [16:37:40]opened in 1710115571 [16:37:40]opened+sec_in_day 1710201971 [16:37:40]quantity*price = 50055 [16:37:40]sum+1 = 50056 [16:37:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 135 11.03.2024 16:37 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94960 ФПД: 154638476711367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T163755&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94960&fm=154638476711367&tin=02508201610067®Number=0000000000090555&sum=50000 [16:37:41]StoreToDocumentArchive [16:37:41]shift 326 fd 94960 [16:37:41]save to /storage/0326/doc_00094960 [16:37:41]save last doc name /storage/0326/doc_00094960 to /storage/kkm_last_doc_name [16:37:41]save OK [16:37:41]Clear old archive folders... [16:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:37:41]tlvbuf is 004304B0 [16:37:41]SAM_PROTO_ClearQueue [16:37:41]wFMCommunicate request_size=4 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 09 00 00 [16:37:41]Write to MH i2c: E2 08 00 59 A0 80 09 00 00 00 00 00 00 6B [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:41]Read from MH i2c: E2 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 59 A0 00 90 00 6D [16:37:41]RAPDU: 90 00 [16:37:41]wFMCommunicate OK [16:37:41]SAM_PROTO_ClearQueue done [16:37:41]KKMCreateOFDPacket [16:37:41]OFDProtocolAddRootSTLVToBuf [16:37:41]FM_MakeSignedData [16:37:41]FM_MakeSignedData [16:37:41]SAM_PROTO_SignData [16:37:41]wFMCommunicate request_size=4 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 0D 01 02 [16:37:41]Write to MH i2c: E2 08 00 5A A0 80 0D 01 02 00 00 00 00 73 [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:41]Read from MH i2c: E2 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 5A A0 00 90 00 6E [16:37:41]RAPDU: 90 00 [16:37:41]wFMCommunicate OK [16:37:41]wFMCommunicate request_size=255 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 63 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 72 01 00 35 04 06 00 8C A4 93 79 [16:37:41]Write to MH i2c: E2 02 01 5B A0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 63 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 72 01 00 35 04 06 00 8C A4 93 79 00 00 A3 [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:41]Read from MH i2c: E2 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 5B A0 00 90 00 6F [16:37:41]RAPDU: 90 00 [16:37:41]wFMCommunicate OK [16:37:41]wFMCommunicate request_size=7 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 0D 02 02 02 15 C7 [16:37:41]Write to MH i2c: E2 0A 00 5C A0 80 0D 02 02 02 00 15 C7 00 00 56 [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:41]Read from MH i2c: E2 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 [16:37:41]MH_I2C_Read... [16:37:41]Read from MH i2c: E2 03 00 5C A0 00 90 00 70 [16:37:41]RAPDU: 90 00 [16:37:41]wFMCommunicate OK [16:37:41]wFMCommunicate request_size=4 [16:37:41]MH_SAM_APDU [16:37:41]CAPDU: 80 0D 03 02 [16:37:41]Write to MH i2c: E2 08 00 5D A0 80 0D 03 02 00 00 00 00 78 [16:37:41]Write i2c OK [16:37:41]MH_I2C_Read... [16:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 0B 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 0B 00 5D A0 00 53 79 07 96 DE A4 3B B8 90 00 57 [16:37:42]RAPDU: 53 79 07 96 DE A4 3B B8 90 00 [16:37:42]wFMCommunicate OK [16:37:42]SAM_PROTO_SignData done [16:37:42]FM_MakeSignedData done [16:37:42]CreateOFDProtocolMessage [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 11 00 00 [16:37:42]Write to MH i2c: E2 08 00 5E A0 80 11 00 00 00 00 00 00 78 [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 17 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 17 00 5E A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C8 [16:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:37:42]wFMCommunicate OK [16:37:42]CreateOFDProtocolMessage done [16:37:42]OFDSenderStorePacket 94960 [16:37:42]StoreOFDPacket docnum=94960 [16:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 BA DC 04 01 A4 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 63 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 72 01 00 35 04 06 00 8C A4 93 79 15 C7 53 79 07 96 DE A4 3B B8 [16:37:42]CheckFolder [16:37:42]dirname=/storage/ofd_packets [16:37:42]CheckFolder done [16:37:42]ProducePacketName [16:37:42]name=ofd_packets/00094960 [16:37:42]NVStorageSaveData ofd_packets/00094960 [16:37:42]File name is /storage/ofd_packets/00094960 [16:37:42]Write 298 bytes [16:37:42]NVStorageSaveData done [16:37:42]OFDSenderStorePacket done [16:37:42]KKMCreateOFDPacket done [16:37:42]NVStorageSaveData kkm_last_timestamp [16:37:42]File name is /storage/kkm_last_timestamp [16:37:42]Write 4 bytes [16:37:42]NVStorageSaveData done [16:37:42]ExternCall_PrintAddStr [16:37:42]wPrintStart [16:37:42]Write to MH i2c: 01 00 00 5F A0 FF [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 07 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 07 00 5F A0 00 80 00 00 00 FF 0F 94 [16:37:42]RasterBufferAndPrint [16:37:42]line Счет N : (1)195918 [16:37:42]line ИНН: 02508201610067 [16:37:42]line Контрольно-Кассовый Чек [16:37:42]line ПРОДАЖА [16:37:42]line ТРК (МРК, ГНК) : 51 [16:37:42]line Товар: 2710194210 [16:37:42]line ДТ-К-5 [16:37:42]line 7.060 * 70.90 [16:37:42]line = 500.55 [16:37:42]line НДС 12% НСП 1% [16:37:42]line > о реализуемом товаре [16:37:42]line ОКРУГЛЕНИЕ: -0.55 [16:37:42]line ИТОГО: 500.00 [16:37:42]line Внесено: 500.00 [16:37:42]line СДАЧА: 0.00 [16:37:42]line НСП 1% : 4.43 [16:37:42]line НДС 12% : 53.16 [16:37:42]line Наличными: 500.00 [16:37:42]line Безнал.: 0.00 [16:37:42]line Место: АЗС № 6 "Партнер Нефть" [16:37:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:37:42]line СНО: Общий режим [16:37:42]line Чек 135 11.03.2024 16:37 [16:37:42]line Смена: 326 ФФД: 1.0 [16:37:42]line ЗНМ: 0300000009 [16:37:42]line РНМ: 0000000000090555 [16:37:42]line Версия ККМ: 001 [16:37:42]line ФМ: 0000000000874811 [16:37:42]line ФД: 94960 [16:37:42]line ФПД: 154638476711367 [16:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T163755&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94960&fm=154638476711367&tin=02508201610067®Number=0000000000090555&sum=50000 [16:37:42]OFD Sender: Processing packet 94960 [packets to send 30, broken 29] [16:37:42]ProducePacketName [16:37:42]name=ofd_packets/00094960 [16:37:42]OFD Sender: To server: pG, [16:37:42]CommunicateWithHost lk.salyk.kg:30040 [16:37:42]ConnectInit lk.salyk.kg [16:37:42]written 0, free lines is 4095 [16:37:42]Connected sock=10 [16:37: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 31 31 0C 01 00 00 BA DC 04 01 A4 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 63 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 72 01 00 35 04 06 00 8C A4 93 79 15 C7 53 79 07 96 DE A4 3B B8 [16:37: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 31 31 4F 00 00 00 85 16 47 00 5A D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F0 72 01 00 F4 03 04 00 BC DE EE 65 B6 04 01 00 00 E9 4E 89 F0 27 15 54 26 [16:37:42]CommunicateWithHost err = 0 [16:37:42]CheckOFDResponse [16:37:42]1017 (14) - 77093643461234 [16:37:42]1041 (16) - 0000000000874811 [16:37:42]1040 (4) - 94960 [16:37:42]1012 (4) - 11.03.2024 10:36 [16:37:42]1206 (1) - 0 [16:37:42]OFD Sender: Remove packet 94960 [16:37:42]ProducePacketName [16:37:42]name=ofd_packets/00094960 [16:37:42]NVStorageDeleteData [16:37:42]Write to MH i2c: 01 00 00 8A A0 2A [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 07 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: 01 07 00 8A A0 00 80 00 00 00 4A 0D 08 [16:37:42]RasterBufferAndPrint [16:37:42]line [16:37:42]line [16:37:42]line [16:37:42]line [16:37:42]line [16:37:42]written 0, free lines is 3408 [16:37:42]process_action close_receipt done [16:37:42]requested_data is exist [16:37:42]produce_requested_data [16:37:42]requested_item fm.sn is exist - process it [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 11 00 00 [16:37:42]Write to MH i2c: E2 08 00 91 A0 80 11 00 00 00 00 00 00 AB [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:42]Read from MH i2c: E2 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 17 00 [16:37:42]MH_I2C_Read... [16:37:42]Read from MH i2c: E2 17 00 91 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FB [16:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:37:42]wFMCommunicate OK [16:37:42]requested_item fd.num is exist - process it [16:37:42]SAM_PROTO_GetFieldsCounters [16:37:42]wFMCommunicate request_size=4 [16:37:42]MH_SAM_APDU [16:37:42]CAPDU: 80 13 00 00 [16:37:42]Write to MH i2c: E2 08 00 92 A0 80 13 00 00 00 00 00 00 AE [16:37:42]Write i2c OK [16:37:42]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 62 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 62 00 92 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [16:37: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F0 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:43]wFMCommunicate OK [16:37:43]SAM_PROTO_GetFieldsCounters done [16:37:43]requested_item shift.num is exist - process it [16:37:43]requested_item shift.opened is exist - process it [16:37:43]req_shift_opened [16:37:43]FM_GetShiftState [16:37:43]SAM_PROTO_GetShiftState [16:37:43]wFMCommunicate request_size=4 [16:37:43]MH_SAM_APDU [16:37:43]CAPDU: 80 13 01 00 [16:37:43]Write to MH i2c: E2 08 00 93 A0 80 13 01 00 00 00 00 00 B0 [16:37:43]Write i2c OK [16:37:43]MH_I2C_Read... [16:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:43]OFD Sender: No OFD packet to send [16:37:43]Read from MH i2c: E2 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 0E 00 [16:37:43]MH_I2C_Read... [16:37:43]Read from MH i2c: E2 0E 00 93 A0 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4C [16:37:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:37:43]wFMCommunicate OK [16:37:43]SAM_PROTO_GetShiftState done [16:37:43]FM_GetShiftState done [16:37:43]req_shift_opened done [16:37:43]requested_item shift.open_date is exist - process it [16:37:43]req_shift_open_date [16:37:43]req_shift_open_date done [16:37:43]produce_requested_data done [16:37:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94960,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:37:43]process_action_free close_receipt [16:37:43]json_value_free [16:37:43]json_value_free done [16:37:43]process_json_proto returns [16:37:43]Send response to host [16:37:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94960,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:37:43]free response buf [16:37:43]execute_script done [16:37:43]execute_script returns [16:37:43]free content buf [16:37:43]Sock 9.Close socket [16:37:43]Sock 9.Thread stoped [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:42]accept exits with 7 [16:39:42]New connection [16:39:42]New thread 3067014500 created [16:39:42]Thread 3066871140 joined [16:39:42]Waiting for new connection... [16:39:42] Sock 7.Parse request [16:39:42]Sock 7.Check first char [16:39:42]Sock 7.First char is OK [16:39:42]request: POST /json_proto HTTP/1.0 [16:39:42]Method: POST [16:39:42]URL: /json_proto [16:39:42]Method is POST - this is cgi request [16:39:42]url: /json_proto [16:39:42]query_string will be loaded in cgi processing [16:39:42]execute_cgi json_proto POST (null) [16:39:42]execute_cgi path=json_proto method=POST [16:39:42]POST find Content-Length [16:39:42]Host: 172.17.62.67:8080 [16:39:42]Content-Length: 640 [16:39:42]Content-Type: application/json [16:39:42] [16:39:42]POST finish read [16:39:42]Found Content-Length = 640 [16:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 100.000, "sum" : 7090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:42]execute_script... [16:39:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 100.000, "sum" : 7090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:42]POST & json_proto [16:39:42]process_json_proto [16:39:42]json parsed OK: [16:39:42]protocol is kg_v1.0 [16:39:42]action value=close_receipt [16:39:42]process_action close_receipt [16:39:42]cmd_close_receipt [16:39:42]MH_GetDate [16:39:42]Write to MH i2c: F0 00 00 94 A0 23 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: F0 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: F0 05 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: F0 05 00 94 A0 00 DD 33 EF 65 8C [16:39:42]GetLastDocTimeStamp 1710175075 [16:39:42]current date 1710175197 [16:39:42]FM_GetShiftState [16:39:42]SAM_PROTO_GetShiftState [16:39:42]wFMCommunicate request_size=4 [16:39:42]MH_SAM_APDU [16:39:42]CAPDU: 80 13 01 00 [16:39:42]Write to MH i2c: E2 08 00 95 A0 80 13 01 00 00 00 00 00 B2 [16:39:42]Write i2c OK [16:39:42]MH_I2C_Read... [16:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:42]Read from MH i2c: E2 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 0E 00 [16:39:42]MH_I2C_Read... [16:39:42]Read from MH i2c: E2 0E 00 95 A0 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4E [16:39:42]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:39:42]wFMCommunicate OK [16:39:42]SAM_PROTO_GetShiftState done [16:39:42]FM_GetShiftState done [16:39:42]opened in 1710115571 [16:39:42]opened+sec_in_day 1710201971 [16:39:42]quantity*price = 709000 [16:39:42]sum+1 = 709001 [16:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7090.00 НСП 1% : 62.74 НДС 12% : 752.92 Наличными: 7090.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 136 11.03.2024 16:39 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94961 ФПД: 273002488233937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T163957&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94961&fm=273002488233937&tin=02508201610067®Number=0000000000090555&sum=709000 [16:39:43]StoreToDocumentArchive [16:39:43]shift 326 fd 94961 [16:39:43]save to /storage/0326/doc_00094961 [16:39:43]save last doc name /storage/0326/doc_00094961 to /storage/kkm_last_doc_name [16:39:43]save OK [16:39:43]Clear old archive folders... [16:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:39:43]tlvbuf is 003204C0 [16:39:43]SAM_PROTO_ClearQueue [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 09 00 00 [16:39:43]Write to MH i2c: E2 08 00 A2 A0 80 09 00 00 00 00 00 00 B4 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 [16:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 A2 A0 00 90 00 B6 [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]SAM_PROTO_ClearQueue done [16:39:43]KKMCreateOFDPacket [16:39:43]OFDProtocolAddRootSTLVToBuf [16:39:43]FM_MakeSignedData [16:39:43]FM_MakeSignedData [16:39:43]SAM_PROTO_SignData [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 0D 01 02 [16:39:43]Write to MH i2c: E2 08 00 A3 A0 80 0D 01 02 00 00 00 00 BC [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 A3 A0 00 90 00 B7 [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]wFMCommunicate request_size=255 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 88 D1 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DD 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 72 01 00 35 04 06 00 F8 4B 58 55 [16:39:43]Write to MH i2c: E2 02 01 A4 A0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 88 D1 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DD 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 72 01 00 35 04 06 00 F8 4B 58 55 00 00 96 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 A4 A0 00 90 00 B8 [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]wFMCommunicate request_size=7 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 0D 02 02 02 7F D1 [16:39:43]Write to MH i2c: E2 0A 00 A5 A0 80 0D 02 02 02 00 7F D1 00 00 13 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 03 00 A5 A0 00 90 00 B9 [16:39:43]RAPDU: 90 00 [16:39:43]wFMCommunicate OK [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 0D 03 02 [16:39:43]Write to MH i2c: E2 08 00 A6 A0 80 0D 03 02 00 00 00 00 C1 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 0B 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 0B 00 A6 A0 00 0C B2 59 F1 31 3C 2B 0C 90 00 6E [16:39:43]RAPDU: 0C B2 59 F1 31 3C 2B 0C 90 00 [16:39:43]wFMCommunicate OK [16:39:43]SAM_PROTO_SignData done [16:39:43]FM_MakeSignedData done [16:39:43]CreateOFDProtocolMessage [16:39:43]wFMCommunicate request_size=4 [16:39:43]MH_SAM_APDU [16:39:43]CAPDU: 80 11 00 00 [16:39:43]Write to MH i2c: E2 08 00 A7 A0 80 11 00 00 00 00 00 00 C1 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:43]Read from MH i2c: E2 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 17 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: E2 17 00 A7 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 11 [16:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:39:43]wFMCommunicate OK [16:39:43]CreateOFDProtocolMessage done [16:39:43]OFDSenderStorePacket 94961 [16:39:43]StoreOFDPacket docnum=94961 [16:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 78 39 04 01 31 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 88 D1 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DD 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 72 01 00 35 04 06 00 F8 4B 58 55 7F D1 0C B2 59 F1 31 3C 2B 0C [16:39:43]CheckFolder [16:39:43]dirname=/storage/ofd_packets [16:39:43]CheckFolder done [16:39:43]ProducePacketName [16:39:43]name=ofd_packets/00094961 [16:39:43]NVStorageSaveData ofd_packets/00094961 [16:39:43]File name is /storage/ofd_packets/00094961 [16:39:43]Write 298 bytes [16:39:43]NVStorageSaveData done [16:39:43]OFDSenderStorePacket done [16:39:43]KKMCreateOFDPacket done [16:39:43]NVStorageSaveData kkm_last_timestamp [16:39:43]File name is /storage/kkm_last_timestamp [16:39:43]Write 4 bytes [16:39:43]NVStorageSaveData done [16:39:43]ExternCall_PrintAddStr [16:39:43]wPrintStart [16:39:43]Write to MH i2c: 01 00 00 A8 A0 48 [16:39:43]Write i2c OK [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 07 00 [16:39:43]MH_I2C_Read... [16:39:43]Read from MH i2c: 01 07 00 A8 A0 00 80 00 00 00 FF 0F DD [16:39:43]RasterBufferAndPrint [16:39:43]line Счет N : (1)195920 [16:39:43]line ИНН: 02508201610067 [16:39:43]line Контрольно-Кассовый Чек [16:39:43]line ПРОДАЖА [16:39:43]line ТРК (МРК, ГНК) : 51 [16:39:43]line Товар: 2710194210 [16:39:43]line ДТ-К-5 [16:39:43]line 100.000 * 70.90 [16:39:43]line = 7090.00 [16:39:43]line НДС 12% НСП 1% [16:39:43]line > о реализуемом товаре [16:39:43]line ИТОГО: 7090.00 [16:39:43]line НСП 1% : 62.74 [16:39:43]line НДС 12% : 752.92 [16:39:43]line Наличными: 7090.00 [16:39:43]line Безнал.: 0.00 [16:39:43]line Место: АЗС № 6 "Партнер Нефть" [16:39:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:39:43]line СНО: Общий режим [16:39:43]line Чек 136 11.03.2024 16:39 [16:39:43]line Смена: 326 ФФД: 1.0 [16:39:43]line ЗНМ: 0300000009 [16:39:43]line РНМ: 0000000000090555 [16:39:43]line Версия ККМ: 001 [16:39:43]line ФМ: 0000000000874811 [16:39:43]line ФД: 94961 [16:39:43]line ФПД: 273002488233937 [16:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T163957&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94961&fm=273002488233937&tin=02508201610067®Number=0000000000090555&sum=709000 [16:39:44]OFD Sender: Processing packet 94961 [packets to send 30, broken 29] [16:39:44]ProducePacketName [16:39:44]name=ofd_packets/00094961 [16:39:44]OFD Sender: To server: pG, [16:39:44]CommunicateWithHost lk.salyk.kg:30040 [16:39:44]ConnectInit lk.salyk.kg [16:39:44]written 0, free lines is 4095 [16:39:44]Connected sock=11 [16:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 78 39 04 01 31 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 88 D1 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 DD 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 72 01 00 35 04 06 00 F8 4B 58 55 7F D1 0C B2 59 F1 31 3C 2B 0C [16:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 5E 8F 47 00 29 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F1 72 01 00 F4 03 04 00 36 DF EE 65 B6 04 01 00 00 A6 08 9A 6E 4A A4 6F B9 [16:39:44]CommunicateWithHost err = 0 [16:39:44]CheckOFDResponse [16:39:44]1017 (14) - 77093643461234 [16:39:44]1041 (16) - 0000000000874811 [16:39:44]1040 (4) - 94961 [16:39:44]1012 (4) - 11.03.2024 10:38 [16:39:44]1206 (1) - 0 [16:39:44]OFD Sender: Remove packet 94961 [16:39:44]ProducePacketName [16:39:44]name=ofd_packets/00094961 [16:39:44]NVStorageDeleteData [16:39:44]Write to MH i2c: 01 00 00 D0 A0 70 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 07 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: 01 07 00 D0 A0 00 80 00 00 00 87 0D 8B [16:39:44]RasterBufferAndPrint [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]line [16:39:44]written 0, free lines is 3468 [16:39:44]process_action close_receipt done [16:39:44]requested_data is exist [16:39:44]produce_requested_data [16:39:44]requested_item fm.sn is exist - process it [16:39:44]wFMCommunicate request_size=4 [16:39:44]MH_SAM_APDU [16:39:44]CAPDU: 80 11 00 00 [16:39:44]Write to MH i2c: E2 08 00 D7 A0 80 11 00 00 00 00 00 00 F1 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 17 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 17 00 D7 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 41 [16:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:39:44]wFMCommunicate OK [16:39:44]requested_item fd.num is exist - process it [16:39:44]SAM_PROTO_GetFieldsCounters [16:39:44]wFMCommunicate request_size=4 [16:39:44]MH_SAM_APDU [16:39:44]CAPDU: 80 13 00 00 [16:39:44]Write to MH i2c: E2 08 00 D8 A0 80 13 00 00 00 00 00 00 F4 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 62 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 62 00 D8 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [16:39: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F1 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:44]wFMCommunicate OK [16:39:44]SAM_PROTO_GetFieldsCounters done [16:39:44]requested_item shift.num is exist - process it [16:39:44]requested_item shift.opened is exist - process it [16:39:44]req_shift_opened [16:39:44]FM_GetShiftState [16:39:44]SAM_PROTO_GetShiftState [16:39:44]wFMCommunicate request_size=4 [16:39:44]MH_SAM_APDU [16:39:44]CAPDU: 80 13 01 00 [16:39:44]Write to MH i2c: E2 08 00 D9 A0 80 13 01 00 00 00 00 00 F6 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 0E 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 0E 00 D9 A0 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 92 [16:39:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:39:44]wFMCommunicate OK [16:39:44]SAM_PROTO_GetShiftState done [16:39:44]FM_GetShiftState done [16:39:44]req_shift_opened done [16:39:44]requested_item shift.open_date is exist - process it [16:39:44]req_shift_open_date [16:39:44]req_shift_open_date done [16:39:44]produce_requested_data done [16:39:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94961,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:39:44]process_action_free close_receipt [16:39:44]json_value_free [16:39:44]json_value_free done [16:39:44]process_json_proto returns [16:39:44]Send response to host [16:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94961,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:39:44]free response buf [16:39:44]execute_script done [16:39:44]execute_script returns [16:39:44]free content buf [16:39:44]Sock 7.Close socket [16:39:44]Sock 7.Thread stoped [16:39:44]OFD Sender: No OFD packet to send [16:39:47]accept exits with 9 [16:39:47]New connection [16:39:47]New thread 3066871140 created [16:39:47]Thread 3067014500 joined [16:39:47]Waiting for new connection... [16:39:47] Sock 9.Parse request [16:39:47]Sock 9.Check first char [16:39:47]Sock 9.First char is OK [16:39:47]request: POST /json_proto HTTP/1.0 [16:39:47]Method: POST [16:39:47]URL: /json_proto [16:39:47]Method is POST - this is cgi request [16:39:47]url: /json_proto [16:39:47]query_string will be loaded in cgi processing [16:39:47]execute_cgi json_proto POST (null) [16:39:47]execute_cgi path=json_proto method=POST [16:39:47]POST find Content-Length [16:39:47]Host: 172.17.62.67:8080 [16:39:47]Content-Length: 696 [16:39:47]Content-Type: application/json [16:39:47] [16:39:47]POST finish read [16:39:47]Found Content-Length = 696 [16:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94961, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 100.000, "sum" : 7090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:47]execute_script... [16:39:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 94961, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 100.000, "sum" : 7090.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7090.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:47]POST & json_proto [16:39:47]process_json_proto [16:39:47]json parsed OK: [16:39:47]protocol is kg_v1.0 [16:39:47]action value=close_receipt [16:39:47]process_action close_receipt [16:39:47]cmd_close_receipt [16:39:47]MH_GetDate [16:39:47]Write to MH i2c: F0 00 00 DA A0 69 [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: F0 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: F0 05 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: F0 05 00 DA A0 00 E2 33 EF 65 D7 [16:39:47]GetLastDocTimeStamp 1710175197 [16:39:47]current date 1710175202 [16:39:47]FM_GetShiftState [16:39:47]SAM_PROTO_GetShiftState [16:39:47]wFMCommunicate request_size=4 [16:39:47]MH_SAM_APDU [16:39:47]CAPDU: 80 13 01 00 [16:39:47]Write to MH i2c: E2 08 00 DB A0 80 13 01 00 00 00 00 00 F8 [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:47]Read from MH i2c: E2 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: E2 0E 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: E2 0E 00 DB A0 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 94 [16:39:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:39:47]wFMCommunicate OK [16:39:47]SAM_PROTO_GetShiftState done [16:39:47]FM_GetShiftState done [16:39:47]opened in 1710115571 [16:39:47]opened+sec_in_day 1710201971 [16:39:47]quantity*price = 709000 [16:39:47]sum+1 = 709001 [16:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7090.00 НСП 1% : 62.74 НДС 12% : 752.92 Наличными: 7090.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 137 11.03.2024 16:40 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 94961 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 94962 ФПД: 255927022889325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T164002&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94962&fm=255927022889325&tin=02508201610067®Number=0000000000090555&sum=709000 [16:39:48]StoreToDocumentArchive [16:39:48]shift 326 fd 94962 [16:39:48]save to /storage/0326/doc_00094962 [16:39:48]save last doc name /storage/0326/doc_00094962 to /storage/kkm_last_doc_name [16:39:48]save OK [16:39:48]Clear old archive folders... [16:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:39:48]tlvbuf is 001B3E80 [16:39:48]SAM_PROTO_ClearQueue [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 09 00 00 [16:39:48]Write to MH i2c: E2 08 00 EA A0 80 09 00 00 00 00 00 00 FC [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:49]Read from MH i2c: E2 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 03 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 03 00 EA A0 00 90 00 FE [16:39:49]RAPDU: 90 00 [16:39:49]wFMCommunicate OK [16:39:49]SAM_PROTO_ClearQueue done [16:39:49]KKMCreateOFDPacket [16:39:49]OFDProtocolAddRootSTLVToBuf [16:39:49]FM_MakeSignedData [16:39:49]FM_MakeSignedData [16:39:49]SAM_PROTO_SignData [16:39:49]wFMCommunicate request_size=4 [16:39:49]MH_SAM_APDU [16:39:49]CAPDU: 80 0D 01 02 [16:39:49]Write to MH i2c: E2 08 00 EB A0 80 0D 01 02 00 00 00 00 04 [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:49]Read from MH i2c: E2 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 03 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 03 00 EB A0 00 90 00 FF [16:39:49]RAPDU: 90 00 [16:39:49]wFMCommunicate OK [16:39:49]wFMCommunicate request_size=255 [16:39:49]MH_SAM_APDU [16:39:49]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 88 D1 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E2 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 F1 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [16:39:49]Write to MH i2c: E2 02 01 EC A0 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 88 D1 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E2 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 F1 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 E6 [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:49]Read from MH i2c: E2 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 03 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 03 00 EC A0 00 90 00 00 [16:39:49]RAPDU: 90 00 [16:39:49]wFMCommunicate OK [16:39:49]wFMCommunicate request_size=35 [16:39:49]MH_SAM_APDU [16:39:49]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 72 01 00 35 04 06 00 E8 C3 A7 49 A9 6D [16:39:49]Write to MH i2c: E2 26 00 ED A0 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 72 01 00 35 04 06 00 E8 C3 A7 49 A9 6D 00 00 0D [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:49]Read from MH i2c: E2 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 03 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 03 00 ED A0 00 90 00 01 [16:39:49]RAPDU: 90 00 [16:39:49]wFMCommunicate OK [16:39:49]wFMCommunicate request_size=4 [16:39:49]MH_SAM_APDU [16:39:49]CAPDU: 80 0D 03 02 [16:39:49]Write to MH i2c: E2 08 00 EE A0 80 0D 03 02 00 00 00 00 09 [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:49]Read from MH i2c: E2 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 0B 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 0B 00 EE A0 00 BF EB D0 1F EC 67 15 74 90 00 7F [16:39:49]RAPDU: BF EB D0 1F EC 67 15 74 90 00 [16:39:49]wFMCommunicate OK [16:39:49]SAM_PROTO_SignData done [16:39:49]FM_MakeSignedData done [16:39:49]CreateOFDProtocolMessage [16:39:49]wFMCommunicate request_size=4 [16:39:49]MH_SAM_APDU [16:39:49]CAPDU: 80 11 00 00 [16:39:49]Write to MH i2c: E2 08 00 EF A0 80 11 00 00 00 00 00 00 09 [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:49]Read from MH i2c: E2 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 17 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: E2 17 00 EF A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 59 [16:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:39:49]wFMCommunicate OK [16:39:49]CreateOFDProtocolMessage done [16:39:49]OFDSenderStorePacket 94962 [16:39:49]StoreOFDPacket docnum=94962 [16:39:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 FC 0C 20 01 D7 84 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 88 D1 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E2 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 F1 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 72 01 00 35 04 06 00 E8 C3 A7 49 A9 6D BF EB D0 1F EC 67 15 74 [16:39:49]CheckFolder [16:39:49]dirname=/storage/ofd_packets [16:39:49]CheckFolder done [16:39:49]ProducePacketName [16:39:49]name=ofd_packets/00094962 [16:39:49]NVStorageSaveData ofd_packets/00094962 [16:39:49]File name is /storage/ofd_packets/00094962 [16:39:49]Write 326 bytes [16:39:49]NVStorageSaveData done [16:39:49]OFDSenderStorePacket done [16:39:49]KKMCreateOFDPacket done [16:39:49]NVStorageSaveData kkm_last_timestamp [16:39:49]File name is /storage/kkm_last_timestamp [16:39:49]Write 4 bytes [16:39:49]NVStorageSaveData done [16:39:49]ExternCall_PrintAddStr [16:39:49]wPrintStart [16:39:49]Write to MH i2c: 01 00 00 F0 A0 90 [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 07 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 07 00 F0 A0 00 80 00 00 00 FF 0F 25 [16:39:49]RasterBufferAndPrint [16:39:49]line Счет N : (1)195920 [16:39:49]line ИНН: 02508201610067 [16:39:49]line Контрольно-Кассовый Чек [16:39:49]line ВОЗВРАТ ПРОДАЖИ [16:39:49]line ТРК (МРК, ГНК) : 51 [16:39:49]line Товар: 2710194210 [16:39:49]line ДТ-К-5 [16:39:49]line 100.000 * 70.90 [16:39:49]line = 7090.00 [16:39:49]line НДС 12% НСП 1% [16:39:49]line > о реализуемом товаре [16:39:49]line ИТОГО: 7090.00 [16:39:49]line НСП 1% : 62.74 [16:39:49]line НДС 12% : 752.92 [16:39:49]line Наличными: 7090.00 [16:39:49]line Безнал.: 0.00 [16:39:49]line Место: АЗС № 6 "Партнер Нефть" [16:39:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:39:49]line СНО: Общий режим [16:39:49]line Чек 137 11.03.2024 16:40 [16:39:49]line Смена: 326 ФФД: 1.0 [16:39:49]line ЗНМ: 0300000009 [16:39:49]line РНМ: 0000000000090555 [16:39:49]line Версия ККМ: 001 [16:39:49]line ФД осн.: 94961 [16:39:49]line ФМ осн.: 0000000000874811 [16:39:49]line ФМ: 0000000000874811 [16:39:49]line ФД: 94962 [16:39:49]line ФПД: 255927022889325 [16:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T164002&type=2&operation_type=1&fn_number=0000000000874811&fd_number=94962&fm=255927022889325&tin=02508201610067®Number=0000000000090555&sum=709000 [16:39:49]written 0, free lines is 4095 [16:39:49]OFD Sender: Processing packet 94962 [packets to send 30, broken 29] [16:39:49]ProducePacketName [16:39:49]name=ofd_packets/00094962 [16:39:49]OFD Sender: To server: pG, [16:39:49]CommunicateWithHost lk.salyk.kg:30040 [16:39:49]ConnectInit lk.salyk.kg [16:39:49]Connected sock=10 [16:39: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 31 31 28 01 00 00 FC 0C 20 01 D7 84 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 88 D1 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D1 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 26 01 00 00 00 07 04 06 00 88 D1 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E2 33 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 F1 72 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 72 01 00 35 04 06 00 E8 C3 A7 49 A9 6D BF EB D0 1F EC 67 15 74 [16:39: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 31 31 4F 00 00 00 18 D4 47 00 61 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F2 72 01 00 F4 03 04 00 3B DF EE 65 B6 04 01 00 00 A2 08 ED B6 2A CB 65 22 [16:39:49]CommunicateWithHost err = 0 [16:39:49]CheckOFDResponse [16:39:49]1017 (14) - 77093643461234 [16:39:49]1041 (16) - 0000000000874811 [16:39:49]1040 (4) - 94962 [16:39:49]1012 (4) - 11.03.2024 10:38 [16:39:49]1206 (1) - 0 [16:39:49]OFD Sender: Remove packet 94962 [16:39:49]ProducePacketName [16:39:49]name=ofd_packets/00094962 [16:39:49]NVStorageDeleteData [16:39:50]Write to MH i2c: 01 00 00 1A A1 BB [16:39:50]Write i2c OK [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: 01 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: 01 07 00 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: 01 07 00 1A A1 00 80 00 00 00 7C 0D CB [16:39:50]RasterBufferAndPrint [16:39:50]line [16:39:50]line [16:39:50]line [16:39:50]line [16:39:50]line [16:39:50]written 0, free lines is 3462 [16:39:50]process_action close_receipt done [16:39:50]requested_data is exist [16:39:50]produce_requested_data [16:39:50]requested_item fm.sn is exist - process it [16:39:50]wFMCommunicate request_size=4 [16:39:50]MH_SAM_APDU [16:39:50]CAPDU: 80 11 00 00 [16:39:50]Write to MH i2c: E2 08 00 21 A1 80 11 00 00 00 00 00 00 3C [16:39:50]Write i2c OK [16:39:50]MH_I2C_Read... [16:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:50]Read from MH i2c: E2 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: E2 17 00 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: E2 17 00 21 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8C [16:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:39:50]wFMCommunicate OK [16:39:50]requested_item fd.num is exist - process it [16:39:50]SAM_PROTO_GetFieldsCounters [16:39:50]wFMCommunicate request_size=4 [16:39:50]MH_SAM_APDU [16:39:50]CAPDU: 80 13 00 00 [16:39:50]Write to MH i2c: E2 08 00 22 A1 80 13 00 00 00 00 00 00 3F [16:39:50]Write i2c OK [16:39:50]MH_I2C_Read... [16:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:50]Read from MH i2c: E2 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: E2 62 00 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: E2 62 00 22 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [16:39: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:50]wFMCommunicate OK [16:39:50]SAM_PROTO_GetFieldsCounters done [16:39:50]requested_item shift.num is exist - process it [16:39:50]requested_item shift.opened is exist - process it [16:39:50]req_shift_opened [16:39:50]FM_GetShiftState [16:39:50]SAM_PROTO_GetShiftState [16:39:50]wFMCommunicate request_size=4 [16:39:50]MH_SAM_APDU [16:39:50]CAPDU: 80 13 01 00 [16:39:50]Write to MH i2c: E2 08 00 23 A1 80 13 01 00 00 00 00 00 41 [16:39:50]Write i2c OK [16:39:50]MH_I2C_Read... [16:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:50]Read from MH i2c: E2 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: E2 0E 00 [16:39:50]MH_I2C_Read... [16:39:50]Read from MH i2c: E2 0E 00 23 A1 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DD [16:39:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:39:50]wFMCommunicate OK [16:39:50]SAM_PROTO_GetShiftState done [16:39:50]FM_GetShiftState done [16:39:50]req_shift_opened done [16:39:50]requested_item shift.open_date is exist - process it [16:39:50]req_shift_open_date [16:39:50]req_shift_open_date done [16:39:50]produce_requested_data done [16:39:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94962,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:39:50]process_action_free close_receipt [16:39:50]json_value_free [16:39:50]json_value_free done [16:39:50]process_json_proto returns [16:39:50]Send response to host [16:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94962,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:39:50]free response buf [16:39:50]execute_script done [16:39:50]execute_script returns [16:39:50]free content buf [16:39:50]Sock 9.Close socket [16:39:50]Sock 9.Thread stoped [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:24]accept exits with 7 [16:41:24]New connection [16:41:24]New thread 3067014500 created [16:41:24]Thread 3066871140 joined [16:41:24]Waiting for new connection... [16:41:24] Sock 7.Parse request [16:41:24]Sock 7.Check first char [16:41:24]Sock 7.First char is OK [16:41:24]request: POST /json_proto HTTP/1.0 [16:41:24]Method: POST [16:41:24]URL: /json_proto [16:41:24]Method is POST - this is cgi request [16:41:24]url: /json_proto [16:41:24]query_string will be loaded in cgi processing [16:41:24]execute_cgi json_proto POST (null) [16:41:24]execute_cgi path=json_proto method=POST [16:41:24]POST find Content-Length [16:41:24]Host: 172.17.62.67:8080 [16:41:24]Content-Length: 1208 [16:41:24]Content-Type: application/json [16:41:24] [16:41:24]POST finish read [16:41:24]Found Content-Length = 1208 [16:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195919\u000A11.03.2024 16:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 7090.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699928;29;30;31;32;33;34;35;16;17\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:24]execute_script... [16:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195919\u000A11.03.2024 16:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 7090.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3699928;29;30;31;32;33;34;35;16;17\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:24]POST & json_proto [16:41:24]process_json_proto [16:41:24]json parsed OK: [16:41:24]protocol is kg_v1.0 [16:41:24]action value=print_text [16:41:24]process_action print_text [16:41:24]cmd_print_text [16:41:24]ExternCall_PrintAddStr [16:41:24]wPrintStart [16:41:24]Write to MH i2c: 01 00 00 24 A1 C5 [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: 01 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: 01 07 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: 01 07 00 24 A1 00 80 00 00 00 FF 0F 5A [16:41:24]RasterBufferAndPrint [16:41:24]line *****ТОВАРНЫЙ ЧЕК***** [16:41:24]line АЗС 6 [16:41:24]line Партнер нефть [16:41:24]line 02508201610067 [16:41:24]line Кассир : Карыбаев Б. [16:41:24]line Счет N : (1)195919 [16:41:24]line 11.03.2024 16:35 [16:41:24]line ПРОДАЖА [16:41:24]line ТРК (МРК, ГНК): 61 [16:41:24]line Вид ГСМ : 2710194210 [16:41:24]line ДТ-К-5 [16:41:24]line 100.000 x 70.90 [16:41:24]line ИТОГ: 7090.00 [16:41:24]line Тип оплаты: Талоны: Партнер нефть [16:41:24]line 3699928;29;30;31;32;33;34;35;16;17 [16:41:24]line ______________________ [16:41:24]line (подпись) [16:41:24]written 0, free lines is 4095 [16:41:24]Write to MH i2c: 01 00 00 39 A1 DA [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: 01 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: 01 07 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: 01 07 00 39 A1 00 80 00 00 00 64 0E D3 [16:41:24]RasterBufferAndPrint [16:41:24]line [16:41:24]line [16:41:24]line [16:41:24]line [16:41:24]line [16:41:24]written 0, free lines is 3689 [16:41:24]process_action print_text done [16:41:24]requested_data is exist [16:41:24]produce_requested_data [16:41:24]requested_item fm.sn is exist - process it [16:41:24]wFMCommunicate request_size=4 [16:41:24]MH_SAM_APDU [16:41:24]CAPDU: 80 11 00 00 [16:41:24]Write to MH i2c: E2 08 00 40 A1 80 11 00 00 00 00 00 00 5B [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:24]Read from MH i2c: E2 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 17 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 17 00 40 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AB [16:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:41:24]wFMCommunicate OK [16:41:24]requested_item fd.num is exist - process it [16:41:24]SAM_PROTO_GetFieldsCounters [16:41:24]wFMCommunicate request_size=4 [16:41:24]MH_SAM_APDU [16:41:24]CAPDU: 80 13 00 00 [16:41:24]Write to MH i2c: E2 08 00 41 A1 80 13 00 00 00 00 00 00 5E [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:24]Read from MH i2c: E2 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 62 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 62 00 41 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [16:41: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F2 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:24]wFMCommunicate OK [16:41:24]SAM_PROTO_GetFieldsCounters done [16:41:24]requested_item shift.num is exist - process it [16:41:24]requested_item shift.opened is exist - process it [16:41:24]req_shift_opened [16:41:24]FM_GetShiftState [16:41:24]SAM_PROTO_GetShiftState [16:41:24]wFMCommunicate request_size=4 [16:41:24]MH_SAM_APDU [16:41:24]CAPDU: 80 13 01 00 [16:41:24]Write to MH i2c: E2 08 00 42 A1 80 13 01 00 00 00 00 00 60 [16:41:24]Write i2c OK [16:41:24]MH_I2C_Read... [16:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:24]Read from MH i2c: E2 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 0E 00 [16:41:24]MH_I2C_Read... [16:41:24]Read from MH i2c: E2 0E 00 42 A1 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FC [16:41:24]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:41:24]wFMCommunicate OK [16:41:24]SAM_PROTO_GetShiftState done [16:41:24]FM_GetShiftState done [16:41:24]req_shift_opened done [16:41:24]requested_item shift.open_date is exist - process it [16:41:24]req_shift_open_date [16:41:24]req_shift_open_date done [16:41:24]produce_requested_data done [16:41:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94962,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:41:24]process_action_free print_text [16:41:24]json_value_free [16:41:24]json_value_free done [16:41:24]process_json_proto returns [16:41:24]Send response to host [16:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94962,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:41:24]free response buf [16:41:24]execute_script done [16:41:24]execute_script returns [16:41:24]free content buf [16:41:24]Sock 7.Close socket [16:41:24]Sock 7.Thread stoped [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:42]accept exits with 9 [16:42:42]New connection [16:42:42]New thread 3066871140 created [16:42:42]Thread 3067014500 joined [16:42:42]Waiting for new connection... [16:42:42] Sock 9.Parse request [16:42:42]Sock 9.Check first char [16:42:42]Sock 9.First char is OK [16:42:42]request: POST /json_proto HTTP/1.0 [16:42:42]Method: POST [16:42:42]URL: /json_proto [16:42:42]Method is POST - this is cgi request [16:42:42]url: /json_proto [16:42:42]query_string will be loaded in cgi processing [16:42:42]execute_cgi json_proto POST (null) [16:42:42]execute_cgi path=json_proto method=POST [16:42:42]POST find Content-Length [16:42:42]Host: 172.17.62.67:8080 [16:42:42]Content-Length: 682 [16:42:42]Content-Type: application/json [16:42:42] [16:42:42]POST finish read [16:42:42]Found Content-Length = 682 [16:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:42]execute_script... [16:42:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:42]POST & json_proto [16:42:42]process_json_proto [16:42:42]json parsed OK: [16:42:42]protocol is kg_v1.0 [16:42:42]action value=close_receipt [16:42:42]process_action close_receipt [16:42:42]cmd_close_receipt [16:42:42]MH_GetDate [16:42:42]Write to MH i2c: F0 00 00 43 A1 D3 [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: F0 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: F0 05 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: F0 05 00 43 A1 00 91 34 EF 65 F1 [16:42:42]GetLastDocTimeStamp 1710175202 [16:42:42]current date 1710175377 [16:42:42]FM_GetShiftState [16:42:42]SAM_PROTO_GetShiftState [16:42:42]wFMCommunicate request_size=4 [16:42:42]MH_SAM_APDU [16:42:42]CAPDU: 80 13 01 00 [16:42:42]Write to MH i2c: E2 08 00 44 A1 80 13 01 00 00 00 00 00 62 [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:42]Read from MH i2c: E2 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 0E 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 0E 00 44 A1 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FE [16:42:42]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:42:42]wFMCommunicate OK [16:42:42]SAM_PROTO_GetShiftState done [16:42:42]FM_GetShiftState done [16:42:42]opened in 1710115571 [16:42:42]opened+sec_in_day 1710201971 [16:42:42]quantity*price = 150016 [16:42:42]sum+1 = 150018 [16:42:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 138 11.03.2024 16:42 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94963 ФПД: 228804623571674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T164257&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94963&fm=228804623571674&tin=02508201610067®Number=0000000000090555&sum=150000 [16:42:43]StoreToDocumentArchive [16:42:43]shift 326 fd 94963 [16:42:43]save to /storage/0326/doc_00094963 [16:42:43]save last doc name /storage/0326/doc_00094963 to /storage/kkm_last_doc_name [16:42:43]save OK [16:42:43]Clear old archive folders... [16:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:43]tlvbuf is 00210B00 [16:42:43]SAM_PROTO_ClearQueue [16:42:43]wFMCommunicate request_size=4 [16:42:43]MH_SAM_APDU [16:42:43]CAPDU: 80 09 00 00 [16:42:43]Write to MH i2c: E2 08 00 51 A1 80 09 00 00 00 00 00 00 64 [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 [16:42:43]MH_I2C_Read... [16:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:43]Read from MH i2c: E2 03 00 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 03 00 51 A1 00 90 00 66 [16:42:43]RAPDU: 90 00 [16:42:43]wFMCommunicate OK [16:42:43]SAM_PROTO_ClearQueue done [16:42:43]KKMCreateOFDPacket [16:42:43]OFDProtocolAddRootSTLVToBuf [16:42:43]FM_MakeSignedData [16:42:43]FM_MakeSignedData [16:42:43]SAM_PROTO_SignData [16:42:43]wFMCommunicate request_size=4 [16:42:43]MH_SAM_APDU [16:42:43]CAPDU: 80 0D 01 02 [16:42:43]Write to MH i2c: E2 08 00 52 A1 80 0D 01 02 00 00 00 00 6C [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:43]Read from MH i2c: E2 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 03 00 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: E2 03 00 52 A1 00 90 00 67 [16:42:43]RAPDU: 90 00 [16:42:43]wFMCommunicate OK [16:42:43]wFMCommunicate request_size=255 [16:42:43]MH_SAM_APDU [16:42:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 91 34 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 72 01 00 35 04 06 00 D0 [16:42:43]Write to MH i2c: E2 02 01 53 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 91 34 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 72 01 00 35 04 06 00 D0 00 00 34 [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:44]Read from MH i2c: E2 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: E2 03 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: E2 03 00 53 A1 00 90 00 68 [16:42:44]RAPDU: 90 00 [16:42:44]wFMCommunicate OK [16:42:44]wFMCommunicate request_size=10 [16:42:44]MH_SAM_APDU [16:42:44]CAPDU: 80 0D 02 02 05 18 BA 4F 9A DA [16:42:44]Write to MH i2c: E2 0D 00 54 A1 80 0D 02 02 05 00 18 BA 4F 9A DA 00 00 0E [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:44]Read from MH i2c: E2 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: E2 03 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: E2 03 00 54 A1 00 90 00 69 [16:42:44]RAPDU: 90 00 [16:42:44]wFMCommunicate OK [16:42:44]wFMCommunicate request_size=4 [16:42:44]MH_SAM_APDU [16:42:44]CAPDU: 80 0D 03 02 [16:42:44]Write to MH i2c: E2 08 00 55 A1 80 0D 03 02 00 00 00 00 71 [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:44]Read from MH i2c: E2 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: E2 0B 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: E2 0B 00 55 A1 00 51 44 CA 36 68 2E 66 44 90 00 47 [16:42:44]RAPDU: 51 44 CA 36 68 2E 66 44 90 00 [16:42:44]wFMCommunicate OK [16:42:44]SAM_PROTO_SignData done [16:42:44]FM_MakeSignedData done [16:42:44]CreateOFDProtocolMessage [16:42:44]wFMCommunicate request_size=4 [16:42:44]MH_SAM_APDU [16:42:44]CAPDU: 80 11 00 00 [16:42:44]Write to MH i2c: E2 08 00 56 A1 80 11 00 00 00 00 00 00 71 [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:44]Read from MH i2c: E2 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: E2 17 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: E2 17 00 56 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C1 [16:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:42:44]wFMCommunicate OK [16:42:44]CreateOFDProtocolMessage done [16:42:44]OFDSenderStorePacket 94963 [16:42:44]StoreOFDPacket docnum=94963 [16:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AA 7E 07 01 E9 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 91 34 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 72 01 00 35 04 06 00 D0 18 BA 4F 9A DA 51 44 CA 36 68 2E 66 44 [16:42:44]CheckFolder [16:42:44]dirname=/storage/ofd_packets [16:42:44]CheckFolder done [16:42:44]ProducePacketName [16:42:44]name=ofd_packets/00094963 [16:42:44]NVStorageSaveData ofd_packets/00094963 [16:42:44]File name is /storage/ofd_packets/00094963 [16:42:44]Write 301 bytes [16:42:44]NVStorageSaveData done [16:42:44]OFDSenderStorePacket done [16:42:44]KKMCreateOFDPacket done [16:42:44]NVStorageSaveData kkm_last_timestamp [16:42:44]File name is /storage/kkm_last_timestamp [16:42:44]Write 4 bytes [16:42:44]NVStorageSaveData done [16:42:44]ExternCall_PrintAddStr [16:42:44]wPrintStart [16:42:44]Write to MH i2c: 01 00 00 57 A1 F8 [16:42:44]Write i2c OK [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 [16:42:44]MH_I2C_Read... [16:42:44]Read from MH i2c: 01 07 00 57 A1 00 80 00 00 00 FF 0F 8D [16:42:44]RasterBufferAndPrint [16:42:44]line Счет N : (1)195921 [16:42:44]line ИНН: 02508201610067 [16:42:44]line Контрольно-Кассовый Чек [16:42:44]line ПРОДАЖА [16:42:44]line ТРК (МРК, ГНК) : 12 [16:42:44]line Товар: 2710124130 [16:42:44]line Аи-92-К-5 [16:42:44]line 23.850 * 62.90 [16:42:44]line = 1500.17 [16:42:44]line НДС 12% НСП 1% [16:42:44]line > о реализуемом товаре [16:42:44]line ОКРУГЛЕНИЕ: -0.17 [16:42:44]line ИТОГО: 1500.00 [16:42:44]line Внесено: 1500.00 [16:42:44]line СДАЧА: 0.00 [16:42:44]line НСП 1% : 13.28 [16:42:44]line НДС 12% : 159.31 [16:42:44]line Наличными: 1500.00 [16:42:44]line Безнал.: 0.00 [16:42:44]line Место: АЗС № 6 "Партнер Нефть" [16:42:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:42:44]line СНО: Общий режим [16:42:44]line Чек 138 11.03.2024 16:42 [16:42:44]line Смена: 326 ФФД: 1.0 [16:42:44]line ЗНМ: 0300000009 [16:42:44]line РНМ: 0000000000090555 [16:42:44]line Версия ККМ: 001 [16:42:44]line ФМ: 0000000000874811 [16:42:44]line ФД: 94963 [16:42:44]line ФПД: 228804623571674 [16:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T164257&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94963&fm=228804623571674&tin=02508201610067®Number=0000000000090555&sum=150000 [16:42:44]written 0, free lines is 4095 [16:42:44]OFD Sender: Processing packet 94963 [packets to send 30, broken 29] [16:42:44]ProducePacketName [16:42:44]name=ofd_packets/00094963 [16:42:44]OFD Sender: To server: pG, [16:42:44]CommunicateWithHost lk.salyk.kg:30040 [16:42:44]ConnectInit lk.salyk.kg [16:42:44]Connected sock=7 [16:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AA 7E 07 01 E9 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 91 34 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F3 72 01 00 35 04 06 00 D0 18 BA 4F 9A DA 51 44 CA 36 68 2E 66 44 [16:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4E 17 47 00 C8 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 31 31 10 04 04 00 F3 72 01 00 F4 03 04 00 EA DF EE 65 B6 04 01 00 00 FF DA 0D 9B 22 77 84 9E [16:42:44]CommunicateWithHost err = 0 [16:42:44]CheckOFDResponse [16:42:44]1017 (14) - 77093643461234 [16:42:44]1041 (16) - 0000000000874811 [16:42:44]1040 (4) - 94963 [16:42:44]1012 (4) - 11.03.2024 10:41 [16:42:44]1206 (1) - 0 [16:42:44]OFD Sender: Remove packet 94963 [16:42:44]ProducePacketName [16:42:44]name=ofd_packets/00094963 [16:42:44]NVStorageDeleteData [16:42:45]Write to MH i2c: 01 00 00 82 A1 23 [16:42:45]Write i2c OK [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: 01 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: 01 07 00 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: 01 07 00 82 A1 00 80 00 00 00 53 0D 0A [16:42:45]RasterBufferAndPrint [16:42:45]line [16:42:45]line [16:42:45]line [16:42:45]line [16:42:45]line [16:42:45]written 0, free lines is 3419 [16:42:45]process_action close_receipt done [16:42:45]requested_data is exist [16:42:45]produce_requested_data [16:42:45]requested_item fm.sn is exist - process it [16:42:45]wFMCommunicate request_size=4 [16:42:45]MH_SAM_APDU [16:42:45]CAPDU: 80 11 00 00 [16:42:45]Write to MH i2c: E2 08 00 89 A1 80 11 00 00 00 00 00 00 A4 [16:42:45]Write i2c OK [16:42:45]MH_I2C_Read... [16:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:45]Read from MH i2c: E2 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 17 00 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 17 00 89 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F4 [16:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:42:45]wFMCommunicate OK [16:42:45]requested_item fd.num is exist - process it [16:42:45]SAM_PROTO_GetFieldsCounters [16:42:45]wFMCommunicate request_size=4 [16:42:45]MH_SAM_APDU [16:42:45]CAPDU: 80 13 00 00 [16:42:45]Write to MH i2c: E2 08 00 8A A1 80 13 00 00 00 00 00 00 A7 [16:42:45]Write i2c OK [16:42:45]MH_I2C_Read... [16:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:45]Read from MH i2c: E2 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 62 00 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 62 00 8A A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [16:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F3 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:45]wFMCommunicate OK [16:42:45]SAM_PROTO_GetFieldsCounters done [16:42:45]requested_item shift.num is exist - process it [16:42:45]requested_item shift.opened is exist - process it [16:42:45]req_shift_opened [16:42:45]FM_GetShiftState [16:42:45]SAM_PROTO_GetShiftState [16:42:45]wFMCommunicate request_size=4 [16:42:45]MH_SAM_APDU [16:42:45]CAPDU: 80 13 01 00 [16:42:45]Write to MH i2c: E2 08 00 8B A1 80 13 01 00 00 00 00 00 A9 [16:42:45]Write i2c OK [16:42:45]MH_I2C_Read... [16:42:45]OFD Sender: No OFD packet to send [16:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:45]Read from MH i2c: E2 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 0E 00 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 0E 00 8B A1 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 45 [16:42:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:42:45]wFMCommunicate OK [16:42:45]SAM_PROTO_GetShiftState done [16:42:45]FM_GetShiftState done [16:42:45]req_shift_opened done [16:42:45]requested_item shift.open_date is exist - process it [16:42:45]req_shift_open_date [16:42:45]req_shift_open_date done [16:42:45]produce_requested_data done [16:42:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94963,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:42:45]process_action_free close_receipt [16:42:45]json_value_free [16:42:45]json_value_free done [16:42:45]process_json_proto returns [16:42:45]Send response to host [16:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94963,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:42:45]free response buf [16:42:45]execute_script done [16:42:45]execute_script returns [16:42:45]free content buf [16:42:45]Sock 9.Close socket [16:42:45]Sock 9.Thread stoped [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:29]accept exits with 10 [16:46:29]New connection [16:46:29]New thread 3067014500 created [16:46:29]Thread 3066871140 joined [16:46:29]Waiting for new connection... [16:46:29] Sock 10.Parse request [16:46:29]Sock 10.Check first char [16:46:29]Sock 10.First char is OK [16:46:29]request: POST /json_proto HTTP/1.0 [16:46:29]Method: POST [16:46:29]URL: /json_proto [16:46:29]Method is POST - this is cgi request [16:46:29]url: /json_proto [16:46:29]query_string will be loaded in cgi processing [16:46:29]execute_cgi json_proto POST (null) [16:46:29]execute_cgi path=json_proto method=POST [16:46:29]POST find Content-Length [16:46:29]Host: 172.17.62.67:8080 [16:46:29]Content-Length: 808 [16:46:29]Content-Type: application/json [16:46:29] [16:46:29]POST finish read [16:46:29]Found Content-Length = 808 [16:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:29]execute_script... [16:46: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)195922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:29]POST & json_proto [16:46:29]process_json_proto [16:46:29]json parsed OK: [16:46:29]protocol is kg_v1.0 [16:46:29]action value=close_receipt [16:46:29]process_action close_receipt [16:46:29]cmd_close_receipt [16:46:29]MH_GetDate [16:46:29]Write to MH i2c: F0 00 00 8C A1 1C [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: F0 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: F0 05 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: F0 05 00 8C A1 00 74 35 EF 65 1E [16:46:29]GetLastDocTimeStamp 1710175377 [16:46:29]current date 1710175604 [16:46:29]FM_GetShiftState [16:46:29]SAM_PROTO_GetShiftState [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 13 01 00 [16:46:29]Write to MH i2c: E2 08 00 8D A1 80 13 01 00 00 00 00 00 AB [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 0E 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 0E 00 8D A1 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 47 [16:46:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:46:29]wFMCommunicate OK [16:46:29]SAM_PROTO_GetShiftState done [16:46:29]FM_GetShiftState done [16:46:29]opened in 1710115571 [16:46:29]opened+sec_in_day 1710201971 [16:46:29]quantity*price = 100010 [16:46:29]sum+1 = 100012 [16:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 139 11.03.2024 16:46 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94964 ФПД: 44775304032460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T164644&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94964&fm=44775304032460&tin=02508201610067®Number=0000000000090555&sum=100011 [16:46:30]StoreToDocumentArchive [16:46:30]shift 326 fd 94964 [16:46:30]save to /storage/0326/doc_00094964 [16:46:30]save last doc name /storage/0326/doc_00094964 to /storage/kkm_last_doc_name [16:46:30]save OK [16:46:30]Clear old archive folders... [16:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:30]tlvbuf is 002106F0 [16:46:30]SAM_PROTO_ClearQueue [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 09 00 00 [16:46:30]Write to MH i2c: E2 08 00 9A A1 80 09 00 00 00 00 00 00 AD [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 9A A1 00 90 00 AF [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]SAM_PROTO_ClearQueue done [16:46:30]KKMCreateOFDPacket [16:46:30]OFDProtocolAddRootSTLVToBuf [16:46:30]FM_MakeSignedData [16:46:30]FM_MakeSignedData [16:46:30]SAM_PROTO_SignData [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 01 02 [16:46:30]Write to MH i2c: E2 08 00 9B A1 80 0D 01 02 00 00 00 00 B5 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 9B A1 00 90 00 B0 [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]wFMCommunicate request_size=255 [16:46:30]MH_SAM_APDU [16:46: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 74 35 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 72 01 00 35 04 06 00 28 [16:46:30]Write to MH i2c: E2 02 01 9C A1 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 74 35 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 72 01 00 35 04 06 00 28 00 00 80 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]OFD Sender: No OFD packet to send [16:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 9C A1 00 90 00 B1 [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]wFMCommunicate request_size=10 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 02 02 05 B9 10 17 70 CC [16:46:30]Write to MH i2c: E2 0D 00 9D A1 80 0D 02 02 05 00 B9 10 17 70 CC 00 00 DE [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 03 00 9D A1 00 90 00 B2 [16:46:30]RAPDU: 90 00 [16:46:30]wFMCommunicate OK [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 0D 03 02 [16:46:30]Write to MH i2c: E2 08 00 9E A1 80 0D 03 02 00 00 00 00 BA [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 0B 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 0B 00 9E A1 00 31 5E D3 28 E7 F9 95 80 90 00 3A [16:46:30]RAPDU: 31 5E D3 28 E7 F9 95 80 90 00 [16:46:30]wFMCommunicate OK [16:46:30]SAM_PROTO_SignData done [16:46:30]FM_MakeSignedData done [16:46:30]CreateOFDProtocolMessage [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 11 00 00 [16:46:30]Write to MH i2c: E2 08 00 9F A1 80 11 00 00 00 00 00 00 BA [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 17 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 17 00 9F A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0A [16:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:46:30]wFMCommunicate OK [16:46:30]CreateOFDProtocolMessage done [16:46:30]OFDSenderStorePacket 94964 [16:46:30]StoreOFDPacket docnum=94964 [16:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A1 80 07 01 5F 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 74 35 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 72 01 00 35 04 06 00 28 B9 10 17 70 CC 31 5E D3 28 E7 F9 95 80 [16:46:30]CheckFolder [16:46:30]dirname=/storage/ofd_packets [16:46:30]CheckFolder done [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00094964 [16:46:30]NVStorageSaveData ofd_packets/00094964 [16:46:30]File name is /storage/ofd_packets/00094964 [16:46:30]Write 301 bytes [16:46:30]NVStorageSaveData done [16:46:30]OFDSenderStorePacket done [16:46:30]KKMCreateOFDPacket done [16:46:30]NVStorageSaveData kkm_last_timestamp [16:46:30]File name is /storage/kkm_last_timestamp [16:46:30]Write 4 bytes [16:46:30]NVStorageSaveData done [16:46:30]ExternCall_PrintAddStr [16:46:30]wPrintStart [16:46:30]Write to MH i2c: 01 00 00 A0 A1 41 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: 01 07 00 A0 A1 00 80 00 00 00 FF 0F D6 [16:46:30]RasterBufferAndPrint [16:46:30]line Счет N : (1)195922 [16:46:30]line ИНН: 02508201610067 [16:46:30]line Контрольно-Кассовый Чек [16:46:30]line ПРОДАЖА [16:46:30]line ТРК (МРК, ГНК) : 41 [16:46:30]line Товар: 2710124500 [16:46:30]line Аи-95-К-5 [16:46:30]line 14.390 * 69.50 [16:46:30]line = 1000.11 [16:46:30]line НДС 12% НСП 1% [16:46:30]line > о реализуемом товаре [16:46:30]line ИТОГО: 1000.11 [16:46:30]line НСП 1% : 8.85 [16:46:30]line НДС 12% : 106.21 [16:46:30]line Наличными: 0.00 [16:46:30]line Безнал.: 1000.11 [16:46:30]line Место: АЗС № 6 "Партнер Нефть" [16:46:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:46:30]line СНО: Общий режим [16:46:30]line Чек 139 11.03.2024 16:46 [16:46:30]line Смена: 326 ФФД: 1.0 [16:46:30]line ЗНМ: 0300000009 [16:46:30]line РНМ: 0000000000090555 [16:46:30]line Версия ККМ: 001 [16:46:30]line Платежная система: О! деньги [16:46:30]line ФМ: 0000000000874811 [16:46:30]line ФД: 94964 [16:46:30]line ФПД: 44775304032460 [16:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T164644&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94964&fm=44775304032460&tin=02508201610067®Number=0000000000090555&sum=100011 [16:46:31]OFD Sender: Processing packet 94964 [packets to send 30, broken 29] [16:46:31]ProducePacketName [16:46:31]name=ofd_packets/00094964 [16:46:31]OFD Sender: To server: pG, [16:46:31]CommunicateWithHost lk.salyk.kg:30040 [16:46:31]ConnectInit lk.salyk.kg [16:46:31]written 0, free lines is 4095 [16:46:31]Connected sock=9 [16:46: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 31 31 0F 01 00 00 A1 80 07 01 5F 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 74 35 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 72 01 00 35 04 06 00 28 B9 10 17 70 CC 31 5E D3 28 E7 F9 95 80 [16:46: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 31 31 4F 00 00 00 3C 05 47 00 C6 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F4 72 01 00 F4 03 04 00 CD E0 EE 65 B6 04 01 00 00 C9 04 BB 1E 18 5E 8C 1A [16:46:31]CommunicateWithHost err = 0 [16:46:31]CheckOFDResponse [16:46:31]1017 (14) - 77093643461234 [16:46:31]1041 (16) - 0000000000874811 [16:46:31]1040 (4) - 94964 [16:46:31]1012 (4) - 11.03.2024 10:45 [16:46:31]1206 (1) - 0 [16:46:31]OFD Sender: Remove packet 94964 [16:46:31]ProducePacketName [16:46:31]name=ofd_packets/00094964 [16:46:31]NVStorageDeleteData [16:46:31]Write to MH i2c: 01 00 00 CA A1 6B [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: 01 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: 01 07 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: 01 07 00 CA A1 00 80 00 00 00 52 0D 51 [16:46:31]RasterBufferAndPrint [16:46:31]line [16:46:31]line [16:46:31]line [16:46:31]line [16:46:31]line [16:46:31]written 0, free lines is 3417 [16:46:31]process_action close_receipt done [16:46:31]requested_data is exist [16:46:31]produce_requested_data [16:46:31]requested_item fm.sn is exist - process it [16:46:31]wFMCommunicate request_size=4 [16:46:31]MH_SAM_APDU [16:46:31]CAPDU: 80 11 00 00 [16:46:31]Write to MH i2c: E2 08 00 D1 A1 80 11 00 00 00 00 00 00 EC [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:31]Read from MH i2c: E2 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 17 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 17 00 D1 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3C [16:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:46:31]wFMCommunicate OK [16:46:31]requested_item fd.num is exist - process it [16:46:31]SAM_PROTO_GetFieldsCounters [16:46:31]wFMCommunicate request_size=4 [16:46:31]MH_SAM_APDU [16:46:31]CAPDU: 80 13 00 00 [16:46:31]Write to MH i2c: E2 08 00 D2 A1 80 13 00 00 00 00 00 00 EF [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 [16:46:31]MH_I2C_Read... [16:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:31]Read from MH i2c: E2 62 00 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 62 00 D2 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [16:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F4 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:31]wFMCommunicate OK [16:46:31]SAM_PROTO_GetFieldsCounters done [16:46:31]requested_item shift.num is exist - process it [16:46:31]requested_item shift.opened is exist - process it [16:46:31]req_shift_opened [16:46:31]FM_GetShiftState [16:46:31]SAM_PROTO_GetShiftState [16:46:31]wFMCommunicate request_size=4 [16:46:31]MH_SAM_APDU [16:46:31]CAPDU: 80 13 01 00 [16:46:31]Write to MH i2c: E2 08 00 D3 A1 80 13 01 00 00 00 00 00 F1 [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:31]Read from MH i2c: E2 [16:46:31]MH_I2C_Read... [16:46:31]Read from MH i2c: E2 0E 00 [16:46:31]MH_I2C_Read... [16:46:31]OFD Sender: No OFD packet to send [16:46:31]Read from MH i2c: E2 0E 00 D3 A1 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 8D [16:46:31]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:46:31]wFMCommunicate OK [16:46:31]SAM_PROTO_GetShiftState done [16:46:31]FM_GetShiftState done [16:46:31]req_shift_opened done [16:46:31]requested_item shift.open_date is exist - process it [16:46:31]req_shift_open_date [16:46:31]req_shift_open_date done [16:46:31]produce_requested_data done [16:46:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94964,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:46:31]process_action_free close_receipt [16:46:31]json_value_free [16:46:31]json_value_free done [16:46:31]process_json_proto returns [16:46:31]Send response to host [16:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94964,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:46:31]free response buf [16:46:31]execute_script done [16:46:31]execute_script returns [16:46:31]free content buf [16:46:31]Sock 10.Close socket [16:46:31]Sock 10.Thread stoped [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]accept exits with 7 [16:48:06]New connection [16:48:06]New thread 3066871140 created [16:48:06]Thread 3067014500 joined [16:48:06]Waiting for new connection... [16:48:06] Sock 7.Parse request [16:48:06]Sock 7.Check first char [16:48:06]Sock 7.First char is OK [16:48:06]request: POST /json_proto HTTP/1.0 [16:48:06]Method: POST [16:48:06]URL: /json_proto [16:48:06]Method is POST - this is cgi request [16:48:06]url: /json_proto [16:48:06]query_string will be loaded in cgi processing [16:48:06]execute_cgi json_proto POST (null) [16:48:06]execute_cgi path=json_proto method=POST [16:48:06]POST find Content-Length [16:48:06]Host: 172.17.62.67:8080 [16:48:06]Content-Length: 677 [16:48:06]Content-Type: application/json [16:48:06] [16:48:06]POST finish read [16:48:06]Found Content-Length = 677 [16:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:06]execute_script... [16:48:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:06]POST & json_proto [16:48:06]process_json_proto [16:48:06]json parsed OK: [16:48:06]protocol is kg_v1.0 [16:48:06]action value=close_receipt [16:48:06]process_action close_receipt [16:48:06]cmd_close_receipt [16:48:06]MH_GetDate [16:48:06]Write to MH i2c: F0 00 00 D4 A1 64 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 05 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: F0 05 00 D4 A1 00 D5 35 EF 65 C7 [16:48:06]GetLastDocTimeStamp 1710175604 [16:48:06]current date 1710175701 [16:48:06]FM_GetShiftState [16:48:06]SAM_PROTO_GetShiftState [16:48:06]wFMCommunicate request_size=4 [16:48:06]MH_SAM_APDU [16:48:06]CAPDU: 80 13 01 00 [16:48:06]Write to MH i2c: E2 08 00 D5 A1 80 13 01 00 00 00 00 00 F3 [16:48:06]Write i2c OK [16:48:06]MH_I2C_Read... [16:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:06]Read from MH i2c: E2 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 [16:48:06]MH_I2C_Read... [16:48:06]Read from MH i2c: E2 0E 00 D5 A1 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 8F [16:48:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:48:06]wFMCommunicate OK [16:48:06]SAM_PROTO_GetShiftState done [16:48:06]FM_GetShiftState done [16:48:06]opened in 1710115571 [16:48:06]opened+sec_in_day 1710201971 [16:48:06]quantity*price = 40004 [16:48:06]sum+1 = 40005 [16:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 140 11.03.2024 16:48 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94965 ФПД: 54851139951291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T164821&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94965&fm=54851139951291&tin=02508201610067®Number=0000000000090555&sum=40000 [16:48:07]StoreToDocumentArchive [16:48:07]shift 326 fd 94965 [16:48:07]save to /storage/0326/doc_00094965 [16:48:07]save last doc name /storage/0326/doc_00094965 to /storage/kkm_last_doc_name [16:48:07]save OK [16:48:07]Clear old archive folders... [16:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:07]tlvbuf is 002362A0 [16:48:07]SAM_PROTO_ClearQueue [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 09 00 00 [16:48:07]Write to MH i2c: E2 08 00 E2 A1 80 09 00 00 00 00 00 00 F5 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:07]Read from MH i2c: E2 03 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 E2 A1 00 90 00 F7 [16:48:07]RAPDU: 90 00 [16:48:07]wFMCommunicate OK [16:48:07]SAM_PROTO_ClearQueue done [16:48:07]KKMCreateOFDPacket [16:48:07]OFDProtocolAddRootSTLVToBuf [16:48:07]FM_MakeSignedData [16:48:07]FM_MakeSignedData [16:48:07]SAM_PROTO_SignData [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 0D 01 02 [16:48:07]Write to MH i2c: E2 08 00 E3 A1 80 0D 01 02 00 00 00 00 FD [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 E3 A1 00 90 00 F8 [16:48:07]RAPDU: 90 00 [16:48:07]wFMCommunicate OK [16:48:07]wFMCommunicate request_size=255 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 8C 00 00 00 F4 03 04 00 D5 35 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 72 01 00 35 04 06 00 31 [16:48:07]Write to MH i2c: E2 02 01 E4 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 8C 00 00 00 F4 03 04 00 D5 35 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 72 01 00 35 04 06 00 31 00 00 0A [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 E4 A1 00 90 00 F9 [16:48:07]RAPDU: 90 00 [16:48:07]wFMCommunicate OK [16:48:07]wFMCommunicate request_size=10 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 0D 02 02 05 E3 06 B6 5A BB [16:48:07]Write to MH i2c: E2 0D 00 E5 A1 80 0D 02 02 05 00 E3 06 B6 5A BB 00 00 BE [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 03 00 E5 A1 00 90 00 FA [16:48:07]RAPDU: 90 00 [16:48:07]wFMCommunicate OK [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 0D 03 02 [16:48:07]Write to MH i2c: E2 08 00 E6 A1 80 0D 03 02 00 00 00 00 02 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 0B 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 0B 00 E6 A1 00 DF 0A 78 76 F0 63 C8 4E 90 00 43 [16:48:07]RAPDU: DF 0A 78 76 F0 63 C8 4E 90 00 [16:48:07]wFMCommunicate OK [16:48:07]SAM_PROTO_SignData done [16:48:07]FM_MakeSignedData done [16:48:07]CreateOFDProtocolMessage [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 11 00 00 [16:48:07]Write to MH i2c: E2 08 00 E7 A1 80 11 00 00 00 00 00 00 02 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 17 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 17 00 E7 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 52 [16:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:48:07]wFMCommunicate OK [16:48:07]CreateOFDProtocolMessage done [16:48:07]OFDSenderStorePacket 94965 [16:48:07]StoreOFDPacket docnum=94965 [16:48:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BA F8 07 01 36 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 8C 00 00 00 F4 03 04 00 D5 35 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 72 01 00 35 04 06 00 31 E3 06 B6 5A BB DF 0A 78 76 F0 63 C8 4E [16:48:07]CheckFolder [16:48:07]dirname=/storage/ofd_packets [16:48:07]CheckFolder done [16:48:07]ProducePacketName [16:48:07]name=ofd_packets/00094965 [16:48:07]NVStorageSaveData ofd_packets/00094965 [16:48:07]File name is /storage/ofd_packets/00094965 [16:48:07]Write 301 bytes [16:48:07]NVStorageSaveData done [16:48:07]OFDSenderStorePacket done [16:48:07]KKMCreateOFDPacket done [16:48:07]NVStorageSaveData kkm_last_timestamp [16:48:07]File name is /storage/kkm_last_timestamp [16:48:07]Write 4 bytes [16:48:07]NVStorageSaveData done [16:48:07]ExternCall_PrintAddStr [16:48:07]wPrintStart [16:48:07]Write to MH i2c: 01 00 00 E8 A1 89 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: 01 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: 01 07 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: 01 07 00 E8 A1 00 80 00 00 00 FF 0F 1E [16:48:07]RasterBufferAndPrint [16:48:07]line Счет N : (1)195923 [16:48:07]line ИНН: 02508201610067 [16:48:07]line Контрольно-Кассовый Чек [16:48:07]line ПРОДАЖА [16:48:07]line ТРК (МРК, ГНК) : 22 [16:48:07]line Товар: 2710124130 [16:48:07]line Аи-92-К-5 [16:48:07]line 6.360 * 62.90 [16:48:07]line = 400.04 [16:48:07]line НДС 12% НСП 1% [16:48:07]line > о реализуемом товаре [16:48:07]line ОКРУГЛЕНИЕ: -0.04 [16:48:07]line ИТОГО: 400.00 [16:48:07]line Внесено: 400.00 [16:48:07]line СДАЧА: 0.00 [16:48:07]line НСП 1% : 3.54 [16:48:07]line НДС 12% : 42.48 [16:48:07]line Наличными: 400.00 [16:48:07]line Безнал.: 0.00 [16:48:07]line Место: АЗС № 6 "Партнер Нефть" [16:48:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:48:07]line СНО: Общий режим [16:48:07]line Чек 140 11.03.2024 16:48 [16:48:07]line Смена: 326 ФФД: 1.0 [16:48:07]line ЗНМ: 0300000009 [16:48:07]line РНМ: 0000000000090555 [16:48:07]line Версия ККМ: 001 [16:48:07]line ФМ: 0000000000874811 [16:48:07]line ФД: 94965 [16:48:07]line ФПД: 54851139951291 [16:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T164821&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94965&fm=54851139951291&tin=02508201610067®Number=0000000000090555&sum=40000 [16:48:08]OFD Sender: Processing packet 94965 [packets to send 30, broken 29] [16:48:08]ProducePacketName [16:48:08]name=ofd_packets/00094965 [16:48:08]OFD Sender: To server: pG, [16:48:08]CommunicateWithHost lk.salyk.kg:30040 [16:48:08]ConnectInit lk.salyk.kg [16:48:08]written 0, free lines is 4095 [16:48:08]Connected sock=10 [16:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BA F8 07 01 36 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 8C 00 00 00 F4 03 04 00 D5 35 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 72 01 00 35 04 06 00 31 E3 06 B6 5A BB DF 0A 78 76 F0 63 C8 4E [16:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F1 BC 47 00 27 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F5 72 01 00 F4 03 04 00 2E E1 EE 65 B6 04 01 00 00 4C FD E2 CE 65 77 F8 62 [16:48:08]CommunicateWithHost err = 0 [16:48:08]CheckOFDResponse [16:48:08]1017 (14) - 77093643461234 [16:48:08]1041 (16) - 0000000000874811 [16:48:08]1040 (4) - 94965 [16:48:08]1012 (4) - 11.03.2024 10:47 [16:48:08]1206 (1) - 0 [16:48:08]OFD Sender: Remove packet 94965 [16:48:08]ProducePacketName [16:48:08]name=ofd_packets/00094965 [16:48:08]NVStorageDeleteData [16:48:08]Write to MH i2c: 01 00 00 13 A2 B5 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 07 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: 01 07 00 13 A2 00 80 00 00 00 4A 0D 93 [16:48:08]RasterBufferAndPrint [16:48:08]line [16:48:08]line [16:48:08]line [16:48:08]line [16:48:08]line [16:48:08]written 0, free lines is 3406 [16:48:08]process_action close_receipt done [16:48:08]requested_data is exist [16:48:08]produce_requested_data [16:48:08]requested_item fm.sn is exist - process it [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 11 00 00 [16:48:08]Write to MH i2c: E2 08 00 1A A2 80 11 00 00 00 00 00 00 36 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 17 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 17 00 1A A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 86 [16:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:48:08]wFMCommunicate OK [16:48:08]requested_item fd.num is exist - process it [16:48:08]SAM_PROTO_GetFieldsCounters [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 13 00 00 [16:48:08]Write to MH i2c: E2 08 00 1B A2 80 13 00 00 00 00 00 00 39 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 62 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 62 00 1B A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [16:48: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F5 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:08]wFMCommunicate OK [16:48:08]SAM_PROTO_GetFieldsCounters done [16:48:08]requested_item shift.num is exist - process it [16:48:08]requested_item shift.opened is exist - process it [16:48:08]req_shift_opened [16:48:08]FM_GetShiftState [16:48:08]SAM_PROTO_GetShiftState [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 13 01 00 [16:48:08]Write to MH i2c: E2 08 00 1C A2 80 13 01 00 00 00 00 00 3B [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 0E 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 0E 00 1C A2 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D7 [16:48:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:48:08]wFMCommunicate OK [16:48:08]SAM_PROTO_GetShiftState done [16:48:08]FM_GetShiftState done [16:48:08]req_shift_opened done [16:48:08]requested_item shift.open_date is exist - process it [16:48:08]req_shift_open_date [16:48:08]req_shift_open_date done [16:48:08]produce_requested_data done [16:48:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94965,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:48:08]process_action_free close_receipt [16:48:08]json_value_free [16:48:08]json_value_free done [16:48:08]process_json_proto returns [16:48:08]Send response to host [16:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94965,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:48:08]free response buf [16:48:08]execute_script done [16:48:08]execute_script returns [16:48:08]free content buf [16:48:08]Sock 7.Close socket [16:48:08]Sock 7.Thread stoped [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:16]accept exits with 9 [16:50:16]New connection [16:50:16]New thread 3067014500 created [16:50:16]Thread 3066871140 joined [16:50:16]Waiting for new connection... [16:50:16] Sock 9.Parse request [16:50:16]Sock 9.Check first char [16:50:16]Sock 9.First char is OK [16:50:16]request: POST /json_proto HTTP/1.0 [16:50:16]Method: POST [16:50:16]URL: /json_proto [16:50:16]Method is POST - this is cgi request [16:50:16]url: /json_proto [16:50:16]query_string will be loaded in cgi processing [16:50:16]execute_cgi json_proto POST (null) [16:50:16]execute_cgi path=json_proto method=POST [16:50:16]POST find Content-Length [16:50:16]Host: 172.17.62.67:8080 [16:50:16]Content-Length: 682 [16:50:16]Content-Type: application/json [16:50:16] [16:50:16]POST finish read [16:50:16]Found Content-Length = 682 [16:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:16]execute_script... [16:50: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)195924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:16]POST & json_proto [16:50:16]process_json_proto [16:50:16]json parsed OK: [16:50:16]protocol is kg_v1.0 [16:50:16]action value=close_receipt [16:50:16]process_action close_receipt [16:50:16]cmd_close_receipt [16:50:16]MH_GetDate [16:50:16]Write to MH i2c: F0 00 00 1D A2 AE [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: F0 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: F0 05 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: F0 05 00 1D A2 00 57 36 EF 65 94 [16:50:16]GetLastDocTimeStamp 1710175701 [16:50:16]current date 1710175831 [16:50:16]FM_GetShiftState [16:50:16]SAM_PROTO_GetShiftState [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 13 01 00 [16:50:16]Write to MH i2c: E2 08 00 1E A2 80 13 01 00 00 00 00 00 3D [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 0E 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 0E 00 1E A2 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D9 [16:50:16]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:50:16]wFMCommunicate OK [16:50:16]SAM_PROTO_GetShiftState done [16:50:16]FM_GetShiftState done [16:50:16]opened in 1710115571 [16:50:16]opened+sec_in_day 1710201971 [16:50:16]quantity*price = 100011 [16:50:16]sum+1 = 100012 [16:50:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 141 11.03.2024 16:50 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94966 ФПД: 99787900273964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165032&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94966&fm=99787900273964&tin=02508201610067®Number=0000000000090555&sum=100000 [16:50:17]StoreToDocumentArchive [16:50:17]shift 326 fd 94966 [16:50:17]save to /storage/0326/doc_00094966 [16:50:17]save last doc name /storage/0326/doc_00094966 to /storage/kkm_last_doc_name [16:50:17]save OK [16:50:17]Clear old archive folders... [16:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:17]tlvbuf is 003F6B60 [16:50:17]SAM_PROTO_ClearQueue [16:50:17]wFMCommunicate request_size=4 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 09 00 00 [16:50:17]Write to MH i2c: E2 08 00 2B A2 80 09 00 00 00 00 00 00 3F [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 03 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 03 00 2B A2 00 90 00 41 [16:50:17]RAPDU: 90 00 [16:50:17]wFMCommunicate OK [16:50:17]SAM_PROTO_ClearQueue done [16:50:17]KKMCreateOFDPacket [16:50:17]OFDProtocolAddRootSTLVToBuf [16:50:17]FM_MakeSignedData [16:50:17]FM_MakeSignedData [16:50:17]SAM_PROTO_SignData [16:50:17]wFMCommunicate request_size=4 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 0D 01 02 [16:50:17]Write to MH i2c: E2 08 00 2C A2 80 0D 01 02 00 00 00 00 47 [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:17]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 03 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 03 00 2C A2 00 90 00 42 [16:50:17]RAPDU: 90 00 [16:50:17]wFMCommunicate OK [16:50:17]wFMCommunicate request_size=255 [16:50:17]MH_SAM_APDU [16:50:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 58 36 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 72 01 00 35 04 06 00 5A [16:50:17]Write to MH i2c: E2 02 01 2D A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 58 36 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 72 01 00 35 04 06 00 5A 00 00 68 [16:50:17]Write i2c OK [16:50:17]MH_I2C_Read... [16:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:18]Read from MH i2c: E2 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 03 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 03 00 2D A2 00 90 00 43 [16:50:18]RAPDU: 90 00 [16:50:18]wFMCommunicate OK [16:50:18]wFMCommunicate request_size=10 [16:50:18]MH_SAM_APDU [16:50:18]CAPDU: 80 0D 02 02 05 C1 AE 59 45 2C [16:50:18]Write to MH i2c: E2 0D 00 2E A2 80 0D 02 02 05 00 C1 AE 59 45 2C 00 00 8D [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:18]Read from MH i2c: E2 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 03 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 03 00 2E A2 00 90 00 44 [16:50:18]RAPDU: 90 00 [16:50:18]wFMCommunicate OK [16:50:18]wFMCommunicate request_size=4 [16:50:18]MH_SAM_APDU [16:50:18]CAPDU: 80 0D 03 02 [16:50:18]Write to MH i2c: E2 08 00 2F A2 80 0D 03 02 00 00 00 00 4C [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:18]Read from MH i2c: E2 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 0B 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 0B 00 2F A2 00 25 EB B5 E0 D6 6B D9 B7 90 00 C3 [16:50:18]RAPDU: 25 EB B5 E0 D6 6B D9 B7 90 00 [16:50:18]wFMCommunicate OK [16:50:18]SAM_PROTO_SignData done [16:50:18]FM_MakeSignedData done [16:50:18]CreateOFDProtocolMessage [16:50:18]wFMCommunicate request_size=4 [16:50:18]MH_SAM_APDU [16:50:18]CAPDU: 80 11 00 00 [16:50:18]Write to MH i2c: E2 08 00 30 A2 80 11 00 00 00 00 00 00 4C [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:18]Read from MH i2c: E2 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 17 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 17 00 30 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [16:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:50:18]wFMCommunicate OK [16:50:18]CreateOFDProtocolMessage done [16:50:18]OFDSenderStorePacket 94966 [16:50:18]StoreOFDPacket docnum=94966 [16:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EA 57 07 01 6E 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 58 36 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 72 01 00 35 04 06 00 5A C1 AE 59 45 2C 25 EB B5 E0 D6 6B D9 B7 [16:50:18]CheckFolder [16:50:18]dirname=/storage/ofd_packets [16:50:18]CheckFolder done [16:50:18]ProducePacketName [16:50:18]name=ofd_packets/00094966 [16:50:18]NVStorageSaveData ofd_packets/00094966 [16:50:18]File name is /storage/ofd_packets/00094966 [16:50:18]Write 301 bytes [16:50:18]NVStorageSaveData done [16:50:18]OFDSenderStorePacket done [16:50:18]KKMCreateOFDPacket done [16:50:18]NVStorageSaveData kkm_last_timestamp [16:50:18]File name is /storage/kkm_last_timestamp [16:50:18]Write 4 bytes [16:50:18]NVStorageSaveData done [16:50:18]ExternCall_PrintAddStr [16:50:18]wPrintStart [16:50:18]Write to MH i2c: 01 00 00 31 A2 D3 [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 07 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 07 00 31 A2 00 80 00 00 00 FF 0F 68 [16:50:18]RasterBufferAndPrint [16:50:18]line Счет N : (1)195924 [16:50:18]line ИНН: 02508201610067 [16:50:18]line Контрольно-Кассовый Чек [16:50:18]line ПРОДАЖА [16:50:18]line ТРК (МРК, ГНК) : 12 [16:50:18]line Товар: 2710124130 [16:50:18]line Аи-92-К-5 [16:50:18]line 15.900 * 62.90 [16:50:18]line = 1000.11 [16:50:18]line НДС 12% НСП 1% [16:50:18]line > о реализуемом товаре [16:50:18]line ОКРУГЛЕНИЕ: -0.11 [16:50:18]line ИТОГО: 1000.00 [16:50:18]line Внесено: 1000.00 [16:50:18]line СДАЧА: 0.00 [16:50:18]line НСП 1% : 8.85 [16:50:18]line НДС 12% : 106.21 [16:50:18]line Наличными: 1000.00 [16:50:18]line Безнал.: 0.00 [16:50:18]line Место: АЗС № 6 "Партнер Нефть" [16:50:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:50:18]line СНО: Общий режим [16:50:18]line Чек 141 11.03.2024 16:50 [16:50:18]line Смена: 326 ФФД: 1.0 [16:50:18]line ЗНМ: 0300000009 [16:50:18]line РНМ: 0000000000090555 [16:50:18]line Версия ККМ: 001 [16:50:18]line ФМ: 0000000000874811 [16:50:18]line ФД: 94966 [16:50:18]line ФПД: 99787900273964 [16:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165032&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94966&fm=99787900273964&tin=02508201610067®Number=0000000000090555&sum=100000 [16:50:18]OFD Sender: Processing packet 94966 [packets to send 30, broken 29] [16:50:18]ProducePacketName [16:50:18]name=ofd_packets/00094966 [16:50:18]OFD Sender: To server: pG, [16:50:18]CommunicateWithHost lk.salyk.kg:30040 [16:50:18]ConnectInit lk.salyk.kg [16:50:18]written 0, free lines is 4095 [16:50:18]Connected sock=10 [16:50: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 31 31 0F 01 00 00 EA 57 07 01 6E 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 58 36 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F6 72 01 00 35 04 06 00 5A C1 AE 59 45 2C 25 EB B5 E0 D6 6B D9 B7 [16:50: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 31 31 4F 00 00 00 06 DD 47 00 81 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 31 31 10 04 04 00 F6 72 01 00 F4 03 04 00 B0 E1 EE 65 B6 04 01 00 00 59 22 E5 2A 27 2A 58 19 [16:50:18]CommunicateWithHost err = 0 [16:50:18]CheckOFDResponse [16:50:18]1017 (14) - 77093643461234 [16:50:18]1041 (16) - 0000000000874811 [16:50:18]1040 (4) - 94966 [16:50:18]1012 (4) - 11.03.2024 10:49 [16:50:18]1206 (1) - 0 [16:50:18]OFD Sender: Remove packet 94966 [16:50:18]ProducePacketName [16:50:18]name=ofd_packets/00094966 [16:50:18]NVStorageDeleteData [16:50:19]Write to MH i2c: 01 00 00 5C A2 FE [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: 01 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: 01 07 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: 01 07 00 5C A2 00 80 00 00 00 4C 0D DE [16:50:19]RasterBufferAndPrint [16:50:19]line [16:50:19]line [16:50:19]line [16:50:19]line [16:50:19]line [16:50:19]written 0, free lines is 3410 [16:50:19]process_action close_receipt done [16:50:19]requested_data is exist [16:50:19]produce_requested_data [16:50:19]requested_item fm.sn is exist - process it [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 11 00 00 [16:50:19]Write to MH i2c: E2 08 00 63 A2 80 11 00 00 00 00 00 00 7F [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 17 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 17 00 63 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CF [16:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:50:19]wFMCommunicate OK [16:50:19]requested_item fd.num is exist - process it [16:50:19]SAM_PROTO_GetFieldsCounters [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 13 00 00 [16:50:19]Write to MH i2c: E2 08 00 64 A2 80 13 00 00 00 00 00 00 82 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 62 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 62 00 64 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16:50: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F6 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:19]wFMCommunicate OK [16:50:19]SAM_PROTO_GetFieldsCounters done [16:50:19]requested_item shift.num is exist - process it [16:50:19]requested_item shift.opened is exist - process it [16:50:19]req_shift_opened [16:50:19]FM_GetShiftState [16:50:19]SAM_PROTO_GetShiftState [16:50:19]wFMCommunicate request_size=4 [16:50:19]MH_SAM_APDU [16:50:19]CAPDU: 80 13 01 00 [16:50:19]Write to MH i2c: E2 08 00 65 A2 80 13 01 00 00 00 00 00 84 [16:50:19]Write i2c OK [16:50:19]MH_I2C_Read... [16:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:19]Read from MH i2c: E2 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 [16:50:19]MH_I2C_Read... [16:50:19]Read from MH i2c: E2 0E 00 65 A2 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 20 [16:50:19]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:50:19]wFMCommunicate OK [16:50:19]SAM_PROTO_GetShiftState done [16:50:19]FM_GetShiftState done [16:50:19]req_shift_opened done [16:50:19]requested_item shift.open_date is exist - process it [16:50:19]req_shift_open_date [16:50:19]req_shift_open_date done [16:50:19]produce_requested_data done [16:50:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94966,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:50:19]process_action_free close_receipt [16:50:19]json_value_free [16:50:19]json_value_free done [16:50:19]process_json_proto returns [16:50:19]Send response to host [16:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94966,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:50:19]free response buf [16:50:19]execute_script done [16:50:19]execute_script returns [16:50:19]free content buf [16:50:19]Sock 9.Close socket [16:50:19]Sock 9.Thread stoped [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:55]accept exits with 7 [16:51:55]New connection [16:51:55]New thread 3066871140 created [16:51:55]Thread 3067014500 joined [16:51:55]Waiting for new connection... [16:51:55] Sock 7.Parse request [16:51:55]Sock 7.Check first char [16:51:55]Sock 7.First char is OK [16:51:55]request: POST /json_proto HTTP/1.0 [16:51:55]Method: POST [16:51:55]URL: /json_proto [16:51:55]Method is POST - this is cgi request [16:51:55]url: /json_proto [16:51:55]query_string will be loaded in cgi processing [16:51:55]execute_cgi json_proto POST (null) [16:51:55]execute_cgi path=json_proto method=POST [16:51:55]POST find Content-Length [16:51:55]Host: 172.17.62.67:8080 [16:51:55]Content-Length: 661 [16:51:55]Content-Type: application/json [16:51:55] [16:51:55]POST finish read [16:51:55]Found Content-Length = 661 [16:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:55]execute_script... [16:51: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)195925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:55]POST & json_proto [16:51:55]process_json_proto [16:51:55]json parsed OK: [16:51:55]protocol is kg_v1.0 [16:51:55]action value=close_receipt [16:51:55]process_action close_receipt [16:51:55]cmd_close_receipt [16:51:55]MH_GetDate [16:51:55]Write to MH i2c: F0 00 00 66 A2 F7 [16:51:55]Write i2c OK [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: F0 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: F0 05 00 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: F0 05 00 66 A2 00 BB 36 EF 65 41 [16:51:55]GetLastDocTimeStamp 1710175832 [16:51:55]current date 1710175931 [16:51:55]FM_GetShiftState [16:51:55]SAM_PROTO_GetShiftState [16:51:55]wFMCommunicate request_size=4 [16:51:55]MH_SAM_APDU [16:51:55]CAPDU: 80 13 01 00 [16:51:55]Write to MH i2c: E2 08 00 67 A2 80 13 01 00 00 00 00 00 86 [16:51:55]Write i2c OK [16:51:55]MH_I2C_Read... [16:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:55]Read from MH i2c: E2 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: E2 0E 00 [16:51:55]MH_I2C_Read... [16:51:55]Read from MH i2c: E2 0E 00 67 A2 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 22 [16:51:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:51:55]wFMCommunicate OK [16:51:55]SAM_PROTO_GetShiftState done [16:51:55]FM_GetShiftState done [16:51:55]opened in 1710115571 [16:51:55]opened+sec_in_day 1710201971 [16:51:55]quantity*price = 62900 [16:51:55]sum+1 = 62901 [16:51:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 5000.00 СДАЧА: 4371.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 142 11.03.2024 16:52 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94967 ФПД: 9536386520660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165211&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94967&fm=9536386520660&tin=02508201610067®Number=0000000000090555&sum=62900 [16:51:56]StoreToDocumentArchive [16:51:56]shift 326 fd 94967 [16:51:56]save to /storage/0326/doc_00094967 [16:51:56]save last doc name /storage/0326/doc_00094967 to /storage/kkm_last_doc_name [16:51:56]save OK [16:51:56]Clear old archive folders... [16:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:56]tlvbuf is 002BCDF0 [16:51:56]SAM_PROTO_ClearQueue [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 09 00 00 [16:51:56]Write to MH i2c: E2 08 00 74 A2 80 09 00 00 00 00 00 00 88 [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 [16:51:56]MH_I2C_Read... [16:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:56]Read from MH i2c: E2 03 00 [16:51:56]MH_I2C_Read... [16:51:56]Read from MH i2c: E2 03 00 74 A2 00 90 00 8A [16:51:56]RAPDU: 90 00 [16:51:56]wFMCommunicate OK [16:51:56]SAM_PROTO_ClearQueue done [16:51:56]KKMCreateOFDPacket [16:51:56]OFDProtocolAddRootSTLVToBuf [16:51:56]FM_MakeSignedData [16:51:56]FM_MakeSignedData [16:51:56]SAM_PROTO_SignData [16:51:56]wFMCommunicate request_size=4 [16:51:56]MH_SAM_APDU [16:51:56]CAPDU: 80 0D 01 02 [16:51:56]Write to MH i2c: E2 08 00 75 A2 80 0D 01 02 00 00 00 00 90 [16:51:56]Write i2c OK [16:51:56]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 75 A2 00 90 00 8B [16:51:57]RAPDU: 90 00 [16:51:57]wFMCommunicate OK [16:51:57]wFMCommunicate request_size=255 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BB 36 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 72 01 00 35 04 06 00 08 [16:51:57]Write to MH i2c: E2 02 01 76 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BB 36 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 72 01 00 35 04 06 00 08 00 00 5F [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 76 A2 00 90 00 8C [16:51:57]RAPDU: 90 00 [16:51:57]wFMCommunicate OK [16:51:57]wFMCommunicate request_size=10 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 0D 02 02 05 AC 5C EE 56 54 [16:51:57]Write to MH i2c: E2 0D 00 77 A2 80 0D 02 02 05 00 AC 5C EE 56 54 00 00 3D [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 03 00 77 A2 00 90 00 8D [16:51:57]RAPDU: 90 00 [16:51:57]wFMCommunicate OK [16:51:57]wFMCommunicate request_size=4 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 0D 03 02 [16:51:57]Write to MH i2c: E2 08 00 78 A2 80 0D 03 02 00 00 00 00 95 [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 0B 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 0B 00 78 A2 00 74 02 6D 25 37 91 AD 2A 90 00 3D [16:51:57]RAPDU: 74 02 6D 25 37 91 AD 2A 90 00 [16:51:57]wFMCommunicate OK [16:51:57]SAM_PROTO_SignData done [16:51:57]FM_MakeSignedData done [16:51:57]CreateOFDProtocolMessage [16:51:57]wFMCommunicate request_size=4 [16:51:57]MH_SAM_APDU [16:51:57]CAPDU: 80 11 00 00 [16:51:57]Write to MH i2c: E2 08 00 79 A2 80 11 00 00 00 00 00 00 95 [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:57]Read from MH i2c: E2 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 17 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: E2 17 00 79 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E5 [16:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:51:57]wFMCommunicate OK [16:51:57]CreateOFDProtocolMessage done [16:51:57]OFDSenderStorePacket 94967 [16:51:57]StoreOFDPacket docnum=94967 [16:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C8 FD 07 01 4E A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BB 36 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 72 01 00 35 04 06 00 08 AC 5C EE 56 54 74 02 6D 25 37 91 AD 2A [16:51:57]CheckFolder [16:51:57]dirname=/storage/ofd_packets [16:51:57]CheckFolder done [16:51:57]ProducePacketName [16:51:57]name=ofd_packets/00094967 [16:51:57]NVStorageSaveData ofd_packets/00094967 [16:51:57]File name is /storage/ofd_packets/00094967 [16:51:57]Write 301 bytes [16:51:57]NVStorageSaveData done [16:51:57]OFDSenderStorePacket done [16:51:57]KKMCreateOFDPacket done [16:51:57]NVStorageSaveData kkm_last_timestamp [16:51:57]File name is /storage/kkm_last_timestamp [16:51:57]Write 4 bytes [16:51:57]NVStorageSaveData done [16:51:57]ExternCall_PrintAddStr [16:51:57]wPrintStart [16:51:57]Write to MH i2c: 01 00 00 7A A2 1C [16:51:57]Write i2c OK [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: 01 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: 01 07 00 [16:51:57]MH_I2C_Read... [16:51:57]Read from MH i2c: 01 07 00 7A A2 00 80 00 00 00 FF 0F B1 [16:51:57]RasterBufferAndPrint [16:51:57]line Счет N : (1)195925 [16:51:57]line ИНН: 02508201610067 [16:51:57]line Контрольно-Кассовый Чек [16:51:57]line ПРОДАЖА [16:51:57]line ТРК (МРК, ГНК) : 32 [16:51:57]line Товар: 2710124130 [16:51:57]line Аи-92-К-5 [16:51:57]line 10.000 * 62.90 [16:51:57]line = 629.00 [16:51:57]line НДС 12% НСП 1% [16:51:57]line > о реализуемом товаре [16:51:57]line ИТОГО: 629.00 [16:51:57]line Внесено: 5000.00 [16:51:57]line СДАЧА: 4371.00 [16:51:57]line НСП 1% : 5.57 [16:51:57]line НДС 12% : 66.80 [16:51:57]line Наличными: 629.00 [16:51:57]line Безнал.: 0.00 [16:51:57]line Место: АЗС № 6 "Партнер Нефть" [16:51:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:51:57]line СНО: Общий режим [16:51:57]line Чек 142 11.03.2024 16:52 [16:51:57]line Смена: 326 ФФД: 1.0 [16:51:57]line ЗНМ: 0300000009 [16:51:57]line РНМ: 0000000000090555 [16:51:57]line Версия ККМ: 001 [16:51:57]line ФМ: 0000000000874811 [16:51:57]line ФД: 94967 [16:51:57]line ФПД: 9536386520660 [16:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165211&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94967&fm=9536386520660&tin=02508201610067®Number=0000000000090555&sum=62900 [16:51:57]OFD Sender: Processing packet 94967 [packets to send 30, broken 29] [16:51:57]ProducePacketName [16:51:57]name=ofd_packets/00094967 [16:51:57]OFD Sender: To server: pG, [16:51:57]CommunicateWithHost lk.salyk.kg:30040 [16:51:57]ConnectInit lk.salyk.kg [16:51:57]written 0, free lines is 4095 [16:51:57]Connected sock=10 [16:51: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 31 31 0F 01 00 00 C8 FD 07 01 4E A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BB 36 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 72 01 00 35 04 06 00 08 AC 5C EE 56 54 74 02 6D 25 37 91 AD 2A [16:51: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 31 31 4F 00 00 00 35 93 47 00 32 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F7 72 01 00 F4 03 04 00 13 E2 EE 65 B6 04 01 00 00 B4 5C EA F0 D6 36 5D E5 [16:51:58]CommunicateWithHost err = 0 [16:51:58]CheckOFDResponse [16:51:58]1017 (14) - 77093643461234 [16:51:58]1041 (16) - 0000000000874811 [16:51:58]1040 (4) - 94967 [16:51:58]1012 (4) - 11.03.2024 10:50 [16:51:58]1206 (1) - 0 [16:51:58]OFD Sender: Remove packet 94967 [16:51:58]ProducePacketName [16:51:58]name=ofd_packets/00094967 [16:51:58]NVStorageDeleteData [16:51:58]Write to MH i2c: 01 00 00 A4 A2 46 [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: 01 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: 01 07 00 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: 01 07 00 A4 A2 00 80 00 00 00 60 0D 3A [16:51:58]RasterBufferAndPrint [16:51:58]line [16:51:58]line [16:51:58]line [16:51:58]line [16:51:58]line [16:51:58]written 0, free lines is 3430 [16:51:58]process_action close_receipt done [16:51:58]requested_data is exist [16:51:58]produce_requested_data [16:51:58]requested_item fm.sn is exist - process it [16:51:58]wFMCommunicate request_size=4 [16:51:58]MH_SAM_APDU [16:51:58]CAPDU: 80 11 00 00 [16:51:58]Write to MH i2c: E2 08 00 AB A2 80 11 00 00 00 00 00 00 C7 [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: E2 [16:51:58]MH_I2C_Read... [16:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:58]Read from MH i2c: E2 17 00 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: E2 17 00 AB A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 17 [16:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:51:58]wFMCommunicate OK [16:51:58]requested_item fd.num is exist - process it [16:51:58]SAM_PROTO_GetFieldsCounters [16:51:58]wFMCommunicate request_size=4 [16:51:58]MH_SAM_APDU [16:51:58]CAPDU: 80 13 00 00 [16:51:58]Write to MH i2c: E2 08 00 AC A2 80 13 00 00 00 00 00 00 CA [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:58]Read from MH i2c: E2 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: E2 62 00 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: E2 62 00 AC A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:51:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F7 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:58]wFMCommunicate OK [16:51:58]SAM_PROTO_GetFieldsCounters done [16:51:58]requested_item shift.num is exist - process it [16:51:58]requested_item shift.opened is exist - process it [16:51:58]req_shift_opened [16:51:58]FM_GetShiftState [16:51:58]SAM_PROTO_GetShiftState [16:51:58]wFMCommunicate request_size=4 [16:51:58]MH_SAM_APDU [16:51:58]CAPDU: 80 13 01 00 [16:51:58]Write to MH i2c: E2 08 00 AD A2 80 13 01 00 00 00 00 00 CC [16:51:58]Write i2c OK [16:51:58]MH_I2C_Read... [16:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:58]Read from MH i2c: E2 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: E2 0E 00 [16:51:58]MH_I2C_Read... [16:51:58]Read from MH i2c: E2 0E 00 AD A2 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 68 [16:51:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:51:58]wFMCommunicate OK [16:51:58]SAM_PROTO_GetShiftState done [16:51:58]FM_GetShiftState done [16:51:58]req_shift_opened done [16:51:58]requested_item shift.open_date is exist - process it [16:51:58]req_shift_open_date [16:51:58]req_shift_open_date done [16:51:58]produce_requested_data done [16:51:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94967,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:51:58]process_action_free close_receipt [16:51:58]json_value_free [16:51:58]json_value_free done [16:51:58]process_json_proto returns [16:51:58]Send response to host [16:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94967,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:51:58]free response buf [16:51:58]execute_script done [16:51:58]execute_script returns [16:51:58]free content buf [16:51:58]Sock 7.Close socket [16:51:58]Sock 7.Thread stoped [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:40]accept exits with 9 [16:53:40]New connection [16:53:40]New thread 3067014500 created [16:53:40]Thread 3066871140 joined [16:53:40]Waiting for new connection... [16:53:40] Sock 9.Parse request [16:53:40]Sock 9.Check first char [16:53:40]Sock 9.First char is OK [16:53:40]request: POST /json_proto HTTP/1.0 [16:53:40]Method: POST [16:53:40]URL: /json_proto [16:53:40]Method is POST - this is cgi request [16:53:40]url: /json_proto [16:53:40]query_string will be loaded in cgi processing [16:53:40]execute_cgi json_proto POST (null) [16:53:40]execute_cgi path=json_proto method=POST [16:53:40]POST find Content-Length [16:53:40]Host: 172.17.62.67:8080 [16:53:40]Content-Length: 675 [16:53:40]Content-Type: application/json [16:53:40] [16:53:40]POST finish read [16:53:40]Found Content-Length = 675 [16:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:40]execute_script... [16:53: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)195926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:40]POST & json_proto [16:53:40]process_json_proto [16:53:40]json parsed OK: [16:53:40]protocol is kg_v1.0 [16:53:40]action value=close_receipt [16:53:40]process_action close_receipt [16:53:40]cmd_close_receipt [16:53:40]MH_GetDate [16:53:40]Write to MH i2c: F0 00 00 AE A2 3F [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: F0 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: F0 05 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: F0 05 00 AE A2 00 23 37 EF 65 F2 [16:53:40]GetLastDocTimeStamp 1710175931 [16:53:40]current date 1710176035 [16:53:40]FM_GetShiftState [16:53:40]SAM_PROTO_GetShiftState [16:53:40]wFMCommunicate request_size=4 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 13 01 00 [16:53:40]Write to MH i2c: E2 08 00 AF A2 80 13 01 00 00 00 00 00 CE [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 0E 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 0E 00 AF A2 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 6A [16:53:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:53:40]wFMCommunicate OK [16:53:40]SAM_PROTO_GetShiftState done [16:53:40]FM_GetShiftState done [16:53:40]opened in 1710115571 [16:53:40]opened+sec_in_day 1710201971 [16:53:40]quantity*price = 100003 [16:53:40]sum+1 = 100005 [16:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 143 11.03.2024 16:53 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94968 ФПД: 47927873657958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165355&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94968&fm=47927873657958&tin=02508201610067®Number=0000000000090555&sum=100000 [16:53:41]StoreToDocumentArchive [16:53:41]shift 326 fd 94968 [16:53:41]save to /storage/0326/doc_00094968 [16:53:41]save last doc name /storage/0326/doc_00094968 to /storage/kkm_last_doc_name [16:53:41]save OK [16:53:41]Clear old archive folders... [16:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:53:41]tlvbuf is 0033D3C0 [16:53:41]SAM_PROTO_ClearQueue [16:53:41]wFMCommunicate request_size=4 [16:53:41]MH_SAM_APDU [16:53:41]CAPDU: 80 09 00 00 [16:53:41]Write to MH i2c: E2 08 00 BC A2 80 09 00 00 00 00 00 00 D0 [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 [16:53:41]MH_I2C_Read... [16:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:41]Read from MH i2c: E2 03 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 03 00 BC A2 00 90 00 D2 [16:53:41]RAPDU: 90 00 [16:53:41]wFMCommunicate OK [16:53:41]SAM_PROTO_ClearQueue done [16:53:41]KKMCreateOFDPacket [16:53:41]OFDProtocolAddRootSTLVToBuf [16:53:41]FM_MakeSignedData [16:53:41]FM_MakeSignedData [16:53:41]SAM_PROTO_SignData [16:53:41]wFMCommunicate request_size=4 [16:53:41]MH_SAM_APDU [16:53:41]CAPDU: 80 0D 01 02 [16:53:41]Write to MH i2c: E2 08 00 BD A2 80 0D 01 02 00 00 00 00 D8 [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:41]Read from MH i2c: E2 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 03 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 03 00 BD A2 00 90 00 D3 [16:53:41]RAPDU: 90 00 [16:53:41]wFMCommunicate OK [16:53:41]wFMCommunicate request_size=255 [16:53:41]MH_SAM_APDU [16:53:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 23 37 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 72 01 00 35 04 06 00 [16:53:41]Write to MH i2c: E2 02 01 BE A2 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 23 37 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 72 01 00 35 04 06 00 00 00 6D [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 BE A2 00 90 00 D4 [16:53:42]RAPDU: 90 00 [16:53:42]wFMCommunicate OK [16:53:42]wFMCommunicate request_size=11 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 0D 02 02 06 2B 97 13 E2 5C 66 [16:53:42]Write to MH i2c: E2 0E 00 BF A2 80 0D 02 02 06 00 2B 97 13 E2 5C 66 00 00 60 [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 03 00 BF A2 00 90 00 D5 [16:53:42]RAPDU: 90 00 [16:53:42]wFMCommunicate OK [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 0D 03 02 [16:53:42]Write to MH i2c: E2 08 00 C0 A2 80 0D 03 02 00 00 00 00 DD [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 0B 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 0B 00 C0 A2 00 CA 8C C8 FC D4 3A CC E4 90 00 B6 [16:53:42]RAPDU: CA 8C C8 FC D4 3A CC E4 90 00 [16:53:42]wFMCommunicate OK [16:53:42]SAM_PROTO_SignData done [16:53:42]FM_MakeSignedData done [16:53:42]CreateOFDProtocolMessage [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 11 00 00 [16:53:42]Write to MH i2c: E2 08 00 C1 A2 80 11 00 00 00 00 00 00 DD [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 17 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 17 00 C1 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2D [16:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:53:42]wFMCommunicate OK [16:53:42]CreateOFDProtocolMessage done [16:53:42]OFDSenderStorePacket 94968 [16:53:42]StoreOFDPacket docnum=94968 [16:53:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 D5 0C 08 01 84 A3 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 23 37 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 72 01 00 35 04 06 00 2B 97 13 E2 5C 66 CA 8C C8 FC D4 3A CC E4 [16:53:42]CheckFolder [16:53:42]dirname=/storage/ofd_packets [16:53:42]CheckFolder done [16:53:42]ProducePacketName [16:53:42]name=ofd_packets/00094968 [16:53:42]NVStorageSaveData ofd_packets/00094968 [16:53:42]File name is /storage/ofd_packets/00094968 [16:53:42]Write 302 bytes [16:53:42]NVStorageSaveData done [16:53:42]OFDSenderStorePacket done [16:53:42]KKMCreateOFDPacket done [16:53:42]NVStorageSaveData kkm_last_timestamp [16:53:42]File name is /storage/kkm_last_timestamp [16:53:42]Write 4 bytes [16:53:42]NVStorageSaveData done [16:53:42]ExternCall_PrintAddStr [16:53:42]wPrintStart [16:53:42]Write to MH i2c: 01 00 00 C2 A2 64 [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: 01 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: 01 07 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: 01 07 00 C2 A2 00 80 00 00 00 FF 0F F9 [16:53:42]RasterBufferAndPrint [16:53:42]line Счет N : (1)195926 [16:53:42]line ИНН: 02508201610067 [16:53:42]line Контрольно-Кассовый Чек [16:53:42]line ПРОДАЖА [16:53:42]line ТРК (МРК, ГНК) : 13 [16:53:42]line Товар: 2710124130 [16:53:42]line SUPER 92-К-5 [16:53:42]line 15.650 * 63.90 [16:53:42]line = 1000.04 [16:53:42]line НДС 12% НСП 1% [16:53:42]line > о реализуемом товаре [16:53:42]line ОКРУГЛЕНИЕ: -0.04 [16:53:42]line ИТОГО: 1000.00 [16:53:42]line Внесено: 1000.00 [16:53:42]line СДАЧА: 0.00 [16:53:42]line НСП 1% : 8.85 [16:53:42]line НДС 12% : 106.20 [16:53:42]line Наличными: 1000.00 [16:53:42]line Безнал.: 0.00 [16:53:42]line Место: АЗС № 6 "Партнер Нефть" [16:53:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:53:42]line СНО: Общий режим [16:53:42]line Чек 143 11.03.2024 16:53 [16:53:42]line Смена: 326 ФФД: 1.0 [16:53:42]line ЗНМ: 0300000009 [16:53:42]line РНМ: 0000000000090555 [16:53:42]line Версия ККМ: 001 [16:53:42]line ФМ: 0000000000874811 [16:53:42]line ФД: 94968 [16:53:42]line ФПД: 47927873657958 [16:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165355&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94968&fm=47927873657958&tin=02508201610067®Number=0000000000090555&sum=100000 [16:53:42]OFD Sender: Processing packet 94968 [packets to send 30, broken 29] [16:53:42]ProducePacketName [16:53:42]name=ofd_packets/00094968 [16:53:42]OFD Sender: To server: pG, [16:53:42]CommunicateWithHost lk.salyk.kg:30040 [16:53:42]ConnectInit lk.salyk.kg [16:53:42]written 0, free lines is 4095 [16:53:42]Connected sock=10 [16:53: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 31 31 10 01 00 00 D5 0C 08 01 84 A3 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 23 37 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 72 01 00 35 04 06 00 2B 97 13 E2 5C 66 CA 8C C8 FC D4 3A CC E4 [16:53: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 31 31 4F 00 00 00 25 6B 47 00 6E E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F8 72 01 00 F4 03 04 00 7C E2 EE 65 B6 04 01 00 00 46 08 F9 9D FD C4 1D 52 [16:53:42]CommunicateWithHost err = 0 [16:53:42]CheckOFDResponse [16:53:42]1017 (14) - 77093643461234 [16:53:42]1041 (16) - 0000000000874811 [16:53:42]1040 (4) - 94968 [16:53:42]1012 (4) - 11.03.2024 10:52 [16:53:42]1206 (1) - 0 [16:53:42]OFD Sender: Remove packet 94968 [16:53:42]ProducePacketName [16:53:42]name=ofd_packets/00094968 [16:53:42]NVStorageDeleteData [16:53:43]Write to MH i2c: 01 00 00 ED A2 8F [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: 01 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: 01 07 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: 01 07 00 ED A2 00 80 00 00 00 50 0D 73 [16:53:43]RasterBufferAndPrint [16:53:43]line [16:53:43]line [16:53:43]line [16:53:43]line [16:53:43]line [16:53:43]written 0, free lines is 3414 [16:53:43]process_action close_receipt done [16:53:43]requested_data is exist [16:53:43]produce_requested_data [16:53:43]requested_item fm.sn is exist - process it [16:53:43]wFMCommunicate request_size=4 [16:53:43]MH_SAM_APDU [16:53:43]CAPDU: 80 11 00 00 [16:53:43]Write to MH i2c: E2 08 00 F4 A2 80 11 00 00 00 00 00 00 10 [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:43]Read from MH i2c: E2 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 17 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 17 00 F4 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 60 [16:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:53:43]wFMCommunicate OK [16:53:43]requested_item fd.num is exist - process it [16:53:43]SAM_PROTO_GetFieldsCounters [16:53:43]wFMCommunicate request_size=4 [16:53:43]MH_SAM_APDU [16:53:43]CAPDU: 80 13 00 00 [16:53:43]Write to MH i2c: E2 08 00 F5 A2 80 13 00 00 00 00 00 00 13 [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:43]Read from MH i2c: E2 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 62 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 62 00 F5 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F8 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [16:53: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F8 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:43]wFMCommunicate OK [16:53:43]SAM_PROTO_GetFieldsCounters done [16:53:43]requested_item shift.num is exist - process it [16:53:43]requested_item shift.opened is exist - process it [16:53:43]req_shift_opened [16:53:43]FM_GetShiftState [16:53:43]SAM_PROTO_GetShiftState [16:53:43]wFMCommunicate request_size=4 [16:53:43]MH_SAM_APDU [16:53:43]CAPDU: 80 13 01 00 [16:53:43]Write to MH i2c: E2 08 00 F6 A2 80 13 01 00 00 00 00 00 15 [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:43]OFD Sender: No OFD packet to send [16:53:43]Read from MH i2c: E2 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 0E 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 0E 00 F6 A2 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B1 [16:53:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:53:43]wFMCommunicate OK [16:53:43]SAM_PROTO_GetShiftState done [16:53:43]FM_GetShiftState done [16:53:43]req_shift_opened done [16:53:43]requested_item shift.open_date is exist - process it [16:53:43]req_shift_open_date [16:53:43]req_shift_open_date done [16:53:43]produce_requested_data done [16:53:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94968,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:53:43]process_action_free close_receipt [16:53:43]json_value_free [16:53:43]json_value_free done [16:53:43]process_json_proto returns [16:53:43]Send response to host [16:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94968,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:53:43]free response buf [16:53:43]execute_script done [16:53:43]execute_script returns [16:53:43]free content buf [16:53:43]Sock 9.Close socket [16:53:43]Sock 9.Thread stoped [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:45]accept exits with 7 [16:54:45]New connection [16:54:45]New thread 3066871140 created [16:54:45]Thread 3067014500 joined [16:54:45]Waiting for new connection... [16:54:45] Sock 7.Parse request [16:54:45]Sock 7.Check first char [16:54:45]Sock 7.First char is OK [16:54:45]request: POST /json_proto HTTP/1.0 [16:54:45]Method: POST [16:54:45]URL: /json_proto [16:54:45]Method is POST - this is cgi request [16:54:45]url: /json_proto [16:54:45]query_string will be loaded in cgi processing [16:54:45]execute_cgi json_proto POST (null) [16:54:45]execute_cgi path=json_proto method=POST [16:54:45]POST find Content-Length [16:54:45]Host: 172.17.62.67:8080 [16:54:45]Content-Length: 679 [16:54:45]Content-Type: application/json [16:54:45] [16:54:45]POST finish read [16:54:45]Found Content-Length = 679 [16:54:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:45]execute_script... [16:54: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)195927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:45]POST & json_proto [16:54:45]process_json_proto [16:54:45]json parsed OK: [16:54:45]protocol is kg_v1.0 [16:54:45]action value=close_receipt [16:54:45]process_action close_receipt [16:54:45]cmd_close_receipt [16:54:45]MH_GetDate [16:54:45]Write to MH i2c: F0 00 00 F7 A2 88 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: F0 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: F0 05 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: F0 05 00 F7 A2 00 64 37 EF 65 7C [16:54:45]GetLastDocTimeStamp 1710176035 [16:54:45]current date 1710176100 [16:54:45]FM_GetShiftState [16:54:45]SAM_PROTO_GetShiftState [16:54:45]wFMCommunicate request_size=4 [16:54:45]MH_SAM_APDU [16:54:45]CAPDU: 80 13 01 00 [16:54:45]Write to MH i2c: E2 08 00 F8 A2 80 13 01 00 00 00 00 00 17 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:45]Read from MH i2c: E2 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 0E 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: E2 0E 00 F8 A2 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B3 [16:54:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:54:45]wFMCommunicate OK [16:54:45]SAM_PROTO_GetShiftState done [16:54:45]FM_GetShiftState done [16:54:45]opened in 1710115571 [16:54:45]opened+sec_in_day 1710201971 [16:54:45]quantity*price = 100039 [16:54:45]sum+1 = 100041 [16:54:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 144 11.03.2024 16:55 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94969 ФПД: 77425226234382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165500&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94969&fm=77425226234382&tin=02508201610067®Number=0000000000090555&sum=100000 [16:54:46]StoreToDocumentArchive [16:54:46]shift 326 fd 94969 [16:54:46]save to /storage/0326/doc_00094969 [16:54:46]save last doc name /storage/0326/doc_00094969 to /storage/kkm_last_doc_name [16:54:46]save OK [16:54:46]Clear old archive folders... [16:54:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:54:46]tlvbuf is 0026EFF0 [16:54:46]SAM_PROTO_ClearQueue [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 09 00 00 [16:54:46]Write to MH i2c: E2 08 00 05 A3 80 09 00 00 00 00 00 00 1A [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 05 A3 00 90 00 1C [16:54:46]RAPDU: 90 00 [16:54:46]wFMCommunicate OK [16:54:46]SAM_PROTO_ClearQueue done [16:54:46]KKMCreateOFDPacket [16:54:46]OFDProtocolAddRootSTLVToBuf [16:54:46]FM_MakeSignedData [16:54:46]FM_MakeSignedData [16:54:46]SAM_PROTO_SignData [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 0D 01 02 [16:54:46]Write to MH i2c: E2 08 00 06 A3 80 0D 01 02 00 00 00 00 22 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 06 A3 00 90 00 1D [16:54:46]RAPDU: 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=255 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 64 37 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 72 01 00 35 04 06 00 46 6A F7 1B [16:54:46]Write to MH i2c: E2 02 01 07 A3 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 64 37 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 72 01 00 35 04 06 00 46 6A F7 1B 00 00 4F [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 07 A3 00 90 00 1E [16:54:46]RAPDU: 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=7 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 0D 02 02 02 3A 0E [16:54:46]Write to MH i2c: E2 0A 00 08 A3 80 0D 02 02 02 00 3A 0E 00 00 71 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 03 00 08 A3 00 90 00 1F [16:54:46]RAPDU: 90 00 [16:54:46]wFMCommunicate OK [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 0D 03 02 [16:54:46]Write to MH i2c: E2 08 00 09 A3 80 0D 03 02 00 00 00 00 27 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 0B 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 0B 00 09 A3 00 65 99 98 EE F2 90 F6 CF 90 00 F3 [16:54:46]RAPDU: 65 99 98 EE F2 90 F6 CF 90 00 [16:54:46]wFMCommunicate OK [16:54:46]SAM_PROTO_SignData done [16:54:46]FM_MakeSignedData done [16:54:46]CreateOFDProtocolMessage [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 11 00 00 [16:54:46]Write to MH i2c: E2 08 00 0A A3 80 11 00 00 00 00 00 00 27 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 17 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 17 00 0A A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 77 [16:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:54:46]wFMCommunicate OK [16:54:46]CreateOFDProtocolMessage done [16:54:46]OFDSenderStorePacket 94969 [16:54:46]StoreOFDPacket docnum=94969 [16:54:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 B3 EC 04 01 95 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 64 37 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 72 01 00 35 04 06 00 46 6A F7 1B 3A 0E 65 99 98 EE F2 90 F6 CF [16:54:46]CheckFolder [16:54:46]dirname=/storage/ofd_packets [16:54:46]CheckFolder done [16:54:46]ProducePacketName [16:54:46]name=ofd_packets/00094969 [16:54:46]NVStorageSaveData ofd_packets/00094969 [16:54:46]File name is /storage/ofd_packets/00094969 [16:54:46]Write 298 bytes [16:54:46]NVStorageSaveData done [16:54:46]OFDSenderStorePacket done [16:54:46]KKMCreateOFDPacket done [16:54:46]NVStorageSaveData kkm_last_timestamp [16:54:46]File name is /storage/kkm_last_timestamp [16:54:46]Write 4 bytes [16:54:46]NVStorageSaveData done [16:54:46]ExternCall_PrintAddStr [16:54:46]wPrintStart [16:54:46]Write to MH i2c: 01 00 00 0B A3 AE [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 07 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 07 00 0B A3 00 80 00 00 00 FF 0F 43 [16:54:46]RasterBufferAndPrint [16:54:46]line Счет N : (1)195927 [16:54:46]line ИНН: 02508201610067 [16:54:46]line Контрольно-Кассовый Чек [16:54:46]line ПРОДАЖА [16:54:46]line ТРК (МРК, ГНК) : 51 [16:54:46]line Товар: 2710194210 [16:54:46]line ДТ-К-5 [16:54:46]line 14.110 * 70.90 [16:54:46]line = 1000.40 [16:54:46]line НДС 12% НСП 1% [16:54:46]line > о реализуемом товаре [16:54:46]line ОКРУГЛЕНИЕ: -0.40 [16:54:46]line ИТОГО: 1000.00 [16:54:46]line Внесено: 1000.00 [16:54:46]line СДАЧА: 0.00 [16:54:46]line НСП 1% : 8.85 [16:54:46]line НДС 12% : 106.24 [16:54:46]line Наличными: 1000.00 [16:54:46]line Безнал.: 0.00 [16:54:46]line Место: АЗС № 6 "Партнер Нефть" [16:54:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:54:46]line СНО: Общий режим [16:54:46]line Чек 144 11.03.2024 16:55 [16:54:46]line Смена: 326 ФФД: 1.0 [16:54:46]line ЗНМ: 0300000009 [16:54:46]line РНМ: 0000000000090555 [16:54:46]line Версия ККМ: 001 [16:54:46]line ФМ: 0000000000874811 [16:54:46]line ФД: 94969 [16:54:46]line ФПД: 77425226234382 [16:54:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165500&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94969&fm=77425226234382&tin=02508201610067®Number=0000000000090555&sum=100000 [16:54:47]OFD Sender: Processing packet 94969 [packets to send 30, broken 29] [16:54:47]ProducePacketName [16:54:47]name=ofd_packets/00094969 [16:54:47]OFD Sender: To server: pG, [16:54:47]CommunicateWithHost lk.salyk.kg:30040 [16:54:47]ConnectInit lk.salyk.kg [16:54:47]written 0, free lines is 4095 [16:54:47]Connected sock=10 [16:54: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 31 31 0C 01 00 00 B3 EC 04 01 95 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 64 37 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 72 01 00 35 04 06 00 46 6A F7 1B 3A 0E 65 99 98 EE F2 90 F6 CF [16:54: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 31 31 4F 00 00 00 3D 4C 47 00 11 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 F9 72 01 00 F4 03 04 00 BD E2 EE 65 B6 04 01 00 00 D8 C1 CD 5E 24 04 EF 08 [16:54:47]CommunicateWithHost err = 0 [16:54:47]CheckOFDResponse [16:54:47]1017 (14) - 77093643461234 [16:54:47]1041 (16) - 0000000000874811 [16:54:47]1040 (4) - 94969 [16:54:47]1012 (4) - 11.03.2024 10:53 [16:54:47]1206 (1) - 0 [16:54:47]OFD Sender: Remove packet 94969 [16:54:47]ProducePacketName [16:54:47]name=ofd_packets/00094969 [16:54:47]NVStorageDeleteData [16:54:47]Write to MH i2c: 01 00 00 36 A3 D9 [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: 01 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: 01 07 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: 01 07 00 36 A3 00 80 00 00 00 43 0D B0 [16:54:47]RasterBufferAndPrint [16:54:47]line [16:54:47]line [16:54:47]line [16:54:47]line [16:54:47]line [16:54:47]written 0, free lines is 3401 [16:54:47]process_action close_receipt done [16:54:47]requested_data is exist [16:54:47]produce_requested_data [16:54:47]requested_item fm.sn is exist - process it [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 11 00 00 [16:54:47]Write to MH i2c: E2 08 00 3D A3 80 11 00 00 00 00 00 00 5A [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 17 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 17 00 3D A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AA [16:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:54:47]wFMCommunicate OK [16:54:47]requested_item fd.num is exist - process it [16:54:47]SAM_PROTO_GetFieldsCounters [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 13 00 00 [16:54:47]Write to MH i2c: E2 08 00 3E A3 80 13 00 00 00 00 00 00 5D [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 62 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 62 00 3E A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [16:54:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 F9 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:47]wFMCommunicate OK [16:54:47]SAM_PROTO_GetFieldsCounters done [16:54:47]requested_item shift.num is exist - process it [16:54:47]requested_item shift.opened is exist - process it [16:54:47]req_shift_opened [16:54:47]FM_GetShiftState [16:54:47]SAM_PROTO_GetShiftState [16:54:47]wFMCommunicate request_size=4 [16:54:47]MH_SAM_APDU [16:54:47]CAPDU: 80 13 01 00 [16:54:47]Write to MH i2c: E2 08 00 3F A3 80 13 01 00 00 00 00 00 5F [16:54:47]Write i2c OK [16:54:47]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 0E 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 0E 00 3F A3 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FB [16:54:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:54:47]wFMCommunicate OK [16:54:47]SAM_PROTO_GetShiftState done [16:54:47]FM_GetShiftState done [16:54:47]req_shift_opened done [16:54:47]requested_item shift.open_date is exist - process it [16:54:47]req_shift_open_date [16:54:47]req_shift_open_date done [16:54:47]produce_requested_data done [16:54:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94969,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:54:47]process_action_free close_receipt [16:54:47]json_value_free [16:54:47]json_value_free done [16:54:47]process_json_proto returns [16:54:47]Send response to host [16:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94969,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:54:47]free response buf [16:54:47]execute_script done [16:54:47]execute_script returns [16:54:47]free content buf [16:54:47]Sock 7.Close socket [16:54:47]Sock 7.Thread stoped [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:49]accept exits with 9 [16:57:49]New connection [16:57:49]New thread 3067014500 created [16:57:49]Thread 3066871140 joined [16:57:49]Waiting for new connection... [16:57:49] Sock 9.Parse request [16:57:49]Sock 9.Check first char [16:57:49]Sock 9.First char is OK [16:57:49]request: POST /json_proto HTTP/1.0 [16:57:49]Method: POST [16:57:49]URL: /json_proto [16:57:49]Method is POST - this is cgi request [16:57:49]url: /json_proto [16:57:49]query_string will be loaded in cgi processing [16:57:49]execute_cgi json_proto POST (null) [16:57:49]execute_cgi path=json_proto method=POST [16:57:49]POST find Content-Length [16:57:49]Host: 172.17.62.67:8080 [16:57:49]Content-Length: 816 [16:57:49]Content-Type: application/json [16:57:49] [16:57:49]POST finish read [16:57:49]Found Content-Length = 816 [16:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.000, "sum" : 314.50, "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" : 314.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:49]execute_script... [16:57: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)195928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.000, "sum" : 314.50, "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" : 314.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:49]POST & json_proto [16:57:49]process_json_proto [16:57:49]json parsed OK: [16:57:49]protocol is kg_v1.0 [16:57:49]action value=close_receipt [16:57:49]process_action close_receipt [16:57:49]cmd_close_receipt [16:57:49]MH_GetDate [16:57:49]Write to MH i2c: F0 00 00 40 A3 D2 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: F0 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: F0 05 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: F0 05 00 40 A3 00 1C 38 EF 65 7F [16:57:49]GetLastDocTimeStamp 1710176100 [16:57:49]current date 1710176284 [16:57:49]FM_GetShiftState [16:57:49]SAM_PROTO_GetShiftState [16:57:49]wFMCommunicate request_size=4 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 13 01 00 [16:57:49]Write to MH i2c: E2 08 00 41 A3 80 13 01 00 00 00 00 00 61 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 0E 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 0E 00 41 A3 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FD [16:57:49]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:57:49]wFMCommunicate OK [16:57:49]SAM_PROTO_GetShiftState done [16:57:49]FM_GetShiftState done [16:57:49]opened in 1710115571 [16:57:49]opened+sec_in_day 1710201971 [16:57:49]quantity*price = 31450 [16:57:49]sum+1 = 31451 [16:57:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 314.50 НСП 1% : 2.78 НДС 12% : 33.40 Наличными: 0.00 Безнал.: 314.50 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 145 11.03.2024 16:58 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94970 ФПД: 219326239460199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165804&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94970&fm=219326239460199&tin=02508201610067®Number=0000000000090555&sum=31450 [16:57:50]StoreToDocumentArchive [16:57:50]shift 326 fd 94970 [16:57:50]save to /storage/0326/doc_00094970 [16:57:50]save last doc name /storage/0326/doc_00094970 to /storage/kkm_last_doc_name [16:57:50]save OK [16:57:50]Clear old archive folders... [16:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:50]tlvbuf is 00225180 [16:57:50]SAM_PROTO_ClearQueue [16:57:50]wFMCommunicate request_size=4 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 09 00 00 [16:57:50]Write to MH i2c: E2 08 00 4E A3 80 09 00 00 00 00 00 00 63 [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 4E A3 00 90 00 65 [16:57:50]RAPDU: 90 00 [16:57:50]wFMCommunicate OK [16:57:50]SAM_PROTO_ClearQueue done [16:57:50]KKMCreateOFDPacket [16:57:50]OFDProtocolAddRootSTLVToBuf [16:57:50]FM_MakeSignedData [16:57:50]FM_MakeSignedData [16:57:50]SAM_PROTO_SignData [16:57:50]wFMCommunicate request_size=4 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 0D 01 02 [16:57:50]Write to MH i2c: E2 08 00 4F A3 80 0D 01 02 00 00 00 00 6B [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 4F A3 00 90 00 66 [16:57:50]RAPDU: 90 00 [16:57:50]wFMCommunicate OK [16:57:50]wFMCommunicate request_size=255 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1C 38 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 72 01 00 35 04 06 00 C7 [16:57:50]Write to MH i2c: E2 02 01 50 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1C 38 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 72 01 00 35 04 06 00 C7 00 00 96 [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 50 A3 00 90 00 67 [16:57:51]RAPDU: 90 00 [16:57:51]wFMCommunicate OK [16:57:51]wFMCommunicate request_size=10 [16:57:51]MH_SAM_APDU [16:57:51]CAPDU: 80 0D 02 02 05 79 DE 97 CB 67 [16:57:51]Write to MH i2c: E2 0D 00 51 A3 80 0D 02 02 05 00 79 DE 97 CB 67 00 00 98 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 51 A3 00 90 00 68 [16:57:51]RAPDU: 90 00 [16:57:51]wFMCommunicate OK [16:57:51]wFMCommunicate request_size=4 [16:57:51]MH_SAM_APDU [16:57:51]CAPDU: 80 0D 03 02 [16:57:51]Write to MH i2c: E2 08 00 52 A3 80 0D 03 02 00 00 00 00 70 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 0B 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 0B 00 52 A3 00 BF 14 7E 96 AF F7 BF C9 90 00 86 [16:57:51]RAPDU: BF 14 7E 96 AF F7 BF C9 90 00 [16:57:51]wFMCommunicate OK [16:57:51]SAM_PROTO_SignData done [16:57:51]FM_MakeSignedData done [16:57:51]CreateOFDProtocolMessage [16:57:51]wFMCommunicate request_size=4 [16:57:51]MH_SAM_APDU [16:57:51]CAPDU: 80 11 00 00 [16:57:51]Write to MH i2c: E2 08 00 53 A3 80 11 00 00 00 00 00 00 70 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 17 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 17 00 53 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C0 [16:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:57:51]wFMCommunicate OK [16:57:51]CreateOFDProtocolMessage done [16:57:51]OFDSenderStorePacket 94970 [16:57:51]StoreOFDPacket docnum=94970 [16:57:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B9 CB 07 01 A1 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1C 38 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 72 01 00 35 04 06 00 C7 79 DE 97 CB 67 BF 14 7E 96 AF F7 BF C9 [16:57:51]CheckFolder [16:57:51]dirname=/storage/ofd_packets [16:57:51]CheckFolder done [16:57:51]ProducePacketName [16:57:51]name=ofd_packets/00094970 [16:57:51]NVStorageSaveData ofd_packets/00094970 [16:57:51]File name is /storage/ofd_packets/00094970 [16:57:51]Write 301 bytes [16:57:51]NVStorageSaveData done [16:57:51]OFDSenderStorePacket done [16:57:51]KKMCreateOFDPacket done [16:57:51]NVStorageSaveData kkm_last_timestamp [16:57:51]File name is /storage/kkm_last_timestamp [16:57:51]Write 4 bytes [16:57:51]NVStorageSaveData done [16:57:51]ExternCall_PrintAddStr [16:57:51]wPrintStart [16:57:51]Write to MH i2c: 01 00 00 54 A3 F7 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: 01 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: 01 07 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: 01 07 00 54 A3 00 80 00 00 00 FF 0F 8C [16:57:51]RasterBufferAndPrint [16:57:51]line Счет N : (1)195928 [16:57:51]line ИНН: 02508201610067 [16:57:51]line Контрольно-Кассовый Чек [16:57:51]line ПРОДАЖА [16:57:51]line ТРК (МРК, ГНК) : 22 [16:57:51]line Товар: 2710124130 [16:57:51]line Аи-92-К-5 [16:57:51]line 5.000 * 62.90 [16:57:51]line = 314.50 [16:57:51]line НДС 12% НСП 1% [16:57:51]line > о реализуемом товаре [16:57:51]line ИТОГО: 314.50 [16:57:51]line НСП 1% : 2.78 [16:57:51]line НДС 12% : 33.40 [16:57:51]line Наличными: 0.00 [16:57:51]line Безнал.: 314.50 [16:57:51]line Место: АЗС № 6 "Партнер Нефть" [16:57:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [16:57:51]line СНО: Общий режим [16:57:51]line Чек 145 11.03.2024 16:58 [16:57:51]line Смена: 326 ФФД: 1.0 [16:57:51]line ЗНМ: 0300000009 [16:57:51]line РНМ: 0000000000090555 [16:57:51]line Версия ККМ: 001 [16:57:51]line Платежная система: Бакай Банк [16:57:51]line ФМ: 0000000000874811 [16:57:51]line ФД: 94970 [16:57:51]line ФПД: 219326239460199 [16:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T165804&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94970&fm=219326239460199&tin=02508201610067®Number=0000000000090555&sum=31450 [16:57:51]OFD Sender: Processing packet 94970 [packets to send 30, broken 29] [16:57:51]ProducePacketName [16:57:51]name=ofd_packets/00094970 [16:57:51]OFD Sender: To server: pG, [16:57:51]CommunicateWithHost lk.salyk.kg:30040 [16:57:51]ConnectInit lk.salyk.kg [16:57:51]written 0, free lines is 4095 [16:57:51]Connected sock=10 [16:57: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 31 31 0F 01 00 00 B9 CB 07 01 A1 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1C 38 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FA 72 01 00 35 04 06 00 C7 79 DE 97 CB 67 BF 14 7E 96 AF F7 BF C9 [16:57: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 31 31 4F 00 00 00 8E 78 47 00 C2 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 31 31 10 04 04 00 FA 72 01 00 F4 03 04 00 75 E3 EE 65 B6 04 01 00 00 CE 5F D0 8E BB 3F 50 5C [16:57:51]CommunicateWithHost err = 0 [16:57:51]CheckOFDResponse [16:57:51]1017 (14) - 77093643461234 [16:57:51]1041 (16) - 0000000000874811 [16:57:51]1040 (4) - 94970 [16:57:51]1012 (4) - 11.03.2024 10:56 [16:57:51]1206 (1) - 0 [16:57:51]OFD Sender: Remove packet 94970 [16:57:51]ProducePacketName [16:57:51]name=ofd_packets/00094970 [16:57:51]NVStorageDeleteData [16:57:52]Write to MH i2c: 01 00 00 7E A3 21 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 07 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 07 00 7E A3 00 80 00 00 00 5D 0D 12 [16:57:52]RasterBufferAndPrint [16:57:52]line [16:57:52]line [16:57:52]line [16:57:52]line [16:57:52]line [16:57:52]written 0, free lines is 3427 [16:57:52]process_action close_receipt done [16:57:52]requested_data is exist [16:57:52]produce_requested_data [16:57:52]requested_item fm.sn is exist - process it [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 11 00 00 [16:57:52]Write to MH i2c: E2 08 00 85 A3 80 11 00 00 00 00 00 00 A2 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 17 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 17 00 85 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F2 [16:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:57:52]wFMCommunicate OK [16:57:52]requested_item fd.num is exist - process it [16:57:52]SAM_PROTO_GetFieldsCounters [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 13 00 00 [16:57:52]Write to MH i2c: E2 08 00 86 A3 80 13 00 00 00 00 00 00 A5 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 62 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 62 00 86 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FA 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [16:57:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FA 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:52]wFMCommunicate OK [16:57:52]SAM_PROTO_GetFieldsCounters done [16:57:52]requested_item shift.num is exist - process it [16:57:52]requested_item shift.opened is exist - process it [16:57:52]req_shift_opened [16:57:52]FM_GetShiftState [16:57:52]SAM_PROTO_GetShiftState [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 13 01 00 [16:57:52]Write to MH i2c: E2 08 00 87 A3 80 13 01 00 00 00 00 00 A7 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 0E 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 0E 00 87 A3 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 43 [16:57:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:57:52]wFMCommunicate OK [16:57:52]SAM_PROTO_GetShiftState done [16:57:52]FM_GetShiftState done [16:57:52]req_shift_opened done [16:57:52]requested_item shift.open_date is exist - process it [16:57:52]req_shift_open_date [16:57:52]req_shift_open_date done [16:57:52]produce_requested_data done [16:57:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94970,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:57:52]process_action_free close_receipt [16:57:52]json_value_free [16:57:52]json_value_free done [16:57:52]process_json_proto returns [16:57:52]Send response to host [16:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94970,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:57:52]free response buf [16:57:52]execute_script done [16:57:52]execute_script returns [16:57:52]free content buf [16:57:52]Sock 9.Close socket [16:57:52]Sock 9.Thread stoped [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:34]accept exits with 7 [16:59:34]New connection [16:59:34]New thread 3066871140 created [16:59:34]Thread 3067014500 joined [16:59:34]Waiting for new connection... [16:59:34] Sock 7.Parse request [16:59:34]Sock 7.Check first char [16:59:34]Sock 7.First char is OK [16:59:34]request: POST /json_proto HTTP/1.0 [16:59:34]Method: POST [16:59:34]URL: /json_proto [16:59:34]Method is POST - this is cgi request [16:59:34]url: /json_proto [16:59:34]query_string will be loaded in cgi processing [16:59:34]execute_cgi json_proto POST (null) [16:59:34]execute_cgi path=json_proto method=POST [16:59:34]POST find Content-Length [16:59:34]Host: 172.17.62.67:8080 [16:59:34]Content-Length: 1182 [16:59:34]Content-Type: application/json [16:59:34] [16:59:34]POST finish read [16:59:34]Found Content-Length = 1182 [16:59:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195929\u000A11.03.2024 16:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3824297\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:34]execute_script... [16:59:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195929\u000A11.03.2024 16:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3824297\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:34]POST & json_proto [16:59:34]process_json_proto [16:59:34]json parsed OK: [16:59:34]protocol is kg_v1.0 [16:59:34]action value=print_text [16:59:34]process_action print_text [16:59:34]cmd_print_text [16:59:34]ExternCall_PrintAddStr [16:59:34]wPrintStart [16:59:34]Write to MH i2c: 01 00 00 88 A3 2B [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 07 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 07 00 88 A3 00 80 00 00 00 FF 0F C0 [16:59:34]RasterBufferAndPrint [16:59:34]line *****ТОВАРНЫЙ ЧЕК***** [16:59:34]line АЗС 6 [16:59:34]line Партнер нефть [16:59:34]line 02508201610067 [16:59:34]line Кассир : Карыбаев Б. [16:59:34]line Счет N : (1)195929 [16:59:34]line 11.03.2024 16:53 [16:59:34]line ПРОДАЖА [16:59:34]line ТРК (МРК, ГНК): 12 [16:59:34]line Вид ГСМ : 2710124130 [16:59:34]line Аи-92-К-5 [16:59:34]line 10.000 x 62.90 [16:59:35]line ИТОГ: 629.00 [16:59:35]line Тип оплаты: Талоны: Партнер нефть [16:59:35]line 3824297 [16:59:35]line ______________________ [16:59:35]line (подпись) [16:59:35]written 0, free lines is 4095 [16:59:35]Write to MH i2c: 01 00 00 9C A3 3F [16:59:35]Write i2c OK [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 07 00 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: 01 07 00 9C A3 00 80 00 00 00 65 0E 39 [16:59:35]RasterBufferAndPrint [16:59:35]line [16:59:35]line [16:59:35]line [16:59:35]line [16:59:35]line [16:59:35]written 0, free lines is 3689 [16:59:35]process_action print_text done [16:59:35]requested_data is exist [16:59:35]produce_requested_data [16:59:35]requested_item fm.sn is exist - process it [16:59:35]wFMCommunicate request_size=4 [16:59:35]MH_SAM_APDU [16:59:35]CAPDU: 80 11 00 00 [16:59:35]Write to MH i2c: E2 08 00 A3 A3 80 11 00 00 00 00 00 00 C0 [16:59:35]Write i2c OK [16:59:35]MH_I2C_Read... [16:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:35]Read from MH i2c: E2 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: E2 17 00 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: E2 17 00 A3 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [16:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [16:59:35]wFMCommunicate OK [16:59:35]requested_item fd.num is exist - process it [16:59:35]SAM_PROTO_GetFieldsCounters [16:59:35]wFMCommunicate request_size=4 [16:59:35]MH_SAM_APDU [16:59:35]CAPDU: 80 13 00 00 [16:59:35]Write to MH i2c: E2 08 00 A4 A3 80 13 00 00 00 00 00 00 C3 [16:59:35]Write i2c OK [16:59:35]MH_I2C_Read... [16:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:35]Read from MH i2c: E2 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: E2 62 00 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: E2 62 00 A4 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FA 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [16:59: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FA 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:35]wFMCommunicate OK [16:59:35]SAM_PROTO_GetFieldsCounters done [16:59:35]requested_item shift.num is exist - process it [16:59:35]requested_item shift.opened is exist - process it [16:59:35]req_shift_opened [16:59:35]FM_GetShiftState [16:59:35]SAM_PROTO_GetShiftState [16:59:35]wFMCommunicate request_size=4 [16:59:35]MH_SAM_APDU [16:59:35]CAPDU: 80 13 01 00 [16:59:35]Write to MH i2c: E2 08 00 A5 A3 80 13 01 00 00 00 00 00 C5 [16:59:35]Write i2c OK [16:59:35]MH_I2C_Read... [16:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:35]Read from MH i2c: E2 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: E2 0E 00 [16:59:35]MH_I2C_Read... [16:59:35]Read from MH i2c: E2 0E 00 A5 A3 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 61 [16:59:35]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [16:59:35]wFMCommunicate OK [16:59:35]SAM_PROTO_GetShiftState done [16:59:35]FM_GetShiftState done [16:59:35]req_shift_opened done [16:59:35]requested_item shift.open_date is exist - process it [16:59:35]req_shift_open_date [16:59:35]req_shift_open_date done [16:59:35]produce_requested_data done [16:59:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94970,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [16:59:35]process_action_free print_text [16:59:35]json_value_free [16:59:35]json_value_free done [16:59:35]process_json_proto returns [16:59:35]Send response to host [16:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94970,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [16:59:35]free response buf [16:59:35]execute_script done [16:59:35]execute_script returns [16:59:35]free content buf [16:59:35]Sock 7.Close socket [16:59:35]Sock 7.Thread stoped [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:21]accept exits with 9 [17:01:21]New connection [17:01:21]New thread 3067014500 created [17:01:21]Thread 3066871140 joined [17:01:21]Waiting for new connection... [17:01:21] Sock 9.Parse request [17:01:21]Sock 9.Check first char [17:01:21]Sock 9.First char is OK [17:01:21]request: POST /json_proto HTTP/1.0 [17:01:21]Method: POST [17:01:21]URL: /json_proto [17:01:21]Method is POST - this is cgi request [17:01:21]url: /json_proto [17:01:21]query_string will be loaded in cgi processing [17:01:21]execute_cgi json_proto POST (null) [17:01:21]execute_cgi path=json_proto method=POST [17:01:21]POST find Content-Length [17:01:21]Host: 172.17.62.67:8080 [17:01:21]Content-Length: 817 [17:01:21]Content-Type: application/json [17:01:21] [17:01:21]POST finish read [17:01:21]Found Content-Length = 817 [17:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.930, "sum" : 750.40, "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" : 750.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:21]execute_script... [17:01:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.930, "sum" : 750.40, "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" : 750.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:21]POST & json_proto [17:01:21]process_json_proto [17:01:21]json parsed OK: [17:01:21]protocol is kg_v1.0 [17:01:21]action value=close_receipt [17:01:21]process_action close_receipt [17:01:21]cmd_close_receipt [17:01:21]MH_GetDate [17:01:21]Write to MH i2c: F0 00 00 A6 A3 38 [17:01:21]Write i2c OK [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 05 00 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 05 00 A6 A3 00 F0 38 EF 65 B9 [17:01:21]GetLastDocTimeStamp 1710176284 [17:01:21]current date 1710176496 [17:01:21]FM_GetShiftState [17:01:21]SAM_PROTO_GetShiftState [17:01:21]wFMCommunicate request_size=4 [17:01:21]MH_SAM_APDU [17:01:21]CAPDU: 80 13 01 00 [17:01:21]Write to MH i2c: E2 08 00 A7 A3 80 13 01 00 00 00 00 00 C7 [17:01:21]Write i2c OK [17:01:21]MH_I2C_Read... [17:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:21]Read from MH i2c: E2 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: E2 0E 00 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: E2 0E 00 A7 A3 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 63 [17:01:21]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:01:21]wFMCommunicate OK [17:01:21]SAM_PROTO_GetShiftState done [17:01:21]FM_GetShiftState done [17:01:21]opened in 1710115571 [17:01:21]opened+sec_in_day 1710201971 [17:01:21]quantity*price = 75039 [17:01:21]sum+1 = 75041 [17:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.40 НСП 1% : 6.64 НДС 12% : 79.69 Наличными: 0.00 Безнал.: 750.40 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 146 11.03.2024 17:01 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94971 ФПД: 168014198570312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T170136&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94971&fm=168014198570312&tin=02508201610067®Number=0000000000090555&sum=75040 [17:01:22]StoreToDocumentArchive [17:01:22]shift 326 fd 94971 [17:01:22]save to /storage/0326/doc_00094971 [17:01:22]save last doc name /storage/0326/doc_00094971 to /storage/kkm_last_doc_name [17:01:22]save OK [17:01:22]Clear old archive folders... [17:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:22]tlvbuf is 003905C0 [17:01:22]SAM_PROTO_ClearQueue [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 09 00 00 [17:01:22]Write to MH i2c: E2 08 00 B4 A3 80 09 00 00 00 00 00 00 C9 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 B4 A3 00 90 00 CB [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]SAM_PROTO_ClearQueue done [17:01:22]KKMCreateOFDPacket [17:01:22]OFDProtocolAddRootSTLVToBuf [17:01:22]FM_MakeSignedData [17:01:22]FM_MakeSignedData [17:01:22]SAM_PROTO_SignData [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 01 02 [17:01:22]Write to MH i2c: E2 08 00 B5 A3 80 0D 01 02 00 00 00 00 D1 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 B5 A3 00 90 00 CC [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=255 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 2E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 F0 38 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 72 01 00 35 04 06 00 98 [17:01:22]Write to MH i2c: E2 02 01 B6 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 2E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 F0 38 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 72 01 00 35 04 06 00 98 00 00 50 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 B6 A3 00 90 00 CD [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=10 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 02 02 05 CE DA 9F 7D 48 [17:01:22]Write to MH i2c: E2 0D 00 B7 A3 80 0D 02 02 05 00 CE DA 9F 7D 48 00 00 EA [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:23]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 03 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 03 00 B7 A3 00 90 00 CE [17:01:23]RAPDU: 90 00 [17:01:23]wFMCommunicate OK [17:01:23]wFMCommunicate request_size=4 [17:01:23]MH_SAM_APDU [17:01:23]CAPDU: 80 0D 03 02 [17:01:23]Write to MH i2c: E2 08 00 B8 A3 80 0D 03 02 00 00 00 00 D6 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:23]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 0B 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 0B 00 B8 A3 00 46 2A 68 76 BE 9E F6 D7 90 00 4E [17:01:23]RAPDU: 46 2A 68 76 BE 9E F6 D7 90 00 [17:01:23]wFMCommunicate OK [17:01:23]SAM_PROTO_SignData done [17:01:23]FM_MakeSignedData done [17:01:23]CreateOFDProtocolMessage [17:01:23]wFMCommunicate request_size=4 [17:01:23]MH_SAM_APDU [17:01:23]CAPDU: 80 11 00 00 [17:01:23]Write to MH i2c: E2 08 00 B9 A3 80 11 00 00 00 00 00 00 D6 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:23]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 17 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 17 00 B9 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 26 [17:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:01:23]wFMCommunicate OK [17:01:23]CreateOFDProtocolMessage done [17:01:23]OFDSenderStorePacket 94971 [17:01:23]StoreOFDPacket docnum=94971 [17:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 40 07 01 24 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 2E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 F0 38 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 72 01 00 35 04 06 00 98 CE DA 9F 7D 48 46 2A 68 76 BE 9E F6 D7 [17:01:23]CheckFolder [17:01:23]dirname=/storage/ofd_packets [17:01:23]CheckFolder done [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00094971 [17:01:23]NVStorageSaveData ofd_packets/00094971 [17:01:23]File name is /storage/ofd_packets/00094971 [17:01:23]Write 301 bytes [17:01:23]NVStorageSaveData done [17:01:23]OFDSenderStorePacket done [17:01:23]KKMCreateOFDPacket done [17:01:23]NVStorageSaveData kkm_last_timestamp [17:01:23]File name is /storage/kkm_last_timestamp [17:01:23]Write 4 bytes [17:01:23]NVStorageSaveData done [17:01:23]ExternCall_PrintAddStr [17:01:23]wPrintStart [17:01:23]Write to MH i2c: 01 00 00 BA A3 5D [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 BA A3 00 80 00 00 00 FF 0F F2 [17:01:23]RasterBufferAndPrint [17:01:23]line Счет N : (1)195930 [17:01:23]line ИНН: 02508201610067 [17:01:23]line Контрольно-Кассовый Чек [17:01:23]line ПРОДАЖА [17:01:23]line ТРК (МРК, ГНК) : 32 [17:01:23]line Товар: 2710124130 [17:01:23]line Аи-92-К-5 [17:01:23]line 11.930 * 62.90 [17:01:23]line = 750.40 [17:01:23]line НДС 12% НСП 1% [17:01:23]line > о реализуемом товаре [17:01:23]line ИТОГО: 750.40 [17:01:23]line НСП 1% : 6.64 [17:01:23]line НДС 12% : 79.69 [17:01:23]line Наличными: 0.00 [17:01:23]line Безнал.: 750.40 [17:01:23]line Место: АЗС № 6 "Партнер Нефть" [17:01:23]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:01:23]line СНО: Общий режим [17:01:23]line Чек 146 11.03.2024 17:01 [17:01:23]line Смена: 326 ФФД: 1.0 [17:01:23]line ЗНМ: 0300000009 [17:01:23]line РНМ: 0000000000090555 [17:01:23]line Версия ККМ: 001 [17:01:23]line Платежная система: Бакай Банк [17:01:23]line ФМ: 0000000000874811 [17:01:23]line ФД: 94971 [17:01:23]line ФПД: 168014198570312 [17:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T170136&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94971&fm=168014198570312&tin=02508201610067®Number=0000000000090555&sum=75040 [17:01:23]OFD Sender: Processing packet 94971 [packets to send 30, broken 29] [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00094971 [17:01:23]OFD Sender: To server: pG, [17:01:23]CommunicateWithHost lk.salyk.kg:30040 [17:01:23]ConnectInit lk.salyk.kg [17:01:23]written 0, free lines is 4095 [17:01:23]Connected sock=10 [17:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 80 40 07 01 24 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 2E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 F0 38 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FB 72 01 00 35 04 06 00 98 CE DA 9F 7D 48 46 2A 68 76 BE 9E F6 D7 [17:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 67 A2 47 00 29 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 31 31 10 04 04 00 FB 72 01 00 F4 03 04 00 49 E4 EE 65 B6 04 01 00 00 B9 C6 DA 5D 11 5C 6D C9 [17:01:23]CommunicateWithHost err = 0 [17:01:23]CheckOFDResponse [17:01:23]1017 (14) - 77093643461234 [17:01:23]1041 (16) - 0000000000874811 [17:01:23]1040 (4) - 94971 [17:01:23]1012 (4) - 11.03.2024 11:00 [17:01:23]1206 (1) - 0 [17:01:23]OFD Sender: Remove packet 94971 [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00094971 [17:01:23]NVStorageDeleteData [17:01:23]Write to MH i2c: 01 00 00 E4 A3 87 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 E4 A3 00 80 00 00 00 53 0D 6E [17:01:23]RasterBufferAndPrint [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]line [17:01:23]written 0, free lines is 3419 [17:01:23]process_action close_receipt done [17:01:23]requested_data is exist [17:01:23]produce_requested_data [17:01:23]requested_item fm.sn is exist - process it [17:01:23]wFMCommunicate request_size=4 [17:01:23]MH_SAM_APDU [17:01:23]CAPDU: 80 11 00 00 [17:01:23]Write to MH i2c: E2 08 00 EB A3 80 11 00 00 00 00 00 00 08 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:24]Read from MH i2c: E2 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 17 00 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 17 00 EB A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 58 [17:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:01:24]wFMCommunicate OK [17:01:24]requested_item fd.num is exist - process it [17:01:24]SAM_PROTO_GetFieldsCounters [17:01:24]wFMCommunicate request_size=4 [17:01:24]MH_SAM_APDU [17:01:24]CAPDU: 80 13 00 00 [17:01:24]Write to MH i2c: E2 08 00 EC A3 80 13 00 00 00 00 00 00 0B [17:01:24]Write i2c OK [17:01:24]MH_I2C_Read... [17:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:24]Read from MH i2c: E2 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 62 00 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 62 00 EC A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FB 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [17:01: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FB 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:24]wFMCommunicate OK [17:01:24]SAM_PROTO_GetFieldsCounters done [17:01:24]requested_item shift.num is exist - process it [17:01:24]requested_item shift.opened is exist - process it [17:01:24]req_shift_opened [17:01:24]FM_GetShiftState [17:01:24]SAM_PROTO_GetShiftState [17:01:24]wFMCommunicate request_size=4 [17:01:24]MH_SAM_APDU [17:01:24]CAPDU: 80 13 01 00 [17:01:24]Write to MH i2c: E2 08 00 ED A3 80 13 01 00 00 00 00 00 0D [17:01:24]Write i2c OK [17:01:24]MH_I2C_Read... [17:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:24]Read from MH i2c: E2 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 0E 00 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: E2 0E 00 ED A3 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A9 [17:01:24]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:01:24]wFMCommunicate OK [17:01:24]SAM_PROTO_GetShiftState done [17:01:24]FM_GetShiftState done [17:01:24]req_shift_opened done [17:01:24]requested_item shift.open_date is exist - process it [17:01:24]req_shift_open_date [17:01:24]req_shift_open_date done [17:01:24]produce_requested_data done [17:01:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94971,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:01:24]process_action_free close_receipt [17:01:24]json_value_free [17:01:24]json_value_free done [17:01:24]process_json_proto returns [17:01:24]Send response to host [17:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94971,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:01:24]free response buf [17:01:24]execute_script done [17:01:24]execute_script returns [17:01:24]free content buf [17:01:24]Sock 9.Close socket [17:01:24]Sock 9.Thread stoped [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:20]accept exits with 7 [17:09:20]New connection [17:09:20]New thread 3066871140 created [17:09:20]Thread 3067014500 joined [17:09:20]Waiting for new connection... [17:09:20] Sock 7.Parse request [17:09:20]Sock 7.Check first char [17:09:20]Sock 7.First char is OK [17:09:20]request: POST /json_proto HTTP/1.0 [17:09:20]Method: POST [17:09:20]URL: /json_proto [17:09:20]Method is POST - this is cgi request [17:09:20]url: /json_proto [17:09:20]query_string will be loaded in cgi processing [17:09:20]execute_cgi json_proto POST (null) [17:09:20]execute_cgi path=json_proto method=POST [17:09:20]POST find Content-Length [17:09:20]Host: 172.17.62.67:8080 [17:09:20]Content-Length: 812 [17:09:20]Content-Type: application/json [17:09:20] [17:09:20]POST finish read [17:09:20]Found Content-Length = 812 [17:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 23.480, "sum" : 1500.37, "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" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:20]execute_script... [17:09:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 23.480, "sum" : 1500.37, "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" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:20]POST & json_proto [17:09:20]process_json_proto [17:09:20]json parsed OK: [17:09:20]protocol is kg_v1.0 [17:09:20]action value=close_receipt [17:09:20]process_action close_receipt [17:09:20]cmd_close_receipt [17:09:20]MH_GetDate [17:09:20]Write to MH i2c: F0 00 00 EE A3 80 [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: F0 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: F0 05 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: F0 05 00 EE A3 00 CF 3A EF 65 E2 [17:09:20]GetLastDocTimeStamp 1710176496 [17:09:20]current date 1710176975 [17:09:20]FM_GetShiftState [17:09:20]SAM_PROTO_GetShiftState [17:09:20]wFMCommunicate request_size=4 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 13 01 00 [17:09:20]Write to MH i2c: E2 08 00 EF A3 80 13 01 00 00 00 00 00 0F [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 0E 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 0E 00 EF A3 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AB [17:09:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:09:20]wFMCommunicate OK [17:09:20]SAM_PROTO_GetShiftState done [17:09:20]FM_GetShiftState done [17:09:20]opened in 1710115571 [17:09:20]opened+sec_in_day 1710201971 [17:09:20]quantity*price = 150037 [17:09:20]sum+1 = 150038 [17:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.37 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.37 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 147 11.03.2024 17:09 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94972 ФПД: 200659748243945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T170935&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94972&fm=200659748243945&tin=02508201610067®Number=0000000000090555&sum=150037 [17:09:21]StoreToDocumentArchive [17:09:21]shift 326 fd 94972 [17:09:21]save to /storage/0326/doc_00094972 [17:09:21]save last doc name /storage/0326/doc_00094972 to /storage/kkm_last_doc_name [17:09:21]save OK [17:09:21]Clear old archive folders... [17:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:09:21]tlvbuf is 0032D010 [17:09:21]SAM_PROTO_ClearQueue [17:09:21]wFMCommunicate request_size=4 [17:09:21]MH_SAM_APDU [17:09:21]CAPDU: 80 09 00 00 [17:09:21]Write to MH i2c: E2 08 00 FC A3 80 09 00 00 00 00 00 00 11 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:21]Read from MH i2c: E2 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 03 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 03 00 FC A3 00 90 00 13 [17:09:21]RAPDU: 90 00 [17:09:21]wFMCommunicate OK [17:09:21]SAM_PROTO_ClearQueue done [17:09:21]KKMCreateOFDPacket [17:09:21]OFDProtocolAddRootSTLVToBuf [17:09:21]FM_MakeSignedData [17:09:21]FM_MakeSignedData [17:09:21]SAM_PROTO_SignData [17:09:21]wFMCommunicate request_size=4 [17:09:21]MH_SAM_APDU [17:09:21]CAPDU: 80 0D 01 02 [17:09:21]Write to MH i2c: E2 08 00 FD A3 80 0D 01 02 00 00 00 00 19 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:21]Read from MH i2c: E2 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 03 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 03 00 FD A3 00 90 00 14 [17:09:21]RAPDU: 90 00 [17:09:21]wFMCommunicate OK [17:09:21]wFMCommunicate request_size=255 [17:09:21]MH_SAM_APDU [17:09:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 5B 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CF 3A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 72 01 00 35 04 06 00 [17:09:21]Write to MH i2c: E2 02 01 FE A3 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 5B 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CF 3A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 72 01 00 35 04 06 00 00 00 56 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:21]Read from MH i2c: E2 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 03 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 03 00 FE A3 00 90 00 15 [17:09:21]RAPDU: 90 00 [17:09:21]wFMCommunicate OK [17:09:21]wFMCommunicate request_size=11 [17:09:21]MH_SAM_APDU [17:09:21]CAPDU: 80 0D 02 02 06 B6 7F BD 03 C9 E9 [17:09:21]Write to MH i2c: E2 0E 00 FF A3 80 0D 02 02 06 00 B6 7F BD 03 C9 E9 00 00 CF [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:21]Read from MH i2c: E2 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 03 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 03 00 FF A3 00 90 00 16 [17:09:21]RAPDU: 90 00 [17:09:21]wFMCommunicate OK [17:09:21]wFMCommunicate request_size=4 [17:09:21]MH_SAM_APDU [17:09:21]CAPDU: 80 0D 03 02 [17:09:21]Write to MH i2c: E2 08 00 00 A4 80 0D 03 02 00 00 00 00 1F [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:21]Read from MH i2c: E2 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 0B 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 0B 00 00 A4 00 5C 8F F2 9A F4 7F 9E 32 90 00 DA [17:09:21]RAPDU: 5C 8F F2 9A F4 7F 9E 32 90 00 [17:09:21]wFMCommunicate OK [17:09:21]SAM_PROTO_SignData done [17:09:21]FM_MakeSignedData done [17:09:21]CreateOFDProtocolMessage [17:09:21]wFMCommunicate request_size=4 [17:09:21]MH_SAM_APDU [17:09:21]CAPDU: 80 11 00 00 [17:09:21]Write to MH i2c: E2 08 00 01 A4 80 11 00 00 00 00 00 00 1F [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:21]Read from MH i2c: E2 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 17 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: E2 17 00 01 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [17:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:09:21]wFMCommunicate OK [17:09:21]CreateOFDProtocolMessage done [17:09:21]OFDSenderStorePacket 94972 [17:09:21]StoreOFDPacket docnum=94972 [17:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 0A 10 08 01 45 61 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 5B 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CF 3A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 72 01 00 35 04 06 00 B6 7F BD 03 C9 E9 5C 8F F2 9A F4 7F 9E 32 [17:09:21]CheckFolder [17:09:21]dirname=/storage/ofd_packets [17:09:21]CheckFolder done [17:09:21]ProducePacketName [17:09:21]name=ofd_packets/00094972 [17:09:21]NVStorageSaveData ofd_packets/00094972 [17:09:21]File name is /storage/ofd_packets/00094972 [17:09:21]Write 302 bytes [17:09:21]NVStorageSaveData done [17:09:21]OFDSenderStorePacket done [17:09:21]KKMCreateOFDPacket done [17:09:21]NVStorageSaveData kkm_last_timestamp [17:09:21]File name is /storage/kkm_last_timestamp [17:09:21]Write 4 bytes [17:09:21]NVStorageSaveData done [17:09:21]ExternCall_PrintAddStr [17:09:21]wPrintStart [17:09:21]Write to MH i2c: 01 00 00 02 A4 A6 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 07 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 07 00 02 A4 00 80 00 00 00 FF 0F 3B [17:09:21]RasterBufferAndPrint [17:09:21]line Счет N : (1)195931 [17:09:21]line ИНН: 02508201610067 [17:09:21]line Контрольно-Кассовый Чек [17:09:21]line ПРОДАЖА [17:09:21]line ТРК (МРК, ГНК) : 23 [17:09:21]line Товар: 2710124130 [17:09:21]line SUPER 92-К-5 [17:09:21]line 23.480 * 63.90 [17:09:21]line = 1500.37 [17:09:21]line НДС 12% НСП 1% [17:09:21]line > о реализуемом товаре [17:09:21]line ИТОГО: 1500.37 [17:09:21]line НСП 1% : 13.28 [17:09:21]line НДС 12% : 159.33 [17:09:21]line Наличными: 0.00 [17:09:21]line Безнал.: 1500.37 [17:09:21]line Место: АЗС № 6 "Партнер Нефть" [17:09:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:09:21]line СНО: Общий режим [17:09:21]line Чек 147 11.03.2024 17:09 [17:09:21]line Смена: 326 ФФД: 1.0 [17:09:21]line ЗНМ: 0300000009 [17:09:21]line РНМ: 0000000000090555 [17:09:21]line Версия ККМ: 001 [17:09:21]line Платежная система: Бакай Банк [17:09:21]line ФМ: 0000000000874811 [17:09:21]line ФД: 94972 [17:09:21]line ФПД: 200659748243945 [17:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T170935&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94972&fm=200659748243945&tin=02508201610067®Number=0000000000090555&sum=150037 [17:09:22]OFD Sender: Processing packet 94972 [packets to send 30, broken 29] [17:09:22]ProducePacketName [17:09:22]name=ofd_packets/00094972 [17:09:22]OFD Sender: To server: pG, [17:09:22]CommunicateWithHost lk.salyk.kg:30040 [17:09:22]ConnectInit lk.salyk.kg [17:09:22]written 0, free lines is 4095 [17:09:22]Connected sock=10 [17:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 0A 10 08 01 45 61 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 5B 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CF 3A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 72 01 00 35 04 06 00 B6 7F BD 03 C9 E9 5C 8F F2 9A F4 7F 9E 32 [17:09: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 31 31 4F 00 00 00 40 70 47 00 98 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FC 72 01 00 F4 03 04 00 28 E6 EE 65 B6 04 01 00 00 25 75 16 7C 34 89 8A F3 [17:09:22]CommunicateWithHost err = 0 [17:09:22]CheckOFDResponse [17:09:22]1017 (14) - 77093643461234 [17:09:22]1041 (16) - 0000000000874811 [17:09:22]1040 (4) - 94972 [17:09:22]1012 (4) - 11.03.2024 11:08 [17:09:22]1206 (1) - 0 [17:09:22]OFD Sender: Remove packet 94972 [17:09:22]ProducePacketName [17:09:22]name=ofd_packets/00094972 [17:09:22]NVStorageDeleteData [17:09:22]Write to MH i2c: 01 00 00 2C A4 D0 [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: 01 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: 01 07 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: 01 07 00 2C A4 00 80 00 00 00 5F 0D C3 [17:09:22]RasterBufferAndPrint [17:09:22]line [17:09:22]line [17:09:22]line [17:09:22]line [17:09:22]line [17:09:22]written 0, free lines is 3429 [17:09:22]process_action close_receipt done [17:09:22]requested_data is exist [17:09:22]produce_requested_data [17:09:22]requested_item fm.sn is exist - process it [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 11 00 00 [17:09:22]Write to MH i2c: E2 08 00 33 A4 80 11 00 00 00 00 00 00 51 [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:22]Read from MH i2c: E2 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 17 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 17 00 33 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A1 [17:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:09:22]wFMCommunicate OK [17:09:22]requested_item fd.num is exist - process it [17:09:22]SAM_PROTO_GetFieldsCounters [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 13 00 00 [17:09:22]Write to MH i2c: E2 08 00 34 A4 80 13 00 00 00 00 00 00 54 [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:22]Read from MH i2c: E2 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 62 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 62 00 34 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FC 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [17:09: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FC 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:22]wFMCommunicate OK [17:09:22]SAM_PROTO_GetFieldsCounters done [17:09:22]requested_item shift.num is exist - process it [17:09:22]requested_item shift.opened is exist - process it [17:09:22]req_shift_opened [17:09:22]FM_GetShiftState [17:09:22]SAM_PROTO_GetShiftState [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 13 01 00 [17:09:22]Write to MH i2c: E2 08 00 35 A4 80 13 01 00 00 00 00 00 56 [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:22]Read from MH i2c: E2 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 0E 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 0E 00 35 A4 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F2 [17:09:22]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:09:22]wFMCommunicate OK [17:09:22]SAM_PROTO_GetShiftState done [17:09:22]FM_GetShiftState done [17:09:22]req_shift_opened done [17:09:22]requested_item shift.open_date is exist - process it [17:09:22]req_shift_open_date [17:09:22]req_shift_open_date done [17:09:22]produce_requested_data done [17:09:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94972,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:09:22]process_action_free close_receipt [17:09:22]json_value_free [17:09:22]json_value_free done [17:09:22]process_json_proto returns [17:09:22]Send response to host [17:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94972,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:09:22]free response buf [17:09:22]execute_script done [17:09:22]execute_script returns [17:09:22]free content buf [17:09:22]Sock 7.Close socket [17:09:22]Sock 7.Thread stoped [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:49]accept exits with 9 [17:14:49]New connection [17:14:49]New thread 3067014500 created [17:14:49]Thread 3066871140 joined [17:14:49]Waiting for new connection... [17:14:49] Sock 9.Parse request [17:14:49]Sock 9.Check first char [17:14:49]Sock 9.First char is OK [17:14:49]request: POST /json_proto HTTP/1.0 [17:14:49]Method: POST [17:14:49]URL: /json_proto [17:14:49]Method is POST - this is cgi request [17:14:49]url: /json_proto [17:14:49]query_string will be loaded in cgi processing [17:14:49]execute_cgi json_proto POST (null) [17:14:49]execute_cgi path=json_proto method=POST [17:14:49]POST find Content-Length [17:14:49]Host: 172.17.62.67:8080 [17:14:49]Content-Length: 670 [17:14:49]Content-Type: application/json [17:14:49] [17:14:49]POST finish read [17:14:49]Found Content-Length = 670 [17:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.390, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:49]execute_script... [17:14: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)195932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.390, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:49]POST & json_proto [17:14:49]process_json_proto [17:14:49]json parsed OK: [17:14:49]protocol is kg_v1.0 [17:14:49]action value=close_receipt [17:14:49]process_action close_receipt [17:14:49]cmd_close_receipt [17:14:49]MH_GetDate [17:14:49]Write to MH i2c: F0 00 00 36 A4 C9 [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 05 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 05 00 36 A4 00 18 3C EF 65 76 [17:14:49]GetLastDocTimeStamp 1710176975 [17:14:49]current date 1710177304 [17:14:49]FM_GetShiftState [17:14:49]SAM_PROTO_GetShiftState [17:14:49]wFMCommunicate request_size=4 [17:14:49]MH_SAM_APDU [17:14:49]CAPDU: 80 13 01 00 [17:14:49]Write to MH i2c: E2 08 00 37 A4 80 13 01 00 00 00 00 00 58 [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:49]Read from MH i2c: E2 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 0E 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: E2 0E 00 37 A4 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F4 [17:14:49]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:14:49]wFMCommunicate OK [17:14:49]SAM_PROTO_GetShiftState done [17:14:49]FM_GetShiftState done [17:14:49]opened in 1710115571 [17:14:49]opened+sec_in_day 1710201971 [17:14:49]quantity*price = 60002 [17:14:49]sum+1 = 60003 [17:14:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 148 11.03.2024 17:15 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94973 ФПД: 189648864731225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T171504&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94973&fm=189648864731225&tin=02508201610067®Number=0000000000090555&sum=60000 [17:14:50]StoreToDocumentArchive [17:14:50]shift 326 fd 94973 [17:14:50]save to /storage/0326/doc_00094973 [17:14:50]save last doc name /storage/0326/doc_00094973 to /storage/kkm_last_doc_name [17:14:50]save OK [17:14:50]Clear old archive folders... [17:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:14:50]tlvbuf is 004AD530 [17:14:50]SAM_PROTO_ClearQueue [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 09 00 00 [17:14:50]Write to MH i2c: E2 08 00 44 A4 80 09 00 00 00 00 00 00 5A [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:50]Read from MH i2c: E2 03 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 44 A4 00 90 00 5C [17:14:50]RAPDU: 90 00 [17:14:50]wFMCommunicate OK [17:14:50]SAM_PROTO_ClearQueue done [17:14:50]KKMCreateOFDPacket [17:14:50]OFDProtocolAddRootSTLVToBuf [17:14:50]FM_MakeSignedData [17:14:50]FM_MakeSignedData [17:14:50]SAM_PROTO_SignData [17:14:50]wFMCommunicate request_size=4 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 0D 01 02 [17:14:50]Write to MH i2c: E2 08 00 45 A4 80 0D 01 02 00 00 00 00 62 [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 45 A4 00 90 00 5D [17:14:50]RAPDU: 90 00 [17:14:50]wFMCommunicate OK [17:14:50]wFMCommunicate request_size=255 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 94 00 00 00 F4 03 04 00 18 3C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 72 01 00 35 04 06 00 [17:14:50]Write to MH i2c: E2 02 01 46 A4 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 94 00 00 00 F4 03 04 00 18 3C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 72 01 00 35 04 06 00 00 00 C9 [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 03 00 46 A4 00 90 00 5E [17:14:50]RAPDU: 90 00 [17:14:50]wFMCommunicate OK [17:14:50]wFMCommunicate request_size=11 [17:14:50]MH_SAM_APDU [17:14:50]CAPDU: 80 0D 02 02 06 AC 7C 11 36 E0 59 [17:14:50]Write to MH i2c: E2 0E 00 47 A4 80 0D 02 02 06 00 AC 7C 11 36 E0 59 00 00 19 [17:14:50]Write i2c OK [17:14:50]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 47 A4 00 90 00 5F [17:14:51]RAPDU: 90 00 [17:14:51]wFMCommunicate OK [17:14:51]wFMCommunicate request_size=4 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 0D 03 02 [17:14:51]Write to MH i2c: E2 08 00 48 A4 80 0D 03 02 00 00 00 00 67 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 0B 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 0B 00 48 A4 00 94 E7 F5 D5 C4 16 BF 78 90 00 BE [17:14:51]RAPDU: 94 E7 F5 D5 C4 16 BF 78 90 00 [17:14:51]wFMCommunicate OK [17:14:51]SAM_PROTO_SignData done [17:14:51]FM_MakeSignedData done [17:14:51]CreateOFDProtocolMessage [17:14:51]wFMCommunicate request_size=4 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 11 00 00 [17:14:51]Write to MH i2c: E2 08 00 49 A4 80 11 00 00 00 00 00 00 67 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 17 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 17 00 49 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B7 [17:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:14:51]wFMCommunicate OK [17:14:51]CreateOFDProtocolMessage done [17:14:51]OFDSenderStorePacket 94973 [17:14:51]StoreOFDPacket docnum=94973 [17:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C7 11 08 01 5C EA 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 94 00 00 00 F4 03 04 00 18 3C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 72 01 00 35 04 06 00 AC 7C 11 36 E0 59 94 E7 F5 D5 C4 16 BF 78 [17:14:51]CheckFolder [17:14:51]dirname=/storage/ofd_packets [17:14:51]CheckFolder done [17:14:51]ProducePacketName [17:14:51]name=ofd_packets/00094973 [17:14:51]NVStorageSaveData ofd_packets/00094973 [17:14:51]File name is /storage/ofd_packets/00094973 [17:14:51]Write 302 bytes [17:14:51]NVStorageSaveData done [17:14:51]OFDSenderStorePacket done [17:14:51]KKMCreateOFDPacket done [17:14:51]NVStorageSaveData kkm_last_timestamp [17:14:51]File name is /storage/kkm_last_timestamp [17:14:51]Write 4 bytes [17:14:51]NVStorageSaveData done [17:14:51]ExternCall_PrintAddStr [17:14:51]wPrintStart [17:14:51]Write to MH i2c: 01 00 00 4A A4 EE [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 4A A4 00 80 00 00 00 FF 0F 83 [17:14:51]RasterBufferAndPrint [17:14:51]line Счет N : (1)195932 [17:14:51]line ИНН: 02508201610067 [17:14:51]line Контрольно-Кассовый Чек [17:14:51]line ПРОДАЖА [17:14:51]line ТРК (МРК, ГНК) : 33 [17:14:51]line Товар: 2710124130 [17:14:51]line SUPER 92-К-5 [17:14:51]line 9.390 * 63.90 [17:14:51]line = 600.02 [17:14:51]line НДС 12% НСП 1% [17:14:51]line > о реализуемом товаре [17:14:51]line ОКРУГЛЕНИЕ: -0.02 [17:14:51]line ИТОГО: 600.00 [17:14:51]line Внесено: 600.00 [17:14:51]line СДАЧА: 0.00 [17:14:51]line НСП 1% : 5.31 [17:14:51]line НДС 12% : 63.72 [17:14:51]line Наличными: 600.00 [17:14:51]line Безнал.: 0.00 [17:14:51]line Место: АЗС № 6 "Партнер Нефть" [17:14:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:14:51]line СНО: Общий режим [17:14:51]line Чек 148 11.03.2024 17:15 [17:14:51]line Смена: 326 ФФД: 1.0 [17:14:51]line ЗНМ: 0300000009 [17:14:51]line РНМ: 0000000000090555 [17:14:51]line Версия ККМ: 001 [17:14:51]line ФМ: 0000000000874811 [17:14:51]line ФД: 94973 [17:14:51]line ФПД: 189648864731225 [17:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T171504&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94973&fm=189648864731225&tin=02508201610067®Number=0000000000090555&sum=60000 [17:14:51]OFD Sender: Processing packet 94973 [packets to send 30, broken 29] [17:14:51]ProducePacketName [17:14:51]name=ofd_packets/00094973 [17:14:51]OFD Sender: To server: pG, [17:14:51]CommunicateWithHost lk.salyk.kg:30040 [17:14:51]ConnectInit lk.salyk.kg [17:14:51]written 0, free lines is 4095 [17:14:51]Connected sock=10 [17:14: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 31 31 10 01 00 00 C7 11 08 01 5C EA 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 94 00 00 00 F4 03 04 00 18 3C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 72 01 00 35 04 06 00 AC 7C 11 36 E0 59 94 E7 F5 D5 C4 16 BF 78 [17:14: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 31 31 4F 00 00 00 7A 02 47 00 67 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FD 72 01 00 F4 03 04 00 71 E7 EE 65 B6 04 01 00 00 E0 C1 D9 3D 2C AA ED 7B [17:14:51]CommunicateWithHost err = 0 [17:14:51]CheckOFDResponse [17:14:51]1017 (14) - 77093643461234 [17:14:51]1041 (16) - 0000000000874811 [17:14:51]1040 (4) - 94973 [17:14:51]1012 (4) - 11.03.2024 11:13 [17:14:51]1206 (1) - 0 [17:14:51]OFD Sender: Remove packet 94973 [17:14:51]ProducePacketName [17:14:51]name=ofd_packets/00094973 [17:14:51]NVStorageDeleteData [17:14:51]Write to MH i2c: 01 00 00 75 A4 19 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 75 A4 00 80 00 00 00 4F 0D FC [17:14:51]RasterBufferAndPrint [17:14:51]line [17:14:51]line [17:14:51]line [17:14:51]line [17:14:51]line [17:14:51]written 0, free lines is 3413 [17:14:51]process_action close_receipt done [17:14:51]requested_data is exist [17:14:51]produce_requested_data [17:14:51]requested_item fm.sn is exist - process it [17:14:51]wFMCommunicate request_size=4 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 11 00 00 [17:14:51]Write to MH i2c: E2 08 00 7C A4 80 11 00 00 00 00 00 00 9A [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 [17:14:52]MH_I2C_Read... [17:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:52]Read from MH i2c: E2 17 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 17 00 7C A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EA [17:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:14:52]wFMCommunicate OK [17:14:52]requested_item fd.num is exist - process it [17:14:52]SAM_PROTO_GetFieldsCounters [17:14:52]wFMCommunicate request_size=4 [17:14:52]MH_SAM_APDU [17:14:52]CAPDU: 80 13 00 00 [17:14:52]Write to MH i2c: E2 08 00 7D A4 80 13 00 00 00 00 00 00 9D [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:52]Read from MH i2c: E2 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 62 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 62 00 7D A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:14:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FD 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:52]wFMCommunicate OK [17:14:52]SAM_PROTO_GetFieldsCounters done [17:14:52]requested_item shift.num is exist - process it [17:14:52]requested_item shift.opened is exist - process it [17:14:52]req_shift_opened [17:14:52]FM_GetShiftState [17:14:52]SAM_PROTO_GetShiftState [17:14:52]wFMCommunicate request_size=4 [17:14:52]MH_SAM_APDU [17:14:52]CAPDU: 80 13 01 00 [17:14:52]Write to MH i2c: E2 08 00 7E A4 80 13 01 00 00 00 00 00 9F [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:52]OFD Sender: No OFD packet to send [17:14:52]Read from MH i2c: E2 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 0E 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: E2 0E 00 7E A4 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3B [17:14:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:14:52]wFMCommunicate OK [17:14:52]SAM_PROTO_GetShiftState done [17:14:52]FM_GetShiftState done [17:14:52]req_shift_opened done [17:14:52]requested_item shift.open_date is exist - process it [17:14:52]req_shift_open_date [17:14:52]req_shift_open_date done [17:14:52]produce_requested_data done [17:14:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94973,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:14:52]process_action_free close_receipt [17:14:52]json_value_free [17:14:52]json_value_free done [17:14:52]process_json_proto returns [17:14:52]Send response to host [17:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94973,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:14:52]free response buf [17:14:52]execute_script done [17:14:52]execute_script returns [17:14:52]free content buf [17:14:52]Sock 9.Close socket [17:14:52]Sock 9.Thread stoped [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:43]accept exits with 7 [17:17:43]New connection [17:17:43]New thread 3066871140 created [17:17:43]Thread 3067014500 joined [17:17:43]Waiting for new connection... [17:17:43] Sock 7.Parse request [17:17:43]Sock 7.Check first char [17:17:43]Sock 7.First char is OK [17:17:43]request: POST /json_proto HTTP/1.0 [17:17:43]Method: POST [17:17:43]URL: /json_proto [17:17:43]Method is POST - this is cgi request [17:17:43]url: /json_proto [17:17:43]query_string will be loaded in cgi processing [17:17:43]execute_cgi json_proto POST (null) [17:17:43]execute_cgi path=json_proto method=POST [17:17:43]POST find Content-Length [17:17:43]Host: 172.17.62.67:8080 [17:17:43]Content-Length: 682 [17:17:43]Content-Type: application/json [17:17:43] [17:17:43]POST finish read [17:17:43]Found Content-Length = 682 [17:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 31.800, "sum" : 2000.22, "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" ] } } [17:17:43]execute_script... [17:17:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 31.800, "sum" : 2000.22, "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" ] } } [17:17:43]POST & json_proto [17:17:43]process_json_proto [17:17:43]json parsed OK: [17:17:43]protocol is kg_v1.0 [17:17:43]action value=close_receipt [17:17:43]process_action close_receipt [17:17:43]cmd_close_receipt [17:17:43]MH_GetDate [17:17:43]Write to MH i2c: F0 00 00 7F A4 12 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 05 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 05 00 7F A4 00 C6 3C EF 65 6D [17:17:43]GetLastDocTimeStamp 1710177304 [17:17:43]current date 1710177478 [17:17:43]FM_GetShiftState [17:17:43]SAM_PROTO_GetShiftState [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 13 01 00 [17:17:43]Write to MH i2c: E2 08 00 80 A4 80 13 01 00 00 00 00 00 A1 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 80 A4 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3D [17:17:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_GetShiftState done [17:17:43]FM_GetShiftState done [17:17:43]opened in 1710115571 [17:17:43]opened+sec_in_day 1710201971 [17:17:43]quantity*price = 200022 [17:17:43]sum+1 = 200023 [17:17:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 149 11.03.2024 17:17 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94974 ФПД: 141114769736781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T171758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94974&fm=141114769736781&tin=02508201610067®Number=0000000000090555&sum=200000 [17:17:44]StoreToDocumentArchive [17:17:44]shift 326 fd 94974 [17:17:44]save to /storage/0326/doc_00094974 [17:17:44]save last doc name /storage/0326/doc_00094974 to /storage/kkm_last_doc_name [17:17:44]save OK [17:17:44]Clear old archive folders... [17:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:44]tlvbuf is 001FB930 [17:17:44]SAM_PROTO_ClearQueue [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 09 00 00 [17:17:44]Write to MH i2c: E2 08 00 8D A4 80 09 00 00 00 00 00 00 A3 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 8D A4 00 90 00 A5 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]SAM_PROTO_ClearQueue done [17:17:44]KKMCreateOFDPacket [17:17:44]OFDProtocolAddRootSTLVToBuf [17:17:44]FM_MakeSignedData [17:17:44]FM_MakeSignedData [17:17:44]SAM_PROTO_SignData [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 01 02 [17:17:44]Write to MH i2c: E2 08 00 8E A4 80 0D 01 02 00 00 00 00 AB [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 8E A4 00 90 00 A6 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=255 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 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 F9 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 95 00 00 00 F4 03 04 00 C6 3C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 72 01 00 35 04 06 00 80 [17:17:44]Write to MH i2c: E2 02 01 8F A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 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 F9 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 95 00 00 00 F4 03 04 00 C6 3C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 72 01 00 35 04 06 00 80 00 00 73 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 8F A4 00 90 00 A7 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=10 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 02 02 05 57 D7 B9 04 4D [17:17:44]Write to MH i2c: E2 0D 00 90 A4 80 0D 02 02 05 00 57 D7 B9 04 4D 00 00 F0 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 90 A4 00 90 00 A8 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 03 02 [17:17:44]Write to MH i2c: E2 08 00 91 A4 80 0D 03 02 00 00 00 00 B0 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 0B 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 0B 00 91 A4 00 B2 DA E6 8E 64 5D 8B 24 90 00 21 [17:17:44]RAPDU: B2 DA E6 8E 64 5D 8B 24 90 00 [17:17:44]wFMCommunicate OK [17:17:44]SAM_PROTO_SignData done [17:17:44]FM_MakeSignedData done [17:17:44]CreateOFDProtocolMessage [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 11 00 00 [17:17:44]Write to MH i2c: E2 08 00 92 A4 80 11 00 00 00 00 00 00 B0 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 17 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 17 00 92 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [17:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:17:44]wFMCommunicate OK [17:17:44]CreateOFDProtocolMessage done [17:17:44]OFDSenderStorePacket 94974 [17:17:44]StoreOFDPacket docnum=94974 [17:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D2 00 07 01 E9 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 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 F9 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 95 00 00 00 F4 03 04 00 C6 3C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 72 01 00 35 04 06 00 80 57 D7 B9 04 4D B2 DA E6 8E 64 5D 8B 24 [17:17:44]CheckFolder [17:17:44]dirname=/storage/ofd_packets [17:17:44]CheckFolder done [17:17:44]ProducePacketName [17:17:44]name=ofd_packets/00094974 [17:17:44]NVStorageSaveData ofd_packets/00094974 [17:17:44]File name is /storage/ofd_packets/00094974 [17:17:44]Write 301 bytes [17:17:44]NVStorageSaveData done [17:17:44]OFDSenderStorePacket done [17:17:44]KKMCreateOFDPacket done [17:17:44]NVStorageSaveData kkm_last_timestamp [17:17:44]File name is /storage/kkm_last_timestamp [17:17:44]Write 4 bytes [17:17:44]NVStorageSaveData done [17:17:44]ExternCall_PrintAddStr [17:17:44]wPrintStart [17:17:44]Write to MH i2c: 01 00 00 93 A4 37 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 07 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 07 00 93 A4 00 80 00 00 00 FF 0F CC [17:17:44]RasterBufferAndPrint [17:17:44]line Счет N : (1)195933 [17:17:44]line ИНН: 02508201610067 [17:17:44]line Контрольно-Кассовый Чек [17:17:44]line ПРОДАЖА [17:17:44]line ТРК (МРК, ГНК) : 32 [17:17:44]line Товар: 2710124130 [17:17:44]line Аи-92-К-5 [17:17:44]line 31.800 * 62.90 [17:17:44]line = 2000.22 [17:17:44]line НДС 12% НСП 1% [17:17:44]line > о реализуемом товаре [17:17:44]line ОКРУГЛЕНИЕ: -0.22 [17:17:44]line ИТОГО: 2000.00 [17:17:44]line Внесено: 2000.00 [17:17:44]line СДАЧА: 0.00 [17:17:44]line НСП 1% : 17.70 [17:17:44]line НДС 12% : 212.41 [17:17:44]line Наличными: 2000.00 [17:17:44]line Безнал.: 0.00 [17:17:44]line Место: АЗС № 6 "Партнер Нефть" [17:17:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:17:44]line СНО: Общий режим [17:17:44]line Чек 149 11.03.2024 17:17 [17:17:44]line Смена: 326 ФФД: 1.0 [17:17:44]line ЗНМ: 0300000009 [17:17:44]line РНМ: 0000000000090555 [17:17:44]line Версия ККМ: 001 [17:17:44]line ФМ: 0000000000874811 [17:17:44]line ФД: 94974 [17:17:44]line ФПД: 141114769736781 [17:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T171758&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94974&fm=141114769736781&tin=02508201610067®Number=0000000000090555&sum=200000 [17:17:45]written 0, free lines is 4095 [17:17:45]OFD Sender: Processing packet 94974 [packets to send 30, broken 29] [17:17:45]ProducePacketName [17:17:45]name=ofd_packets/00094974 [17:17:45]OFD Sender: To server: pG, [17:17:45]CommunicateWithHost lk.salyk.kg:30040 [17:17:45]ConnectInit lk.salyk.kg [17:17:45]Connected sock=10 [17:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D2 00 07 01 E9 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 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 F9 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 95 00 00 00 F4 03 04 00 C6 3C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FE 72 01 00 35 04 06 00 80 57 D7 B9 04 4D B2 DA E6 8E 64 5D 8B 24 [17:17:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 0E EF 47 00 31 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 31 31 10 04 04 00 FE 72 01 00 F4 03 04 00 1F E8 EE 65 B6 04 01 00 00 D8 1E ED F4 41 6C 07 AE [17:17:45]CommunicateWithHost err = 0 [17:17:45]CheckOFDResponse [17:17:45]1017 (14) - 77093643461234 [17:17:45]1041 (16) - 0000000000874811 [17:17:45]1040 (4) - 94974 [17:17:45]1012 (4) - 11.03.2024 11:16 [17:17:45]1206 (1) - 0 [17:17:45]OFD Sender: Remove packet 94974 [17:17:45]ProducePacketName [17:17:45]name=ofd_packets/00094974 [17:17:45]NVStorageDeleteData [17:17:45]Write to MH i2c: 01 00 00 BE A4 62 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 BE A4 00 80 00 00 00 51 0D 47 [17:17:45]RasterBufferAndPrint [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]written 0, free lines is 3417 [17:17:45]process_action close_receipt done [17:17:45]requested_data is exist [17:17:45]produce_requested_data [17:17:45]requested_item fm.sn is exist - process it [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 11 00 00 [17:17:45]Write to MH i2c: E2 08 00 C5 A4 80 11 00 00 00 00 00 00 E3 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 17 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 17 00 C5 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 33 [17:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:17:45]wFMCommunicate OK [17:17:45]requested_item fd.num is exist - process it [17:17:45]SAM_PROTO_GetFieldsCounters [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 13 00 00 [17:17:45]Write to MH i2c: E2 08 00 C6 A4 80 13 00 00 00 00 00 00 E6 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:46]Read from MH i2c: E2 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 62 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 62 00 C6 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [17:17:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FE 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:46]wFMCommunicate OK [17:17:46]SAM_PROTO_GetFieldsCounters done [17:17:46]requested_item shift.num is exist - process it [17:17:46]requested_item shift.opened is exist - process it [17:17:46]req_shift_opened [17:17:46]FM_GetShiftState [17:17:46]SAM_PROTO_GetShiftState [17:17:46]wFMCommunicate request_size=4 [17:17:46]MH_SAM_APDU [17:17:46]CAPDU: 80 13 01 00 [17:17:46]Write to MH i2c: E2 08 00 C7 A4 80 13 01 00 00 00 00 00 E8 [17:17:46]Write i2c OK [17:17:46]MH_I2C_Read... [17:17:46]OFD Sender: No OFD packet to send [17:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:46]Read from MH i2c: E2 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 0E 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 0E 00 C7 A4 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 84 [17:17:46]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:17:46]wFMCommunicate OK [17:17:46]SAM_PROTO_GetShiftState done [17:17:46]FM_GetShiftState done [17:17:46]req_shift_opened done [17:17:46]requested_item shift.open_date is exist - process it [17:17:46]req_shift_open_date [17:17:46]req_shift_open_date done [17:17:46]produce_requested_data done [17:17:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94974,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:17:46]process_action_free close_receipt [17:17:46]json_value_free [17:17:46]json_value_free done [17:17:46]process_json_proto returns [17:17:46]Send response to host [17:17:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94974,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:17:46]free response buf [17:17:46]execute_script done [17:17:46]execute_script returns [17:17:46]free content buf [17:17:46]Sock 7.Close socket [17:17:46]Sock 7.Thread stoped [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:35]accept exits with 9 [17:19:35]New connection [17:19:35]New thread 3067014500 created [17:19:35]Thread 3066871140 joined [17:19:35]Waiting for new connection... [17:19:35] Sock 9.Parse request [17:19:35]Sock 9.Check first char [17:19:35]Sock 9.First char is OK [17:19:35]request: POST /json_proto HTTP/1.0 [17:19:35]Method: POST [17:19:35]URL: /json_proto [17:19:35]Method is POST - this is cgi request [17:19:35]url: /json_proto [17:19:35]query_string will be loaded in cgi processing [17:19:35]execute_cgi json_proto POST (null) [17:19:35]execute_cgi path=json_proto method=POST [17:19:35]POST find Content-Length [17:19:35]Host: 172.17.62.67:8080 [17:19:35]Content-Length: 813 [17:19:35]Content-Type: application/json [17:19:35] [17:19:35]POST finish read [17:19:35]Found Content-Length = 813 [17:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:35]execute_script... [17:19: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)195934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:35]POST & json_proto [17:19:35]process_json_proto [17:19:35]json parsed OK: [17:19:35]protocol is kg_v1.0 [17:19:35]action value=close_receipt [17:19:35]process_action close_receipt [17:19:35]cmd_close_receipt [17:19:35]MH_GetDate [17:19:35]Write to MH i2c: F0 00 00 C8 A4 5B [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: F0 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: F0 05 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: F0 05 00 C8 A4 00 36 3D EF 65 27 [17:19:35]GetLastDocTimeStamp 1710177478 [17:19:35]current date 1710177590 [17:19:35]FM_GetShiftState [17:19:35]SAM_PROTO_GetShiftState [17:19:35]wFMCommunicate request_size=4 [17:19:35]MH_SAM_APDU [17:19:35]CAPDU: 80 13 01 00 [17:19:35]Write to MH i2c: E2 08 00 C9 A4 80 13 01 00 00 00 00 00 EA [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 0E 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 0E 00 C9 A4 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 86 [17:19:35]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:19:35]wFMCommunicate OK [17:19:35]SAM_PROTO_GetShiftState done [17:19:35]FM_GetShiftState done [17:19:35]opened in 1710115571 [17:19:35]opened+sec_in_day 1710201971 [17:19:35]quantity*price = 50055 [17:19:35]sum+1 = 50056 [17:19:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.55 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.55 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 150 11.03.2024 17:19 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94975 ФПД: 122703984209816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T171950&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94975&fm=122703984209816&tin=02508201610067®Number=0000000000090555&sum=50055 [17:19:36]StoreToDocumentArchive [17:19:36]shift 326 fd 94975 [17:19:36]save to /storage/0326/doc_00094975 [17:19:36]save last doc name /storage/0326/doc_00094975 to /storage/kkm_last_doc_name [17:19:36]save OK [17:19:36]Clear old archive folders... [17:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:19:36]tlvbuf is 00266F20 [17:19:36]SAM_PROTO_ClearQueue [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 09 00 00 [17:19:36]Write to MH i2c: E2 08 00 D6 A4 80 09 00 00 00 00 00 00 EC [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 D6 A4 00 90 00 EE [17:19:36]RAPDU: 90 00 [17:19:36]wFMCommunicate OK [17:19:36]SAM_PROTO_ClearQueue done [17:19:36]KKMCreateOFDPacket [17:19:36]OFDProtocolAddRootSTLVToBuf [17:19:36]FM_MakeSignedData [17:19:36]FM_MakeSignedData [17:19:36]SAM_PROTO_SignData [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 0D 01 02 [17:19:36]Write to MH i2c: E2 08 00 D7 A4 80 0D 01 02 00 00 00 00 F4 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 D7 A4 00 90 00 EF [17:19:36]RAPDU: 90 00 [17:19:36]wFMCommunicate OK [17:19:36]wFMCommunicate request_size=255 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 36 3D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 72 01 00 35 04 06 00 6F 99 3F 64 [17:19:36]Write to MH i2c: E2 02 01 D8 A4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 36 3D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 72 01 00 35 04 06 00 6F 99 3F 64 00 00 FC [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 D8 A4 00 90 00 F0 [17:19:36]RAPDU: 90 00 [17:19:36]wFMCommunicate OK [17:19:36]wFMCommunicate request_size=7 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 0D 02 02 02 2F 98 [17:19:36]Write to MH i2c: E2 0A 00 D9 A4 80 0D 02 02 02 00 2F 98 00 00 C2 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 03 00 D9 A4 00 90 00 F1 [17:19:36]RAPDU: 90 00 [17:19:36]wFMCommunicate OK [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 0D 03 02 [17:19:36]Write to MH i2c: E2 08 00 DA A4 80 0D 03 02 00 00 00 00 F9 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 0B 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 0B 00 DA A4 00 16 18 DF 0B 36 1D C4 6F 90 00 98 [17:19:36]RAPDU: 16 18 DF 0B 36 1D C4 6F 90 00 [17:19:36]wFMCommunicate OK [17:19:36]SAM_PROTO_SignData done [17:19:36]FM_MakeSignedData done [17:19:36]CreateOFDProtocolMessage [17:19:36]wFMCommunicate request_size=4 [17:19:36]MH_SAM_APDU [17:19:36]CAPDU: 80 11 00 00 [17:19:36]Write to MH i2c: E2 08 00 DB A4 80 11 00 00 00 00 00 00 F9 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:36]Read from MH i2c: E2 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 17 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: E2 17 00 DB A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 49 [17:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:19:36]wFMCommunicate OK [17:19:36]CreateOFDProtocolMessage done [17:19:36]OFDSenderStorePacket 94975 [17:19:36]StoreOFDPacket docnum=94975 [17:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 52 67 04 01 53 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 36 3D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 72 01 00 35 04 06 00 6F 99 3F 64 2F 98 16 18 DF 0B 36 1D C4 6F [17:19:36]CheckFolder [17:19:36]dirname=/storage/ofd_packets [17:19:36]CheckFolder done [17:19:36]ProducePacketName [17:19:36]name=ofd_packets/00094975 [17:19:36]NVStorageSaveData ofd_packets/00094975 [17:19:36]File name is /storage/ofd_packets/00094975 [17:19:36]Write 298 bytes [17:19:36]NVStorageSaveData done [17:19:36]OFDSenderStorePacket done [17:19:36]KKMCreateOFDPacket done [17:19:36]NVStorageSaveData kkm_last_timestamp [17:19:36]File name is /storage/kkm_last_timestamp [17:19:36]Write 4 bytes [17:19:36]NVStorageSaveData done [17:19:36]ExternCall_PrintAddStr [17:19:36]wPrintStart [17:19:36]Write to MH i2c: 01 00 00 DC A4 80 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 07 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 07 00 DC A4 00 80 00 00 00 FF 0F 15 [17:19:36]RasterBufferAndPrint [17:19:36]line Счет N : (1)195934 [17:19:36]line ИНН: 02508201610067 [17:19:36]line Контрольно-Кассовый Чек [17:19:36]line ПРОДАЖА [17:19:36]line ТРК (МРК, ГНК) : 61 [17:19:36]line Товар: 2710194210 [17:19:36]line ДТ-К-5 [17:19:36]line 7.060 * 70.90 [17:19:36]line = 500.55 [17:19:36]line НДС 12% НСП 1% [17:19:36]line > о реализуемом товаре [17:19:36]line ИТОГО: 500.55 [17:19:36]line НСП 1% : 4.43 [17:19:36]line НДС 12% : 53.16 [17:19:36]line Наличными: 0.00 [17:19:36]line Безнал.: 500.55 [17:19:36]line Место: АЗС № 6 "Партнер Нефть" [17:19:36]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:19:36]line СНО: Общий режим [17:19:36]line Чек 150 11.03.2024 17:19 [17:19:36]line Смена: 326 ФФД: 1.0 [17:19:36]line ЗНМ: 0300000009 [17:19:36]line РНМ: 0000000000090555 [17:19:36]line Версия ККМ: 001 [17:19:36]line Платежная система: Бакай Банк [17:19:36]line ФМ: 0000000000874811 [17:19:36]line ФД: 94975 [17:19:36]line ФПД: 122703984209816 [17:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T171950&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94975&fm=122703984209816&tin=02508201610067®Number=0000000000090555&sum=50055 [17:19:37]OFD Sender: Processing packet 94975 [packets to send 30, broken 29] [17:19:37]ProducePacketName [17:19:37]name=ofd_packets/00094975 [17:19:37]OFD Sender: To server: pG, [17:19:37]CommunicateWithHost lk.salyk.kg:30040 [17:19:37]ConnectInit lk.salyk.kg [17:19:37]written 0, free lines is 4095 [17:19:37]Connected sock=10 [17:19: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 31 31 0C 01 00 00 52 67 04 01 53 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 36 3D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 72 01 00 35 04 06 00 6F 99 3F 64 2F 98 16 18 DF 0B 36 1D C4 6F [17:19: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 31 31 4F 00 00 00 70 6D 47 00 89 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 FF 72 01 00 F4 03 04 00 8F E8 EE 65 B6 04 01 00 00 29 52 CF CA 86 FA D2 BF [17:19:37]CommunicateWithHost err = 0 [17:19:37]CheckOFDResponse [17:19:37]1017 (14) - 77093643461234 [17:19:37]1041 (16) - 0000000000874811 [17:19:37]1040 (4) - 94975 [17:19:37]1012 (4) - 11.03.2024 11:18 [17:19:37]1206 (1) - 0 [17:19:37]OFD Sender: Remove packet 94975 [17:19:37]ProducePacketName [17:19:37]name=ofd_packets/00094975 [17:19:37]NVStorageDeleteData [17:19:37]Write to MH i2c: 01 00 00 06 A5 AB [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: 01 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: 01 07 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: 01 07 00 06 A5 00 80 00 00 00 51 0D 90 [17:19:37]RasterBufferAndPrint [17:19:37]line [17:19:37]line [17:19:37]line [17:19:37]line [17:19:37]line [17:19:37]written 0, free lines is 3418 [17:19:37]process_action close_receipt done [17:19:37]requested_data is exist [17:19:37]produce_requested_data [17:19:37]requested_item fm.sn is exist - process it [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 11 00 00 [17:19:37]Write to MH i2c: E2 08 00 0D A5 80 11 00 00 00 00 00 00 2C [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 17 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 17 00 0D A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7C [17:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:19:37]wFMCommunicate OK [17:19:37]requested_item fd.num is exist - process it [17:19:37]SAM_PROTO_GetFieldsCounters [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 13 00 00 [17:19:37]Write to MH i2c: E2 08 00 0E A5 80 13 00 00 00 00 00 00 2F [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 62 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 62 00 0E A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FF 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [17:19: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 FF 72 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:37]wFMCommunicate OK [17:19:37]SAM_PROTO_GetFieldsCounters done [17:19:37]requested_item shift.num is exist - process it [17:19:37]requested_item shift.opened is exist - process it [17:19:37]req_shift_opened [17:19:37]FM_GetShiftState [17:19:37]SAM_PROTO_GetShiftState [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 13 01 00 [17:19:37]Write to MH i2c: E2 08 00 0F A5 80 13 01 00 00 00 00 00 31 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 0E 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 0E 00 0F A5 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CD [17:19:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:19:37]wFMCommunicate OK [17:19:37]SAM_PROTO_GetShiftState done [17:19:37]FM_GetShiftState done [17:19:37]req_shift_opened done [17:19:37]requested_item shift.open_date is exist - process it [17:19:37]req_shift_open_date [17:19:37]req_shift_open_date done [17:19:37]produce_requested_data done [17:19:37]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94975,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:19:37]process_action_free close_receipt [17:19:37]json_value_free [17:19:37]json_value_free done [17:19:37]process_json_proto returns [17:19:37]Send response to host [17:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94975,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:19:37]free response buf [17:19:37]execute_script done [17:19:37]execute_script returns [17:19:37]free content buf [17:19:37]Sock 9.Close socket [17:19:37]Sock 9.Thread stoped [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:52]accept exits with 7 [17:21:52]New connection [17:21:52]New thread 3066871140 created [17:21:52]Thread 3067014500 joined [17:21:52]Waiting for new connection... [17:21:52] Sock 7.Parse request [17:21:52]Sock 7.Check first char [17:21:52]Sock 7.First char is OK [17:21:52]request: POST /json_proto HTTP/1.0 [17:21:52]Method: POST [17:21:52]URL: /json_proto [17:21:52]Method is POST - this is cgi request [17:21:52]url: /json_proto [17:21:52]query_string will be loaded in cgi processing [17:21:52]execute_cgi json_proto POST (null) [17:21:52]execute_cgi path=json_proto method=POST [17:21:52]POST find Content-Length [17:21:52]Host: 172.17.62.67:8080 [17:21:52]Content-Length: 677 [17:21:52]Content-Type: application/json [17:21:52] [17:21:52]POST finish read [17:21:52]Found Content-Length = 677 [17:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:52]execute_script... [17:21: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)195935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:52]POST & json_proto [17:21:52]process_json_proto [17:21:52]json parsed OK: [17:21:52]protocol is kg_v1.0 [17:21:52]action value=close_receipt [17:21:52]process_action close_receipt [17:21:52]cmd_close_receipt [17:21:52]MH_GetDate [17:21:52]Write to MH i2c: F0 00 00 10 A5 A4 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: F0 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: F0 05 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: F0 05 00 10 A5 00 C0 3D EF 65 FA [17:21:52]GetLastDocTimeStamp 1710177590 [17:21:52]current date 1710177728 [17:21:52]FM_GetShiftState [17:21:52]SAM_PROTO_GetShiftState [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 13 01 00 [17:21:52]Write to MH i2c: E2 08 00 11 A5 80 13 01 00 00 00 00 00 33 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 0E 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 0E 00 11 A5 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CF [17:21:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:21:52]wFMCommunicate OK [17:21:52]SAM_PROTO_GetShiftState done [17:21:52]FM_GetShiftState done [17:21:52]opened in 1710115571 [17:21:52]opened+sec_in_day 1710201971 [17:21:52]quantity*price = 50005 [17:21:52]sum+1 = 50007 [17:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 151 11.03.2024 17:22 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94976 ФПД: 124730726597350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T172208&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94976&fm=124730726597350&tin=02508201610067®Number=0000000000090555&sum=50000 [17:21:53]StoreToDocumentArchive [17:21:53]shift 326 fd 94976 [17:21:53]save to /storage/0326/doc_00094976 [17:21:53]save last doc name /storage/0326/doc_00094976 to /storage/kkm_last_doc_name [17:21:53]save OK [17:21:53]Clear old archive folders... [17:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:53]tlvbuf is 004B2BF0 [17:21:53]SAM_PROTO_ClearQueue [17:21:53]wFMCommunicate request_size=4 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 09 00 00 [17:21:53]Write to MH i2c: E2 08 00 1E A5 80 09 00 00 00 00 00 00 35 [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:53]Read from MH i2c: E2 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 03 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 03 00 1E A5 00 90 00 37 [17:21:53]RAPDU: 90 00 [17:21:53]wFMCommunicate OK [17:21:53]SAM_PROTO_ClearQueue done [17:21:53]KKMCreateOFDPacket [17:21:53]OFDProtocolAddRootSTLVToBuf [17:21:53]FM_MakeSignedData [17:21:53]FM_MakeSignedData [17:21:53]SAM_PROTO_SignData [17:21:53]wFMCommunicate request_size=4 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 0D 01 02 [17:21:53]Write to MH i2c: E2 08 00 1F A5 80 0D 01 02 00 00 00 00 3D [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:53]Read from MH i2c: E2 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 03 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 03 00 1F A5 00 90 00 38 [17:21:53]RAPDU: 90 00 [17:21:53]wFMCommunicate OK [17:21:53]wFMCommunicate request_size=255 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C0 3D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 73 01 00 35 04 06 00 71 [17:21:53]Write to MH i2c: E2 02 01 20 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C0 3D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 73 01 00 35 04 06 00 71 00 00 FA [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 03 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 03 00 20 A5 00 90 00 39 [17:21:54]RAPDU: 90 00 [17:21:54]wFMCommunicate OK [17:21:54]wFMCommunicate request_size=10 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 0D 02 02 05 71 22 A6 C2 E6 [17:21:54]Write to MH i2c: E2 0D 00 21 A5 80 0D 02 02 05 00 71 22 A6 C2 E6 00 00 2B [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 03 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 03 00 21 A5 00 90 00 3A [17:21:54]RAPDU: 90 00 [17:21:54]wFMCommunicate OK [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 0D 03 02 [17:21:54]Write to MH i2c: E2 08 00 22 A5 80 0D 03 02 00 00 00 00 42 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 0B 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 0B 00 22 A5 00 13 FA 10 5E C3 72 D7 55 90 00 1F [17:21:54]RAPDU: 13 FA 10 5E C3 72 D7 55 90 00 [17:21:54]wFMCommunicate OK [17:21:54]SAM_PROTO_SignData done [17:21:54]FM_MakeSignedData done [17:21:54]CreateOFDProtocolMessage [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 11 00 00 [17:21:54]Write to MH i2c: E2 08 00 23 A5 80 11 00 00 00 00 00 00 42 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 17 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 17 00 23 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 92 [17:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:21:54]wFMCommunicate OK [17:21:54]CreateOFDProtocolMessage done [17:21:54]OFDSenderStorePacket 94976 [17:21:54]StoreOFDPacket docnum=94976 [17:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D7 24 07 01 E3 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C0 3D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 73 01 00 35 04 06 00 71 71 22 A6 C2 E6 13 FA 10 5E C3 72 D7 55 [17:21:54]CheckFolder [17:21:54]dirname=/storage/ofd_packets [17:21:54]CheckFolder done [17:21:54]ProducePacketName [17:21:54]name=ofd_packets/00094976 [17:21:54]NVStorageSaveData ofd_packets/00094976 [17:21:54]File name is /storage/ofd_packets/00094976 [17:21:54]Write 301 bytes [17:21:54]NVStorageSaveData done [17:21:54]OFDSenderStorePacket done [17:21:54]KKMCreateOFDPacket done [17:21:54]NVStorageSaveData kkm_last_timestamp [17:21:54]File name is /storage/kkm_last_timestamp [17:21:54]Write 4 bytes [17:21:54]NVStorageSaveData done [17:21:54]ExternCall_PrintAddStr [17:21:54]wPrintStart [17:21:54]Write to MH i2c: 01 00 00 24 A5 C9 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: 01 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: 01 07 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: 01 07 00 24 A5 00 80 00 00 00 FF 0F 5E [17:21:54]RasterBufferAndPrint [17:21:54]line Счет N : (1)195935 [17:21:54]line ИНН: 02508201610067 [17:21:54]line Контрольно-Кассовый Чек [17:21:54]line ПРОДАЖА [17:21:54]line ТРК (МРК, ГНК) : 42 [17:21:54]line Товар: 2710124130 [17:21:54]line Аи-92-К-5 [17:21:54]line 7.950 * 62.90 [17:21:54]line = 500.06 [17:21:54]line НДС 12% НСП 1% [17:21:54]line > о реализуемом товаре [17:21:54]line ОКРУГЛЕНИЕ: -0.06 [17:21:54]line ИТОГО: 500.00 [17:21:54]line Внесено: 500.00 [17:21:54]line СДАЧА: 0.00 [17:21:54]line НСП 1% : 4.42 [17:21:54]line НДС 12% : 53.10 [17:21:54]line Наличными: 500.00 [17:21:54]line Безнал.: 0.00 [17:21:54]line Место: АЗС № 6 "Партнер Нефть" [17:21:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:21:54]line СНО: Общий режим [17:21:54]line Чек 151 11.03.2024 17:22 [17:21:54]line Смена: 326 ФФД: 1.0 [17:21:54]line ЗНМ: 0300000009 [17:21:54]line РНМ: 0000000000090555 [17:21:54]line Версия ККМ: 001 [17:21:54]line ФМ: 0000000000874811 [17:21:54]line ФД: 94976 [17:21:54]line ФПД: 124730726597350 [17:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T172208&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94976&fm=124730726597350&tin=02508201610067®Number=0000000000090555&sum=50000 [17:21:54]OFD Sender: Processing packet 94976 [packets to send 30, broken 29] [17:21:54]ProducePacketName [17:21:54]name=ofd_packets/00094976 [17:21:54]OFD Sender: To server: pG, [17:21:54]CommunicateWithHost lk.salyk.kg:30040 [17:21:54]ConnectInit lk.salyk.kg [17:21:54]written 0, free lines is 4095 [17:21:54]Connected sock=10 [17:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D7 24 07 01 E3 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 C0 3D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 73 01 00 35 04 06 00 71 71 22 A6 C2 E6 13 FA 10 5E C3 72 D7 55 [17:21: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 31 31 4F 00 00 00 03 A0 47 00 FA 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 73 01 00 F4 03 04 00 18 E9 EE 65 B6 04 01 00 00 6A ED FD 09 31 AD 52 DD [17:21:55]CommunicateWithHost err = 0 [17:21:55]CheckOFDResponse [17:21:55]1017 (14) - 77093643461234 [17:21:55]1041 (16) - 0000000000874811 [17:21:55]1040 (4) - 94976 [17:21:55]1012 (4) - 11.03.2024 11:20 [17:21:55]1206 (1) - 0 [17:21:55]OFD Sender: Remove packet 94976 [17:21:55]ProducePacketName [17:21:55]name=ofd_packets/00094976 [17:21:55]NVStorageDeleteData [17:21:55]Write to MH i2c: 01 00 00 4F A5 F4 [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: 01 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: 01 07 00 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: 01 07 00 4F A5 00 80 00 00 00 44 0D CC [17:21:55]RasterBufferAndPrint [17:21:55]line [17:21:55]line [17:21:55]line [17:21:55]line [17:21:55]line [17:21:55]written 0, free lines is 3400 [17:21:55]process_action close_receipt done [17:21:55]requested_data is exist [17:21:55]produce_requested_data [17:21:55]requested_item fm.sn is exist - process it [17:21:55]wFMCommunicate request_size=4 [17:21:55]MH_SAM_APDU [17:21:55]CAPDU: 80 11 00 00 [17:21:55]Write to MH i2c: E2 08 00 56 A5 80 11 00 00 00 00 00 00 75 [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:55]Read from MH i2c: E2 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 17 00 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 17 00 56 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C5 [17:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:21:55]wFMCommunicate OK [17:21:55]requested_item fd.num is exist - process it [17:21:55]SAM_PROTO_GetFieldsCounters [17:21:55]wFMCommunicate request_size=4 [17:21:55]MH_SAM_APDU [17:21:55]CAPDU: 80 13 00 00 [17:21:55]Write to MH i2c: E2 08 00 57 A5 80 13 00 00 00 00 00 00 78 [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:55]Read from MH i2c: E2 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 62 00 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 62 00 57 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 00 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [17:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 00 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:55]wFMCommunicate OK [17:21:55]SAM_PROTO_GetFieldsCounters done [17:21:55]requested_item shift.num is exist - process it [17:21:55]requested_item shift.opened is exist - process it [17:21:55]req_shift_opened [17:21:55]FM_GetShiftState [17:21:55]SAM_PROTO_GetShiftState [17:21:55]wFMCommunicate request_size=4 [17:21:55]MH_SAM_APDU [17:21:55]CAPDU: 80 13 01 00 [17:21:55]Write to MH i2c: E2 08 00 58 A5 80 13 01 00 00 00 00 00 7A [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:55]Read from MH i2c: E2 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 0E 00 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 0E 00 58 A5 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 16 [17:21:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:21:55]wFMCommunicate OK [17:21:55]SAM_PROTO_GetShiftState done [17:21:55]FM_GetShiftState done [17:21:55]req_shift_opened done [17:21:55]requested_item shift.open_date is exist - process it [17:21:55]req_shift_open_date [17:21:55]req_shift_open_date done [17:21:55]produce_requested_data done [17:21:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94976,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:21:55]process_action_free close_receipt [17:21:55]json_value_free [17:21:55]json_value_free done [17:21:55]process_json_proto returns [17:21:55]Send response to host [17:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94976,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:21:55]free response buf [17:21:55]execute_script done [17:21:55]execute_script returns [17:21:55]free content buf [17:21:55]Sock 7.Close socket [17:21:55]Sock 7.Thread stoped [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:21]accept exits with 9 [17:28:21]New connection [17:28:21]New thread 3067014500 created [17:28:21]Thread 3066871140 joined [17:28:21]Waiting for new connection... [17:28:21] Sock 9.Parse request [17:28:21]Sock 9.Check first char [17:28:21]Sock 9.First char is OK [17:28:21]request: POST /json_proto HTTP/1.0 [17:28:21]Method: POST [17:28:21]URL: /json_proto [17:28:21]Method is POST - this is cgi request [17:28:21]url: /json_proto [17:28:21]query_string will be loaded in cgi processing [17:28:21]execute_cgi json_proto POST (null) [17:28:21]execute_cgi path=json_proto method=POST [17:28:21]POST find Content-Length [17:28:21]Host: 172.17.62.67:8080 [17:28:21]Content-Length: 677 [17:28:21]Content-Type: application/json [17:28:21] [17:28:21]POST finish read [17:28:21]Found Content-Length = 677 [17:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:21]execute_script... [17:28:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:21]POST & json_proto [17:28:21]process_json_proto [17:28:21]json parsed OK: [17:28:21]protocol is kg_v1.0 [17:28:21]action value=close_receipt [17:28:21]process_action close_receipt [17:28:21]cmd_close_receipt [17:28:21]MH_GetDate [17:28:21]Write to MH i2c: F0 00 00 59 A5 ED [17:28:21]Write i2c OK [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: F0 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: F0 05 00 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: F0 05 00 59 A5 00 44 3F EF 65 C9 [17:28:21]GetLastDocTimeStamp 1710177728 [17:28:21]current date 1710178116 [17:28:21]FM_GetShiftState [17:28:21]SAM_PROTO_GetShiftState [17:28:21]wFMCommunicate request_size=4 [17:28:21]MH_SAM_APDU [17:28:21]CAPDU: 80 13 01 00 [17:28:21]Write to MH i2c: E2 08 00 5A A5 80 13 01 00 00 00 00 00 7C [17:28:21]Write i2c OK [17:28:21]MH_I2C_Read... [17:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:21]Read from MH i2c: E2 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: E2 0E 00 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: E2 0E 00 5A A5 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 18 [17:28:21]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:28:21]wFMCommunicate OK [17:28:21]SAM_PROTO_GetShiftState done [17:28:21]FM_GetShiftState done [17:28:21]opened in 1710115571 [17:28:21]opened+sec_in_day 1710201971 [17:28:21]quantity*price = 50040 [17:28:21]sum+1 = 50041 [17:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 152 11.03.2024 17:28 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94977 ФПД: 191240557356159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T172836&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94977&fm=191240557356159&tin=02508201610067®Number=0000000000090555&sum=50000 [17:28:22]StoreToDocumentArchive [17:28:22]shift 326 fd 94977 [17:28:22]save to /storage/0326/doc_00094977 [17:28:22]save last doc name /storage/0326/doc_00094977 to /storage/kkm_last_doc_name [17:28:22]save OK [17:28:22]Clear old archive folders... [17:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:22]tlvbuf is 00477550 [17:28:22]SAM_PROTO_ClearQueue [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 09 00 00 [17:28:22]Write to MH i2c: E2 08 00 67 A5 80 09 00 00 00 00 00 00 7E [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 67 A5 00 90 00 80 [17:28:22]RAPDU: 90 00 [17:28:22]wFMCommunicate OK [17:28:22]SAM_PROTO_ClearQueue done [17:28:22]KKMCreateOFDPacket [17:28:22]OFDProtocolAddRootSTLVToBuf [17:28:22]FM_MakeSignedData [17:28:22]FM_MakeSignedData [17:28:22]SAM_PROTO_SignData [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 0D 01 02 [17:28:22]Write to MH i2c: E2 08 00 68 A5 80 0D 01 02 00 00 00 00 86 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 68 A5 00 90 00 81 [17:28:22]RAPDU: 90 00 [17:28:22]wFMCommunicate OK [17:28:22]wFMCommunicate request_size=255 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 44 3F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 73 01 00 35 04 06 00 AD [17:28:22]Write to MH i2c: E2 02 01 69 A5 80 0D 02 02 FA 00 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 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 44 3F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 73 01 00 35 04 06 00 AD 00 00 D8 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 69 A5 00 90 00 82 [17:28:22]RAPDU: 90 00 [17:28:22]wFMCommunicate OK [17:28:22]wFMCommunicate request_size=10 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 0D 02 02 05 EE A9 7C E4 7F [17:28:22]Write to MH i2c: E2 0D 00 6A A5 80 0D 02 02 05 00 EE A9 7C E4 7F 00 00 09 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 6A A5 00 90 00 83 [17:28:22]RAPDU: 90 00 [17:28:22]wFMCommunicate OK [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 0D 03 02 [17:28:22]Write to MH i2c: E2 08 00 6B A5 80 0D 03 02 00 00 00 00 8B [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 0B 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 0B 00 6B A5 00 00 9C E5 36 C5 1E ED 27 90 00 3A [17:28:22]RAPDU: 00 9C E5 36 C5 1E ED 27 90 00 [17:28:22]wFMCommunicate OK [17:28:22]SAM_PROTO_SignData done [17:28:22]FM_MakeSignedData done [17:28:22]CreateOFDProtocolMessage [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 11 00 00 [17:28:22]Write to MH i2c: E2 08 00 6C A5 80 11 00 00 00 00 00 00 8B [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 17 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 17 00 6C A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DB [17:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:28:23]wFMCommunicate OK [17:28:23]CreateOFDProtocolMessage done [17:28:23]OFDSenderStorePacket 94977 [17:28:23]StoreOFDPacket docnum=94977 [17:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5C 1E 07 01 4D 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 44 3F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 73 01 00 35 04 06 00 AD EE A9 7C E4 7F 00 9C E5 36 C5 1E ED 27 [17:28:23]CheckFolder [17:28:23]dirname=/storage/ofd_packets [17:28:23]CheckFolder done [17:28:23]ProducePacketName [17:28:23]name=ofd_packets/00094977 [17:28:23]NVStorageSaveData ofd_packets/00094977 [17:28:23]File name is /storage/ofd_packets/00094977 [17:28:23]Write 301 bytes [17:28:23]NVStorageSaveData done [17:28:23]OFDSenderStorePacket done [17:28:23]KKMCreateOFDPacket done [17:28:23]NVStorageSaveData kkm_last_timestamp [17:28:23]File name is /storage/kkm_last_timestamp [17:28:23]Write 4 bytes [17:28:23]NVStorageSaveData done [17:28:23]ExternCall_PrintAddStr [17:28:23]wPrintStart [17:28:23]Write to MH i2c: 01 00 00 6D A5 12 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 6D A5 00 80 00 00 00 FF 0F A7 [17:28:23]RasterBufferAndPrint [17:28:23]line Счет N : (1)195936 [17:28:23]line ИНН: 02508201610067 [17:28:23]line Контрольно-Кассовый Чек [17:28:23]line ПРОДАЖА [17:28:23]line ТРК (МРК, ГНК) : 31 [17:28:23]line Товар: 2710124500 [17:28:23]line Аи-95-К-5 [17:28:23]line 7.200 * 69.50 [17:28:23]line = 500.40 [17:28:23]line НДС 12% НСП 1% [17:28:23]line > о реализуемом товаре [17:28:23]line ОКРУГЛЕНИЕ: -0.40 [17:28:23]line ИТОГО: 500.00 [17:28:23]line Внесено: 500.00 [17:28:23]line СДАЧА: 0.00 [17:28:23]line НСП 1% : 4.43 [17:28:23]line НДС 12% : 53.14 [17:28:23]line Наличными: 500.00 [17:28:23]line Безнал.: 0.00 [17:28:23]line Место: АЗС № 6 "Партнер Нефть" [17:28:23]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:28:23]line СНО: Общий режим [17:28:23]line Чек 152 11.03.2024 17:28 [17:28:23]line Смена: 326 ФФД: 1.0 [17:28:23]line ЗНМ: 0300000009 [17:28:23]line РНМ: 0000000000090555 [17:28:23]line Версия ККМ: 001 [17:28:23]line ФМ: 0000000000874811 [17:28:23]line ФД: 94977 [17:28:23]line ФПД: 191240557356159 [17:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T172836&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94977&fm=191240557356159&tin=02508201610067®Number=0000000000090555&sum=50000 [17:28:23]OFD Sender: Processing packet 94977 [packets to send 30, broken 29] [17:28:23]ProducePacketName [17:28:23]name=ofd_packets/00094977 [17:28:23]OFD Sender: To server: pG, [17:28:23]CommunicateWithHost lk.salyk.kg:30040 [17:28:23]ConnectInit lk.salyk.kg [17:28:23]written 0, free lines is 4095 [17:28:23]Connected sock=10 [17:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5C 1E 07 01 4D 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 44 3F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 01 73 01 00 35 04 06 00 AD EE A9 7C E4 7F 00 9C E5 36 C5 1E ED 27 [17:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F9 7B 47 00 74 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 31 31 10 04 04 00 01 73 01 00 F4 03 04 00 9D EA EE 65 B6 04 01 00 00 50 B9 ED 1A F9 C9 93 BA [17:28:23]CommunicateWithHost err = 0 [17:28:23]CheckOFDResponse [17:28:23]1017 (14) - 77093643461234 [17:28:23]1041 (16) - 0000000000874811 [17:28:23]1040 (4) - 94977 [17:28:23]1012 (4) - 11.03.2024 11:27 [17:28:23]1206 (1) - 0 [17:28:23]OFD Sender: Remove packet 94977 [17:28:23]ProducePacketName [17:28:23]name=ofd_packets/00094977 [17:28:23]NVStorageDeleteData [17:28:23]Write to MH i2c: 01 00 00 98 A5 3D [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 98 A5 00 80 00 00 00 47 0D 18 [17:28:23]RasterBufferAndPrint [17:28:23]line [17:28:23]line [17:28:23]line [17:28:23]line [17:28:23]line [17:28:23]written 0, free lines is 3405 [17:28:23]process_action close_receipt done [17:28:23]requested_data is exist [17:28:23]produce_requested_data [17:28:23]requested_item fm.sn is exist - process it [17:28:23]wFMCommunicate request_size=4 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 11 00 00 [17:28:23]Write to MH i2c: E2 08 00 9F A5 80 11 00 00 00 00 00 00 BE [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:23]Read from MH i2c: E2 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 17 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: E2 17 00 9F A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [17:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:28:23]wFMCommunicate OK [17:28:23]requested_item fd.num is exist - process it [17:28:23]SAM_PROTO_GetFieldsCounters [17:28:23]wFMCommunicate request_size=4 [17:28:23]MH_SAM_APDU [17:28:23]CAPDU: 80 13 00 00 [17:28:23]Write to MH i2c: E2 08 00 A0 A5 80 13 00 00 00 00 00 00 C1 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 62 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 62 00 A0 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 01 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [17:28: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 01 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:24]wFMCommunicate OK [17:28:24]SAM_PROTO_GetFieldsCounters done [17:28:24]requested_item shift.num is exist - process it [17:28:24]requested_item shift.opened is exist - process it [17:28:24]req_shift_opened [17:28:24]FM_GetShiftState [17:28:24]SAM_PROTO_GetShiftState [17:28:24]wFMCommunicate request_size=4 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 13 01 00 [17:28:24]Write to MH i2c: E2 08 00 A1 A5 80 13 01 00 00 00 00 00 C3 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 0E 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 0E 00 A1 A5 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5F [17:28:24]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:28:24]wFMCommunicate OK [17:28:24]SAM_PROTO_GetShiftState done [17:28:24]FM_GetShiftState done [17:28:24]req_shift_opened done [17:28:24]requested_item shift.open_date is exist - process it [17:28:24]req_shift_open_date [17:28:24]req_shift_open_date done [17:28:24]produce_requested_data done [17:28:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94977,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:28:24]process_action_free close_receipt [17:28:24]json_value_free [17:28:24]json_value_free done [17:28:24]process_json_proto returns [17:28:24]Send response to host [17:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94977,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:28:24]free response buf [17:28:24]execute_script done [17:28:24]execute_script returns [17:28:24]free content buf [17:28:24]Sock 9.Close socket [17:28:24]Sock 9.Thread stoped [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:03]accept exits with 7 [17:29:03]New connection [17:29:03]New thread 3066871140 created [17:29:03]Thread 3067014500 joined [17:29:03]Waiting for new connection... [17:29:03] Sock 7.Parse request [17:29:03]Sock 7.Check first char [17:29:03]Sock 7.First char is OK [17:29:03]request: POST /json_proto HTTP/1.0 [17:29:03]Method: POST [17:29:03]URL: /json_proto [17:29:03]Method is POST - this is cgi request [17:29:03]url: /json_proto [17:29:03]query_string will be loaded in cgi processing [17:29:03]execute_cgi json_proto POST (null) [17:29:03]execute_cgi path=json_proto method=POST [17:29:03]POST find Content-Length [17:29:03]Host: 172.17.62.67:8080 [17:29:03]Content-Length: 682 [17:29:03]Content-Type: application/json [17:29:03] [17:29:03]POST finish read [17:29:03]Found Content-Length = 682 [17:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:03]execute_script... [17:29: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)195937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:03]POST & json_proto [17:29:03]process_json_proto [17:29:03]json parsed OK: [17:29:03]protocol is kg_v1.0 [17:29:03]action value=close_receipt [17:29:03]process_action close_receipt [17:29:03]cmd_close_receipt [17:29:03]MH_GetDate [17:29:03]Write to MH i2c: F0 00 00 A2 A5 36 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: F0 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: F0 05 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: F0 05 00 A2 A5 00 6E 3F EF 65 3C [17:29:03]GetLastDocTimeStamp 1710178116 [17:29:03]current date 1710178158 [17:29:03]FM_GetShiftState [17:29:03]SAM_PROTO_GetShiftState [17:29:03]wFMCommunicate request_size=4 [17:29:03]MH_SAM_APDU [17:29:03]CAPDU: 80 13 01 00 [17:29:03]Write to MH i2c: E2 08 00 A3 A5 80 13 01 00 00 00 00 00 C5 [17:29:03]Write i2c OK [17:29:03]MH_I2C_Read... [17:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:03]Read from MH i2c: E2 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 0E 00 [17:29:03]MH_I2C_Read... [17:29:03]Read from MH i2c: E2 0E 00 A3 A5 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 61 [17:29:03]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:29:03]wFMCommunicate OK [17:29:03]SAM_PROTO_GetShiftState done [17:29:03]FM_GetShiftState done [17:29:03]opened in 1710115571 [17:29:03]opened+sec_in_day 1710201971 [17:29:03]quantity*price = 100011 [17:29:03]sum+1 = 100012 [17:29:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 153 11.03.2024 17:29 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94978 ФПД: 35786609598464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T172918&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94978&fm=35786609598464&tin=02508201610067®Number=0000000000090555&sum=100000 [17:29:04]StoreToDocumentArchive [17:29:04]shift 326 fd 94978 [17:29:04]save to /storage/0326/doc_00094978 [17:29:04]save last doc name /storage/0326/doc_00094978 to /storage/kkm_last_doc_name [17:29:04]save OK [17:29:04]Clear old archive folders... [17:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:04]tlvbuf is 00192540 [17:29:04]SAM_PROTO_ClearQueue [17:29:04]wFMCommunicate request_size=4 [17:29:04]MH_SAM_APDU [17:29:04]CAPDU: 80 09 00 00 [17:29:04]Write to MH i2c: E2 08 00 B0 A5 80 09 00 00 00 00 00 00 C7 [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:04]Read from MH i2c: E2 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 03 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 03 00 B0 A5 00 90 00 C9 [17:29:04]RAPDU: 90 00 [17:29:04]wFMCommunicate OK [17:29:04]SAM_PROTO_ClearQueue done [17:29:04]KKMCreateOFDPacket [17:29:04]OFDProtocolAddRootSTLVToBuf [17:29:04]FM_MakeSignedData [17:29:04]FM_MakeSignedData [17:29:04]SAM_PROTO_SignData [17:29:04]wFMCommunicate request_size=4 [17:29:04]MH_SAM_APDU [17:29:04]CAPDU: 80 0D 01 02 [17:29:04]Write to MH i2c: E2 08 00 B1 A5 80 0D 01 02 00 00 00 00 CF [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:04]Read from MH i2c: E2 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 03 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 03 00 B1 A5 00 90 00 CA [17:29:04]RAPDU: 90 00 [17:29:04]wFMCommunicate OK [17:29:04]wFMCommunicate request_size=255 [17:29:04]MH_SAM_APDU [17:29:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 6E 3F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 73 01 00 35 04 06 00 20 [17:29:04]Write to MH i2c: E2 02 01 B2 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 6E 3F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 73 01 00 35 04 06 00 20 00 00 EE [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:04]Read from MH i2c: E2 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 03 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 03 00 B2 A5 00 90 00 CB [17:29:04]RAPDU: 90 00 [17:29:04]wFMCommunicate OK [17:29:04]wFMCommunicate request_size=10 [17:29:04]MH_SAM_APDU [17:29:04]CAPDU: 80 0D 02 02 05 8C 38 27 20 00 [17:29:04]Write to MH i2c: E2 0D 00 B3 A5 80 0D 02 02 05 00 8C 38 27 20 00 00 00 E7 [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:04]Read from MH i2c: E2 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 03 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 03 00 B3 A5 00 90 00 CC [17:29:04]RAPDU: 90 00 [17:29:04]wFMCommunicate OK [17:29:04]wFMCommunicate request_size=4 [17:29:04]MH_SAM_APDU [17:29:04]CAPDU: 80 0D 03 02 [17:29:04]Write to MH i2c: E2 08 00 B4 A5 80 0D 03 02 00 00 00 00 D4 [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:04]Read from MH i2c: E2 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 0B 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 0B 00 B4 A5 00 B3 75 A8 AA 26 C5 4C 02 90 00 88 [17:29:04]RAPDU: B3 75 A8 AA 26 C5 4C 02 90 00 [17:29:04]wFMCommunicate OK [17:29:04]SAM_PROTO_SignData done [17:29:04]FM_MakeSignedData done [17:29:04]CreateOFDProtocolMessage [17:29:04]wFMCommunicate request_size=4 [17:29:04]MH_SAM_APDU [17:29:04]CAPDU: 80 11 00 00 [17:29:04]Write to MH i2c: E2 08 00 B5 A5 80 11 00 00 00 00 00 00 D4 [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:04]Read from MH i2c: E2 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 17 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: E2 17 00 B5 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [17:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:29:04]wFMCommunicate OK [17:29:04]CreateOFDProtocolMessage done [17:29:04]OFDSenderStorePacket 94978 [17:29:04]StoreOFDPacket docnum=94978 [17:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E2 87 07 01 C5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 6E 3F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 73 01 00 35 04 06 00 20 8C 38 27 20 00 B3 75 A8 AA 26 C5 4C 02 [17:29:04]CheckFolder [17:29:04]dirname=/storage/ofd_packets [17:29:04]CheckFolder done [17:29:04]ProducePacketName [17:29:04]name=ofd_packets/00094978 [17:29:04]NVStorageSaveData ofd_packets/00094978 [17:29:04]File name is /storage/ofd_packets/00094978 [17:29:04]Write 301 bytes [17:29:04]NVStorageSaveData done [17:29:04]OFDSenderStorePacket done [17:29:04]KKMCreateOFDPacket done [17:29:04]NVStorageSaveData kkm_last_timestamp [17:29:04]File name is /storage/kkm_last_timestamp [17:29:04]Write 4 bytes [17:29:04]NVStorageSaveData done [17:29:04]ExternCall_PrintAddStr [17:29:04]wPrintStart [17:29:04]Write to MH i2c: 01 00 00 B6 A5 5B [17:29:04]Write i2c OK [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: 01 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: 01 07 00 [17:29:04]MH_I2C_Read... [17:29:04]Read from MH i2c: 01 07 00 B6 A5 00 80 00 00 00 FF 0F F0 [17:29:04]RasterBufferAndPrint [17:29:04]line Счет N : (1)195937 [17:29:04]line ИНН: 02508201610067 [17:29:04]line Контрольно-Кассовый Чек [17:29:04]line ПРОДАЖА [17:29:04]line ТРК (МРК, ГНК) : 12 [17:29:04]line Товар: 2710124130 [17:29:04]line Аи-92-К-5 [17:29:04]line 15.900 * 62.90 [17:29:04]line = 1000.11 [17:29:04]line НДС 12% НСП 1% [17:29:04]line > о реализуемом товаре [17:29:04]line ОКРУГЛЕНИЕ: -0.11 [17:29:04]line ИТОГО: 1000.00 [17:29:04]line Внесено: 1000.00 [17:29:04]line СДАЧА: 0.00 [17:29:04]line НСП 1% : 8.85 [17:29:04]line НДС 12% : 106.21 [17:29:04]line Наличными: 1000.00 [17:29:04]line Безнал.: 0.00 [17:29:04]line Место: АЗС № 6 "Партнер Нефть" [17:29:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:29:04]line СНО: Общий режим [17:29:04]line Чек 153 11.03.2024 17:29 [17:29:04]line Смена: 326 ФФД: 1.0 [17:29:04]line ЗНМ: 0300000009 [17:29:04]line РНМ: 0000000000090555 [17:29:04]line Версия ККМ: 001 [17:29:04]line ФМ: 0000000000874811 [17:29:04]line ФД: 94978 [17:29:04]line ФПД: 35786609598464 [17:29:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T172918&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94978&fm=35786609598464&tin=02508201610067®Number=0000000000090555&sum=100000 [17:29:05]OFD Sender: Processing packet 94978 [packets to send 30, broken 29] [17:29:05]ProducePacketName [17:29:05]name=ofd_packets/00094978 [17:29:05]OFD Sender: To server: pG, [17:29:05]CommunicateWithHost lk.salyk.kg:30040 [17:29:05]ConnectInit lk.salyk.kg [17:29:05]written 0, free lines is 4095 [17:29:05]Connected sock=10 [17:29: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 31 31 0F 01 00 00 E2 87 07 01 C5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 6E 3F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 02 73 01 00 35 04 06 00 20 8C 38 27 20 00 B3 75 A8 AA 26 C5 4C 02 [17:29: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 31 31 4F 00 00 00 FC 2D 47 00 E7 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 31 31 10 04 04 00 02 73 01 00 F4 03 04 00 C7 EA EE 65 B6 04 01 00 00 09 91 EF 21 F4 67 29 14 [17:29:05]CommunicateWithHost err = 0 [17:29:05]CheckOFDResponse [17:29:05]1017 (14) - 77093643461234 [17:29:05]1041 (16) - 0000000000874811 [17:29:05]1040 (4) - 94978 [17:29:05]1012 (4) - 11.03.2024 11:28 [17:29:05]1206 (1) - 0 [17:29:05]OFD Sender: Remove packet 94978 [17:29:05]ProducePacketName [17:29:05]name=ofd_packets/00094978 [17:29:05]NVStorageDeleteData [17:29:05]Write to MH i2c: 01 00 00 E1 A5 86 [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: 01 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: 01 07 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: 01 07 00 E1 A5 00 80 00 00 00 4A 0D 64 [17:29:05]RasterBufferAndPrint [17:29:05]line [17:29:05]line [17:29:05]line [17:29:05]line [17:29:05]line [17:29:05]written 0, free lines is 3408 [17:29:05]process_action close_receipt done [17:29:05]requested_data is exist [17:29:05]produce_requested_data [17:29:05]requested_item fm.sn is exist - process it [17:29:05]wFMCommunicate request_size=4 [17:29:05]MH_SAM_APDU [17:29:05]CAPDU: 80 11 00 00 [17:29:05]Write to MH i2c: E2 08 00 E8 A5 80 11 00 00 00 00 00 00 07 [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:05]Read from MH i2c: E2 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 17 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 17 00 E8 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [17:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:29:05]wFMCommunicate OK [17:29:05]requested_item fd.num is exist - process it [17:29:05]SAM_PROTO_GetFieldsCounters [17:29:05]wFMCommunicate request_size=4 [17:29:05]MH_SAM_APDU [17:29:05]CAPDU: 80 13 00 00 [17:29:05]Write to MH i2c: E2 08 00 E9 A5 80 13 00 00 00 00 00 00 0A [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:05]Read from MH i2c: E2 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 62 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 62 00 E9 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 02 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [17:29: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 02 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:05]wFMCommunicate OK [17:29:05]SAM_PROTO_GetFieldsCounters done [17:29:05]requested_item shift.num is exist - process it [17:29:05]requested_item shift.opened is exist - process it [17:29:05]req_shift_opened [17:29:05]FM_GetShiftState [17:29:05]SAM_PROTO_GetShiftState [17:29:05]wFMCommunicate request_size=4 [17:29:05]MH_SAM_APDU [17:29:05]CAPDU: 80 13 01 00 [17:29:05]Write to MH i2c: E2 08 00 EA A5 80 13 01 00 00 00 00 00 0C [17:29:05]Write i2c OK [17:29:05]MH_I2C_Read... [17:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:05]Read from MH i2c: E2 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 0E 00 [17:29:05]MH_I2C_Read... [17:29:05]Read from MH i2c: E2 0E 00 EA A5 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A8 [17:29:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:29:05]wFMCommunicate OK [17:29:05]SAM_PROTO_GetShiftState done [17:29:05]FM_GetShiftState done [17:29:05]req_shift_opened done [17:29:05]requested_item shift.open_date is exist - process it [17:29:05]req_shift_open_date [17:29:05]req_shift_open_date done [17:29:05]produce_requested_data done [17:29:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94978,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:29:05]process_action_free close_receipt [17:29:05]json_value_free [17:29:05]json_value_free done [17:29:05]process_json_proto returns [17:29:05]Send response to host [17:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94978,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:29:05]free response buf [17:29:05]execute_script done [17:29:05]execute_script returns [17:29:05]free content buf [17:29:05]Sock 7.Close socket [17:29:05]Sock 7.Thread stoped [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:31:59]accept exits with 9 [17:31:59]New connection [17:31:59]New thread 3067014500 created [17:31:59]Thread 3066871140 joined [17:31:59]Waiting for new connection... [17:31:59] Sock 9.Parse request [17:31:59]Sock 9.Check first char [17:31:59]Sock 9.First char is OK [17:31:59]request: POST /json_proto HTTP/1.0 [17:31:59]Method: POST [17:31:59]URL: /json_proto [17:31:59]Method is POST - this is cgi request [17:31:59]url: /json_proto [17:31:59]query_string will be loaded in cgi processing [17:31:59]execute_cgi json_proto POST (null) [17:31:59]execute_cgi path=json_proto method=POST [17:31:59]POST find Content-Length [17:31:59]Host: 172.17.62.67:8080 [17:31:59]Content-Length: 674 [17:31:59]Content-Type: application/json [17:31:59] [17:31:59]POST finish read [17:31:59]Found Content-Length = 674 [17:31:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:59]execute_script... [17:31: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)195938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:59]POST & json_proto [17:31:59]process_json_proto [17:31:59]json parsed OK: [17:31:59]protocol is kg_v1.0 [17:31:59]action value=close_receipt [17:31:59]process_action close_receipt [17:31:59]cmd_close_receipt [17:31:59]MH_GetDate [17:31:59]Write to MH i2c: F0 00 00 EB A5 7F [17:31:59]Write i2c OK [17:31:59]MH_I2C_Read... [17:31:59]Read from MH i2c: F0 [17:31:59]MH_I2C_Read... [17:31:59]Read from MH i2c: F0 05 00 [17:31:59]MH_I2C_Read... [17:31:59]Read from MH i2c: F0 05 00 EB A5 00 1F 40 EF 65 37 [17:31:59]GetLastDocTimeStamp 1710178158 [17:31:59]current date 1710178335 [17:31:59]FM_GetShiftState [17:31:59]SAM_PROTO_GetShiftState [17:31:59]wFMCommunicate request_size=4 [17:31:59]MH_SAM_APDU [17:31:59]CAPDU: 80 13 01 00 [17:31:59]Write to MH i2c: E2 08 00 EC A5 80 13 01 00 00 00 00 00 0E [17:31:59]Write i2c OK [17:31:59]MH_I2C_Read... [17:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:59]Read from MH i2c: E2 [17:31:59]MH_I2C_Read... [17:31:59]Read from MH i2c: E2 0E 00 [17:31:59]MH_I2C_Read... [17:31:59]Read from MH i2c: E2 0E 00 EC A5 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AA [17:31:59]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:31:59]wFMCommunicate OK [17:31:59]SAM_PROTO_GetShiftState done [17:31:59]FM_GetShiftState done [17:31:59]opened in 1710115571 [17:31:59]opened+sec_in_day 1710201971 [17:31:59]quantity*price = 50055 [17:31:59]sum+1 = 50056 [17:31:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 154 11.03.2024 17:32 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94979 ФПД: 14705455211367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T173215&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94979&fm=14705455211367&tin=02508201610067®Number=0000000000090555&sum=50000 [17:32:00]StoreToDocumentArchive [17:32:00]shift 326 fd 94979 [17:32:00]save to /storage/0326/doc_00094979 [17:32:00]save last doc name /storage/0326/doc_00094979 to /storage/kkm_last_doc_name [17:32:00]save OK [17:32:00]Clear old archive folders... [17:32:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:32:00]tlvbuf is 00225AB0 [17:32:00]SAM_PROTO_ClearQueue [17:32:00]wFMCommunicate request_size=4 [17:32:00]MH_SAM_APDU [17:32:00]CAPDU: 80 09 00 00 [17:32:00]Write to MH i2c: E2 08 00 F9 A5 80 09 00 00 00 00 00 00 10 [17:32:00]Write i2c OK [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 [17:32:00]MH_I2C_Read... [17:32:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:00]Read from MH i2c: E2 03 00 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 03 00 F9 A5 00 90 00 12 [17:32:00]RAPDU: 90 00 [17:32:00]wFMCommunicate OK [17:32:00]SAM_PROTO_ClearQueue done [17:32:00]KKMCreateOFDPacket [17:32:00]OFDProtocolAddRootSTLVToBuf [17:32:00]FM_MakeSignedData [17:32:00]FM_MakeSignedData [17:32:00]SAM_PROTO_SignData [17:32:00]wFMCommunicate request_size=4 [17:32:00]MH_SAM_APDU [17:32:00]CAPDU: 80 0D 01 02 [17:32:00]Write to MH i2c: E2 08 00 FA A5 80 0D 01 02 00 00 00 00 18 [17:32:00]Write i2c OK [17:32:00]MH_I2C_Read... [17:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:00]Read from MH i2c: E2 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 03 00 [17:32:00]MH_I2C_Read... [17:32:00]Read from MH i2c: E2 03 00 FA A5 00 90 00 13 [17:32:00]RAPDU: 90 00 [17:32:00]wFMCommunicate OK [17:32:00]wFMCommunicate request_size=255 [17:32:00]MH_SAM_APDU [17:32:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 1F 40 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 73 01 00 35 04 06 00 0D 5F E1 6F [17:32:01]Write to MH i2c: E2 02 01 FB A5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 1F 40 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 73 01 00 35 04 06 00 0D 5F E1 6F 00 00 B8 [17:32:01]Write i2c OK [17:32:01]MH_I2C_Read... [17:32:01]OFD Sender: No OFD packet to send [17:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:01]Read from MH i2c: E2 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 03 00 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 03 00 FB A5 00 90 00 14 [17:32:01]RAPDU: 90 00 [17:32:01]wFMCommunicate OK [17:32:01]wFMCommunicate request_size=7 [17:32:01]MH_SAM_APDU [17:32:01]CAPDU: 80 0D 02 02 02 23 67 [17:32:01]Write to MH i2c: E2 0A 00 FC A5 80 0D 02 02 02 00 23 67 00 00 A9 [17:32:01]Write i2c OK [17:32:01]MH_I2C_Read... [17:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:01]Read from MH i2c: E2 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 03 00 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 03 00 FC A5 00 90 00 15 [17:32:01]RAPDU: 90 00 [17:32:01]wFMCommunicate OK [17:32:01]wFMCommunicate request_size=4 [17:32:01]MH_SAM_APDU [17:32:01]CAPDU: 80 0D 03 02 [17:32:01]Write to MH i2c: E2 08 00 FD A5 80 0D 03 02 00 00 00 00 1D [17:32:01]Write i2c OK [17:32:01]MH_I2C_Read... [17:32:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:01]Read from MH i2c: E2 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 0B 00 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 0B 00 FD A5 00 72 1F 2F 21 4B 0B 05 A7 90 00 01 [17:32:01]RAPDU: 72 1F 2F 21 4B 0B 05 A7 90 00 [17:32:01]wFMCommunicate OK [17:32:01]SAM_PROTO_SignData done [17:32:01]FM_MakeSignedData done [17:32:01]CreateOFDProtocolMessage [17:32:01]wFMCommunicate request_size=4 [17:32:01]MH_SAM_APDU [17:32:01]CAPDU: 80 11 00 00 [17:32:01]Write to MH i2c: E2 08 00 FE A5 80 11 00 00 00 00 00 00 1D [17:32:01]Write i2c OK [17:32:01]MH_I2C_Read... [17:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:01]Read from MH i2c: E2 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 17 00 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: E2 17 00 FE A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6D [17:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:32:01]wFMCommunicate OK [17:32:01]CreateOFDProtocolMessage done [17:32:01]OFDSenderStorePacket 94979 [17:32:01]StoreOFDPacket docnum=94979 [17:32:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 4B FF 04 01 E9 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 1F 40 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 73 01 00 35 04 06 00 0D 5F E1 6F 23 67 72 1F 2F 21 4B 0B 05 A7 [17:32:01]CheckFolder [17:32:01]dirname=/storage/ofd_packets [17:32:01]CheckFolder done [17:32:01]ProducePacketName [17:32:01]name=ofd_packets/00094979 [17:32:01]NVStorageSaveData ofd_packets/00094979 [17:32:01]File name is /storage/ofd_packets/00094979 [17:32:01]Write 298 bytes [17:32:01]NVStorageSaveData done [17:32:01]OFDSenderStorePacket done [17:32:01]KKMCreateOFDPacket done [17:32:01]NVStorageSaveData kkm_last_timestamp [17:32:01]File name is /storage/kkm_last_timestamp [17:32:01]Write 4 bytes [17:32:01]NVStorageSaveData done [17:32:01]ExternCall_PrintAddStr [17:32:01]wPrintStart [17:32:01]Write to MH i2c: 01 00 00 FF A5 A4 [17:32:01]Write i2c OK [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: 01 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: 01 07 00 [17:32:01]MH_I2C_Read... [17:32:01]Read from MH i2c: 01 07 00 FF A5 00 80 00 00 00 FF 0F 39 [17:32:01]RasterBufferAndPrint [17:32:01]line Счет N : (1)195938 [17:32:01]line ИНН: 02508201610067 [17:32:01]line Контрольно-Кассовый Чек [17:32:01]line ПРОДАЖА [17:32:01]line ТРК (МРК, ГНК) : 51 [17:32:01]line Товар: 2710194210 [17:32:01]line ДТ-К-5 [17:32:01]line 7.060 * 70.90 [17:32:01]line = 500.55 [17:32:01]line НДС 12% НСП 1% [17:32:01]line > о реализуемом товаре [17:32:01]line ОКРУГЛЕНИЕ: -0.55 [17:32:01]line ИТОГО: 500.00 [17:32:01]line Внесено: 500.00 [17:32:01]line СДАЧА: 0.00 [17:32:01]line НСП 1% : 4.43 [17:32:01]line НДС 12% : 53.16 [17:32:01]line Наличными: 500.00 [17:32:01]line Безнал.: 0.00 [17:32:01]line Место: АЗС № 6 "Партнер Нефть" [17:32:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:32:01]line СНО: Общий режим [17:32:01]line Чек 154 11.03.2024 17:32 [17:32:01]line Смена: 326 ФФД: 1.0 [17:32:01]line ЗНМ: 0300000009 [17:32:01]line РНМ: 0000000000090555 [17:32:01]line Версия ККМ: 001 [17:32:01]line ФМ: 0000000000874811 [17:32:01]line ФД: 94979 [17:32:01]line ФПД: 14705455211367 [17:32:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T173215&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94979&fm=14705455211367&tin=02508201610067®Number=0000000000090555&sum=50000 [17:32:01]OFD Sender: Processing packet 94979 [packets to send 30, broken 29] [17:32:01]ProducePacketName [17:32:01]name=ofd_packets/00094979 [17:32:01]OFD Sender: To server: pG, [17:32:01]CommunicateWithHost lk.salyk.kg:30040 [17:32:01]ConnectInit lk.salyk.kg [17:32:01]written 0, free lines is 4095 [17:32:01]Connected sock=10 [17:32:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 4B FF 04 01 E9 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 1F 40 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 03 73 01 00 35 04 06 00 0D 5F E1 6F 23 67 72 1F 2F 21 4B 0B 05 A7 [17:32: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 31 31 4F 00 00 00 89 08 47 00 53 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 31 31 10 04 04 00 03 73 01 00 F4 03 04 00 77 EB EE 65 B6 04 01 00 00 62 18 F4 31 AC 4F BA 8B [17:32:02]CommunicateWithHost err = 0 [17:32:02]CheckOFDResponse [17:32:02]1017 (14) - 77093643461234 [17:32:02]1041 (16) - 0000000000874811 [17:32:02]1040 (4) - 94979 [17:32:02]1012 (4) - 11.03.2024 11:31 [17:32:02]1206 (1) - 0 [17:32:02]OFD Sender: Remove packet 94979 [17:32:02]ProducePacketName [17:32:02]name=ofd_packets/00094979 [17:32:02]NVStorageDeleteData [17:32:02]Write to MH i2c: 01 00 00 2A A6 D0 [17:32:02]Write i2c OK [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: 01 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: 01 07 00 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: 01 07 00 2A A6 00 80 00 00 00 4A 0D AE [17:32:02]RasterBufferAndPrint [17:32:02]line [17:32:02]line [17:32:02]line [17:32:02]line [17:32:02]line [17:32:02]written 0, free lines is 3408 [17:32:02]process_action close_receipt done [17:32:02]requested_data is exist [17:32:02]produce_requested_data [17:32:02]requested_item fm.sn is exist - process it [17:32:02]wFMCommunicate request_size=4 [17:32:02]MH_SAM_APDU [17:32:02]CAPDU: 80 11 00 00 [17:32:02]Write to MH i2c: E2 08 00 31 A6 80 11 00 00 00 00 00 00 51 [17:32:02]Write i2c OK [17:32:02]MH_I2C_Read... [17:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:02]Read from MH i2c: E2 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: E2 17 00 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: E2 17 00 31 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A1 [17:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:32:02]wFMCommunicate OK [17:32:02]requested_item fd.num is exist - process it [17:32:02]SAM_PROTO_GetFieldsCounters [17:32:02]wFMCommunicate request_size=4 [17:32:02]MH_SAM_APDU [17:32:02]CAPDU: 80 13 00 00 [17:32:02]Write to MH i2c: E2 08 00 32 A6 80 13 00 00 00 00 00 00 54 [17:32:02]Write i2c OK [17:32:02]MH_I2C_Read... [17:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:02]Read from MH i2c: E2 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: E2 62 00 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: E2 62 00 32 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 03 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [17:32: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 03 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:02]wFMCommunicate OK [17:32:02]SAM_PROTO_GetFieldsCounters done [17:32:02]requested_item shift.num is exist - process it [17:32:02]requested_item shift.opened is exist - process it [17:32:02]req_shift_opened [17:32:02]FM_GetShiftState [17:32:02]SAM_PROTO_GetShiftState [17:32:02]wFMCommunicate request_size=4 [17:32:02]MH_SAM_APDU [17:32:02]CAPDU: 80 13 01 00 [17:32:02]Write to MH i2c: E2 08 00 33 A6 80 13 01 00 00 00 00 00 56 [17:32:02]Write i2c OK [17:32:02]MH_I2C_Read... [17:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:02]Read from MH i2c: E2 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: E2 0E 00 [17:32:02]MH_I2C_Read... [17:32:02]Read from MH i2c: E2 0E 00 33 A6 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F2 [17:32:02]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:32:02]wFMCommunicate OK [17:32:02]SAM_PROTO_GetShiftState done [17:32:02]FM_GetShiftState done [17:32:02]req_shift_opened done [17:32:02]requested_item shift.open_date is exist - process it [17:32:02]req_shift_open_date [17:32:02]req_shift_open_date done [17:32:02]produce_requested_data done [17:32:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94979,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:32:02]process_action_free close_receipt [17:32:02]json_value_free [17:32:02]json_value_free done [17:32:02]process_json_proto returns [17:32:02]Send response to host [17:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94979,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:32:02]free response buf [17:32:02]execute_script done [17:32:02]execute_script returns [17:32:02]free content buf [17:32:02]Sock 9.Close socket [17:32:02]Sock 9.Thread stoped [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:35]accept exits with 7 [17:37:35]New connection [17:37:35]New thread 3066871140 created [17:37:35]Thread 3067014500 joined [17:37:35]Waiting for new connection... [17:37:35] Sock 7.Parse request [17:37:35]Sock 7.Check first char [17:37:35]Sock 7.First char is OK [17:37:35]request: POST /json_proto HTTP/1.0 [17:37:35]Method: POST [17:37:35]URL: /json_proto [17:37:35]Method is POST - this is cgi request [17:37:35]url: /json_proto [17:37:35]query_string will be loaded in cgi processing [17:37:35]execute_cgi json_proto POST (null) [17:37:35]execute_cgi path=json_proto method=POST [17:37:35]POST find Content-Length [17:37:35]Host: 172.17.62.67:8080 [17:37:35]Content-Length: 803 [17:37:35]Content-Type: application/json [17:37:35] [17:37:35]POST finish read [17:37:35]Found Content-Length = 803 [17:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 10.000, "sum" : 709.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 709.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:35]execute_script... [17:37: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)195939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 10.000, "sum" : 709.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 709.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:35]POST & json_proto [17:37:35]process_json_proto [17:37:35]json parsed OK: [17:37:35]protocol is kg_v1.0 [17:37:35]action value=close_receipt [17:37:35]process_action close_receipt [17:37:35]cmd_close_receipt [17:37:35]MH_GetDate [17:37:35]Write to MH i2c: F0 00 00 34 A6 C9 [17:37:35]Write i2c OK [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 05 00 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: F0 05 00 34 A6 00 6F 41 EF 65 D2 [17:37:35]GetLastDocTimeStamp 1710178335 [17:37:35]current date 1710178671 [17:37:35]FM_GetShiftState [17:37:35]SAM_PROTO_GetShiftState [17:37:35]wFMCommunicate request_size=4 [17:37:35]MH_SAM_APDU [17:37:35]CAPDU: 80 13 01 00 [17:37:35]Write to MH i2c: E2 08 00 35 A6 80 13 01 00 00 00 00 00 58 [17:37:35]Write i2c OK [17:37:35]MH_I2C_Read... [17:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:35]Read from MH i2c: E2 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 0E 00 [17:37:35]MH_I2C_Read... [17:37:35]Read from MH i2c: E2 0E 00 35 A6 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F4 [17:37:35]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:37:35]wFMCommunicate OK [17:37:35]SAM_PROTO_GetShiftState done [17:37:35]FM_GetShiftState done [17:37:35]opened in 1710115571 [17:37:35]opened+sec_in_day 1710201971 [17:37:35]quantity*price = 70900 [17:37:35]sum+1 = 70901 [17:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 709.00 НСП 1% : 6.27 НДС 12% : 75.29 Наличными: 0.00 Безнал.: 709.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 155 11.03.2024 17:37 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94980 ФПД: 92642976422650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T173751&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94980&fm=92642976422650&tin=02508201610067®Number=0000000000090555&sum=70900 [17:37:36]StoreToDocumentArchive [17:37:36]shift 326 fd 94980 [17:37:36]save to /storage/0326/doc_00094980 [17:37:36]save last doc name /storage/0326/doc_00094980 to /storage/kkm_last_doc_name [17:37:36]save OK [17:37:36]Clear old archive folders... [17:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:37:36]tlvbuf is 0032C860 [17:37:36]SAM_PROTO_ClearQueue [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 09 00 00 [17:37:36]Write to MH i2c: E2 08 00 42 A6 80 09 00 00 00 00 00 00 5A [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 42 A6 00 90 00 5C [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]SAM_PROTO_ClearQueue done [17:37:36]KKMCreateOFDPacket [17:37:36]OFDProtocolAddRootSTLVToBuf [17:37:36]FM_MakeSignedData [17:37:36]FM_MakeSignedData [17:37:36]SAM_PROTO_SignData [17:37:36]wFMCommunicate request_size=4 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 01 02 [17:37:36]Write to MH i2c: E2 08 00 43 A6 80 0D 01 02 00 00 00 00 62 [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:36]Read from MH i2c: E2 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 [17:37:36]MH_I2C_Read... [17:37:36]Read from MH i2c: E2 03 00 43 A6 00 90 00 5D [17:37:36]RAPDU: 90 00 [17:37:36]wFMCommunicate OK [17:37:36]wFMCommunicate request_size=255 [17:37:36]MH_SAM_APDU [17:37:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 14 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 6F 41 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 73 01 00 35 04 06 00 54 42 1F B3 [17:37:36]Write to MH i2c: E2 02 01 44 A6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 14 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 6F 41 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 73 01 00 35 04 06 00 54 42 1F B3 00 00 9B [17:37:36]Write i2c OK [17:37:36]MH_I2C_Read... [17:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:37]Read from MH i2c: E2 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: E2 03 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: E2 03 00 44 A6 00 90 00 5E [17:37:37]RAPDU: 90 00 [17:37:37]wFMCommunicate OK [17:37:37]wFMCommunicate request_size=7 [17:37:37]MH_SAM_APDU [17:37:37]CAPDU: 80 0D 02 02 02 5A FA [17:37:37]Write to MH i2c: E2 0A 00 45 A6 80 0D 02 02 02 00 5A FA 00 00 BD [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:37]Read from MH i2c: E2 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: E2 03 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: E2 03 00 45 A6 00 90 00 5F [17:37:37]RAPDU: 90 00 [17:37:37]wFMCommunicate OK [17:37:37]wFMCommunicate request_size=4 [17:37:37]MH_SAM_APDU [17:37:37]CAPDU: 80 0D 03 02 [17:37:37]Write to MH i2c: E2 08 00 46 A6 80 0D 03 02 00 00 00 00 67 [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:37]Read from MH i2c: E2 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: E2 0B 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: E2 0B 00 46 A6 00 DB 0E 02 74 62 FB 18 49 90 00 85 [17:37:37]RAPDU: DB 0E 02 74 62 FB 18 49 90 00 [17:37:37]wFMCommunicate OK [17:37:37]SAM_PROTO_SignData done [17:37:37]FM_MakeSignedData done [17:37:37]CreateOFDProtocolMessage [17:37:37]wFMCommunicate request_size=4 [17:37:37]MH_SAM_APDU [17:37:37]CAPDU: 80 11 00 00 [17:37:37]Write to MH i2c: E2 08 00 47 A6 80 11 00 00 00 00 00 00 67 [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:37]Read from MH i2c: E2 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: E2 17 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: E2 17 00 47 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B7 [17:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:37:37]wFMCommunicate OK [17:37:37]CreateOFDProtocolMessage done [17:37:37]OFDSenderStorePacket 94980 [17:37:37]StoreOFDPacket docnum=94980 [17:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 98 B6 04 01 87 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 14 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 6F 41 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 73 01 00 35 04 06 00 54 42 1F B3 5A FA DB 0E 02 74 62 FB 18 49 [17:37:37]CheckFolder [17:37:37]dirname=/storage/ofd_packets [17:37:37]CheckFolder done [17:37:37]ProducePacketName [17:37:37]name=ofd_packets/00094980 [17:37:37]NVStorageSaveData ofd_packets/00094980 [17:37:37]File name is /storage/ofd_packets/00094980 [17:37:37]Write 298 bytes [17:37:37]NVStorageSaveData done [17:37:37]OFDSenderStorePacket done [17:37:37]KKMCreateOFDPacket done [17:37:37]NVStorageSaveData kkm_last_timestamp [17:37:37]File name is /storage/kkm_last_timestamp [17:37:37]Write 4 bytes [17:37:37]NVStorageSaveData done [17:37:37]ExternCall_PrintAddStr [17:37:37]wPrintStart [17:37:37]Write to MH i2c: 01 00 00 48 A6 EE [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 07 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 07 00 48 A6 00 80 00 00 00 FF 0F 83 [17:37:37]RasterBufferAndPrint [17:37:37]line Счет N : (1)195939 [17:37:37]line ИНН: 02508201610067 [17:37:37]line Контрольно-Кассовый Чек [17:37:37]line ПРОДАЖА [17:37:37]line ТРК (МРК, ГНК) : 61 [17:37:37]line Товар: 2710194210 [17:37:37]line ДТ-К-5 [17:37:37]line 10.000 * 70.90 [17:37:37]line = 709.00 [17:37:37]line НДС 12% НСП 1% [17:37:37]line > о реализуемом товаре [17:37:37]line ИТОГО: 709.00 [17:37:37]line НСП 1% : 6.27 [17:37:37]line НДС 12% : 75.29 [17:37:37]line Наличными: 0.00 [17:37:37]line Безнал.: 709.00 [17:37:37]line Место: АЗС № 6 "Партнер Нефть" [17:37:37]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:37:37]line СНО: Общий режим [17:37:37]line Чек 155 11.03.2024 17:37 [17:37:37]line Смена: 326 ФФД: 1.0 [17:37:37]line ЗНМ: 0300000009 [17:37:37]line РНМ: 0000000000090555 [17:37:37]line Версия ККМ: 001 [17:37:37]line Платежная система: О! деньги [17:37:37]line ФМ: 0000000000874811 [17:37:37]line ФД: 94980 [17:37:37]line ФПД: 92642976422650 [17:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T173751&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94980&fm=92642976422650&tin=02508201610067®Number=0000000000090555&sum=70900 [17:37:37]OFD Sender: Processing packet 94980 [packets to send 30, broken 29] [17:37:37]ProducePacketName [17:37:37]name=ofd_packets/00094980 [17:37:37]OFD Sender: To server: pG, [17:37:37]CommunicateWithHost lk.salyk.kg:30040 [17:37:37]ConnectInit lk.salyk.kg [17:37:37]written 0, free lines is 4095 [17:37:37]Connected sock=10 [17:37: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 31 31 0C 01 00 00 98 B6 04 01 87 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 14 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 6F 41 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 04 73 01 00 35 04 06 00 54 42 1F B3 5A FA DB 0E 02 74 62 FB 18 49 [17:37: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 31 31 4F 00 00 00 83 9D 47 00 92 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 31 31 10 04 04 00 04 73 01 00 F4 03 04 00 C7 EC EE 65 B6 04 01 00 00 91 F3 5E 58 76 3D E7 CA [17:37:37]CommunicateWithHost err = 0 [17:37:37]CheckOFDResponse [17:37:37]1017 (14) - 77093643461234 [17:37:37]1041 (16) - 0000000000874811 [17:37:37]1040 (4) - 94980 [17:37:37]1012 (4) - 11.03.2024 11:36 [17:37:37]1206 (1) - 0 [17:37:37]OFD Sender: Remove packet 94980 [17:37:37]ProducePacketName [17:37:37]name=ofd_packets/00094980 [17:37:37]NVStorageDeleteData [17:37:38]Write to MH i2c: 01 00 00 72 A6 18 [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: 01 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: 01 07 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: 01 07 00 72 A6 00 80 00 00 00 5B 0D 07 [17:37:38]RasterBufferAndPrint [17:37:38]line [17:37:38]line [17:37:38]line [17:37:38]line [17:37:38]line [17:37:38]written 0, free lines is 3423 [17:37:38]process_action close_receipt done [17:37:38]requested_data is exist [17:37:38]produce_requested_data [17:37:38]requested_item fm.sn is exist - process it [17:37:38]wFMCommunicate request_size=4 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 11 00 00 [17:37:38]Write to MH i2c: E2 08 00 79 A6 80 11 00 00 00 00 00 00 99 [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 17 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 17 00 79 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E9 [17:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:37:38]wFMCommunicate OK [17:37:38]requested_item fd.num is exist - process it [17:37:38]SAM_PROTO_GetFieldsCounters [17:37:38]wFMCommunicate request_size=4 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 13 00 00 [17:37:38]Write to MH i2c: E2 08 00 7A A6 80 13 00 00 00 00 00 00 9C [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 62 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 62 00 7A A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 04 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [17:37: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 04 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:38]wFMCommunicate OK [17:37:38]SAM_PROTO_GetFieldsCounters done [17:37:38]requested_item shift.num is exist - process it [17:37:38]requested_item shift.opened is exist - process it [17:37:38]req_shift_opened [17:37:38]FM_GetShiftState [17:37:38]SAM_PROTO_GetShiftState [17:37:38]wFMCommunicate request_size=4 [17:37:38]MH_SAM_APDU [17:37:38]CAPDU: 80 13 01 00 [17:37:38]Write to MH i2c: E2 08 00 7B A6 80 13 01 00 00 00 00 00 9E [17:37:38]Write i2c OK [17:37:38]MH_I2C_Read... [17:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:38]Read from MH i2c: E2 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 0E 00 [17:37:38]MH_I2C_Read... [17:37:38]Read from MH i2c: E2 0E 00 7B A6 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3A [17:37:38]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:37:38]wFMCommunicate OK [17:37:38]SAM_PROTO_GetShiftState done [17:37:38]FM_GetShiftState done [17:37:38]req_shift_opened done [17:37:38]requested_item shift.open_date is exist - process it [17:37:38]req_shift_open_date [17:37:38]req_shift_open_date done [17:37:38]produce_requested_data done [17:37:38]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94980,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:37:38]process_action_free close_receipt [17:37:38]json_value_free [17:37:38]json_value_free done [17:37:38]process_json_proto returns [17:37:38]Send response to host [17:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94980,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:37:38]free response buf [17:37:38]execute_script done [17:37:38]execute_script returns [17:37:38]free content buf [17:37:38]Sock 7.Close socket [17:37:38]Sock 7.Thread stoped [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:26]accept exits with 9 [17:41:26]New connection [17:41:26]New thread 3067014500 created [17:41:26]Thread 3066871140 joined [17:41:26]Waiting for new connection... [17:41:26] Sock 9.Parse request [17:41:26]Sock 9.Check first char [17:41:26]Sock 9.First char is OK [17:41:26]request: POST /json_proto HTTP/1.0 [17:41:26]Method: POST [17:41:26]URL: /json_proto [17:41:26]Method is POST - this is cgi request [17:41:26]url: /json_proto [17:41:26]query_string will be loaded in cgi processing [17:41:26]execute_cgi json_proto POST (null) [17:41:26]execute_cgi path=json_proto method=POST [17:41:26]POST find Content-Length [17:41:26]Host: 172.17.62.67:8080 [17:41:26]Content-Length: 808 [17:41:26]Content-Type: application/json [17:41:26] [17:41:26]POST finish read [17:41:26]Found Content-Length = 808 [17:41:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:26]execute_script... [17:41: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)195940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:26]POST & json_proto [17:41:26]process_json_proto [17:41:26]json parsed OK: [17:41:26]protocol is kg_v1.0 [17:41:26]action value=close_receipt [17:41:26]process_action close_receipt [17:41:26]cmd_close_receipt [17:41:26]MH_GetDate [17:41:26]Write to MH i2c: F0 00 00 7C A6 11 [17:41:26]Write i2c OK [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: F0 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: F0 05 00 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: F0 05 00 7C A6 00 56 42 EF 65 02 [17:41:26]GetLastDocTimeStamp 1710178671 [17:41:26]current date 1710178902 [17:41:26]FM_GetShiftState [17:41:26]SAM_PROTO_GetShiftState [17:41:26]wFMCommunicate request_size=4 [17:41:26]MH_SAM_APDU [17:41:26]CAPDU: 80 13 01 00 [17:41:26]Write to MH i2c: E2 08 00 7D A6 80 13 01 00 00 00 00 00 A0 [17:41:26]Write i2c OK [17:41:26]MH_I2C_Read... [17:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:26]Read from MH i2c: E2 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: E2 0E 00 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: E2 0E 00 7D A6 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3C [17:41:26]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:41:26]wFMCommunicate OK [17:41:26]SAM_PROTO_GetShiftState done [17:41:26]FM_GetShiftState done [17:41:26]opened in 1710115571 [17:41:26]opened+sec_in_day 1710201971 [17:41:26]quantity*price = 100010 [17:41:26]sum+1 = 100012 [17:41:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 156 11.03.2024 17:41 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94981 ФПД: 111806804556920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174142&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94981&fm=111806804556920&tin=02508201610067®Number=0000000000090555&sum=100011 [17:41:28]StoreToDocumentArchive [17:41:28]shift 326 fd 94981 [17:41:28]save to /storage/0326/doc_00094981 [17:41:28]save last doc name /storage/0326/doc_00094981 to /storage/kkm_last_doc_name [17:41:28]save OK [17:41:28]Clear old archive folders... [17:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:28]tlvbuf is 0048CB30 [17:41:28]SAM_PROTO_ClearQueue [17:41:28]wFMCommunicate request_size=4 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 09 00 00 [17:41:28]Write to MH i2c: E2 08 00 8A A6 80 09 00 00 00 00 00 00 A2 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 8A A6 00 90 00 A4 [17:41:28]RAPDU: 90 00 [17:41:28]wFMCommunicate OK [17:41:28]SAM_PROTO_ClearQueue done [17:41:28]KKMCreateOFDPacket [17:41:28]OFDProtocolAddRootSTLVToBuf [17:41:28]FM_MakeSignedData [17:41:28]FM_MakeSignedData [17:41:28]SAM_PROTO_SignData [17:41:28]wFMCommunicate request_size=4 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 0D 01 02 [17:41:28]Write to MH i2c: E2 08 00 8B A6 80 0D 01 02 00 00 00 00 AA [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 8B A6 00 90 00 A5 [17:41:28]RAPDU: 90 00 [17:41:28]wFMCommunicate OK [17:41:28]wFMCommunicate request_size=255 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 56 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 73 01 00 35 04 06 00 65 [17:41:28]Write to MH i2c: E2 02 01 8C A6 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 56 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 73 01 00 35 04 06 00 65 00 00 C4 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 8C A6 00 90 00 A6 [17:41:28]RAPDU: 90 00 [17:41:28]wFMCommunicate OK [17:41:28]wFMCommunicate request_size=10 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 0D 02 02 05 B0 0C DE 7C 78 [17:41:28]Write to MH i2c: E2 0D 00 8D A6 80 0D 02 02 05 00 B0 0C DE 7C 78 00 00 45 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 03 00 8D A6 00 90 00 A7 [17:41:28]RAPDU: 90 00 [17:41:28]wFMCommunicate OK [17:41:28]wFMCommunicate request_size=4 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 0D 03 02 [17:41:28]Write to MH i2c: E2 08 00 8E A6 80 0D 03 02 00 00 00 00 AF [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 0B 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 0B 00 8E A6 00 F2 23 AA 54 DD 30 64 57 90 00 8B [17:41:28]RAPDU: F2 23 AA 54 DD 30 64 57 90 00 [17:41:28]wFMCommunicate OK [17:41:28]SAM_PROTO_SignData done [17:41:28]FM_MakeSignedData done [17:41:28]CreateOFDProtocolMessage [17:41:28]wFMCommunicate request_size=4 [17:41:28]MH_SAM_APDU [17:41:28]CAPDU: 80 11 00 00 [17:41:28]Write to MH i2c: E2 08 00 8F A6 80 11 00 00 00 00 00 00 AF [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:28]Read from MH i2c: E2 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 17 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: E2 17 00 8F A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FF [17:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:41:28]wFMCommunicate OK [17:41:28]CreateOFDProtocolMessage done [17:41:28]OFDSenderStorePacket 94981 [17:41:28]StoreOFDPacket docnum=94981 [17:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 46 EA 07 01 1B FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 56 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 73 01 00 35 04 06 00 65 B0 0C DE 7C 78 F2 23 AA 54 DD 30 64 57 [17:41:28]CheckFolder [17:41:28]dirname=/storage/ofd_packets [17:41:28]CheckFolder done [17:41:28]ProducePacketName [17:41:28]name=ofd_packets/00094981 [17:41:28]NVStorageSaveData ofd_packets/00094981 [17:41:28]File name is /storage/ofd_packets/00094981 [17:41:28]Write 301 bytes [17:41:28]NVStorageSaveData done [17:41:28]OFDSenderStorePacket done [17:41:28]KKMCreateOFDPacket done [17:41:28]NVStorageSaveData kkm_last_timestamp [17:41:28]File name is /storage/kkm_last_timestamp [17:41:28]Write 4 bytes [17:41:28]NVStorageSaveData done [17:41:28]ExternCall_PrintAddStr [17:41:28]wPrintStart [17:41:28]Write to MH i2c: 01 00 00 90 A6 36 [17:41:28]Write i2c OK [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: 01 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: 01 07 00 [17:41:28]MH_I2C_Read... [17:41:28]Read from MH i2c: 01 07 00 90 A6 00 80 00 00 00 FF 0F CB [17:41:28]RasterBufferAndPrint [17:41:28]line Счет N : (1)195940 [17:41:28]line ИНН: 02508201610067 [17:41:28]line Контрольно-Кассовый Чек [17:41:28]line ПРОДАЖА [17:41:28]line ТРК (МРК, ГНК) : 41 [17:41:28]line Товар: 2710124500 [17:41:28]line Аи-95-К-5 [17:41:28]line 14.390 * 69.50 [17:41:28]line = 1000.11 [17:41:28]line НДС 12% НСП 1% [17:41:28]line > о реализуемом товаре [17:41:28]line ИТОГО: 1000.11 [17:41:28]line НСП 1% : 8.85 [17:41:28]line НДС 12% : 106.21 [17:41:28]line Наличными: 0.00 [17:41:28]line Безнал.: 1000.11 [17:41:28]line Место: АЗС № 6 "Партнер Нефть" [17:41:28]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:41:28]line СНО: Общий режим [17:41:28]line Чек 156 11.03.2024 17:41 [17:41:28]line Смена: 326 ФФД: 1.0 [17:41:28]line ЗНМ: 0300000009 [17:41:28]line РНМ: 0000000000090555 [17:41:28]line Версия ККМ: 001 [17:41:28]line Платежная система: О! деньги [17:41:28]line ФМ: 0000000000874811 [17:41:28]line ФД: 94981 [17:41:28]line ФПД: 111806804556920 [17:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174142&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94981&fm=111806804556920&tin=02508201610067®Number=0000000000090555&sum=100011 [17:41:28]OFD Sender: Processing packet 94981 [packets to send 30, broken 29] [17:41:28]ProducePacketName [17:41:28]name=ofd_packets/00094981 [17:41:28]OFD Sender: To server: pG, [17:41:28]CommunicateWithHost lk.salyk.kg:30040 [17:41:28]ConnectInit lk.salyk.kg [17:41:28]written 0, free lines is 4095 [17:41:28]Connected sock=10 [17:41: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 31 31 0F 01 00 00 46 EA 07 01 1B FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 56 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 05 73 01 00 35 04 06 00 65 B0 0C DE 7C 78 F2 23 AA 54 DD 30 64 57 [17:41: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 31 31 4F 00 00 00 29 EF 47 00 B3 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 31 31 10 04 04 00 05 73 01 00 F4 03 04 00 AF ED EE 65 B6 04 01 00 00 7A 51 35 F8 D9 DE 3C 01 [17:41:29]CommunicateWithHost err = 0 [17:41:29]CheckOFDResponse [17:41:29]1017 (14) - 77093643461234 [17:41:29]1041 (16) - 0000000000874811 [17:41:29]1040 (4) - 94981 [17:41:29]1012 (4) - 11.03.2024 11:40 [17:41:29]1206 (1) - 0 [17:41:29]OFD Sender: Remove packet 94981 [17:41:29]ProducePacketName [17:41:29]name=ofd_packets/00094981 [17:41:29]NVStorageDeleteData [17:41:29]Write to MH i2c: 01 00 00 BA A6 60 [17:41:29]Write i2c OK [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: 01 [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: 01 07 00 [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: 01 07 00 BA A6 00 80 00 00 00 5F 0D 53 [17:41:29]RasterBufferAndPrint [17:41:29]line [17:41:29]line [17:41:29]line [17:41:29]line [17:41:29]line [17:41:29]written 0, free lines is 3427 [17:41:29]process_action close_receipt done [17:41:29]requested_data is exist [17:41:29]produce_requested_data [17:41:29]requested_item fm.sn is exist - process it [17:41:29]wFMCommunicate request_size=4 [17:41:29]MH_SAM_APDU [17:41:29]CAPDU: 80 11 00 00 [17:41:29]Write to MH i2c: E2 08 00 C1 A6 80 11 00 00 00 00 00 00 E1 [17:41:29]Write i2c OK [17:41:29]MH_I2C_Read... [17:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:29]Read from MH i2c: E2 [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: E2 17 00 [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: E2 17 00 C1 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 31 [17:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:41:29]wFMCommunicate OK [17:41:29]requested_item fd.num is exist - process it [17:41:29]SAM_PROTO_GetFieldsCounters [17:41:29]wFMCommunicate request_size=4 [17:41:29]MH_SAM_APDU [17:41:29]CAPDU: 80 13 00 00 [17:41:29]Write to MH i2c: E2 08 00 C2 A6 80 13 00 00 00 00 00 00 E4 [17:41:29]Write i2c OK [17:41:29]MH_I2C_Read... [17:41:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:29]Read from MH i2c: E2 [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: E2 62 00 [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: E2 62 00 C2 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 05 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [17:41: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 05 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:29]wFMCommunicate OK [17:41:29]SAM_PROTO_GetFieldsCounters done [17:41:29]requested_item shift.num is exist - process it [17:41:29]requested_item shift.opened is exist - process it [17:41:29]req_shift_opened [17:41:29]FM_GetShiftState [17:41:29]SAM_PROTO_GetShiftState [17:41:29]wFMCommunicate request_size=4 [17:41:29]MH_SAM_APDU [17:41:29]CAPDU: 80 13 01 00 [17:41:29]Write to MH i2c: E2 08 00 C3 A6 80 13 01 00 00 00 00 00 E6 [17:41:29]Write i2c OK [17:41:29]MH_I2C_Read... [17:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:29]Read from MH i2c: E2 [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: E2 0E 00 [17:41:29]MH_I2C_Read... [17:41:29]Read from MH i2c: E2 0E 00 C3 A6 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 82 [17:41:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:41:29]wFMCommunicate OK [17:41:29]SAM_PROTO_GetShiftState done [17:41:29]FM_GetShiftState done [17:41:29]req_shift_opened done [17:41:29]requested_item shift.open_date is exist - process it [17:41:29]req_shift_open_date [17:41:29]req_shift_open_date done [17:41:29]produce_requested_data done [17:41:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94981,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:41:29]process_action_free close_receipt [17:41:29]json_value_free [17:41:29]json_value_free done [17:41:29]process_json_proto returns [17:41:29]Send response to host [17:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94981,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:41:29]free response buf [17:41:29]execute_script done [17:41:29]execute_script returns [17:41:29]free content buf [17:41:29]Sock 9.Close socket [17:41:29]Sock 9.Thread stoped [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:03]accept exits with 7 [17:42:03]New connection [17:42:03]New thread 3066871140 created [17:42:03]Thread 3067014500 joined [17:42:03]Waiting for new connection... [17:42:03] Sock 7.Parse request [17:42:03]Sock 7.Check first char [17:42:03]Sock 7.First char is OK [17:42:03]request: POST /json_proto HTTP/1.0 [17:42:03]Method: POST [17:42:03]URL: /json_proto [17:42:03]Method is POST - this is cgi request [17:42:03]url: /json_proto [17:42:03]query_string will be loaded in cgi processing [17:42:03]execute_cgi json_proto POST (null) [17:42:03]execute_cgi path=json_proto method=POST [17:42:03]POST find Content-Length [17:42:03]Host: 172.17.62.67:8080 [17:42:03]Content-Length: 808 [17:42:03]Content-Type: application/json [17:42:03] [17:42:03]POST finish read [17:42:03]Found Content-Length = 808 [17:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:03]execute_script... [17:42: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)195941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:03]POST & json_proto [17:42:03]process_json_proto [17:42:03]json parsed OK: [17:42:03]protocol is kg_v1.0 [17:42:03]action value=close_receipt [17:42:03]process_action close_receipt [17:42:03]cmd_close_receipt [17:42:03]MH_GetDate [17:42:03]Write to MH i2c: F0 00 00 C4 A6 59 [17:42:03]Write i2c OK [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: F0 [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: F0 05 00 [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: F0 05 00 C4 A6 00 7A 42 EF 65 6E [17:42:03]GetLastDocTimeStamp 1710178902 [17:42:03]current date 1710178938 [17:42:03]FM_GetShiftState [17:42:03]SAM_PROTO_GetShiftState [17:42:03]wFMCommunicate request_size=4 [17:42:03]MH_SAM_APDU [17:42:03]CAPDU: 80 13 01 00 [17:42:03]Write to MH i2c: E2 08 00 C5 A6 80 13 01 00 00 00 00 00 E8 [17:42:03]Write i2c OK [17:42:03]MH_I2C_Read... [17:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:03]Read from MH i2c: E2 [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: E2 0E 00 [17:42:03]MH_I2C_Read... [17:42:03]Read from MH i2c: E2 0E 00 C5 A6 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 84 [17:42:03]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:42:03]wFMCommunicate OK [17:42:03]SAM_PROTO_GetShiftState done [17:42:03]FM_GetShiftState done [17:42:03]opened in 1710115571 [17:42:03]opened+sec_in_day 1710201971 [17:42:03]quantity*price = 100011 [17:42:03]sum+1 = 100012 [17:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 157 11.03.2024 17:42 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94982 ФПД: 194403201644094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174218&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94982&fm=194403201644094&tin=02508201610067®Number=0000000000090555&sum=100011 [17:42:04]StoreToDocumentArchive [17:42:04]shift 326 fd 94982 [17:42:04]save to /storage/0326/doc_00094982 [17:42:04]save last doc name /storage/0326/doc_00094982 to /storage/kkm_last_doc_name [17:42:04]save OK [17:42:04]Clear old archive folders... [17:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:04]tlvbuf is 0019F910 [17:42:04]SAM_PROTO_ClearQueue [17:42:04]wFMCommunicate request_size=4 [17:42:04]MH_SAM_APDU [17:42:04]CAPDU: 80 09 00 00 [17:42:04]Write to MH i2c: E2 08 00 D2 A6 80 09 00 00 00 00 00 00 EA [17:42:04]Write i2c OK [17:42:04]MH_I2C_Read... [17:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:04]Read from MH i2c: E2 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 03 00 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 03 00 D2 A6 00 90 00 EC [17:42:04]RAPDU: 90 00 [17:42:04]wFMCommunicate OK [17:42:04]SAM_PROTO_ClearQueue done [17:42:04]KKMCreateOFDPacket [17:42:04]OFDProtocolAddRootSTLVToBuf [17:42:04]FM_MakeSignedData [17:42:04]FM_MakeSignedData [17:42:04]SAM_PROTO_SignData [17:42:04]wFMCommunicate request_size=4 [17:42:04]MH_SAM_APDU [17:42:04]CAPDU: 80 0D 01 02 [17:42:04]Write to MH i2c: E2 08 00 D3 A6 80 0D 01 02 00 00 00 00 F2 [17:42:04]Write i2c OK [17:42:04]MH_I2C_Read... [17:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:04]Read from MH i2c: E2 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 03 00 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 03 00 D3 A6 00 90 00 ED [17:42:04]RAPDU: 90 00 [17:42:04]wFMCommunicate OK [17:42:04]wFMCommunicate request_size=255 [17:42:04]MH_SAM_APDU [17:42:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 7A 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 73 01 00 35 04 06 00 B0 [17:42:04]Write to MH i2c: E2 02 01 D4 A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 7A 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 73 01 00 35 04 06 00 B0 00 00 CE [17:42:04]Write i2c OK [17:42:04]MH_I2C_Read... [17:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:04]Read from MH i2c: E2 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 03 00 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 03 00 D4 A6 00 90 00 EE [17:42:04]RAPDU: 90 00 [17:42:04]wFMCommunicate OK [17:42:04]wFMCommunicate request_size=10 [17:42:04]MH_SAM_APDU [17:42:04]CAPDU: 80 0D 02 02 05 CF 05 C6 F6 3E [17:42:04]Write to MH i2c: E2 0D 00 D5 A6 80 0D 02 02 05 00 CF 05 C6 F6 3E 00 00 CD [17:42:04]Write i2c OK [17:42:04]MH_I2C_Read... [17:42:04]OFD Sender: No OFD packet to send [17:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:04]Read from MH i2c: E2 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 03 00 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 03 00 D5 A6 00 90 00 EF [17:42:04]RAPDU: 90 00 [17:42:04]wFMCommunicate OK [17:42:04]wFMCommunicate request_size=4 [17:42:04]MH_SAM_APDU [17:42:04]CAPDU: 80 0D 03 02 [17:42:04]Write to MH i2c: E2 08 00 D6 A6 80 0D 03 02 00 00 00 00 F7 [17:42:04]Write i2c OK [17:42:04]MH_I2C_Read... [17:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:04]Read from MH i2c: E2 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 0B 00 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 0B 00 D6 A6 00 23 0B F4 15 58 E9 B1 1E 90 00 3F [17:42:04]RAPDU: 23 0B F4 15 58 E9 B1 1E 90 00 [17:42:04]wFMCommunicate OK [17:42:04]SAM_PROTO_SignData done [17:42:04]FM_MakeSignedData done [17:42:04]CreateOFDProtocolMessage [17:42:04]wFMCommunicate request_size=4 [17:42:04]MH_SAM_APDU [17:42:04]CAPDU: 80 11 00 00 [17:42:04]Write to MH i2c: E2 08 00 D7 A6 80 11 00 00 00 00 00 00 F7 [17:42:04]Write i2c OK [17:42:04]MH_I2C_Read... [17:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:04]Read from MH i2c: E2 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 17 00 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: E2 17 00 D7 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 47 [17:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:42:04]wFMCommunicate OK [17:42:04]CreateOFDProtocolMessage done [17:42:04]OFDSenderStorePacket 94982 [17:42:04]StoreOFDPacket docnum=94982 [17:42:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 27 ED 07 01 B3 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 7A 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 73 01 00 35 04 06 00 B0 CF 05 C6 F6 3E 23 0B F4 15 58 E9 B1 1E [17:42:04]CheckFolder [17:42:04]dirname=/storage/ofd_packets [17:42:04]CheckFolder done [17:42:04]ProducePacketName [17:42:04]name=ofd_packets/00094982 [17:42:04]NVStorageSaveData ofd_packets/00094982 [17:42:04]File name is /storage/ofd_packets/00094982 [17:42:04]Write 301 bytes [17:42:04]NVStorageSaveData done [17:42:04]OFDSenderStorePacket done [17:42:04]KKMCreateOFDPacket done [17:42:04]NVStorageSaveData kkm_last_timestamp [17:42:04]File name is /storage/kkm_last_timestamp [17:42:04]Write 4 bytes [17:42:04]NVStorageSaveData done [17:42:04]ExternCall_PrintAddStr [17:42:04]wPrintStart [17:42:04]Write to MH i2c: 01 00 00 D8 A6 7E [17:42:04]Write i2c OK [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: 01 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: 01 07 00 [17:42:04]MH_I2C_Read... [17:42:04]Read from MH i2c: 01 07 00 D8 A6 00 80 00 00 00 FF 0F 13 [17:42:04]RasterBufferAndPrint [17:42:04]line Счет N : (1)195941 [17:42:04]line ИНН: 02508201610067 [17:42:04]line Контрольно-Кассовый Чек [17:42:04]line ПРОДАЖА [17:42:04]line ТРК (МРК, ГНК) : 22 [17:42:04]line Товар: 2710124130 [17:42:04]line Аи-92-К-5 [17:42:04]line 15.900 * 62.90 [17:42:04]line = 1000.11 [17:42:04]line НДС 12% НСП 1% [17:42:04]line > о реализуемом товаре [17:42:04]line ИТОГО: 1000.11 [17:42:04]line НСП 1% : 8.85 [17:42:04]line НДС 12% : 106.21 [17:42:04]line Наличными: 0.00 [17:42:04]line Безнал.: 1000.11 [17:42:04]line Место: АЗС № 6 "Партнер Нефть" [17:42:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:42:04]line СНО: Общий режим [17:42:04]line Чек 157 11.03.2024 17:42 [17:42:04]line Смена: 326 ФФД: 1.0 [17:42:04]line ЗНМ: 0300000009 [17:42:04]line РНМ: 0000000000090555 [17:42:04]line Версия ККМ: 001 [17:42:04]line Платежная система: О! деньги [17:42:04]line ФМ: 0000000000874811 [17:42:04]line ФД: 94982 [17:42:04]line ФПД: 194403201644094 [17:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174218&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94982&fm=194403201644094&tin=02508201610067®Number=0000000000090555&sum=100011 [17:42:04]written 0, free lines is 4095 [17:42:04]OFD Sender: Processing packet 94982 [packets to send 30, broken 29] [17:42:04]ProducePacketName [17:42:04]name=ofd_packets/00094982 [17:42:04]OFD Sender: To server: pG, [17:42:04]CommunicateWithHost lk.salyk.kg:30040 [17:42:04]ConnectInit lk.salyk.kg [17:42:05]Connected sock=11 [17:42: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 31 31 0F 01 00 00 27 ED 07 01 B3 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 7A 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 73 01 00 35 04 06 00 B0 CF 05 C6 F6 3E 23 0B F4 15 58 E9 B1 1E [17:42: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 31 31 4F 00 00 00 A5 AF 47 00 FE AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 06 73 01 00 F4 03 04 00 D3 ED EE 65 B6 04 01 00 00 92 30 1B 76 5E B1 87 59 [17:42:05]CommunicateWithHost err = 0 [17:42:05]CheckOFDResponse [17:42:05]1017 (14) - 77093643461234 [17:42:05]1041 (16) - 0000000000874811 [17:42:05]1040 (4) - 94982 [17:42:05]1012 (4) - 11.03.2024 11:41 [17:42:05]1206 (1) - 0 [17:42:05]OFD Sender: Remove packet 94982 [17:42:05]ProducePacketName [17:42:05]name=ofd_packets/00094982 [17:42:05]NVStorageDeleteData [17:42:05]Write to MH i2c: 01 00 00 02 A7 A9 [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: 01 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: 01 07 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: 01 07 00 02 A7 00 80 00 00 00 60 0D 9D [17:42:05]RasterBufferAndPrint [17:42:05]line [17:42:05]line [17:42:05]line [17:42:05]line [17:42:05]line [17:42:05]written 0, free lines is 3430 [17:42:05]process_action close_receipt done [17:42:05]requested_data is exist [17:42:05]produce_requested_data [17:42:05]requested_item fm.sn is exist - process it [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 11 00 00 [17:42:05]Write to MH i2c: E2 08 00 09 A7 80 11 00 00 00 00 00 00 2A [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 17 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 17 00 09 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7A [17:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:42:05]wFMCommunicate OK [17:42:05]requested_item fd.num is exist - process it [17:42:05]SAM_PROTO_GetFieldsCounters [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 13 00 00 [17:42:05]Write to MH i2c: E2 08 00 0A A7 80 13 00 00 00 00 00 00 2D [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 62 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 62 00 0A A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 06 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [17:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 06 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:05]wFMCommunicate OK [17:42:05]SAM_PROTO_GetFieldsCounters done [17:42:05]requested_item shift.num is exist - process it [17:42:05]requested_item shift.opened is exist - process it [17:42:05]req_shift_opened [17:42:05]FM_GetShiftState [17:42:05]SAM_PROTO_GetShiftState [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 13 01 00 [17:42:05]Write to MH i2c: E2 08 00 0B A7 80 13 01 00 00 00 00 00 2F [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 0E 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 0E 00 0B A7 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CB [17:42:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:42:05]wFMCommunicate OK [17:42:05]SAM_PROTO_GetShiftState done [17:42:05]FM_GetShiftState done [17:42:05]req_shift_opened done [17:42:05]requested_item shift.open_date is exist - process it [17:42:05]req_shift_open_date [17:42:05]req_shift_open_date done [17:42:05]produce_requested_data done [17:42:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94982,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:42:05]process_action_free close_receipt [17:42:05]json_value_free [17:42:05]json_value_free done [17:42:05]process_json_proto returns [17:42:05]Send response to host [17:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94982,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:42:05]free response buf [17:42:05]execute_script done [17:42:05]execute_script returns [17:42:05]free content buf [17:42:05]Sock 7.Close socket [17:42:05]Sock 7.Thread stoped [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:43]accept exits with 9 [17:42:43]New connection [17:42:43]New thread 3067014500 created [17:42:43]Thread 3066871140 joined [17:42:43]Waiting for new connection... [17:42:43] Sock 9.Parse request [17:42:43]Sock 9.Check first char [17:42:43]Sock 9.First char is OK [17:42:43]request: POST /json_proto HTTP/1.0 [17:42:43]Method: POST [17:42:43]URL: /json_proto [17:42:43]Method is POST - this is cgi request [17:42:43]url: /json_proto [17:42:43]query_string will be loaded in cgi processing [17:42:43]execute_cgi json_proto POST (null) [17:42:43]execute_cgi path=json_proto method=POST [17:42:43]POST find Content-Length [17:42:43]Host: 172.17.62.67:8080 [17:42:43]Content-Length: 670 [17:42:43]Content-Type: application/json [17:42:43] [17:42:43]POST finish read [17:42:43]Found Content-Length = 670 [17:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.390, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:43]execute_script... [17:42:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 9.390, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:43]POST & json_proto [17:42:43]process_json_proto [17:42:43]json parsed OK: [17:42:43]protocol is kg_v1.0 [17:42:43]action value=close_receipt [17:42:43]process_action close_receipt [17:42:43]cmd_close_receipt [17:42:43]MH_GetDate [17:42:43]Write to MH i2c: F0 00 00 0C A7 A2 [17:42:43]Write i2c OK [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: F0 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: F0 05 00 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: F0 05 00 0C A7 00 A2 42 EF 65 DF [17:42:43]GetLastDocTimeStamp 1710178938 [17:42:43]current date 1710178978 [17:42:43]FM_GetShiftState [17:42:43]SAM_PROTO_GetShiftState [17:42:43]wFMCommunicate request_size=4 [17:42:43]MH_SAM_APDU [17:42:43]CAPDU: 80 13 01 00 [17:42:43]Write to MH i2c: E2 08 00 0D A7 80 13 01 00 00 00 00 00 31 [17:42:43]Write i2c OK [17:42:43]MH_I2C_Read... [17:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:43]Read from MH i2c: E2 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 0E 00 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 0E 00 0D A7 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CD [17:42:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:42:43]wFMCommunicate OK [17:42:43]SAM_PROTO_GetShiftState done [17:42:43]FM_GetShiftState done [17:42:43]opened in 1710115571 [17:42:43]opened+sec_in_day 1710201971 [17:42:43]quantity*price = 60002 [17:42:43]sum+1 = 60003 [17:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 158 11.03.2024 17:42 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94983 ФПД: 262855186150792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174258&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94983&fm=262855186150792&tin=02508201610067®Number=0000000000090555&sum=60000 [17:42:44]StoreToDocumentArchive [17:42:44]shift 326 fd 94983 [17:42:44]save to /storage/0326/doc_00094983 [17:42:44]save last doc name /storage/0326/doc_00094983 to /storage/kkm_last_doc_name [17:42:44]save OK [17:42:44]Clear old archive folders... [17:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:42:44]tlvbuf is 00469710 [17:42:44]SAM_PROTO_ClearQueue [17:42:44]wFMCommunicate request_size=4 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 09 00 00 [17:42:44]Write to MH i2c: E2 08 00 1A A7 80 09 00 00 00 00 00 00 33 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:44]Read from MH i2c: E2 03 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 1A A7 00 90 00 35 [17:42:44]RAPDU: 90 00 [17:42:44]wFMCommunicate OK [17:42:44]SAM_PROTO_ClearQueue done [17:42:44]KKMCreateOFDPacket [17:42:44]OFDProtocolAddRootSTLVToBuf [17:42:44]FM_MakeSignedData [17:42:44]FM_MakeSignedData [17:42:44]SAM_PROTO_SignData [17:42:44]wFMCommunicate request_size=4 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 0D 01 02 [17:42:44]Write to MH i2c: E2 08 00 1B A7 80 0D 01 02 00 00 00 00 3B [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 1B A7 00 90 00 36 [17:42:44]RAPDU: 90 00 [17:42:44]wFMCommunicate OK [17:42:44]wFMCommunicate request_size=255 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 9E 00 00 00 F4 03 04 00 A2 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 73 01 00 35 04 06 00 [17:42:44]Write to MH i2c: E2 02 01 1C A7 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 9E 00 00 00 F4 03 04 00 A2 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 73 01 00 35 04 06 00 00 00 47 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 1C A7 00 90 00 37 [17:42:44]RAPDU: 90 00 [17:42:44]wFMCommunicate OK [17:42:44]wFMCommunicate request_size=11 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 0D 02 02 06 EF 10 BD FF 75 88 [17:42:44]Write to MH i2c: E2 0E 00 1D A7 80 0D 02 02 06 00 EF 10 BD FF 75 88 00 00 02 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 1D A7 00 90 00 38 [17:42:44]RAPDU: 90 00 [17:42:44]wFMCommunicate OK [17:42:44]wFMCommunicate request_size=4 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 0D 03 02 [17:42:44]Write to MH i2c: E2 08 00 1E A7 80 0D 03 02 00 00 00 00 40 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 0B 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 0B 00 1E A7 00 AA 20 54 42 A3 D1 D2 41 90 00 28 [17:42:44]RAPDU: AA 20 54 42 A3 D1 D2 41 90 00 [17:42:44]wFMCommunicate OK [17:42:44]SAM_PROTO_SignData done [17:42:44]FM_MakeSignedData done [17:42:44]CreateOFDProtocolMessage [17:42:44]wFMCommunicate request_size=4 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 11 00 00 [17:42:44]Write to MH i2c: E2 08 00 1F A7 80 11 00 00 00 00 00 00 40 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 17 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 17 00 1F A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 90 [17:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:42:44]wFMCommunicate OK [17:42:44]CreateOFDProtocolMessage done [17:42:44]OFDSenderStorePacket 94983 [17:42:44]StoreOFDPacket docnum=94983 [17:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 21 64 08 01 CE F9 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 9E 00 00 00 F4 03 04 00 A2 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 73 01 00 35 04 06 00 EF 10 BD FF 75 88 AA 20 54 42 A3 D1 D2 41 [17:42:44]CheckFolder [17:42:44]dirname=/storage/ofd_packets [17:42:44]CheckFolder done [17:42:44]ProducePacketName [17:42:44]name=ofd_packets/00094983 [17:42:44]NVStorageSaveData ofd_packets/00094983 [17:42:44]File name is /storage/ofd_packets/00094983 [17:42:44]Write 302 bytes [17:42:44]NVStorageSaveData done [17:42:44]OFDSenderStorePacket done [17:42:44]KKMCreateOFDPacket done [17:42:44]NVStorageSaveData kkm_last_timestamp [17:42:44]File name is /storage/kkm_last_timestamp [17:42:44]Write 4 bytes [17:42:44]NVStorageSaveData done [17:42:44]ExternCall_PrintAddStr [17:42:44]wPrintStart [17:42:44]Write to MH i2c: 01 00 00 20 A7 C7 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: 01 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: 01 07 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: 01 07 00 20 A7 00 80 00 00 00 FF 0F 5C [17:42:44]RasterBufferAndPrint [17:42:44]line Счет N : (1)195942 [17:42:44]line ИНН: 02508201610067 [17:42:44]line Контрольно-Кассовый Чек [17:42:44]line ПРОДАЖА [17:42:44]line ТРК (МРК, ГНК) : 13 [17:42:44]line Товар: 2710124130 [17:42:44]line SUPER 92-К-5 [17:42:44]line 9.390 * 63.90 [17:42:44]line = 600.02 [17:42:44]line НДС 12% НСП 1% [17:42:44]line > о реализуемом товаре [17:42:44]line ОКРУГЛЕНИЕ: -0.02 [17:42:44]line ИТОГО: 600.00 [17:42:44]line Внесено: 600.00 [17:42:44]line СДАЧА: 0.00 [17:42:44]line НСП 1% : 5.31 [17:42:44]line НДС 12% : 63.72 [17:42:44]line Наличными: 600.00 [17:42:44]line Безнал.: 0.00 [17:42:44]line Место: АЗС № 6 "Партнер Нефть" [17:42:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:42:44]line СНО: Общий режим [17:42:44]line Чек 158 11.03.2024 17:42 [17:42:44]line Смена: 326 ФФД: 1.0 [17:42:44]line ЗНМ: 0300000009 [17:42:44]line РНМ: 0000000000090555 [17:42:44]line Версия ККМ: 001 [17:42:44]line ФМ: 0000000000874811 [17:42:44]line ФД: 94983 [17:42:44]line ФПД: 262855186150792 [17:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174258&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94983&fm=262855186150792&tin=02508201610067®Number=0000000000090555&sum=60000 [17:42:45]written 0, free lines is 4095 [17:42:45]OFD Sender: Processing packet 94983 [packets to send 30, broken 29] [17:42:45]ProducePacketName [17:42:45]name=ofd_packets/00094983 [17:42:45]OFD Sender: To server: pG, [17:42:45]CommunicateWithHost lk.salyk.kg:30040 [17:42:45]ConnectInit lk.salyk.kg [17:42:45]Connected sock=10 [17:42:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 21 64 08 01 CE F9 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 24 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 9E 00 00 00 F4 03 04 00 A2 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 07 73 01 00 35 04 06 00 EF 10 BD FF 75 88 AA 20 54 42 A3 D1 D2 41 [17:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D0 58 47 00 1C 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 31 31 10 04 04 00 07 73 01 00 F4 03 04 00 FB ED EE 65 B6 04 01 00 00 57 27 BD 33 9F 71 EF 93 [17:42:45]CommunicateWithHost err = 0 [17:42:45]CheckOFDResponse [17:42:45]1017 (14) - 77093643461234 [17:42:45]1041 (16) - 0000000000874811 [17:42:45]1040 (4) - 94983 [17:42:45]1012 (4) - 11.03.2024 11:41 [17:42:45]1206 (1) - 0 [17:42:45]OFD Sender: Remove packet 94983 [17:42:45]ProducePacketName [17:42:45]name=ofd_packets/00094983 [17:42:45]NVStorageDeleteData [17:42:45]Write to MH i2c: 01 00 00 4B A7 F2 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 07 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 07 00 4B A7 00 80 00 00 00 57 0D DD [17:42:45]RasterBufferAndPrint [17:42:45]line [17:42:45]line [17:42:45]line [17:42:45]line [17:42:45]line [17:42:45]written 0, free lines is 3421 [17:42:45]process_action close_receipt done [17:42:45]requested_data is exist [17:42:45]produce_requested_data [17:42:45]requested_item fm.sn is exist - process it [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 11 00 00 [17:42:45]Write to MH i2c: E2 08 00 52 A7 80 11 00 00 00 00 00 00 73 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 17 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 17 00 52 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C3 [17:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:42:45]wFMCommunicate OK [17:42:45]requested_item fd.num is exist - process it [17:42:45]SAM_PROTO_GetFieldsCounters [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 13 00 00 [17:42:45]Write to MH i2c: E2 08 00 53 A7 80 13 00 00 00 00 00 00 76 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 62 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 62 00 53 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 07 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [17:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 07 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:45]wFMCommunicate OK [17:42:45]SAM_PROTO_GetFieldsCounters done [17:42:45]requested_item shift.num is exist - process it [17:42:45]requested_item shift.opened is exist - process it [17:42:45]req_shift_opened [17:42:45]FM_GetShiftState [17:42:45]SAM_PROTO_GetShiftState [17:42:45]wFMCommunicate request_size=4 [17:42:45]MH_SAM_APDU [17:42:45]CAPDU: 80 13 01 00 [17:42:45]Write to MH i2c: E2 08 00 54 A7 80 13 01 00 00 00 00 00 78 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:45]OFD Sender: No OFD packet to send [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 0E 00 54 A7 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 14 [17:42:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:42:45]wFMCommunicate OK [17:42:45]SAM_PROTO_GetShiftState done [17:42:45]FM_GetShiftState done [17:42:45]req_shift_opened done [17:42:45]requested_item shift.open_date is exist - process it [17:42:45]req_shift_open_date [17:42:45]req_shift_open_date done [17:42:45]produce_requested_data done [17:42:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94983,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:42:45]process_action_free close_receipt [17:42:45]json_value_free [17:42:45]json_value_free done [17:42:45]process_json_proto returns [17:42:45]Send response to host [17:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94983,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:42:45]free response buf [17:42:45]execute_script done [17:42:45]execute_script returns [17:42:45]free content buf [17:42:45]Sock 9.Close socket [17:42:45]Sock 9.Thread stoped [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:43:56]accept exits with 7 [17:43:56]New connection [17:43:56]New thread 3066871140 created [17:43:56]Thread 3067014500 joined [17:43:56]Waiting for new connection... [17:43:56] Sock 7.Parse request [17:43:56]Sock 7.Check first char [17:43:56]Sock 7.First char is OK [17:43:56]request: POST /json_proto HTTP/1.0 [17:43:56]Method: POST [17:43:56]URL: /json_proto [17:43:56]Method is POST - this is cgi request [17:43:56]url: /json_proto [17:43:56]query_string will be loaded in cgi processing [17:43:56]execute_cgi json_proto POST (null) [17:43:56]execute_cgi path=json_proto method=POST [17:43:56]POST find Content-Length [17:43:56]Host: 172.17.62.67:8080 [17:43:56]Content-Length: 678 [17:43:56]Content-Type: application/json [17:43:56] [17:43:56]POST finish read [17:43:56]Found Content-Length = 678 [17:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.020, "sum" : 630.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:56]execute_script... [17:43: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)195943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.020, "sum" : 630.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:56]POST & json_proto [17:43:56]process_json_proto [17:43:56]json parsed OK: [17:43:56]protocol is kg_v1.0 [17:43:56]action value=close_receipt [17:43:56]process_action close_receipt [17:43:56]cmd_close_receipt [17:43:56]MH_GetDate [17:43:56]Write to MH i2c: F0 00 00 55 A7 EB [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: F0 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: F0 05 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: F0 05 00 55 A7 00 EB 42 EF 65 71 [17:43:56]GetLastDocTimeStamp 1710178978 [17:43:56]current date 1710179051 [17:43:56]FM_GetShiftState [17:43:56]SAM_PROTO_GetShiftState [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 13 01 00 [17:43:56]Write to MH i2c: E2 08 00 56 A7 80 13 01 00 00 00 00 00 7A [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 0E 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 0E 00 56 A7 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 16 [17:43:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:43:56]wFMCommunicate OK [17:43:56]SAM_PROTO_GetShiftState done [17:43:56]FM_GetShiftState done [17:43:56]opened in 1710115571 [17:43:56]opened+sec_in_day 1710201971 [17:43:56]quantity*price = 63025 [17:43:56]sum+1 = 63027 [17:43:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.93 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 159 11.03.2024 17:44 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94984 ФПД: 152801060644419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174411&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94984&fm=152801060644419&tin=02508201610067®Number=0000000000090555&sum=63000 [17:43:57]StoreToDocumentArchive [17:43:57]shift 326 fd 94984 [17:43:57]save to /storage/0326/doc_00094984 [17:43:57]save last doc name /storage/0326/doc_00094984 to /storage/kkm_last_doc_name [17:43:57]save OK [17:43:57]Clear old archive folders... [17:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:57]tlvbuf is 0030D9C0 [17:43:57]SAM_PROTO_ClearQueue [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 09 00 00 [17:43:57]Write to MH i2c: E2 08 00 63 A7 80 09 00 00 00 00 00 00 7C [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 63 A7 00 90 00 7E [17:43:57]RAPDU: 90 00 [17:43:57]wFMCommunicate OK [17:43:57]SAM_PROTO_ClearQueue done [17:43:57]KKMCreateOFDPacket [17:43:57]OFDProtocolAddRootSTLVToBuf [17:43:57]FM_MakeSignedData [17:43:57]FM_MakeSignedData [17:43:57]SAM_PROTO_SignData [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 0D 01 02 [17:43:57]Write to MH i2c: E2 08 00 64 A7 80 0D 01 02 00 00 00 00 84 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 64 A7 00 90 00 7F [17:43:57]RAPDU: 90 00 [17:43:57]wFMCommunicate OK [17:43:57]wFMCommunicate request_size=255 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 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 9F 00 00 00 F4 03 04 00 EB 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 73 01 00 35 04 06 00 8A [17:43:57]Write to MH i2c: E2 02 01 65 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 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 9F 00 00 00 F4 03 04 00 EB 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 73 01 00 35 04 06 00 8A 00 00 9F [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 65 A7 00 90 00 80 [17:43:57]RAPDU: 90 00 [17:43:57]wFMCommunicate OK [17:43:57]wFMCommunicate request_size=10 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 0D 02 02 05 F8 C4 F0 E6 43 [17:43:57]Write to MH i2c: E2 0D 00 66 A7 80 0D 02 02 05 00 F8 C4 F0 E6 43 00 00 66 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 66 A7 00 90 00 81 [17:43:57]RAPDU: 90 00 [17:43:57]wFMCommunicate OK [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 0D 03 02 [17:43:57]Write to MH i2c: E2 08 00 67 A7 80 0D 03 02 00 00 00 00 89 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:58]Read from MH i2c: E2 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 0B 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 0B 00 67 A7 00 53 96 00 38 67 B0 29 48 90 00 33 [17:43:58]RAPDU: 53 96 00 38 67 B0 29 48 90 00 [17:43:58]wFMCommunicate OK [17:43:58]SAM_PROTO_SignData done [17:43:58]FM_MakeSignedData done [17:43:58]CreateOFDProtocolMessage [17:43:58]wFMCommunicate request_size=4 [17:43:58]MH_SAM_APDU [17:43:58]CAPDU: 80 11 00 00 [17:43:58]Write to MH i2c: E2 08 00 68 A7 80 11 00 00 00 00 00 00 89 [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:58]Read from MH i2c: E2 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 17 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 17 00 68 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D9 [17:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:43:58]wFMCommunicate OK [17:43:58]CreateOFDProtocolMessage done [17:43:58]OFDSenderStorePacket 94984 [17:43:58]StoreOFDPacket docnum=94984 [17:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 2C 07 01 99 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 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 9F 00 00 00 F4 03 04 00 EB 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 73 01 00 35 04 06 00 8A F8 C4 F0 E6 43 53 96 00 38 67 B0 29 48 [17:43:58]CheckFolder [17:43:58]dirname=/storage/ofd_packets [17:43:58]CheckFolder done [17:43:58]ProducePacketName [17:43:58]name=ofd_packets/00094984 [17:43:58]NVStorageSaveData ofd_packets/00094984 [17:43:58]File name is /storage/ofd_packets/00094984 [17:43:58]Write 301 bytes [17:43:58]NVStorageSaveData done [17:43:58]OFDSenderStorePacket done [17:43:58]KKMCreateOFDPacket done [17:43:58]NVStorageSaveData kkm_last_timestamp [17:43:58]File name is /storage/kkm_last_timestamp [17:43:58]Write 4 bytes [17:43:58]NVStorageSaveData done [17:43:58]ExternCall_PrintAddStr [17:43:58]wPrintStart [17:43:58]Write to MH i2c: 01 00 00 69 A7 10 [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 07 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 07 00 69 A7 00 80 00 00 00 FF 0F A5 [17:43:58]RasterBufferAndPrint [17:43:58]line Счет N : (1)195943 [17:43:58]line ИНН: 02508201610067 [17:43:58]line Контрольно-Кассовый Чек [17:43:58]line ПРОДАЖА [17:43:58]line ТРК (МРК, ГНК) : 32 [17:43:58]line Товар: 2710124130 [17:43:58]line Аи-92-К-5 [17:43:58]line 10.020 * 62.90 [17:43:58]line = 630.26 [17:43:58]line НДС 12% НСП 1% [17:43:58]line > о реализуемом товаре [17:43:58]line ОКРУГЛЕНИЕ: -0.26 [17:43:58]line ИТОГО: 630.00 [17:43:58]line Внесено: 630.00 [17:43:58]line СДАЧА: 0.00 [17:43:58]line НСП 1% : 5.58 [17:43:58]line НДС 12% : 66.93 [17:43:58]line Наличными: 630.00 [17:43:58]line Безнал.: 0.00 [17:43:58]line Место: АЗС № 6 "Партнер Нефть" [17:43:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:43:58]line СНО: Общий режим [17:43:58]line Чек 159 11.03.2024 17:44 [17:43:58]line Смена: 326 ФФД: 1.0 [17:43:58]line ЗНМ: 0300000009 [17:43:58]line РНМ: 0000000000090555 [17:43:58]line Версия ККМ: 001 [17:43:58]line ФМ: 0000000000874811 [17:43:58]line ФД: 94984 [17:43:58]line ФПД: 152801060644419 [17:43:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174411&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94984&fm=152801060644419&tin=02508201610067®Number=0000000000090555&sum=63000 [17:43:58]OFD Sender: Processing packet 94984 [packets to send 30, broken 29] [17:43:58]ProducePacketName [17:43:58]name=ofd_packets/00094984 [17:43:58]OFD Sender: To server: pG, [17:43:58]CommunicateWithHost lk.salyk.kg:30040 [17:43:58]ConnectInit lk.salyk.kg [17:43:58]written 0, free lines is 4095 [17:43:58]Connected sock=10 [17:43: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 31 31 0F 01 00 00 52 2C 07 01 99 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 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 9F 00 00 00 F4 03 04 00 EB 42 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 73 01 00 35 04 06 00 8A F8 C4 F0 E6 43 53 96 00 38 67 B0 29 48 [17:43: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 31 31 4F 00 00 00 15 79 47 00 F5 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 08 73 01 00 F4 03 04 00 44 EE EE 65 B6 04 01 00 00 BF D6 63 FD 04 43 65 E1 [17:43:58]CommunicateWithHost err = 0 [17:43:58]CheckOFDResponse [17:43:58]1017 (14) - 77093643461234 [17:43:58]1041 (16) - 0000000000874811 [17:43:58]1040 (4) - 94984 [17:43:58]1012 (4) - 11.03.2024 11:43 [17:43:58]1206 (1) - 0 [17:43:58]OFD Sender: Remove packet 94984 [17:43:58]ProducePacketName [17:43:58]name=ofd_packets/00094984 [17:43:58]NVStorageDeleteData [17:43:58]Write to MH i2c: 01 00 00 94 A7 3B [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 07 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 07 00 94 A7 00 80 00 00 00 53 0D 22 [17:43:58]RasterBufferAndPrint [17:43:58]line [17:43:58]line [17:43:58]line [17:43:58]line [17:43:58]line [17:43:58]written 0, free lines is 3417 [17:43:58]process_action close_receipt done [17:43:58]requested_data is exist [17:43:58]produce_requested_data [17:43:58]requested_item fm.sn is exist - process it [17:43:58]wFMCommunicate request_size=4 [17:43:58]MH_SAM_APDU [17:43:58]CAPDU: 80 11 00 00 [17:43:58]Write to MH i2c: E2 08 00 9B A7 80 11 00 00 00 00 00 00 BC [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:58]Read from MH i2c: E2 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 17 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 17 00 9B A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0C [17:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:43:58]wFMCommunicate OK [17:43:58]requested_item fd.num is exist - process it [17:43:58]SAM_PROTO_GetFieldsCounters [17:43:58]wFMCommunicate request_size=4 [17:43:58]MH_SAM_APDU [17:43:58]CAPDU: 80 13 00 00 [17:43:58]Write to MH i2c: E2 08 00 9C A7 80 13 00 00 00 00 00 00 BF [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 62 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 62 00 9C A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 08 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [17:43: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 08 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:59]wFMCommunicate OK [17:43:59]SAM_PROTO_GetFieldsCounters done [17:43:59]requested_item shift.num is exist - process it [17:43:59]requested_item shift.opened is exist - process it [17:43:59]req_shift_opened [17:43:59]FM_GetShiftState [17:43:59]SAM_PROTO_GetShiftState [17:43:59]wFMCommunicate request_size=4 [17:43:59]MH_SAM_APDU [17:43:59]CAPDU: 80 13 01 00 [17:43:59]Write to MH i2c: E2 08 00 9D A7 80 13 01 00 00 00 00 00 C1 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:59]OFD Sender: No OFD packet to send [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 0E 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 0E 00 9D A7 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5D [17:43:59]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:43:59]wFMCommunicate OK [17:43:59]SAM_PROTO_GetShiftState done [17:43:59]FM_GetShiftState done [17:43:59]req_shift_opened done [17:43:59]requested_item shift.open_date is exist - process it [17:43:59]req_shift_open_date [17:43:59]req_shift_open_date done [17:43:59]produce_requested_data done [17:43:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94984,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:43:59]process_action_free close_receipt [17:43:59]json_value_free [17:43:59]json_value_free done [17:43:59]process_json_proto returns [17:43:59]Send response to host [17:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94984,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:43:59]free response buf [17:43:59]execute_script done [17:43:59]execute_script returns [17:43:59]free content buf [17:43:59]Sock 7.Close socket [17:43:59]Sock 7.Thread stoped [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:43]accept exits with 9 [17:46:43]New connection [17:46:43]New thread 3067014500 created [17:46:43]Thread 3066871140 joined [17:46:43]Waiting for new connection... [17:46:43] Sock 9.Parse request [17:46:43]Sock 9.Check first char [17:46:43]Sock 9.First char is OK [17:46:43]request: POST /json_proto HTTP/1.0 [17:46:43]Method: POST [17:46:43]URL: /json_proto [17:46:43]Method is POST - this is cgi request [17:46:43]url: /json_proto [17:46:43]query_string will be loaded in cgi processing [17:46:43]execute_cgi json_proto POST (null) [17:46:43]execute_cgi path=json_proto method=POST [17:46:43]POST find Content-Length [17:46:43]Host: 172.17.62.67:8080 [17:46:43]Content-Length: 801 [17:46:43]Content-Type: application/json [17:46:43] [17:46:43]POST finish read [17:46:43]Found Content-Length = 801 [17:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:43]execute_script... [17:46:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:43]POST & json_proto [17:46:43]process_json_proto [17:46:43]json parsed OK: [17:46:43]protocol is kg_v1.0 [17:46:43]action value=close_receipt [17:46:43]process_action close_receipt [17:46:43]cmd_close_receipt [17:46:43]MH_GetDate [17:46:43]Write to MH i2c: F0 00 00 9E A7 34 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: F0 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: F0 05 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: F0 05 00 9E A7 00 93 43 EF 65 63 [17:46:43]GetLastDocTimeStamp 1710179051 [17:46:43]current date 1710179219 [17:46:43]FM_GetShiftState [17:46:43]SAM_PROTO_GetShiftState [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 13 01 00 [17:46:43]Write to MH i2c: E2 08 00 9F A7 80 13 01 00 00 00 00 00 C3 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 0E 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 0E 00 9F A7 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5F [17:46:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:46:43]wFMCommunicate OK [17:46:43]SAM_PROTO_GetShiftState done [17:46:43]FM_GetShiftState done [17:46:43]opened in 1710115571 [17:46:43]opened+sec_in_day 1710201971 [17:46:43]quantity*price = 100003 [17:46:43]sum+1 = 100005 [17:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.04 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 160 11.03.2024 17:46 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94985 ФПД: 106840185215565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174659&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94985&fm=106840185215565&tin=02508201610067®Number=0000000000090555&sum=100004 [17:46:44]StoreToDocumentArchive [17:46:44]shift 326 fd 94985 [17:46:44]save to /storage/0326/doc_00094985 [17:46:44]save last doc name /storage/0326/doc_00094985 to /storage/kkm_last_doc_name [17:46:44]save OK [17:46:44]Clear old archive folders... [17:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:46:44]tlvbuf is 0041CC00 [17:46:44]SAM_PROTO_ClearQueue [17:46:44]wFMCommunicate request_size=4 [17:46:44]MH_SAM_APDU [17:46:44]CAPDU: 80 09 00 00 [17:46:44]Write to MH i2c: E2 08 00 AC A7 80 09 00 00 00 00 00 00 C5 [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:44]Read from MH i2c: E2 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: E2 03 00 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: E2 03 00 AC A7 00 90 00 C7 [17:46:44]RAPDU: 90 00 [17:46:44]wFMCommunicate OK [17:46:44]SAM_PROTO_ClearQueue done [17:46:44]KKMCreateOFDPacket [17:46:44]OFDProtocolAddRootSTLVToBuf [17:46:44]FM_MakeSignedData [17:46:44]FM_MakeSignedData [17:46:44]SAM_PROTO_SignData [17:46:44]wFMCommunicate request_size=4 [17:46:44]MH_SAM_APDU [17:46:44]CAPDU: 80 0D 01 02 [17:46:44]Write to MH i2c: E2 08 00 AD A7 80 0D 01 02 00 00 00 00 CD [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:44]Read from MH i2c: E2 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: E2 03 00 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: E2 03 00 AD A7 00 90 00 C8 [17:46:44]RAPDU: 90 00 [17:46:44]wFMCommunicate OK [17:46:44]wFMCommunicate request_size=255 [17:46:44]MH_SAM_APDU [17:46:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 93 43 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 73 01 00 35 04 06 00 [17:46:44]Write to MH i2c: E2 02 01 AE A7 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 93 43 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 73 01 00 35 04 06 00 00 00 09 [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:45]Read from MH i2c: E2 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 03 00 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 03 00 AE A7 00 90 00 C9 [17:46:45]RAPDU: 90 00 [17:46:45]wFMCommunicate OK [17:46:45]wFMCommunicate request_size=11 [17:46:45]MH_SAM_APDU [17:46:45]CAPDU: 80 0D 02 02 06 61 2B AB 49 9A 4D [17:46:45]Write to MH i2c: E2 0E 00 AF A7 80 0D 02 02 06 00 61 2B AB 49 9A 4D 00 00 43 [17:46:45]Write i2c OK [17:46:45]MH_I2C_Read... [17:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:45]Read from MH i2c: E2 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 03 00 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 03 00 AF A7 00 90 00 CA [17:46:45]RAPDU: 90 00 [17:46:45]wFMCommunicate OK [17:46:45]wFMCommunicate request_size=4 [17:46:45]MH_SAM_APDU [17:46:45]CAPDU: 80 0D 03 02 [17:46:45]Write to MH i2c: E2 08 00 B0 A7 80 0D 03 02 00 00 00 00 D2 [17:46:45]Write i2c OK [17:46:45]MH_I2C_Read... [17:46:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:45]Read from MH i2c: E2 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 0B 00 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 0B 00 B0 A7 00 32 79 8D E4 7A B3 2A 92 90 00 D8 [17:46:45]RAPDU: 32 79 8D E4 7A B3 2A 92 90 00 [17:46:45]wFMCommunicate OK [17:46:45]SAM_PROTO_SignData done [17:46:45]FM_MakeSignedData done [17:46:45]CreateOFDProtocolMessage [17:46:45]wFMCommunicate request_size=4 [17:46:45]MH_SAM_APDU [17:46:45]CAPDU: 80 11 00 00 [17:46:45]Write to MH i2c: E2 08 00 B1 A7 80 11 00 00 00 00 00 00 D2 [17:46:45]Write i2c OK [17:46:45]MH_I2C_Read... [17:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:45]Read from MH i2c: E2 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 17 00 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: E2 17 00 B1 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 22 [17:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:46:45]wFMCommunicate OK [17:46:45]CreateOFDProtocolMessage done [17:46:45]OFDSenderStorePacket 94985 [17:46:45]StoreOFDPacket docnum=94985 [17:46:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 79 39 08 01 74 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 93 43 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 73 01 00 35 04 06 00 61 2B AB 49 9A 4D 32 79 8D E4 7A B3 2A 92 [17:46:45]CheckFolder [17:46:45]dirname=/storage/ofd_packets [17:46:45]CheckFolder done [17:46:45]ProducePacketName [17:46:45]name=ofd_packets/00094985 [17:46:45]NVStorageSaveData ofd_packets/00094985 [17:46:45]File name is /storage/ofd_packets/00094985 [17:46:45]Write 302 bytes [17:46:45]NVStorageSaveData done [17:46:45]OFDSenderStorePacket done [17:46:45]KKMCreateOFDPacket done [17:46:45]NVStorageSaveData kkm_last_timestamp [17:46:45]File name is /storage/kkm_last_timestamp [17:46:45]Write 4 bytes [17:46:45]NVStorageSaveData done [17:46:45]ExternCall_PrintAddStr [17:46:45]wPrintStart [17:46:45]Write to MH i2c: 01 00 00 B2 A7 59 [17:46:45]Write i2c OK [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: 01 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: 01 07 00 [17:46:45]MH_I2C_Read... [17:46:45]Read from MH i2c: 01 07 00 B2 A7 00 80 00 00 00 FF 0F EE [17:46:45]RasterBufferAndPrint [17:46:45]line Счет N : (1)195944 [17:46:45]line ИНН: 02508201610067 [17:46:45]line Контрольно-Кассовый Чек [17:46:45]line ПРОДАЖА [17:46:45]line ТРК (МРК, ГНК) : 13 [17:46:45]line Товар: 2710124130 [17:46:45]line SUPER 92-К-5 [17:46:45]line 15.650 * 63.90 [17:46:45]line = 1000.04 [17:46:45]line НДС 12% НСП 1% [17:46:45]line > о реализуемом товаре [17:46:45]line ИТОГО: 1000.04 [17:46:45]line НСП 1% : 8.85 [17:46:45]line НДС 12% : 106.20 [17:46:45]line Наличными: 0.00 [17:46:45]line Безнал.: 1000.04 [17:46:45]line Место: АЗС № 6 "Партнер Нефть" [17:46:45]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:46:45]line СНО: Общий режим [17:46:45]line Чек 160 11.03.2024 17:46 [17:46:45]line Смена: 326 ФФД: 1.0 [17:46:45]line ЗНМ: 0300000009 [17:46:45]line РНМ: 0000000000090555 [17:46:45]line Версия ККМ: 001 [17:46:45]line Платежная система: О! деньги [17:46:45]line ФМ: 0000000000874811 [17:46:45]line ФД: 94985 [17:46:45]line ФПД: 106840185215565 [17:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174659&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94985&fm=106840185215565&tin=02508201610067®Number=0000000000090555&sum=100004 [17:46:45]OFD Sender: Processing packet 94985 [packets to send 30, broken 29] [17:46:45]ProducePacketName [17:46:45]name=ofd_packets/00094985 [17:46:45]OFD Sender: To server: pG, [17:46:45]CommunicateWithHost lk.salyk.kg:30040 [17:46:45]ConnectInit lk.salyk.kg [17:46:45]written 0, free lines is 4095 [17:46:45]Connected sock=10 [17:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 79 39 08 01 74 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 93 43 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 73 01 00 35 04 06 00 61 2B AB 49 9A 4D 32 79 8D E4 7A B3 2A 92 [17:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 96 5C 47 00 6A 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 09 73 01 00 F4 03 04 00 EB EE EE 65 B6 04 01 00 00 AC 42 02 E6 2D 69 A2 50 [17:46:45]CommunicateWithHost err = 0 [17:46:45]CheckOFDResponse [17:46:45]1017 (14) - 77093643461234 [17:46:45]1041 (16) - 0000000000874811 [17:46:45]1040 (4) - 94985 [17:46:45]1012 (4) - 11.03.2024 11:45 [17:46:45]1206 (1) - 0 [17:46:45]OFD Sender: Remove packet 94985 [17:46:45]ProducePacketName [17:46:45]name=ofd_packets/00094985 [17:46:45]NVStorageDeleteData [17:46:46]Write to MH i2c: 01 00 00 DC A7 83 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: 01 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: 01 07 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: 01 07 00 DC A7 00 80 00 00 00 60 0D 77 [17:46:46]RasterBufferAndPrint [17:46:46]line [17:46:46]line [17:46:46]line [17:46:46]line [17:46:46]line [17:46:46]written 0, free lines is 3432 [17:46:46]process_action close_receipt done [17:46:46]requested_data is exist [17:46:46]produce_requested_data [17:46:46]requested_item fm.sn is exist - process it [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 11 00 00 [17:46:46]Write to MH i2c: E2 08 00 E3 A7 80 11 00 00 00 00 00 00 04 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 17 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 17 00 E3 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 54 [17:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:46:46]wFMCommunicate OK [17:46:46]requested_item fd.num is exist - process it [17:46:46]SAM_PROTO_GetFieldsCounters [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 13 00 00 [17:46:46]Write to MH i2c: E2 08 00 E4 A7 80 13 00 00 00 00 00 00 07 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 62 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 62 00 E4 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 09 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [17:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 09 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:46]wFMCommunicate OK [17:46:46]SAM_PROTO_GetFieldsCounters done [17:46:46]requested_item shift.num is exist - process it [17:46:46]requested_item shift.opened is exist - process it [17:46:46]req_shift_opened [17:46:46]FM_GetShiftState [17:46:46]SAM_PROTO_GetShiftState [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 13 01 00 [17:46:46]Write to MH i2c: E2 08 00 E5 A7 80 13 01 00 00 00 00 00 09 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:46]OFD Sender: No OFD packet to send [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 0E 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 0E 00 E5 A7 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A5 [17:46:46]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:46:46]wFMCommunicate OK [17:46:46]SAM_PROTO_GetShiftState done [17:46:46]FM_GetShiftState done [17:46:46]req_shift_opened done [17:46:46]requested_item shift.open_date is exist - process it [17:46:46]req_shift_open_date [17:46:46]req_shift_open_date done [17:46:46]produce_requested_data done [17:46:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94985,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:46:46]process_action_free close_receipt [17:46:46]json_value_free [17:46:46]json_value_free done [17:46:46]process_json_proto returns [17:46:46]Send response to host [17:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94985,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:46:46]free response buf [17:46:46]execute_script done [17:46:46]execute_script returns [17:46:46]free content buf [17:46:46]Sock 9.Close socket [17:46:46]Sock 9.Thread stoped [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:03]accept exits with 7 [17:47:03]New connection [17:47:03]New thread 3066871140 created [17:47:03]Thread 3067014500 joined [17:47:03]Waiting for new connection... [17:47:03] Sock 7.Parse request [17:47:03]Sock 7.Check first char [17:47:03]Sock 7.First char is OK [17:47:03]request: POST /json_proto HTTP/1.0 [17:47:03]Method: POST [17:47:03]URL: /json_proto [17:47:03]Method is POST - this is cgi request [17:47:03]url: /json_proto [17:47:03]query_string will be loaded in cgi processing [17:47:03]execute_cgi json_proto POST (null) [17:47:03]execute_cgi path=json_proto method=POST [17:47:03]POST find Content-Length [17:47:03]Host: 172.17.62.67:8080 [17:47:03]Content-Length: 674 [17:47:03]Content-Type: application/json [17:47:03] [17:47:03]POST finish read [17:47:03]Found Content-Length = 674 [17:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:03]execute_script... [17:47: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)195945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:03]POST & json_proto [17:47:03]process_json_proto [17:47:03]json parsed OK: [17:47:03]protocol is kg_v1.0 [17:47:03]action value=close_receipt [17:47:03]process_action close_receipt [17:47:03]cmd_close_receipt [17:47:03]MH_GetDate [17:47:03]Write to MH i2c: F0 00 00 E6 A7 7C [17:47:03]Write i2c OK [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: F0 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: F0 05 00 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: F0 05 00 E6 A7 00 A6 43 EF 65 BE [17:47:03]GetLastDocTimeStamp 1710179219 [17:47:03]current date 1710179238 [17:47:03]FM_GetShiftState [17:47:03]SAM_PROTO_GetShiftState [17:47:03]wFMCommunicate request_size=4 [17:47:03]MH_SAM_APDU [17:47:03]CAPDU: 80 13 01 00 [17:47:03]Write to MH i2c: E2 08 00 E7 A7 80 13 01 00 00 00 00 00 0B [17:47:03]Write i2c OK [17:47:03]MH_I2C_Read... [17:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:03]Read from MH i2c: E2 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: E2 0E 00 [17:47:03]MH_I2C_Read... [17:47:03]Read from MH i2c: E2 0E 00 E7 A7 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A7 [17:47:03]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:47:03]wFMCommunicate OK [17:47:03]SAM_PROTO_GetShiftState done [17:47:03]FM_GetShiftState done [17:47:03]opened in 1710115571 [17:47:03]opened+sec_in_day 1710201971 [17:47:03]quantity*price = 50055 [17:47:03]sum+1 = 50056 [17:47:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 161 11.03.2024 17:47 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94986 ФПД: 181396067764874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174718&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94986&fm=181396067764874&tin=02508201610067®Number=0000000000090555&sum=50000 [17:47:04]StoreToDocumentArchive [17:47:04]shift 326 fd 94986 [17:47:04]save to /storage/0326/doc_00094986 [17:47:04]save last doc name /storage/0326/doc_00094986 to /storage/kkm_last_doc_name [17:47:04]save OK [17:47:04]Clear old archive folders... [17:47:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:47:04]tlvbuf is 003904C0 [17:47:04]SAM_PROTO_ClearQueue [17:47:04]wFMCommunicate request_size=4 [17:47:04]MH_SAM_APDU [17:47:04]CAPDU: 80 09 00 00 [17:47:04]Write to MH i2c: E2 08 00 F4 A7 80 09 00 00 00 00 00 00 0D [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:04]Read from MH i2c: E2 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 03 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 03 00 F4 A7 00 90 00 0F [17:47:04]RAPDU: 90 00 [17:47:04]wFMCommunicate OK [17:47:04]SAM_PROTO_ClearQueue done [17:47:04]KKMCreateOFDPacket [17:47:04]OFDProtocolAddRootSTLVToBuf [17:47:04]FM_MakeSignedData [17:47:04]FM_MakeSignedData [17:47:04]SAM_PROTO_SignData [17:47:04]wFMCommunicate request_size=4 [17:47:04]MH_SAM_APDU [17:47:04]CAPDU: 80 0D 01 02 [17:47:04]Write to MH i2c: E2 08 00 F5 A7 80 0D 01 02 00 00 00 00 15 [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:04]Read from MH i2c: E2 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 03 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 03 00 F5 A7 00 90 00 10 [17:47:04]RAPDU: 90 00 [17:47:04]wFMCommunicate OK [17:47:04]wFMCommunicate request_size=255 [17:47:04]MH_SAM_APDU [17:47:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A6 43 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 73 01 00 35 04 06 00 A4 FA 90 2E [17:47:04]Write to MH i2c: E2 02 01 F6 A7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A6 43 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 73 01 00 35 04 06 00 A4 FA 90 2E 00 00 ED [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:04]Read from MH i2c: E2 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 03 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 03 00 F6 A7 00 90 00 11 [17:47:04]RAPDU: 90 00 [17:47:04]wFMCommunicate OK [17:47:04]wFMCommunicate request_size=7 [17:47:04]MH_SAM_APDU [17:47:04]CAPDU: 80 0D 02 02 02 CA 8A [17:47:04]Write to MH i2c: E2 0A 00 F7 A7 80 0D 02 02 02 00 CA 8A 00 00 70 [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:04]Read from MH i2c: E2 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 03 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 03 00 F7 A7 00 90 00 12 [17:47:04]RAPDU: 90 00 [17:47:04]wFMCommunicate OK [17:47:04]wFMCommunicate request_size=4 [17:47:04]MH_SAM_APDU [17:47:04]CAPDU: 80 0D 03 02 [17:47:04]Write to MH i2c: E2 08 00 F8 A7 80 0D 03 02 00 00 00 00 1A [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:04]Read from MH i2c: E2 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 0B 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 0B 00 F8 A7 00 30 0E BA B3 BE B7 7F 99 90 00 53 [17:47:04]RAPDU: 30 0E BA B3 BE B7 7F 99 90 00 [17:47:04]wFMCommunicate OK [17:47:04]SAM_PROTO_SignData done [17:47:04]FM_MakeSignedData done [17:47:04]CreateOFDProtocolMessage [17:47:04]wFMCommunicate request_size=4 [17:47:04]MH_SAM_APDU [17:47:04]CAPDU: 80 11 00 00 [17:47:04]Write to MH i2c: E2 08 00 F9 A7 80 11 00 00 00 00 00 00 1A [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:04]Read from MH i2c: E2 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 17 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: E2 17 00 F9 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6A [17:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:47:04]wFMCommunicate OK [17:47:04]CreateOFDProtocolMessage done [17:47:04]OFDSenderStorePacket 94986 [17:47:04]StoreOFDPacket docnum=94986 [17:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 A7 E5 04 01 E1 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A6 43 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 73 01 00 35 04 06 00 A4 FA 90 2E CA 8A 30 0E BA B3 BE B7 7F 99 [17:47:04]CheckFolder [17:47:04]dirname=/storage/ofd_packets [17:47:04]CheckFolder done [17:47:04]ProducePacketName [17:47:04]name=ofd_packets/00094986 [17:47:04]NVStorageSaveData ofd_packets/00094986 [17:47:04]File name is /storage/ofd_packets/00094986 [17:47:04]Write 298 bytes [17:47:04]NVStorageSaveData done [17:47:04]OFDSenderStorePacket done [17:47:04]KKMCreateOFDPacket done [17:47:04]NVStorageSaveData kkm_last_timestamp [17:47:04]File name is /storage/kkm_last_timestamp [17:47:04]Write 4 bytes [17:47:04]NVStorageSaveData done [17:47:04]ExternCall_PrintAddStr [17:47:04]wPrintStart [17:47:04]Write to MH i2c: 01 00 00 FA A7 A1 [17:47:04]Write i2c OK [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: 01 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: 01 07 00 [17:47:04]MH_I2C_Read... [17:47:04]Read from MH i2c: 01 07 00 FA A7 00 80 00 00 00 FF 0F 36 [17:47:04]RasterBufferAndPrint [17:47:04]line Счет N : (1)195945 [17:47:04]line ИНН: 02508201610067 [17:47:04]line Контрольно-Кассовый Чек [17:47:04]line ПРОДАЖА [17:47:04]line ТРК (МРК, ГНК) : 61 [17:47:04]line Товар: 2710194210 [17:47:04]line ДТ-К-5 [17:47:04]line 7.060 * 70.90 [17:47:04]line = 500.55 [17:47:04]line НДС 12% НСП 1% [17:47:04]line > о реализуемом товаре [17:47:04]line ОКРУГЛЕНИЕ: -0.55 [17:47:04]line ИТОГО: 500.00 [17:47:04]line Внесено: 500.00 [17:47:04]line СДАЧА: 0.00 [17:47:04]line НСП 1% : 4.43 [17:47:04]line НДС 12% : 53.16 [17:47:04]line Наличными: 500.00 [17:47:04]line Безнал.: 0.00 [17:47:04]line Место: АЗС № 6 "Партнер Нефть" [17:47:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:47:04]line СНО: Общий режим [17:47:04]line Чек 161 11.03.2024 17:47 [17:47:04]line Смена: 326 ФФД: 1.0 [17:47:04]line ЗНМ: 0300000009 [17:47:04]line РНМ: 0000000000090555 [17:47:04]line Версия ККМ: 001 [17:47:04]line ФМ: 0000000000874811 [17:47:04]line ФД: 94986 [17:47:04]line ФПД: 181396067764874 [17:47:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T174718&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94986&fm=181396067764874&tin=02508201610067®Number=0000000000090555&sum=50000 [17:47:05]OFD Sender: Processing packet 94986 [packets to send 30, broken 29] [17:47:05]ProducePacketName [17:47:05]name=ofd_packets/00094986 [17:47:05]OFD Sender: To server: pG, [17:47:05]CommunicateWithHost lk.salyk.kg:30040 [17:47:05]written 0, free lines is 4095 [17:47:05]ConnectInit lk.salyk.kg [17:47:05]Connected sock=10 [17:47: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 31 31 0C 01 00 00 A7 E5 04 01 E1 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 A6 43 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 73 01 00 35 04 06 00 A4 FA 90 2E CA 8A 30 0E BA B3 BE B7 7F 99 [17:47: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 31 31 4F 00 00 00 80 68 47 00 B0 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0A 73 01 00 F4 03 04 00 FF EE EE 65 B6 04 01 00 00 CD 56 B3 9D BC F9 BA 32 [17:47:05]CommunicateWithHost err = 0 [17:47:05]CheckOFDResponse [17:47:05]1017 (14) - 77093643461234 [17:47:05]1041 (16) - 0000000000874811 [17:47:05]1040 (4) - 94986 [17:47:05]1012 (4) - 11.03.2024 11:46 [17:47:05]1206 (1) - 0 [17:47:05]OFD Sender: Remove packet 94986 [17:47:05]ProducePacketName [17:47:05]name=ofd_packets/00094986 [17:47:05]NVStorageDeleteData [17:47:05]Write to MH i2c: 01 00 00 25 A8 CD [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: 01 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: 01 07 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: 01 07 00 25 A8 00 80 00 00 00 4A 0D AB [17:47:05]RasterBufferAndPrint [17:47:05]line [17:47:05]line [17:47:05]line [17:47:05]line [17:47:05]line [17:47:05]written 0, free lines is 3408 [17:47:05]process_action close_receipt done [17:47:05]requested_data is exist [17:47:05]produce_requested_data [17:47:05]requested_item fm.sn is exist - process it [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 11 00 00 [17:47:05]Write to MH i2c: E2 08 00 2C A8 80 11 00 00 00 00 00 00 4E [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:05]Read from MH i2c: E2 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 17 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 17 00 2C A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9E [17:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:47:05]wFMCommunicate OK [17:47:05]requested_item fd.num is exist - process it [17:47:05]SAM_PROTO_GetFieldsCounters [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 13 00 00 [17:47:05]Write to MH i2c: E2 08 00 2D A8 80 13 00 00 00 00 00 00 51 [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:05]Read from MH i2c: E2 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 62 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 62 00 2D A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [17:47: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:05]wFMCommunicate OK [17:47:05]SAM_PROTO_GetFieldsCounters done [17:47:05]requested_item shift.num is exist - process it [17:47:05]requested_item shift.opened is exist - process it [17:47:05]req_shift_opened [17:47:05]FM_GetShiftState [17:47:05]SAM_PROTO_GetShiftState [17:47:05]wFMCommunicate request_size=4 [17:47:05]MH_SAM_APDU [17:47:05]CAPDU: 80 13 01 00 [17:47:05]Write to MH i2c: E2 08 00 2E A8 80 13 01 00 00 00 00 00 53 [17:47:05]Write i2c OK [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 [17:47:05]MH_I2C_Read... [17:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:05]Read from MH i2c: E2 0E 00 [17:47:05]MH_I2C_Read... [17:47:05]Read from MH i2c: E2 0E 00 2E A8 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EF [17:47:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:47:05]wFMCommunicate OK [17:47:05]SAM_PROTO_GetShiftState done [17:47:05]FM_GetShiftState done [17:47:05]req_shift_opened done [17:47:05]requested_item shift.open_date is exist - process it [17:47:05]req_shift_open_date [17:47:05]req_shift_open_date done [17:47:05]produce_requested_data done [17:47:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94986,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:47:05]process_action_free close_receipt [17:47:05]json_value_free [17:47:05]json_value_free done [17:47:05]process_json_proto returns [17:47:05]Send response to host [17:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94986,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:47:05]free response buf [17:47:05]execute_script done [17:47:05]execute_script returns [17:47:05]free content buf [17:47:05]Sock 7.Close socket [17:47:05]Sock 7.Thread stoped [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:58:56]accept exits with 9 [17:58:56]New connection [17:58:56]New thread 3067014500 created [17:58:56]Thread 3066871140 joined [17:58:56]Waiting for new connection... [17:58:56] Sock 9.Parse request [17:58:56]Sock 9.Check first char [17:58:56]Sock 9.First char is OK [17:58:56]request: POST /json_proto HTTP/1.0 [17:58:56]Method: POST [17:58:56]URL: /json_proto [17:58:56]Method is POST - this is cgi request [17:58:56]url: /json_proto [17:58:56]query_string will be loaded in cgi processing [17:58:56]execute_cgi json_proto POST (null) [17:58:56]execute_cgi path=json_proto method=POST [17:58:56]POST find Content-Length [17:58:56]Host: 172.17.62.67:8080 [17:58:56]Content-Length: 805 [17:58:56]Content-Type: application/json [17:58:56] [17:58:56]POST finish read [17:58:56]Found Content-Length = 805 [17:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:56]execute_script... [17:58: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)195946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:56]POST & json_proto [17:58:56]process_json_proto [17:58:56]json parsed OK: [17:58:56]protocol is kg_v1.0 [17:58:56]action value=close_receipt [17:58:56]process_action close_receipt [17:58:56]cmd_close_receipt [17:58:56]MH_GetDate [17:58:56]Write to MH i2c: F0 00 00 2F A8 C6 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 05 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: F0 05 00 2F A8 00 70 46 EF 65 D5 [17:58:56]GetLastDocTimeStamp 1710179238 [17:58:56]current date 1710179952 [17:58:56]FM_GetShiftState [17:58:56]SAM_PROTO_GetShiftState [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 13 01 00 [17:58:56]Write to MH i2c: E2 08 00 30 A8 80 13 01 00 00 00 00 00 55 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 0E 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 0E 00 30 A8 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F1 [17:58:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:58:56]wFMCommunicate OK [17:58:56]SAM_PROTO_GetShiftState done [17:58:56]FM_GetShiftState done [17:58:56]opened in 1710115571 [17:58:56]opened+sec_in_day 1710201971 [17:58:56]quantity*price = 100039 [17:58:56]sum+1 = 100041 [17:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 162 11.03.2024 17:59 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94987 ФПД: 200291524541648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T175912&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94987&fm=200291524541648&tin=02508201610067®Number=0000000000090555&sum=100040 [17:58:57]StoreToDocumentArchive [17:58:57]shift 326 fd 94987 [17:58:57]save to /storage/0326/doc_00094987 [17:58:57]save last doc name /storage/0326/doc_00094987 to /storage/kkm_last_doc_name [17:58:57]save OK [17:58:57]Clear old archive folders... [17:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:58:57]tlvbuf is 00554A10 [17:58:57]SAM_PROTO_ClearQueue [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 09 00 00 [17:58:57]Write to MH i2c: E2 08 00 3D A8 80 09 00 00 00 00 00 00 57 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 3D A8 00 90 00 59 [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_ClearQueue done [17:58:57]KKMCreateOFDPacket [17:58:57]OFDProtocolAddRootSTLVToBuf [17:58:57]FM_MakeSignedData [17:58:57]FM_MakeSignedData [17:58:57]SAM_PROTO_SignData [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 01 02 [17:58:57]Write to MH i2c: E2 08 00 3E A8 80 0D 01 02 00 00 00 00 5F [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:57]Read from MH i2c: E2 03 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 03 00 3E A8 00 90 00 5A [17:58:57]RAPDU: 90 00 [17:58:57]wFMCommunicate OK [17:58:57]wFMCommunicate request_size=255 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 70 46 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 73 01 00 35 04 06 00 B6 2A 01 2B [17:58:57]Write to MH i2c: E2 02 01 3F A8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 70 46 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 73 01 00 35 04 06 00 B6 2A 01 2B 00 00 66 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 3F A8 00 90 00 5B [17:58:58]RAPDU: 90 00 [17:58:58]wFMCommunicate OK [17:58:58]wFMCommunicate request_size=7 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 0D 02 02 02 FC D0 [17:58:58]Write to MH i2c: E2 0A 00 40 A8 80 0D 02 02 02 00 FC D0 00 00 32 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 03 00 40 A8 00 90 00 5C [17:58:58]RAPDU: 90 00 [17:58:58]wFMCommunicate OK [17:58:58]wFMCommunicate request_size=4 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 0D 03 02 [17:58:58]Write to MH i2c: E2 08 00 41 A8 80 0D 03 02 00 00 00 00 64 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 0B 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 0B 00 41 A8 00 CE 44 CB 4F 48 04 CE 41 90 00 EC [17:58:58]RAPDU: CE 44 CB 4F 48 04 CE 41 90 00 [17:58:58]wFMCommunicate OK [17:58:58]SAM_PROTO_SignData done [17:58:58]FM_MakeSignedData done [17:58:58]CreateOFDProtocolMessage [17:58:58]wFMCommunicate request_size=4 [17:58:58]MH_SAM_APDU [17:58:58]CAPDU: 80 11 00 00 [17:58:58]Write to MH i2c: E2 08 00 42 A8 80 11 00 00 00 00 00 00 64 [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:58]Read from MH i2c: E2 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 17 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: E2 17 00 42 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [17:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:58:58]wFMCommunicate OK [17:58:58]CreateOFDProtocolMessage done [17:58:58]OFDSenderStorePacket 94987 [17:58:58]StoreOFDPacket docnum=94987 [17:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 7C 5D 04 01 45 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 70 46 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 73 01 00 35 04 06 00 B6 2A 01 2B FC D0 CE 44 CB 4F 48 04 CE 41 [17:58:58]CheckFolder [17:58:58]dirname=/storage/ofd_packets [17:58:58]CheckFolder done [17:58:58]ProducePacketName [17:58:58]name=ofd_packets/00094987 [17:58:58]NVStorageSaveData ofd_packets/00094987 [17:58:58]File name is /storage/ofd_packets/00094987 [17:58:58]Write 298 bytes [17:58:58]NVStorageSaveData done [17:58:58]OFDSenderStorePacket done [17:58:58]KKMCreateOFDPacket done [17:58:58]NVStorageSaveData kkm_last_timestamp [17:58:58]File name is /storage/kkm_last_timestamp [17:58:58]Write 4 bytes [17:58:58]NVStorageSaveData done [17:58:58]ExternCall_PrintAddStr [17:58:58]wPrintStart [17:58:58]Write to MH i2c: 01 00 00 43 A8 EB [17:58:58]Write i2c OK [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 07 00 [17:58:58]MH_I2C_Read... [17:58:58]Read from MH i2c: 01 07 00 43 A8 00 80 00 00 00 FF 0F 80 [17:58:58]RasterBufferAndPrint [17:58:58]line Счет N : (1)195946 [17:58:58]line ИНН: 02508201610067 [17:58:58]line Контрольно-Кассовый Чек [17:58:58]line ПРОДАЖА [17:58:58]line ТРК (МРК, ГНК) : 61 [17:58:58]line Товар: 2710194210 [17:58:58]line ДТ-К-5 [17:58:58]line 14.110 * 70.90 [17:58:58]line = 1000.40 [17:58:58]line НДС 12% НСП 1% [17:58:58]line > о реализуемом товаре [17:58:58]line ИТОГО: 1000.40 [17:58:58]line НСП 1% : 8.85 [17:58:58]line НДС 12% : 106.24 [17:58:58]line Наличными: 0.00 [17:58:58]line Безнал.: 1000.40 [17:58:58]line Место: АЗС № 6 "Партнер Нефть" [17:58:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:58:58]line СНО: Общий режим [17:58:58]line Чек 162 11.03.2024 17:59 [17:58:58]line Смена: 326 ФФД: 1.0 [17:58:58]line ЗНМ: 0300000009 [17:58:58]line РНМ: 0000000000090555 [17:58:58]line Версия ККМ: 001 [17:58:58]line Платежная система: О! деньги [17:58:58]line ФМ: 0000000000874811 [17:58:58]line ФД: 94987 [17:58:58]line ФПД: 200291524541648 [17:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T175912&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94987&fm=200291524541648&tin=02508201610067®Number=0000000000090555&sum=100040 [17:58:58]OFD Sender: Processing packet 94987 [packets to send 30, broken 29] [17:58:58]ProducePacketName [17:58:58]name=ofd_packets/00094987 [17:58:58]OFD Sender: To server: pG, [17:58:58]CommunicateWithHost lk.salyk.kg:30040 [17:58:58]ConnectInit lk.salyk.kg [17:58:58]written 0, free lines is 4095 [17:58:58]Connected sock=10 [17:58: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 31 31 0C 01 00 00 7C 5D 04 01 45 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 70 46 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0B 73 01 00 35 04 06 00 B6 2A 01 2B FC D0 CE 44 CB 4F 48 04 CE 41 [17:58: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 31 31 4F 00 00 00 D0 E5 47 00 18 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 31 31 10 04 04 00 0B 73 01 00 F4 03 04 00 C8 F1 EE 65 B6 04 01 00 00 FB 15 29 7D 08 81 F5 19 [17:58:58]CommunicateWithHost err = 0 [17:58:58]CheckOFDResponse [17:58:58]1017 (14) - 77093643461234 [17:58:58]1041 (16) - 0000000000874811 [17:58:58]1040 (4) - 94987 [17:58:58]1012 (4) - 11.03.2024 11:58 [17:58:58]1206 (1) - 0 [17:58:58]OFD Sender: Remove packet 94987 [17:58:58]ProducePacketName [17:58:58]name=ofd_packets/00094987 [17:58:58]NVStorageDeleteData [17:58:59]Write to MH i2c: 01 00 00 6D A8 15 [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 6D A8 00 80 00 00 00 60 0D 09 [17:58:59]RasterBufferAndPrint [17:58:59]line [17:58:59]line [17:58:59]line [17:58:59]line [17:58:59]line [17:58:59]written 0, free lines is 3430 [17:58:59]process_action close_receipt done [17:58:59]requested_data is exist [17:58:59]produce_requested_data [17:58:59]requested_item fm.sn is exist - process it [17:58:59]wFMCommunicate request_size=4 [17:58:59]MH_SAM_APDU [17:58:59]CAPDU: 80 11 00 00 [17:58:59]Write to MH i2c: E2 08 00 74 A8 80 11 00 00 00 00 00 00 96 [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:59]Read from MH i2c: E2 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: E2 17 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: E2 17 00 74 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E6 [17:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:58:59]wFMCommunicate OK [17:58:59]requested_item fd.num is exist - process it [17:58:59]SAM_PROTO_GetFieldsCounters [17:58:59]wFMCommunicate request_size=4 [17:58:59]MH_SAM_APDU [17:58:59]CAPDU: 80 13 00 00 [17:58:59]Write to MH i2c: E2 08 00 75 A8 80 13 00 00 00 00 00 00 99 [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:59]Read from MH i2c: E2 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: E2 62 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: E2 62 00 75 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [17:58: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:59]wFMCommunicate OK [17:58:59]SAM_PROTO_GetFieldsCounters done [17:58:59]requested_item shift.num is exist - process it [17:58:59]requested_item shift.opened is exist - process it [17:58:59]req_shift_opened [17:58:59]FM_GetShiftState [17:58:59]SAM_PROTO_GetShiftState [17:58:59]wFMCommunicate request_size=4 [17:58:59]MH_SAM_APDU [17:58:59]CAPDU: 80 13 01 00 [17:58:59]Write to MH i2c: E2 08 00 76 A8 80 13 01 00 00 00 00 00 9B [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:59]Read from MH i2c: E2 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: E2 0E 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: E2 0E 00 76 A8 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 37 [17:58:59]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:58:59]wFMCommunicate OK [17:58:59]SAM_PROTO_GetShiftState done [17:58:59]FM_GetShiftState done [17:58:59]req_shift_opened done [17:58:59]requested_item shift.open_date is exist - process it [17:58:59]req_shift_open_date [17:58:59]req_shift_open_date done [17:58:59]produce_requested_data done [17:58:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94987,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:58:59]process_action_free close_receipt [17:58:59]json_value_free [17:58:59]json_value_free done [17:58:59]process_json_proto returns [17:58:59]Send response to host [17:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94987,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:58:59]free response buf [17:58:59]execute_script done [17:58:59]execute_script returns [17:58:59]free content buf [17:58:59]Sock 9.Close socket [17:58:59]Sock 9.Thread stoped [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:20]accept exits with 7 [17:59:20]New connection [17:59:20]New thread 3066871140 created [17:59:20]Thread 3067014500 joined [17:59:20]Waiting for new connection... [17:59:20] Sock 7.Parse request [17:59:20]Sock 7.Check first char [17:59:20]Sock 7.First char is OK [17:59:20]request: POST /json_proto HTTP/1.0 [17:59:20]Method: POST [17:59:20]URL: /json_proto [17:59:20]Method is POST - this is cgi request [17:59:20]url: /json_proto [17:59:20]query_string will be loaded in cgi processing [17:59:20]execute_cgi json_proto POST (null) [17:59:20]execute_cgi path=json_proto method=POST [17:59:20]POST find Content-Length [17:59:20]Host: 172.17.62.67:8080 [17:59:20]Content-Length: 674 [17:59:20]Content-Type: application/json [17:59:20] [17:59:20]POST finish read [17:59:20]Found Content-Length = 674 [17:59:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:20]execute_script... [17:59:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 5.650, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:20]POST & json_proto [17:59:20]process_json_proto [17:59:20]json parsed OK: [17:59:20]protocol is kg_v1.0 [17:59:20]action value=close_receipt [17:59:20]process_action close_receipt [17:59:20]cmd_close_receipt [17:59:20]MH_GetDate [17:59:20]Write to MH i2c: F0 00 00 77 A8 0E [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: F0 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: F0 05 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: F0 05 00 77 A8 00 88 46 EF 65 35 [17:59:20]GetLastDocTimeStamp 1710179952 [17:59:20]current date 1710179976 [17:59:20]FM_GetShiftState [17:59:20]SAM_PROTO_GetShiftState [17:59:20]wFMCommunicate request_size=4 [17:59:20]MH_SAM_APDU [17:59:20]CAPDU: 80 13 01 00 [17:59:20]Write to MH i2c: E2 08 00 78 A8 80 13 01 00 00 00 00 00 9D [17:59:20]Write i2c OK [17:59:20]MH_I2C_Read... [17:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:20]Read from MH i2c: E2 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: E2 0E 00 [17:59:20]MH_I2C_Read... [17:59:20]Read from MH i2c: E2 0E 00 78 A8 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 39 [17:59:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:59:20]wFMCommunicate OK [17:59:20]SAM_PROTO_GetShiftState done [17:59:20]FM_GetShiftState done [17:59:20]opened in 1710115571 [17:59:20]opened+sec_in_day 1710201971 [17:59:20]quantity*price = 40058 [17:59:20]sum+1 = 40060 [17:59:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 163 11.03.2024 17:59 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94988 ФПД: 206647492765527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T175936&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94988&fm=206647492765527&tin=02508201610067®Number=0000000000090555&sum=40000 [17:59:22]StoreToDocumentArchive [17:59:22]shift 326 fd 94988 [17:59:22]save to /storage/0326/doc_00094988 [17:59:22]save last doc name /storage/0326/doc_00094988 to /storage/kkm_last_doc_name [17:59:22]save OK [17:59:22]Clear old archive folders... [17:59:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:59:22]tlvbuf is 005547F0 [17:59:22]SAM_PROTO_ClearQueue [17:59:22]wFMCommunicate request_size=4 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 09 00 00 [17:59:22]Write to MH i2c: E2 08 00 85 A8 80 09 00 00 00 00 00 00 9F [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:22]Read from MH i2c: E2 03 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 03 00 85 A8 00 90 00 A1 [17:59:22]RAPDU: 90 00 [17:59:22]wFMCommunicate OK [17:59:22]SAM_PROTO_ClearQueue done [17:59:22]KKMCreateOFDPacket [17:59:22]OFDProtocolAddRootSTLVToBuf [17:59:22]FM_MakeSignedData [17:59:22]FM_MakeSignedData [17:59:22]SAM_PROTO_SignData [17:59:22]wFMCommunicate request_size=4 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 0D 01 02 [17:59:22]Write to MH i2c: E2 08 00 86 A8 80 0D 01 02 00 00 00 00 A7 [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 03 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 03 00 86 A8 00 90 00 A2 [17:59:22]RAPDU: 90 00 [17:59:22]wFMCommunicate OK [17:59:22]wFMCommunicate request_size=255 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 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 9E 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 A3 00 00 00 F4 03 04 00 88 46 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 73 01 00 35 04 06 00 BB F1 DE 66 [17:59:22]Write to MH i2c: E2 02 01 87 A8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 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 9E 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 A3 00 00 00 F4 03 04 00 88 46 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 73 01 00 35 04 06 00 BB F1 DE 66 00 00 51 [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 03 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 03 00 87 A8 00 90 00 A3 [17:59:22]RAPDU: 90 00 [17:59:22]wFMCommunicate OK [17:59:22]wFMCommunicate request_size=7 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 0D 02 02 02 67 57 [17:59:22]Write to MH i2c: E2 0A 00 88 A8 80 0D 02 02 02 00 67 57 00 00 6C [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 03 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 03 00 88 A8 00 90 00 A4 [17:59:22]RAPDU: 90 00 [17:59:22]wFMCommunicate OK [17:59:22]wFMCommunicate request_size=4 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 0D 03 02 [17:59:22]Write to MH i2c: E2 08 00 89 A8 80 0D 03 02 00 00 00 00 AC [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 0B 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 0B 00 89 A8 00 B4 B6 09 C9 96 0A 3A 60 90 00 23 [17:59:22]RAPDU: B4 B6 09 C9 96 0A 3A 60 90 00 [17:59:22]wFMCommunicate OK [17:59:22]SAM_PROTO_SignData done [17:59:22]FM_MakeSignedData done [17:59:22]CreateOFDProtocolMessage [17:59:22]wFMCommunicate request_size=4 [17:59:22]MH_SAM_APDU [17:59:22]CAPDU: 80 11 00 00 [17:59:22]Write to MH i2c: E2 08 00 8A A8 80 11 00 00 00 00 00 00 AC [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:22]Read from MH i2c: E2 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 17 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: E2 17 00 8A A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FC [17:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:59:22]wFMCommunicate OK [17:59:22]CreateOFDProtocolMessage done [17:59:22]OFDSenderStorePacket 94988 [17:59:22]StoreOFDPacket docnum=94988 [17:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D7 03 04 01 6C A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 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 9E 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 A3 00 00 00 F4 03 04 00 88 46 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 73 01 00 35 04 06 00 BB F1 DE 66 67 57 B4 B6 09 C9 96 0A 3A 60 [17:59:22]CheckFolder [17:59:22]dirname=/storage/ofd_packets [17:59:22]CheckFolder done [17:59:22]ProducePacketName [17:59:22]name=ofd_packets/00094988 [17:59:22]NVStorageSaveData ofd_packets/00094988 [17:59:22]File name is /storage/ofd_packets/00094988 [17:59:22]Write 298 bytes [17:59:22]NVStorageSaveData done [17:59:22]OFDSenderStorePacket done [17:59:22]KKMCreateOFDPacket done [17:59:22]NVStorageSaveData kkm_last_timestamp [17:59:22]File name is /storage/kkm_last_timestamp [17:59:22]Write 4 bytes [17:59:22]NVStorageSaveData done [17:59:22]ExternCall_PrintAddStr [17:59:22]wPrintStart [17:59:22]Write to MH i2c: 01 00 00 8B A8 33 [17:59:22]Write i2c OK [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: 01 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: 01 07 00 [17:59:22]MH_I2C_Read... [17:59:22]Read from MH i2c: 01 07 00 8B A8 00 80 00 00 00 FF 0F C8 [17:59:22]RasterBufferAndPrint [17:59:22]line Счет N : (1)195947 [17:59:22]line ИНН: 02508201610067 [17:59:22]line Контрольно-Кассовый Чек [17:59:22]line ПРОДАЖА [17:59:22]line ТРК (МРК, ГНК) : 51 [17:59:22]line Товар: 2710194210 [17:59:22]line ДТ-К-5 [17:59:22]line 5.650 * 70.90 [17:59:22]line = 400.59 [17:59:22]line НДС 12% НСП 1% [17:59:22]line > о реализуемом товаре [17:59:22]line ОКРУГЛЕНИЕ: -0.59 [17:59:22]line ИТОГО: 400.00 [17:59:22]line Внесено: 400.00 [17:59:22]line СДАЧА: 0.00 [17:59:22]line НСП 1% : 3.54 [17:59:22]line НДС 12% : 42.54 [17:59:22]line Наличными: 400.00 [17:59:22]line Безнал.: 0.00 [17:59:22]line Место: АЗС № 6 "Партнер Нефть" [17:59:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [17:59:22]line СНО: Общий режим [17:59:22]line Чек 163 11.03.2024 17:59 [17:59:22]line Смена: 326 ФФД: 1.0 [17:59:22]line ЗНМ: 0300000009 [17:59:22]line РНМ: 0000000000090555 [17:59:22]line Версия ККМ: 001 [17:59:22]line ФМ: 0000000000874811 [17:59:22]line ФД: 94988 [17:59:22]line ФПД: 206647492765527 [17:59:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T175936&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94988&fm=206647492765527&tin=02508201610067®Number=0000000000090555&sum=40000 [17:59:22]OFD Sender: Processing packet 94988 [packets to send 30, broken 29] [17:59:22]ProducePacketName [17:59:22]name=ofd_packets/00094988 [17:59:22]OFD Sender: To server: pG, [17:59:22]CommunicateWithHost lk.salyk.kg:30040 [17:59:22]ConnectInit lk.salyk.kg [17:59:22]written 0, free lines is 4095 [17:59:22]Connected sock=10 [17:59:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 D7 03 04 01 6C A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 7B 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 9E 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 A3 00 00 00 F4 03 04 00 88 46 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0C 73 01 00 35 04 06 00 BB F1 DE 66 67 57 B4 B6 09 C9 96 0A 3A 60 [17:59:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C0 C3 47 00 4F 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 31 31 10 04 04 00 0C 73 01 00 F4 03 04 00 E1 F1 EE 65 B6 04 01 00 00 D6 C3 6D 9F E2 63 49 F4 [17:59:23]CommunicateWithHost err = 0 [17:59:23]CheckOFDResponse [17:59:23]1017 (14) - 77093643461234 [17:59:23]1041 (16) - 0000000000874811 [17:59:23]1040 (4) - 94988 [17:59:23]1012 (4) - 11.03.2024 11:58 [17:59:23]1206 (1) - 0 [17:59:23]OFD Sender: Remove packet 94988 [17:59:23]ProducePacketName [17:59:23]name=ofd_packets/00094988 [17:59:23]NVStorageDeleteData [17:59:23]Write to MH i2c: 01 00 00 B6 A8 5E [17:59:23]Write i2c OK [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: 01 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: 01 07 00 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: 01 07 00 B6 A8 00 80 00 00 00 53 0D 45 [17:59:23]RasterBufferAndPrint [17:59:23]line [17:59:23]line [17:59:23]line [17:59:23]line [17:59:23]line [17:59:23]written 0, free lines is 3419 [17:59:23]process_action close_receipt done [17:59:23]requested_data is exist [17:59:23]produce_requested_data [17:59:23]requested_item fm.sn is exist - process it [17:59:23]wFMCommunicate request_size=4 [17:59:23]MH_SAM_APDU [17:59:23]CAPDU: 80 11 00 00 [17:59:23]Write to MH i2c: E2 08 00 BD A8 80 11 00 00 00 00 00 00 DF [17:59:23]Write i2c OK [17:59:23]MH_I2C_Read... [17:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:23]Read from MH i2c: E2 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 17 00 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 17 00 BD A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2F [17:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [17:59:23]wFMCommunicate OK [17:59:23]requested_item fd.num is exist - process it [17:59:23]SAM_PROTO_GetFieldsCounters [17:59:23]wFMCommunicate request_size=4 [17:59:23]MH_SAM_APDU [17:59:23]CAPDU: 80 13 00 00 [17:59:23]Write to MH i2c: E2 08 00 BE A8 80 13 00 00 00 00 00 00 E2 [17:59:23]Write i2c OK [17:59:23]MH_I2C_Read... [17:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:23]Read from MH i2c: E2 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 62 00 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 62 00 BE A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [17:59:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:23]wFMCommunicate OK [17:59:23]SAM_PROTO_GetFieldsCounters done [17:59:23]requested_item shift.num is exist - process it [17:59:23]requested_item shift.opened is exist - process it [17:59:23]req_shift_opened [17:59:23]FM_GetShiftState [17:59:23]SAM_PROTO_GetShiftState [17:59:23]wFMCommunicate request_size=4 [17:59:23]MH_SAM_APDU [17:59:23]CAPDU: 80 13 01 00 [17:59:23]Write to MH i2c: E2 08 00 BF A8 80 13 01 00 00 00 00 00 E4 [17:59:23]Write i2c OK [17:59:23]MH_I2C_Read... [17:59:23]OFD Sender: No OFD packet to send [17:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:23]Read from MH i2c: E2 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 0E 00 [17:59:23]MH_I2C_Read... [17:59:23]Read from MH i2c: E2 0E 00 BF A8 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 80 [17:59:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [17:59:23]wFMCommunicate OK [17:59:23]SAM_PROTO_GetShiftState done [17:59:23]FM_GetShiftState done [17:59:23]req_shift_opened done [17:59:23]requested_item shift.open_date is exist - process it [17:59:23]req_shift_open_date [17:59:23]req_shift_open_date done [17:59:23]produce_requested_data done [17:59:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94988,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [17:59:23]process_action_free close_receipt [17:59:23]json_value_free [17:59:23]json_value_free done [17:59:23]process_json_proto returns [17:59:23]Send response to host [17:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94988,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [17:59:23]free response buf [17:59:23]execute_script done [17:59:23]execute_script returns [17:59:23]free content buf [17:59:23]Sock 7.Close socket [17:59:23]Sock 7.Thread stoped [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:09]accept exits with 9 [18:02:09]New connection [18:02:09]New thread 3067014500 created [18:02:09]Thread 3066871140 joined [18:02:09]Waiting for new connection... [18:02:09] Sock 9.Parse request [18:02:09]Sock 9.Check first char [18:02:09]Sock 9.First char is OK [18:02:09]request: POST /json_proto HTTP/1.0 [18:02:09]Method: POST [18:02:09]URL: /json_proto [18:02:09]Method is POST - this is cgi request [18:02:09]url: /json_proto [18:02:09]query_string will be loaded in cgi processing [18:02:09]execute_cgi json_proto POST (null) [18:02:09]execute_cgi path=json_proto method=POST [18:02:09]POST find Content-Length [18:02:09]Host: 172.17.62.67:8080 [18:02:09]Content-Length: 810 [18:02:09]Content-Type: application/json [18:02:09] [18:02:09]POST finish read [18:02:09]Found Content-Length = 810 [18:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.960, "sum" : 700.34, "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" : 700.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:09]execute_script... [18:02: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)195948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.960, "sum" : 700.34, "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" : 700.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:09]POST & json_proto [18:02:09]process_json_proto [18:02:09]json parsed OK: [18:02:09]protocol is kg_v1.0 [18:02:09]action value=close_receipt [18:02:09]process_action close_receipt [18:02:09]cmd_close_receipt [18:02:09]MH_GetDate [18:02:09]Write to MH i2c: F0 00 00 C0 A8 57 [18:02:09]Write i2c OK [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: F0 [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: F0 05 00 [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: F0 05 00 C0 A8 00 31 47 EF 65 28 [18:02:09]GetLastDocTimeStamp 1710179976 [18:02:09]current date 1710180145 [18:02:09]FM_GetShiftState [18:02:09]SAM_PROTO_GetShiftState [18:02:09]wFMCommunicate request_size=4 [18:02:09]MH_SAM_APDU [18:02:09]CAPDU: 80 13 01 00 [18:02:09]Write to MH i2c: E2 08 00 C1 A8 80 13 01 00 00 00 00 00 E6 [18:02:09]Write i2c OK [18:02:09]MH_I2C_Read... [18:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:09]Read from MH i2c: E2 [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: E2 0E 00 [18:02:09]MH_I2C_Read... [18:02:09]Read from MH i2c: E2 0E 00 C1 A8 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 82 [18:02:09]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:02:09]wFMCommunicate OK [18:02:09]SAM_PROTO_GetShiftState done [18:02:09]FM_GetShiftState done [18:02:09]opened in 1710115571 [18:02:09]opened+sec_in_day 1710201971 [18:02:09]quantity*price = 70034 [18:02:09]sum+1 = 70035 [18:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.34 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.34 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 164 11.03.2024 18:02 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94989 ФПД: 63679902366478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T180225&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94989&fm=63679902366478&tin=02508201610067®Number=0000000000090555&sum=70034 [18:02:10]StoreToDocumentArchive [18:02:10]shift 326 fd 94989 [18:02:10]save to /storage/0326/doc_00094989 [18:02:10]save last doc name /storage/0326/doc_00094989 to /storage/kkm_last_doc_name [18:02:10]save OK [18:02:10]Clear old archive folders... [18:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:02:10]tlvbuf is 004B2E80 [18:02:10]SAM_PROTO_ClearQueue [18:02:10]wFMCommunicate request_size=4 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 09 00 00 [18:02:10]Write to MH i2c: E2 08 00 CE A8 80 09 00 00 00 00 00 00 E8 [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:10]Read from MH i2c: E2 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 CE A8 00 90 00 EA [18:02:10]RAPDU: 90 00 [18:02:10]wFMCommunicate OK [18:02:10]SAM_PROTO_ClearQueue done [18:02:10]KKMCreateOFDPacket [18:02:10]OFDProtocolAddRootSTLVToBuf [18:02:10]FM_MakeSignedData [18:02:10]FM_MakeSignedData [18:02:10]SAM_PROTO_SignData [18:02:10]wFMCommunicate request_size=4 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 0D 01 02 [18:02:10]Write to MH i2c: E2 08 00 CF A8 80 0D 01 02 00 00 00 00 F0 [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:10]Read from MH i2c: E2 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 [18:02:10]MH_I2C_Read... [18:02:10]Read from MH i2c: E2 03 00 CF A8 00 90 00 EB [18:02:10]RAPDU: 90 00 [18:02:10]wFMCommunicate OK [18:02:10]wFMCommunicate request_size=255 [18:02:10]MH_SAM_APDU [18:02:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 00 00 00 00 00 00 39 04 06 00 92 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 31 47 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 73 01 00 35 04 06 00 [18:02:10]Write to MH i2c: E2 02 01 D0 A8 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 00 00 00 00 00 00 39 04 06 00 92 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 31 47 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 73 01 00 35 04 06 00 00 00 57 [18:02:10]Write i2c OK [18:02:10]MH_I2C_Read... [18:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:11]Read from MH i2c: E2 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: E2 03 00 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: E2 03 00 D0 A8 00 90 00 EC [18:02:11]RAPDU: 90 00 [18:02:11]wFMCommunicate OK [18:02:11]wFMCommunicate request_size=11 [18:02:11]MH_SAM_APDU [18:02:11]CAPDU: 80 0D 02 02 06 39 EA A1 F5 BB 0E [18:02:11]Write to MH i2c: E2 0E 00 D1 A8 80 0D 02 02 06 00 39 EA A1 F5 BB 0E 00 00 81 [18:02:11]Write i2c OK [18:02:11]MH_I2C_Read... [18:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:11]Read from MH i2c: E2 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: E2 03 00 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: E2 03 00 D1 A8 00 90 00 ED [18:02:11]RAPDU: 90 00 [18:02:11]wFMCommunicate OK [18:02:11]wFMCommunicate request_size=4 [18:02:11]MH_SAM_APDU [18:02:11]CAPDU: 80 0D 03 02 [18:02:11]Write to MH i2c: E2 08 00 D2 A8 80 0D 03 02 00 00 00 00 F5 [18:02:11]Write i2c OK [18:02:11]MH_I2C_Read... [18:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:11]Read from MH i2c: E2 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: E2 0B 00 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: E2 0B 00 D2 A8 00 98 67 15 F9 AC 45 C3 74 90 00 2B [18:02:11]RAPDU: 98 67 15 F9 AC 45 C3 74 90 00 [18:02:11]wFMCommunicate OK [18:02:11]SAM_PROTO_SignData done [18:02:11]FM_MakeSignedData done [18:02:11]CreateOFDProtocolMessage [18:02:11]wFMCommunicate request_size=4 [18:02:11]MH_SAM_APDU [18:02:11]CAPDU: 80 11 00 00 [18:02:11]Write to MH i2c: E2 08 00 D3 A8 80 11 00 00 00 00 00 00 F5 [18:02:11]Write i2c OK [18:02:11]MH_I2C_Read... [18:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:11]Read from MH i2c: E2 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: E2 17 00 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: E2 17 00 D3 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 45 [18:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:02:11]wFMCommunicate OK [18:02:11]CreateOFDProtocolMessage done [18:02:11]OFDSenderStorePacket 94989 [18:02:11]StoreOFDPacket docnum=94989 [18:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 39 E9 08 01 E6 04 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 00 00 00 00 00 00 39 04 06 00 92 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 31 47 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 73 01 00 35 04 06 00 39 EA A1 F5 BB 0E 98 67 15 F9 AC 45 C3 74 [18:02:11]CheckFolder [18:02:11]dirname=/storage/ofd_packets [18:02:11]CheckFolder done [18:02:11]ProducePacketName [18:02:11]name=ofd_packets/00094989 [18:02:11]NVStorageSaveData ofd_packets/00094989 [18:02:11]File name is /storage/ofd_packets/00094989 [18:02:11]Write 302 bytes [18:02:11]NVStorageSaveData done [18:02:11]OFDSenderStorePacket done [18:02:11]KKMCreateOFDPacket done [18:02:11]NVStorageSaveData kkm_last_timestamp [18:02:11]File name is /storage/kkm_last_timestamp [18:02:11]Write 4 bytes [18:02:11]NVStorageSaveData done [18:02:11]ExternCall_PrintAddStr [18:02:11]wPrintStart [18:02:11]Write to MH i2c: 01 00 00 D4 A8 7C [18:02:11]Write i2c OK [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: 01 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: 01 07 00 [18:02:11]MH_I2C_Read... [18:02:11]Read from MH i2c: 01 07 00 D4 A8 00 80 00 00 00 FF 0F 11 [18:02:11]RasterBufferAndPrint [18:02:11]line Счет N : (1)195948 [18:02:11]line ИНН: 02508201610067 [18:02:11]line Контрольно-Кассовый Чек [18:02:11]line ПРОДАЖА [18:02:11]line ТРК (МРК, ГНК) : 23 [18:02:11]line Товар: 2710124130 [18:02:11]line SUPER 92-К-5 [18:02:11]line 10.960 * 63.90 [18:02:11]line = 700.34 [18:02:11]line НДС 12% НСП 1% [18:02:11]line > о реализуемом товаре [18:02:11]line ИТОГО: 700.34 [18:02:11]line НСП 1% : 6.20 [18:02:11]line НДС 12% : 74.37 [18:02:11]line Наличными: 0.00 [18:02:11]line Безнал.: 700.34 [18:02:11]line Место: АЗС № 6 "Партнер Нефть" [18:02:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:02:11]line СНО: Общий режим [18:02:11]line Чек 164 11.03.2024 18:02 [18:02:11]line Смена: 326 ФФД: 1.0 [18:02:11]line ЗНМ: 0300000009 [18:02:11]line РНМ: 0000000000090555 [18:02:11]line Версия ККМ: 001 [18:02:11]line Платежная система: Бакай Банк [18:02:11]line ФМ: 0000000000874811 [18:02:11]line ФД: 94989 [18:02:11]line ФПД: 63679902366478 [18:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T180225&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94989&fm=63679902366478&tin=02508201610067®Number=0000000000090555&sum=70034 [18:02:11]OFD Sender: Processing packet 94989 [packets to send 30, broken 29] [18:02:11]ProducePacketName [18:02:11]name=ofd_packets/00094989 [18:02:11]OFD Sender: To server: pG, [18:02:11]CommunicateWithHost lk.salyk.kg:30040 [18:02:11]ConnectInit lk.salyk.kg [18:02:11]written 0, free lines is 4095 [18:02:11]Connected sock=10 [18:02: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 31 31 10 01 00 00 39 E9 08 01 E6 04 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 00 00 00 00 00 00 39 04 06 00 92 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 31 47 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0D 73 01 00 35 04 06 00 39 EA A1 F5 BB 0E 98 67 15 F9 AC 45 C3 74 [18:02:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D2 2E 47 00 EC 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 31 31 10 04 04 00 0D 73 01 00 F4 03 04 00 89 F2 EE 65 B6 04 01 00 00 69 A3 E5 44 49 93 41 5A [18:02:11]CommunicateWithHost err = 0 [18:02:11]CheckOFDResponse [18:02:11]1017 (14) - 77093643461234 [18:02:11]1041 (16) - 0000000000874811 [18:02:11]1040 (4) - 94989 [18:02:11]1012 (4) - 11.03.2024 12:01 [18:02:11]1206 (1) - 0 [18:02:11]OFD Sender: Remove packet 94989 [18:02:11]ProducePacketName [18:02:11]name=ofd_packets/00094989 [18:02:11]NVStorageDeleteData [18:02:12]Write to MH i2c: 01 00 00 FE A8 A6 [18:02:12]Write i2c OK [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: 01 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: 01 07 00 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: 01 07 00 FE A8 00 80 00 00 00 66 0D A0 [18:02:12]RasterBufferAndPrint [18:02:12]line [18:02:12]line [18:02:12]line [18:02:12]line [18:02:12]line [18:02:12]written 0, free lines is 3436 [18:02:12]process_action close_receipt done [18:02:12]requested_data is exist [18:02:12]produce_requested_data [18:02:12]requested_item fm.sn is exist - process it [18:02:12]wFMCommunicate request_size=4 [18:02:12]MH_SAM_APDU [18:02:12]CAPDU: 80 11 00 00 [18:02:12]Write to MH i2c: E2 08 00 05 A9 80 11 00 00 00 00 00 00 28 [18:02:12]Write i2c OK [18:02:12]MH_I2C_Read... [18:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:12]Read from MH i2c: E2 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 17 00 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 17 00 05 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 78 [18:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:02:12]wFMCommunicate OK [18:02:12]requested_item fd.num is exist - process it [18:02:12]SAM_PROTO_GetFieldsCounters [18:02:12]wFMCommunicate request_size=4 [18:02:12]MH_SAM_APDU [18:02:12]CAPDU: 80 13 00 00 [18:02:12]Write to MH i2c: E2 08 00 06 A9 80 13 00 00 00 00 00 00 2B [18:02:12]Write i2c OK [18:02:12]MH_I2C_Read... [18:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:12]Read from MH i2c: E2 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 62 00 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 62 00 06 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [18:02: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:12]wFMCommunicate OK [18:02:12]SAM_PROTO_GetFieldsCounters done [18:02:12]requested_item shift.num is exist - process it [18:02:12]requested_item shift.opened is exist - process it [18:02:12]req_shift_opened [18:02:12]FM_GetShiftState [18:02:12]SAM_PROTO_GetShiftState [18:02:12]wFMCommunicate request_size=4 [18:02:12]MH_SAM_APDU [18:02:12]CAPDU: 80 13 01 00 [18:02:12]Write to MH i2c: E2 08 00 07 A9 80 13 01 00 00 00 00 00 2D [18:02:12]Write i2c OK [18:02:12]MH_I2C_Read... [18:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:12]Read from MH i2c: E2 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 0E 00 [18:02:12]MH_I2C_Read... [18:02:12]Read from MH i2c: E2 0E 00 07 A9 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C9 [18:02:12]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:02:12]wFMCommunicate OK [18:02:12]SAM_PROTO_GetShiftState done [18:02:12]FM_GetShiftState done [18:02:12]req_shift_opened done [18:02:12]requested_item shift.open_date is exist - process it [18:02:12]req_shift_open_date [18:02:12]req_shift_open_date done [18:02:12]produce_requested_data done [18:02:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94989,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:02:12]process_action_free close_receipt [18:02:12]json_value_free [18:02:12]json_value_free done [18:02:12]process_json_proto returns [18:02:12]Send response to host [18:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94989,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:02:12]free response buf [18:02:12]execute_script done [18:02:12]execute_script returns [18:02:12]free content buf [18:02:12]Sock 9.Close socket [18:02:12]Sock 9.Thread stoped [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:44]accept exits with 7 [18:08:44]New connection [18:08:44]New thread 3066871140 created [18:08:44]Thread 3067014500 joined [18:08:44]Waiting for new connection... [18:08:44] Sock 7.Parse request [18:08:44]Sock 7.Check first char [18:08:44]Sock 7.First char is OK [18:08:44]request: POST /json_proto HTTP/1.0 [18:08:44]Method: POST [18:08:44]URL: /json_proto [18:08:44]Method is POST - this is cgi request [18:08:44]url: /json_proto [18:08:44]query_string will be loaded in cgi processing [18:08:44]execute_cgi json_proto POST (null) [18:08:44]execute_cgi path=json_proto method=POST [18:08:44]POST find Content-Length [18:08:44]Host: 172.17.62.67:8080 [18:08:44]Content-Length: 677 [18:08:44]Content-Type: application/json [18:08:44] [18:08:44]POST finish read [18:08:44]Found Content-Length = 677 [18:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:44]execute_script... [18:08: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)195949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:44]POST & json_proto [18:08:44]process_json_proto [18:08:44]json parsed OK: [18:08:44]protocol is kg_v1.0 [18:08:44]action value=close_receipt [18:08:44]process_action close_receipt [18:08:44]cmd_close_receipt [18:08:44]MH_GetDate [18:08:44]Write to MH i2c: F0 00 00 08 A9 A0 [18:08:44]Write i2c OK [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: F0 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: F0 05 00 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: F0 05 00 08 A9 00 BC 48 EF 65 FD [18:08:44]GetLastDocTimeStamp 1710180145 [18:08:44]current date 1710180540 [18:08:44]FM_GetShiftState [18:08:44]SAM_PROTO_GetShiftState [18:08:44]wFMCommunicate request_size=4 [18:08:44]MH_SAM_APDU [18:08:44]CAPDU: 80 13 01 00 [18:08:44]Write to MH i2c: E2 08 00 09 A9 80 13 01 00 00 00 00 00 2F [18:08:44]Write i2c OK [18:08:44]MH_I2C_Read... [18:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:44]Read from MH i2c: E2 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: E2 0E 00 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: E2 0E 00 09 A9 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CB [18:08:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:08:44]wFMCommunicate OK [18:08:44]SAM_PROTO_GetShiftState done [18:08:44]FM_GetShiftState done [18:08:44]opened in 1710115571 [18:08:44]opened+sec_in_day 1710201971 [18:08:44]quantity*price = 20002 [18:08:44]sum+1 = 20003 [18:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 165 11.03.2024 18:09 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94990 ФПД: 134403443861602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T180900&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94990&fm=134403443861602&tin=02508201610067®Number=0000000000090555&sum=20000 [18:08:46]StoreToDocumentArchive [18:08:46]shift 326 fd 94990 [18:08:46]save to /storage/0326/doc_00094990 [18:08:46]save last doc name /storage/0326/doc_00094990 to /storage/kkm_last_doc_name [18:08:46]save OK [18:08:46]Clear old archive folders... [18:08:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:46]tlvbuf is 00222DF0 [18:08:46]SAM_PROTO_ClearQueue [18:08:46]wFMCommunicate request_size=4 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 09 00 00 [18:08:46]Write to MH i2c: E2 08 00 16 A9 80 09 00 00 00 00 00 00 31 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 03 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 03 00 16 A9 00 90 00 33 [18:08:46]RAPDU: 90 00 [18:08:46]wFMCommunicate OK [18:08:46]SAM_PROTO_ClearQueue done [18:08:46]KKMCreateOFDPacket [18:08:46]OFDProtocolAddRootSTLVToBuf [18:08:46]FM_MakeSignedData [18:08:46]FM_MakeSignedData [18:08:46]SAM_PROTO_SignData [18:08:46]wFMCommunicate request_size=4 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 0D 01 02 [18:08:46]Write to MH i2c: E2 08 00 17 A9 80 0D 01 02 00 00 00 00 39 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 03 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 03 00 17 A9 00 90 00 34 [18:08:46]RAPDU: 90 00 [18:08:46]wFMCommunicate OK [18:08:46]wFMCommunicate request_size=255 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BC 48 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 73 01 00 35 04 06 00 7A [18:08:46]Write to MH i2c: E2 02 01 18 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BC 48 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 73 01 00 35 04 06 00 7A 00 00 F2 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:46]Read from MH i2c: E2 03 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 03 00 18 A9 00 90 00 35 [18:08:46]RAPDU: 90 00 [18:08:46]wFMCommunicate OK [18:08:46]wFMCommunicate request_size=10 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 0D 02 02 05 3D 3D 87 28 62 [18:08:46]Write to MH i2c: E2 0D 00 19 A9 80 0D 02 02 05 00 3D 3D 87 28 62 00 00 D1 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 03 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 03 00 19 A9 00 90 00 36 [18:08:46]RAPDU: 90 00 [18:08:46]wFMCommunicate OK [18:08:46]wFMCommunicate request_size=4 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 0D 03 02 [18:08:46]Write to MH i2c: E2 08 00 1A A9 80 0D 03 02 00 00 00 00 3E [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 0B 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 0B 00 1A A9 00 08 91 66 31 8B 99 46 40 90 00 19 [18:08:46]RAPDU: 08 91 66 31 8B 99 46 40 90 00 [18:08:46]wFMCommunicate OK [18:08:46]SAM_PROTO_SignData done [18:08:46]FM_MakeSignedData done [18:08:46]CreateOFDProtocolMessage [18:08:46]wFMCommunicate request_size=4 [18:08:46]MH_SAM_APDU [18:08:46]CAPDU: 80 11 00 00 [18:08:46]Write to MH i2c: E2 08 00 1B A9 80 11 00 00 00 00 00 00 3E [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:46]Read from MH i2c: E2 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 17 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: E2 17 00 1B A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8E [18:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:08:46]wFMCommunicate OK [18:08:46]CreateOFDProtocolMessage done [18:08:46]OFDSenderStorePacket 94990 [18:08:46]StoreOFDPacket docnum=94990 [18:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C8 29 07 01 00 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BC 48 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 73 01 00 35 04 06 00 7A 3D 3D 87 28 62 08 91 66 31 8B 99 46 40 [18:08:46]CheckFolder [18:08:46]dirname=/storage/ofd_packets [18:08:46]CheckFolder done [18:08:46]ProducePacketName [18:08:46]name=ofd_packets/00094990 [18:08:46]NVStorageSaveData ofd_packets/00094990 [18:08:46]File name is /storage/ofd_packets/00094990 [18:08:46]Write 301 bytes [18:08:46]NVStorageSaveData done [18:08:46]OFDSenderStorePacket done [18:08:46]KKMCreateOFDPacket done [18:08:46]NVStorageSaveData kkm_last_timestamp [18:08:46]File name is /storage/kkm_last_timestamp [18:08:46]Write 4 bytes [18:08:46]NVStorageSaveData done [18:08:46]ExternCall_PrintAddStr [18:08:46]wPrintStart [18:08:46]Write to MH i2c: 01 00 00 1C A9 C5 [18:08:46]Write i2c OK [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: 01 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: 01 07 00 [18:08:46]MH_I2C_Read... [18:08:46]Read from MH i2c: 01 07 00 1C A9 00 80 00 00 00 FF 0F 5A [18:08:46]RasterBufferAndPrint [18:08:46]line Счет N : (1)195949 [18:08:46]line ИНН: 02508201610067 [18:08:46]line Контрольно-Кассовый Чек [18:08:46]line ПРОДАЖА [18:08:46]line ТРК (МРК, ГНК) : 22 [18:08:46]line Товар: 2710124130 [18:08:46]line Аи-92-К-5 [18:08:46]line 3.180 * 62.90 [18:08:46]line = 200.02 [18:08:46]line НДС 12% НСП 1% [18:08:46]line > о реализуемом товаре [18:08:46]line ОКРУГЛЕНИЕ: -0.02 [18:08:46]line ИТОГО: 200.00 [18:08:46]line Внесено: 200.00 [18:08:46]line СДАЧА: 0.00 [18:08:46]line НСП 1% : 1.77 [18:08:46]line НДС 12% : 21.24 [18:08:46]line Наличными: 200.00 [18:08:46]line Безнал.: 0.00 [18:08:46]line Место: АЗС № 6 "Партнер Нефть" [18:08:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:08:46]line СНО: Общий режим [18:08:46]line Чек 165 11.03.2024 18:09 [18:08:46]line Смена: 326 ФФД: 1.0 [18:08:46]line ЗНМ: 0300000009 [18:08:46]line РНМ: 0000000000090555 [18:08:46]line Версия ККМ: 001 [18:08:46]line ФМ: 0000000000874811 [18:08:46]line ФД: 94990 [18:08:46]line ФПД: 134403443861602 [18:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T180900&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94990&fm=134403443861602&tin=02508201610067®Number=0000000000090555&sum=20000 [18:08:46]OFD Sender: Processing packet 94990 [packets to send 30, broken 29] [18:08:46]ProducePacketName [18:08:46]name=ofd_packets/00094990 [18:08:46]OFD Sender: To server: pG, [18:08:46]CommunicateWithHost lk.salyk.kg:30040 [18:08:46]ConnectInit lk.salyk.kg [18:08:46]written 0, free lines is 4095 [18:08:46]Connected sock=10 [18:08: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 31 31 0F 01 00 00 C8 29 07 01 00 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BC 48 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 73 01 00 35 04 06 00 7A 3D 3D 87 28 62 08 91 66 31 8B 99 46 40 [18:08: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 31 31 4F 00 00 00 D2 D4 47 00 C3 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0E 73 01 00 F4 03 04 00 15 F4 EE 65 B6 04 01 00 00 CB 81 10 B7 B3 B1 D0 78 [18:08:47]CommunicateWithHost err = 0 [18:08:47]CheckOFDResponse [18:08:47]1017 (14) - 77093643461234 [18:08:47]1041 (16) - 0000000000874811 [18:08:47]1040 (4) - 94990 [18:08:47]1012 (4) - 11.03.2024 12:07 [18:08:47]1206 (1) - 0 [18:08:47]OFD Sender: Remove packet 94990 [18:08:47]ProducePacketName [18:08:47]name=ofd_packets/00094990 [18:08:47]NVStorageDeleteData [18:08:47]Write to MH i2c: 01 00 00 47 A9 F0 [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: 01 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: 01 07 00 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: 01 07 00 47 A9 00 80 00 00 00 59 0D DD [18:08:47]RasterBufferAndPrint [18:08:47]line [18:08:47]line [18:08:47]line [18:08:47]line [18:08:47]line [18:08:47]written 0, free lines is 3423 [18:08:47]process_action close_receipt done [18:08:47]requested_data is exist [18:08:47]produce_requested_data [18:08:47]requested_item fm.sn is exist - process it [18:08:47]wFMCommunicate request_size=4 [18:08:47]MH_SAM_APDU [18:08:47]CAPDU: 80 11 00 00 [18:08:47]Write to MH i2c: E2 08 00 4E A9 80 11 00 00 00 00 00 00 71 [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:47]Read from MH i2c: E2 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 17 00 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 17 00 4E A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C1 [18:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:08:47]wFMCommunicate OK [18:08:47]requested_item fd.num is exist - process it [18:08:47]SAM_PROTO_GetFieldsCounters [18:08:47]wFMCommunicate request_size=4 [18:08:47]MH_SAM_APDU [18:08:47]CAPDU: 80 13 00 00 [18:08:47]Write to MH i2c: E2 08 00 4F A9 80 13 00 00 00 00 00 00 74 [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:47]Read from MH i2c: E2 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 62 00 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 62 00 4F A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [18:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:47]wFMCommunicate OK [18:08:47]SAM_PROTO_GetFieldsCounters done [18:08:47]requested_item shift.num is exist - process it [18:08:47]requested_item shift.opened is exist - process it [18:08:47]req_shift_opened [18:08:47]FM_GetShiftState [18:08:47]SAM_PROTO_GetShiftState [18:08:47]wFMCommunicate request_size=4 [18:08:47]MH_SAM_APDU [18:08:47]CAPDU: 80 13 01 00 [18:08:47]Write to MH i2c: E2 08 00 50 A9 80 13 01 00 00 00 00 00 76 [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:47]Read from MH i2c: E2 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 0E 00 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 0E 00 50 A9 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 12 [18:08:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:08:47]wFMCommunicate OK [18:08:47]SAM_PROTO_GetShiftState done [18:08:47]FM_GetShiftState done [18:08:47]req_shift_opened done [18:08:47]requested_item shift.open_date is exist - process it [18:08:47]req_shift_open_date [18:08:47]req_shift_open_date done [18:08:47]produce_requested_data done [18:08:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94990,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:08:47]process_action_free close_receipt [18:08:47]json_value_free [18:08:47]json_value_free done [18:08:47]process_json_proto returns [18:08:47]Send response to host [18:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94990,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:08:47]free response buf [18:08:47]execute_script done [18:08:47]execute_script returns [18:08:47]free content buf [18:08:47]Sock 7.Close socket [18:08:47]Sock 7.Thread stoped [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]accept exits with 9 [18:14:17]New connection [18:14:17]New thread 3067014500 created [18:14:17]Thread 3066871140 joined [18:14:17]Waiting for new connection... [18:14:17] Sock 9.Parse request [18:14:17]Sock 9.Check first char [18:14:17]Sock 9.First char is OK [18:14:17]request: POST /json_proto HTTP/1.0 [18:14:17]Method: POST [18:14:17]URL: /json_proto [18:14:17]Method is POST - this is cgi request [18:14:17]url: /json_proto [18:14:17]query_string will be loaded in cgi processing [18:14:17]execute_cgi json_proto POST (null) [18:14:17]execute_cgi path=json_proto method=POST [18:14:17]POST find Content-Length [18:14:17]Host: 172.17.62.67:8080 [18:14:17]Content-Length: 808 [18:14:17]Content-Type: application/json [18:14:17] [18:14:17]POST finish read [18:14:17]Found Content-Length = 808 [18:14:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 31.800, "sum" : 2000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:17]execute_script... [18:14: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)195950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 31.800, "sum" : 2000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:17]POST & json_proto [18:14:17]process_json_proto [18:14:17]json parsed OK: [18:14:17]protocol is kg_v1.0 [18:14:17]action value=close_receipt [18:14:17]process_action close_receipt [18:14:17]cmd_close_receipt [18:14:17]MH_GetDate [18:14:17]Write to MH i2c: F0 00 00 51 A9 E9 [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 05 00 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 05 00 51 A9 00 08 4A EF 65 94 [18:14:17]GetLastDocTimeStamp 1710180540 [18:14:17]current date 1710180872 [18:14:17]FM_GetShiftState [18:14:17]SAM_PROTO_GetShiftState [18:14:17]wFMCommunicate request_size=4 [18:14:17]MH_SAM_APDU [18:14:17]CAPDU: 80 13 01 00 [18:14:17]Write to MH i2c: E2 08 00 52 A9 80 13 01 00 00 00 00 00 78 [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:17]Read from MH i2c: E2 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: E2 0E 00 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: E2 0E 00 52 A9 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 14 [18:14:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:14:17]wFMCommunicate OK [18:14:17]SAM_PROTO_GetShiftState done [18:14:17]FM_GetShiftState done [18:14:17]opened in 1710115571 [18:14:17]opened+sec_in_day 1710201971 [18:14:17]quantity*price = 200022 [18:14:17]sum+1 = 200023 [18:14:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.22 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 0.00 Безнал.: 2000.22 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 166 11.03.2024 18:14 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94991 ФПД: 199533335304012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T181432&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94991&fm=199533335304012&tin=02508201610067®Number=0000000000090555&sum=200022 [18:14:18]StoreToDocumentArchive [18:14:18]shift 326 fd 94991 [18:14:18]save to /storage/0326/doc_00094991 [18:14:18]save last doc name /storage/0326/doc_00094991 to /storage/kkm_last_doc_name [18:14:18]save OK [18:14:18]Clear old archive folders... [18:14:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:18]tlvbuf is 001EFDB0 [18:14:18]SAM_PROTO_ClearQueue [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 09 00 00 [18:14:18]Write to MH i2c: E2 08 00 5F A9 80 09 00 00 00 00 00 00 7A [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 5F A9 00 90 00 7C [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]SAM_PROTO_ClearQueue done [18:14:18]KKMCreateOFDPacket [18:14:18]OFDProtocolAddRootSTLVToBuf [18:14:18]FM_MakeSignedData [18:14:18]FM_MakeSignedData [18:14:18]SAM_PROTO_SignData [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 01 02 [18:14:18]Write to MH i2c: E2 08 00 60 A9 80 0D 01 02 00 00 00 00 82 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 60 A9 00 90 00 7D [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=255 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 08 4A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 73 01 00 35 04 06 00 B5 [18:14:18]Write to MH i2c: E2 02 01 61 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 08 4A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 73 01 00 35 04 06 00 B5 00 00 1E [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 61 A9 00 90 00 7E [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=10 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 02 02 05 79 79 92 57 4C [18:14:18]Write to MH i2c: E2 0D 00 62 A9 80 0D 02 02 05 00 79 79 92 57 4C 00 00 B6 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 62 A9 00 90 00 7F [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 03 02 [18:14:18]Write to MH i2c: E2 08 00 63 A9 80 0D 03 02 00 00 00 00 87 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 0B 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 0B 00 63 A9 00 24 CF A7 8D 9B 06 01 46 90 00 97 [18:14:18]RAPDU: 24 CF A7 8D 9B 06 01 46 90 00 [18:14:18]wFMCommunicate OK [18:14:18]SAM_PROTO_SignData done [18:14:18]FM_MakeSignedData done [18:14:18]CreateOFDProtocolMessage [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 11 00 00 [18:14:18]Write to MH i2c: E2 08 00 64 A9 80 11 00 00 00 00 00 00 87 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 17 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 17 00 64 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D7 [18:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:14:18]wFMCommunicate OK [18:14:18]CreateOFDProtocolMessage done [18:14:18]OFDSenderStorePacket 94991 [18:14:18]StoreOFDPacket docnum=94991 [18:14:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CC 7E 07 01 BF E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 08 4A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 73 01 00 35 04 06 00 B5 79 79 92 57 4C 24 CF A7 8D 9B 06 01 46 [18:14:18]CheckFolder [18:14:18]dirname=/storage/ofd_packets [18:14:18]CheckFolder done [18:14:18]ProducePacketName [18:14:18]name=ofd_packets/00094991 [18:14:18]NVStorageSaveData ofd_packets/00094991 [18:14:18]File name is /storage/ofd_packets/00094991 [18:14:18]Write 301 bytes [18:14:18]NVStorageSaveData done [18:14:18]OFDSenderStorePacket done [18:14:18]KKMCreateOFDPacket done [18:14:18]NVStorageSaveData kkm_last_timestamp [18:14:18]File name is /storage/kkm_last_timestamp [18:14:18]Write 4 bytes [18:14:18]NVStorageSaveData done [18:14:18]ExternCall_PrintAddStr [18:14:18]wPrintStart [18:14:18]Write to MH i2c: 01 00 00 65 A9 0E [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 07 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 07 00 65 A9 00 80 00 00 00 FF 0F A3 [18:14:18]RasterBufferAndPrint [18:14:18]line Счет N : (1)195950 [18:14:18]line ИНН: 02508201610067 [18:14:18]line Контрольно-Кассовый Чек [18:14:18]line ПРОДАЖА [18:14:18]line ТРК (МРК, ГНК) : 32 [18:14:18]line Товар: 2710124130 [18:14:18]line Аи-92-К-5 [18:14:18]line 31.800 * 62.90 [18:14:18]line = 2000.22 [18:14:18]line НДС 12% НСП 1% [18:14:18]line > о реализуемом товаре [18:14:18]line ИТОГО: 2000.22 [18:14:18]line НСП 1% : 17.70 [18:14:18]line НДС 12% : 212.41 [18:14:18]line Наличными: 0.00 [18:14:18]line Безнал.: 2000.22 [18:14:18]line Место: АЗС № 6 "Партнер Нефть" [18:14:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:14:18]line СНО: Общий режим [18:14:18]line Чек 166 11.03.2024 18:14 [18:14:18]line Смена: 326 ФФД: 1.0 [18:14:18]line ЗНМ: 0300000009 [18:14:18]line РНМ: 0000000000090555 [18:14:18]line Версия ККМ: 001 [18:14:18]line Платежная система: О! деньги [18:14:18]line ФМ: 0000000000874811 [18:14:18]line ФД: 94991 [18:14:18]line ФПД: 199533335304012 [18:14:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T181432&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94991&fm=199533335304012&tin=02508201610067®Number=0000000000090555&sum=200022 [18:14:19]OFD Sender: Processing packet 94991 [packets to send 30, broken 29] [18:14:19]ProducePacketName [18:14:19]name=ofd_packets/00094991 [18:14:19]OFD Sender: To server: pG, [18:14:19]CommunicateWithHost lk.salyk.kg:30040 [18:14:19]ConnectInit lk.salyk.kg [18:14:19]written 0, free lines is 4095 [18:14:19]Connected sock=10 [18:14: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 31 31 0F 01 00 00 CC 7E 07 01 BF E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 7C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 F9 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 08 4A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 73 01 00 35 04 06 00 B5 79 79 92 57 4C 24 CF A7 8D 9B 06 01 46 [18:14: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 31 31 4F 00 00 00 FB F7 47 00 AB E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 0F 73 01 00 F4 03 04 00 61 F5 EE 65 B6 04 01 00 00 A4 1A 41 09 A3 C0 9F FF [18:14:19]CommunicateWithHost err = 0 [18:14:19]CheckOFDResponse [18:14:19]1017 (14) - 77093643461234 [18:14:19]1041 (16) - 0000000000874811 [18:14:19]1040 (4) - 94991 [18:14:19]1012 (4) - 11.03.2024 12:13 [18:14:19]1206 (1) - 0 [18:14:19]OFD Sender: Remove packet 94991 [18:14:19]ProducePacketName [18:14:19]name=ofd_packets/00094991 [18:14:19]NVStorageDeleteData [18:14:19]Write to MH i2c: 01 00 00 8F A9 38 [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 07 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 07 00 8F A9 00 80 00 00 00 70 0D 3C [18:14:19]RasterBufferAndPrint [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]written 0, free lines is 3446 [18:14:19]process_action close_receipt done [18:14:19]requested_data is exist [18:14:19]produce_requested_data [18:14:19]requested_item fm.sn is exist - process it [18:14:19]wFMCommunicate request_size=4 [18:14:19]MH_SAM_APDU [18:14:19]CAPDU: 80 11 00 00 [18:14:19]Write to MH i2c: E2 08 00 96 A9 80 11 00 00 00 00 00 00 B9 [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: E2 [18:14:19]MH_I2C_Read... [18:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:19]Read from MH i2c: E2 17 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: E2 17 00 96 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 09 [18:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:14:19]wFMCommunicate OK [18:14:19]requested_item fd.num is exist - process it [18:14:19]SAM_PROTO_GetFieldsCounters [18:14:19]wFMCommunicate request_size=4 [18:14:19]MH_SAM_APDU [18:14:19]CAPDU: 80 13 00 00 [18:14:19]Write to MH i2c: E2 08 00 97 A9 80 13 00 00 00 00 00 00 BC [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:19]Read from MH i2c: E2 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: E2 62 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: E2 62 00 97 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [18:14: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 0F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:19]wFMCommunicate OK [18:14:19]SAM_PROTO_GetFieldsCounters done [18:14:19]requested_item shift.num is exist - process it [18:14:19]requested_item shift.opened is exist - process it [18:14:19]req_shift_opened [18:14:19]FM_GetShiftState [18:14:19]SAM_PROTO_GetShiftState [18:14:19]wFMCommunicate request_size=4 [18:14:19]MH_SAM_APDU [18:14:19]CAPDU: 80 13 01 00 [18:14:19]Write to MH i2c: E2 08 00 98 A9 80 13 01 00 00 00 00 00 BE [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:19]Read from MH i2c: E2 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: E2 0E 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: E2 0E 00 98 A9 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5A [18:14:19]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:14:19]wFMCommunicate OK [18:14:19]SAM_PROTO_GetShiftState done [18:14:19]FM_GetShiftState done [18:14:19]req_shift_opened done [18:14:19]requested_item shift.open_date is exist - process it [18:14:19]req_shift_open_date [18:14:19]req_shift_open_date done [18:14:19]produce_requested_data done [18:14:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94991,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:14:19]process_action_free close_receipt [18:14:19]json_value_free [18:14:19]json_value_free done [18:14:19]process_json_proto returns [18:14:19]Send response to host [18:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94991,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:14:19]free response buf [18:14:19]execute_script done [18:14:19]execute_script returns [18:14:19]free content buf [18:14:19]Sock 9.Close socket [18:14:19]Sock 9.Thread stoped [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:53]accept exits with 7 [18:15:53]New connection [18:15:53]New thread 3066871140 created [18:15:53]Thread 3067014500 joined [18:15:53]Waiting for new connection... [18:15:53] Sock 7.Parse request [18:15:53]Sock 7.Check first char [18:15:53]Sock 7.First char is OK [18:15:53]request: POST /json_proto HTTP/1.0 [18:15:53]Method: POST [18:15:53]URL: /json_proto [18:15:53]Method is POST - this is cgi request [18:15:53]url: /json_proto [18:15:53]query_string will be loaded in cgi processing [18:15:53]execute_cgi json_proto POST (null) [18:15:53]execute_cgi path=json_proto method=POST [18:15:53]POST find Content-Length [18:15:53]Host: 172.17.62.67:8080 [18:15:53]Content-Length: 677 [18:15:53]Content-Type: application/json [18:15:53] [18:15:53]POST finish read [18:15:53]Found Content-Length = 677 [18:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:53]execute_script... [18:15: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)195951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:53]POST & json_proto [18:15:53]process_json_proto [18:15:53]json parsed OK: [18:15:53]protocol is kg_v1.0 [18:15:53]action value=close_receipt [18:15:53]process_action close_receipt [18:15:53]cmd_close_receipt [18:15:53]MH_GetDate [18:15:53]Write to MH i2c: F0 00 00 99 A9 31 [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: F0 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: F0 05 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: F0 05 00 99 A9 00 69 4A EF 65 3D [18:15:53]GetLastDocTimeStamp 1710180872 [18:15:53]current date 1710180969 [18:15:53]FM_GetShiftState [18:15:53]SAM_PROTO_GetShiftState [18:15:53]wFMCommunicate request_size=4 [18:15:53]MH_SAM_APDU [18:15:53]CAPDU: 80 13 01 00 [18:15:53]Write to MH i2c: E2 08 00 9A A9 80 13 01 00 00 00 00 00 C0 [18:15:53]Write i2c OK [18:15:53]MH_I2C_Read... [18:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:53]Read from MH i2c: E2 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 0E 00 [18:15:53]MH_I2C_Read... [18:15:53]Read from MH i2c: E2 0E 00 9A A9 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5C [18:15:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:15:53]wFMCommunicate OK [18:15:53]SAM_PROTO_GetShiftState done [18:15:53]FM_GetShiftState done [18:15:53]opened in 1710115571 [18:15:53]opened+sec_in_day 1710201971 [18:15:53]quantity*price = 20002 [18:15:53]sum+1 = 20003 [18:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 167 11.03.2024 18:16 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94992 ФПД: 230792483850803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T181609&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94992&fm=230792483850803&tin=02508201610067®Number=0000000000090555&sum=20000 [18:15:54]StoreToDocumentArchive [18:15:54]shift 326 fd 94992 [18:15:54]save to /storage/0326/doc_00094992 [18:15:54]save last doc name /storage/0326/doc_00094992 to /storage/kkm_last_doc_name [18:15:54]save OK [18:15:54]Clear old archive folders... [18:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:54]tlvbuf is 004B3090 [18:15:54]SAM_PROTO_ClearQueue [18:15:54]wFMCommunicate request_size=4 [18:15:54]MH_SAM_APDU [18:15:54]CAPDU: 80 09 00 00 [18:15:54]Write to MH i2c: E2 08 00 A7 A9 80 09 00 00 00 00 00 00 C2 [18:15:54]Write i2c OK [18:15:54]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:55]Read from MH i2c: E2 03 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 03 00 A7 A9 00 90 00 C4 [18:15:55]RAPDU: 90 00 [18:15:55]wFMCommunicate OK [18:15:55]SAM_PROTO_ClearQueue done [18:15:55]KKMCreateOFDPacket [18:15:55]OFDProtocolAddRootSTLVToBuf [18:15:55]FM_MakeSignedData [18:15:55]FM_MakeSignedData [18:15:55]SAM_PROTO_SignData [18:15:55]wFMCommunicate request_size=4 [18:15:55]MH_SAM_APDU [18:15:55]CAPDU: 80 0D 01 02 [18:15:55]Write to MH i2c: E2 08 00 A8 A9 80 0D 01 02 00 00 00 00 CA [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 03 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 03 00 A8 A9 00 90 00 C5 [18:15:55]RAPDU: 90 00 [18:15:55]wFMCommunicate OK [18:15:55]wFMCommunicate request_size=255 [18:15:55]MH_SAM_APDU [18:15:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 69 4A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 73 01 00 35 04 06 00 D1 [18:15:55]Write to MH i2c: E2 02 01 A9 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 69 4A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 73 01 00 35 04 06 00 D1 00 00 8D [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 03 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 03 00 A9 A9 00 90 00 C6 [18:15:55]RAPDU: 90 00 [18:15:55]wFMCommunicate OK [18:15:55]wFMCommunicate request_size=10 [18:15:55]MH_SAM_APDU [18:15:55]CAPDU: 80 0D 02 02 05 E7 90 04 4A 33 [18:15:55]Write to MH i2c: E2 0D 00 AA A9 80 0D 02 02 05 00 E7 90 04 4A 33 00 00 CF [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 03 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 03 00 AA A9 00 90 00 C7 [18:15:55]RAPDU: 90 00 [18:15:55]wFMCommunicate OK [18:15:55]wFMCommunicate request_size=4 [18:15:55]MH_SAM_APDU [18:15:55]CAPDU: 80 0D 03 02 [18:15:55]Write to MH i2c: E2 08 00 AB A9 80 0D 03 02 00 00 00 00 CF [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 0B 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 0B 00 AB A9 00 20 FE 14 BE AB 6F D3 FC 90 00 A9 [18:15:55]RAPDU: 20 FE 14 BE AB 6F D3 FC 90 00 [18:15:55]wFMCommunicate OK [18:15:55]SAM_PROTO_SignData done [18:15:55]FM_MakeSignedData done [18:15:55]CreateOFDProtocolMessage [18:15:55]wFMCommunicate request_size=4 [18:15:55]MH_SAM_APDU [18:15:55]CAPDU: 80 11 00 00 [18:15:55]Write to MH i2c: E2 08 00 AC A9 80 11 00 00 00 00 00 00 CF [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:55]Read from MH i2c: E2 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 17 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: E2 17 00 AC A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1F [18:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:15:55]wFMCommunicate OK [18:15:55]CreateOFDProtocolMessage done [18:15:55]OFDSenderStorePacket 94992 [18:15:55]StoreOFDPacket docnum=94992 [18:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 11 27 07 01 57 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 69 4A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 73 01 00 35 04 06 00 D1 E7 90 04 4A 33 20 FE 14 BE AB 6F D3 FC [18:15:55]CheckFolder [18:15:55]dirname=/storage/ofd_packets [18:15:55]CheckFolder done [18:15:55]ProducePacketName [18:15:55]name=ofd_packets/00094992 [18:15:55]NVStorageSaveData ofd_packets/00094992 [18:15:55]File name is /storage/ofd_packets/00094992 [18:15:55]Write 301 bytes [18:15:55]NVStorageSaveData done [18:15:55]OFDSenderStorePacket done [18:15:55]KKMCreateOFDPacket done [18:15:55]NVStorageSaveData kkm_last_timestamp [18:15:55]File name is /storage/kkm_last_timestamp [18:15:55]Write 4 bytes [18:15:55]NVStorageSaveData done [18:15:55]ExternCall_PrintAddStr [18:15:55]wPrintStart [18:15:55]Write to MH i2c: 01 00 00 AD A9 56 [18:15:55]Write i2c OK [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: 01 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: 01 07 00 [18:15:55]MH_I2C_Read... [18:15:55]Read from MH i2c: 01 07 00 AD A9 00 80 00 00 00 FF 0F EB [18:15:55]RasterBufferAndPrint [18:15:55]line Счет N : (1)195951 [18:15:55]line ИНН: 02508201610067 [18:15:55]line Контрольно-Кассовый Чек [18:15:55]line ПРОДАЖА [18:15:55]line ТРК (МРК, ГНК) : 12 [18:15:55]line Товар: 2710124130 [18:15:55]line Аи-92-К-5 [18:15:55]line 3.180 * 62.90 [18:15:55]line = 200.02 [18:15:55]line НДС 12% НСП 1% [18:15:55]line > о реализуемом товаре [18:15:55]line ОКРУГЛЕНИЕ: -0.02 [18:15:55]line ИТОГО: 200.00 [18:15:55]line Внесено: 200.00 [18:15:55]line СДАЧА: 0.00 [18:15:55]line НСП 1% : 1.77 [18:15:55]line НДС 12% : 21.24 [18:15:55]line Наличными: 200.00 [18:15:55]line Безнал.: 0.00 [18:15:55]line Место: АЗС № 6 "Партнер Нефть" [18:15:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:15:55]line СНО: Общий режим [18:15:55]line Чек 167 11.03.2024 18:16 [18:15:55]line Смена: 326 ФФД: 1.0 [18:15:55]line ЗНМ: 0300000009 [18:15:55]line РНМ: 0000000000090555 [18:15:55]line Версия ККМ: 001 [18:15:55]line ФМ: 0000000000874811 [18:15:55]line ФД: 94992 [18:15:55]line ФПД: 230792483850803 [18:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T181609&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94992&fm=230792483850803&tin=02508201610067®Number=0000000000090555&sum=20000 [18:15:55]OFD Sender: Processing packet 94992 [packets to send 30, broken 29] [18:15:55]ProducePacketName [18:15:55]name=ofd_packets/00094992 [18:15:55]OFD Sender: To server: pG, [18:15:55]CommunicateWithHost lk.salyk.kg:30040 [18:15:55]ConnectInit lk.salyk.kg [18:15:55]written 0, free lines is 4095 [18:15:55]Connected sock=10 [18:15: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 31 31 0F 01 00 00 11 27 07 01 57 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 69 4A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 73 01 00 35 04 06 00 D1 E7 90 04 4A 33 20 FE 14 BE AB 6F D3 FC [18:15: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 31 31 4F 00 00 00 67 6B 47 00 9E 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 10 73 01 00 F4 03 04 00 C2 F5 EE 65 B6 04 01 00 00 BD 13 CA 51 98 4A C1 B8 [18:15:56]CommunicateWithHost err = 0 [18:15:56]CheckOFDResponse [18:15:56]1017 (14) - 77093643461234 [18:15:56]1041 (16) - 0000000000874811 [18:15:56]1040 (4) - 94992 [18:15:56]1012 (4) - 11.03.2024 12:14 [18:15:56]1206 (1) - 0 [18:15:56]OFD Sender: Remove packet 94992 [18:15:56]ProducePacketName [18:15:56]name=ofd_packets/00094992 [18:15:56]NVStorageDeleteData [18:15:56]Write to MH i2c: 01 00 00 D8 A9 81 [18:15:56]Write i2c OK [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: 01 [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: 01 07 00 [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: 01 07 00 D8 A9 00 80 00 00 00 52 0D 67 [18:15:56]RasterBufferAndPrint [18:15:56]line [18:15:56]line [18:15:56]line [18:15:56]line [18:15:56]line [18:15:56]written 0, free lines is 3416 [18:15:56]process_action close_receipt done [18:15:56]requested_data is exist [18:15:56]produce_requested_data [18:15:56]requested_item fm.sn is exist - process it [18:15:56]wFMCommunicate request_size=4 [18:15:56]MH_SAM_APDU [18:15:56]CAPDU: 80 11 00 00 [18:15:56]Write to MH i2c: E2 08 00 DF A9 80 11 00 00 00 00 00 00 02 [18:15:56]Write i2c OK [18:15:56]MH_I2C_Read... [18:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:56]Read from MH i2c: E2 [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: E2 17 00 [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: E2 17 00 DF A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 52 [18:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:15:56]wFMCommunicate OK [18:15:56]requested_item fd.num is exist - process it [18:15:56]SAM_PROTO_GetFieldsCounters [18:15:56]wFMCommunicate request_size=4 [18:15:56]MH_SAM_APDU [18:15:56]CAPDU: 80 13 00 00 [18:15:56]Write to MH i2c: E2 08 00 E0 A9 80 13 00 00 00 00 00 00 05 [18:15:56]Write i2c OK [18:15:56]MH_I2C_Read... [18:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:56]Read from MH i2c: E2 [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: E2 62 00 [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: E2 62 00 E0 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 10 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [18:15: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 10 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:56]wFMCommunicate OK [18:15:56]SAM_PROTO_GetFieldsCounters done [18:15:56]requested_item shift.num is exist - process it [18:15:56]requested_item shift.opened is exist - process it [18:15:56]req_shift_opened [18:15:56]FM_GetShiftState [18:15:56]SAM_PROTO_GetShiftState [18:15:56]wFMCommunicate request_size=4 [18:15:56]MH_SAM_APDU [18:15:56]CAPDU: 80 13 01 00 [18:15:56]Write to MH i2c: E2 08 00 E1 A9 80 13 01 00 00 00 00 00 07 [18:15:56]Write i2c OK [18:15:56]MH_I2C_Read... [18:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:56]Read from MH i2c: E2 [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: E2 0E 00 [18:15:56]MH_I2C_Read... [18:15:56]Read from MH i2c: E2 0E 00 E1 A9 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A3 [18:15:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:15:56]wFMCommunicate OK [18:15:56]SAM_PROTO_GetShiftState done [18:15:56]FM_GetShiftState done [18:15:56]req_shift_opened done [18:15:56]requested_item shift.open_date is exist - process it [18:15:56]req_shift_open_date [18:15:56]req_shift_open_date done [18:15:56]produce_requested_data done [18:15:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94992,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:15:56]process_action_free close_receipt [18:15:56]json_value_free [18:15:56]json_value_free done [18:15:56]process_json_proto returns [18:15:56]Send response to host [18:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94992,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:15:56]free response buf [18:15:56]execute_script done [18:15:56]execute_script returns [18:15:56]free content buf [18:15:56]Sock 7.Close socket [18:15:56]Sock 7.Thread stoped [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]accept exits with 9 [18:18:26]New connection [18:18:26]New thread 3067014500 created [18:18:26]Thread 3066871140 joined [18:18:26]Waiting for new connection... [18:18:26] Sock 9.Parse request [18:18:26]Sock 9.Check first char [18:18:26]Sock 9.First char is OK [18:18:26]request: POST /json_proto HTTP/1.0 [18:18:26]Method: POST [18:18:26]URL: /json_proto [18:18:26]Method is POST - this is cgi request [18:18:26]url: /json_proto [18:18:26]query_string will be loaded in cgi processing [18:18:26]execute_cgi json_proto POST (null) [18:18:26]execute_cgi path=json_proto method=POST [18:18:26]POST find Content-Length [18:18:26]Host: 172.17.62.67:8080 [18:18:26]Content-Length: 805 [18:18:26]Content-Type: application/json [18:18:26] [18:18:26]POST finish read [18:18:26]Found Content-Length = 805 [18:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:26]execute_script... [18:18: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)195952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:26]POST & json_proto [18:18:26]process_json_proto [18:18:26]json parsed OK: [18:18:26]protocol is kg_v1.0 [18:18:26]action value=close_receipt [18:18:26]process_action close_receipt [18:18:26]cmd_close_receipt [18:18:26]MH_GetDate [18:18:26]Write to MH i2c: F0 00 00 E2 A9 7A [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: F0 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: F0 05 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: F0 05 00 E2 A9 00 01 4B EF 65 1F [18:18:26]GetLastDocTimeStamp 1710180969 [18:18:26]current date 1710181121 [18:18:26]FM_GetShiftState [18:18:26]SAM_PROTO_GetShiftState [18:18:26]wFMCommunicate request_size=4 [18:18:26]MH_SAM_APDU [18:18:26]CAPDU: 80 13 01 00 [18:18:26]Write to MH i2c: E2 08 00 E3 A9 80 13 01 00 00 00 00 00 09 [18:18:26]Write i2c OK [18:18:26]MH_I2C_Read... [18:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:26]Read from MH i2c: E2 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 0E 00 [18:18:26]MH_I2C_Read... [18:18:26]Read from MH i2c: E2 0E 00 E3 A9 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A5 [18:18:26]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:18:26]wFMCommunicate OK [18:18:26]SAM_PROTO_GetShiftState done [18:18:26]FM_GetShiftState done [18:18:26]opened in 1710115571 [18:18:26]opened+sec_in_day 1710201971 [18:18:26]quantity*price = 40004 [18:18:26]sum+1 = 40005 [18:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.04 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 168 11.03.2024 18:18 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94993 ФПД: 97691779855688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T181841&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94993&fm=97691779855688&tin=02508201610067®Number=0000000000090555&sum=40004 [18:18:27]StoreToDocumentArchive [18:18:27]shift 326 fd 94993 [18:18:27]save to /storage/0326/doc_00094993 [18:18:27]save last doc name /storage/0326/doc_00094993 to /storage/kkm_last_doc_name [18:18:27]save OK [18:18:27]Clear old archive folders... [18:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:27]tlvbuf is 0030D630 [18:18:27]SAM_PROTO_ClearQueue [18:18:27]wFMCommunicate request_size=4 [18:18:27]MH_SAM_APDU [18:18:27]CAPDU: 80 09 00 00 [18:18:27]Write to MH i2c: E2 08 00 F0 A9 80 09 00 00 00 00 00 00 0B [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 [18:18:27]MH_I2C_Read... [18:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:27]Read from MH i2c: E2 03 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 03 00 F0 A9 00 90 00 0D [18:18:27]RAPDU: 90 00 [18:18:27]wFMCommunicate OK [18:18:27]SAM_PROTO_ClearQueue done [18:18:27]KKMCreateOFDPacket [18:18:27]OFDProtocolAddRootSTLVToBuf [18:18:27]FM_MakeSignedData [18:18:27]FM_MakeSignedData [18:18:27]SAM_PROTO_SignData [18:18:27]wFMCommunicate request_size=4 [18:18:27]MH_SAM_APDU [18:18:27]CAPDU: 80 0D 01 02 [18:18:27]Write to MH i2c: E2 08 00 F1 A9 80 0D 01 02 00 00 00 00 13 [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:27]Read from MH i2c: E2 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 03 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 03 00 F1 A9 00 90 00 0E [18:18:27]RAPDU: 90 00 [18:18:27]wFMCommunicate OK [18:18:27]wFMCommunicate request_size=255 [18:18:27]MH_SAM_APDU [18:18:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 01 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 73 01 00 35 04 06 00 58 [18:18:27]Write to MH i2c: E2 02 01 F2 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 01 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 73 01 00 35 04 06 00 58 00 00 CA [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:27]Read from MH i2c: E2 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 03 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 03 00 F2 A9 00 90 00 0F [18:18:27]RAPDU: 90 00 [18:18:27]wFMCommunicate OK [18:18:27]wFMCommunicate request_size=10 [18:18:27]MH_SAM_APDU [18:18:27]CAPDU: 80 0D 02 02 05 D9 A3 D5 F5 48 [18:18:27]Write to MH i2c: E2 0D 00 F3 A9 80 0D 02 02 05 00 D9 A3 D5 F5 48 00 00 AE [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:27]Read from MH i2c: E2 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 03 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 03 00 F3 A9 00 90 00 10 [18:18:27]RAPDU: 90 00 [18:18:27]wFMCommunicate OK [18:18:27]wFMCommunicate request_size=4 [18:18:27]MH_SAM_APDU [18:18:27]CAPDU: 80 0D 03 02 [18:18:27]Write to MH i2c: E2 08 00 F4 A9 80 0D 03 02 00 00 00 00 18 [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:27]Read from MH i2c: E2 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 0B 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 0B 00 F4 A9 00 61 90 78 51 F0 7D 68 F1 90 00 99 [18:18:27]RAPDU: 61 90 78 51 F0 7D 68 F1 90 00 [18:18:27]wFMCommunicate OK [18:18:27]SAM_PROTO_SignData done [18:18:27]FM_MakeSignedData done [18:18:27]CreateOFDProtocolMessage [18:18:27]wFMCommunicate request_size=4 [18:18:27]MH_SAM_APDU [18:18:27]CAPDU: 80 11 00 00 [18:18:27]Write to MH i2c: E2 08 00 F5 A9 80 11 00 00 00 00 00 00 18 [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:27]Read from MH i2c: E2 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 17 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: E2 17 00 F5 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 68 [18:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:18:27]wFMCommunicate OK [18:18:27]CreateOFDProtocolMessage done [18:18:27]OFDSenderStorePacket 94993 [18:18:27]StoreOFDPacket docnum=94993 [18:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 94 6E 07 01 CE DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 01 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 73 01 00 35 04 06 00 58 D9 A3 D5 F5 48 61 90 78 51 F0 7D 68 F1 [18:18:27]CheckFolder [18:18:27]dirname=/storage/ofd_packets [18:18:27]CheckFolder done [18:18:27]ProducePacketName [18:18:27]name=ofd_packets/00094993 [18:18:27]NVStorageSaveData ofd_packets/00094993 [18:18:27]File name is /storage/ofd_packets/00094993 [18:18:27]Write 301 bytes [18:18:27]NVStorageSaveData done [18:18:27]OFDSenderStorePacket done [18:18:27]KKMCreateOFDPacket done [18:18:27]NVStorageSaveData kkm_last_timestamp [18:18:27]File name is /storage/kkm_last_timestamp [18:18:27]Write 4 bytes [18:18:27]NVStorageSaveData done [18:18:27]ExternCall_PrintAddStr [18:18:27]wPrintStart [18:18:27]Write to MH i2c: 01 00 00 F6 A9 9F [18:18:27]Write i2c OK [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: 01 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: 01 07 00 [18:18:27]MH_I2C_Read... [18:18:27]Read from MH i2c: 01 07 00 F6 A9 00 80 00 00 00 FF 0F 34 [18:18:27]RasterBufferAndPrint [18:18:27]line Счет N : (1)195952 [18:18:27]line ИНН: 02508201610067 [18:18:27]line Контрольно-Кассовый Чек [18:18:27]line ПРОДАЖА [18:18:27]line ТРК (МРК, ГНК) : 42 [18:18:27]line Товар: 2710124130 [18:18:27]line Аи-92-К-5 [18:18:27]line 6.360 * 62.90 [18:18:27]line = 400.04 [18:18:27]line НДС 12% НСП 1% [18:18:27]line > о реализуемом товаре [18:18:27]line ИТОГО: 400.04 [18:18:27]line НСП 1% : 3.54 [18:18:27]line НДС 12% : 42.48 [18:18:27]line Наличными: 0.00 [18:18:27]line Безнал.: 400.04 [18:18:27]line Место: АЗС № 6 "Партнер Нефть" [18:18:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:18:27]line СНО: Общий режим [18:18:27]line Чек 168 11.03.2024 18:18 [18:18:27]line Смена: 326 ФФД: 1.0 [18:18:27]line ЗНМ: 0300000009 [18:18:27]line РНМ: 0000000000090555 [18:18:27]line Версия ККМ: 001 [18:18:27]line Платежная система: О! деньги [18:18:27]line ФМ: 0000000000874811 [18:18:27]line ФД: 94993 [18:18:27]line ФПД: 97691779855688 [18:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T181841&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94993&fm=97691779855688&tin=02508201610067®Number=0000000000090555&sum=40004 [18:18:27]written 0, free lines is 4095 [18:18:27]OFD Sender: Processing packet 94993 [packets to send 30, broken 29] [18:18:27]ProducePacketName [18:18:27]name=ofd_packets/00094993 [18:18:28]OFD Sender: To server: pG, [18:18:28]CommunicateWithHost lk.salyk.kg:30040 [18:18:28]ConnectInit lk.salyk.kg [18:18:28]Connected sock=10 [18:18: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 31 31 0F 01 00 00 94 6E 07 01 CE DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 01 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 11 73 01 00 35 04 06 00 58 D9 A3 D5 F5 48 61 90 78 51 F0 7D 68 F1 [18:18:28]Write to MH i2c: 01 00 00 20 AA CA [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: 01 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: 01 07 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: 01 07 00 20 AA 00 80 00 00 00 78 0D D6 [18:18:28]RasterBufferAndPrint [18:18:28]line [18:18:28]line [18:18:28]line [18:18:28]line [18:18:28]line [18:18:28]written 0, free lines is 3454 [18:18:28]process_action close_receipt done [18:18:28]requested_data is exist [18:18:28]produce_requested_data [18:18:28]requested_item fm.sn is exist - process it [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 11 00 00 [18:18:28]Write to MH i2c: E2 08 00 27 AA 80 11 00 00 00 00 00 00 4B [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:28]Read from MH i2c: E2 17 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 17 00 27 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9B [18:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:18:28]wFMCommunicate OK [18:18:28]requested_item fd.num is exist - process it [18:18:28]SAM_PROTO_GetFieldsCounters [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 00 00 [18:18:28]Write to MH i2c: E2 08 00 28 AA 80 13 00 00 00 00 00 00 4E [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18: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 31 31 4F 00 00 00 EC 07 47 00 ED 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 31 31 10 04 04 00 11 73 01 00 F4 03 04 00 5A F6 EE 65 B6 04 01 00 00 97 C4 47 E4 A7 8D 74 6A [18:18:28]CommunicateWithHost err = 0 [18:18:28]CheckOFDResponse [18:18:28]1017 (14) - 77093643461234 [18:18:28]1041 (16) - 0000000000874811 [18:18:28]1040 (4) - 94993 [18:18:28]1012 (4) - 11.03.2024 12:17 [18:18:28]1206 (1) - 0 [18:18:28]OFD Sender: Remove packet 94993 [18:18:28]ProducePacketName [18:18:28]name=ofd_packets/00094993 [18:18:28]NVStorageDeleteData [18:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 62 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 62 00 28 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 11 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [18:18: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 11 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetFieldsCounters done [18:18:28]requested_item shift.num is exist - process it [18:18:28]requested_item shift.opened is exist - process it [18:18:28]req_shift_opened [18:18:28]FM_GetShiftState [18:18:28]SAM_PROTO_GetShiftState [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 01 00 [18:18:28]Write to MH i2c: E2 08 00 29 AA 80 13 01 00 00 00 00 00 50 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 29 AA 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EC [18:18:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetShiftState done [18:18:28]FM_GetShiftState done [18:18:28]req_shift_opened done [18:18:28]requested_item shift.open_date is exist - process it [18:18:28]req_shift_open_date [18:18:28]req_shift_open_date done [18:18:28]produce_requested_data done [18:18:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94993,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:18:28]process_action_free close_receipt [18:18:28]json_value_free [18:18:28]json_value_free done [18:18:28]process_json_proto returns [18:18:28]Send response to host [18:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94993,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:18:28]free response buf [18:18:28]execute_script done [18:18:28]execute_script returns [18:18:28]free content buf [18:18:28]Sock 9.Close socket [18:18:28]Sock 9.Thread stoped [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:29]accept exits with 7 [18:21:29]New connection [18:21:29]New thread 3066871140 created [18:21:29]Thread 3067014500 joined [18:21:29]Waiting for new connection... [18:21:29] Sock 7.Parse request [18:21:29]Sock 7.Check first char [18:21:29]Sock 7.First char is OK [18:21:29]request: POST /json_proto HTTP/1.0 [18:21:29]Method: POST [18:21:29]URL: /json_proto [18:21:29]Method is POST - this is cgi request [18:21:29]url: /json_proto [18:21:29]query_string will be loaded in cgi processing [18:21:29]execute_cgi json_proto POST (null) [18:21:29]execute_cgi path=json_proto method=POST [18:21:29]POST find Content-Length [18:21:29]Host: 172.17.62.67:8080 [18:21:29]Content-Length: 678 [18:21:29]Content-Type: application/json [18:21:29] [18:21:29]POST finish read [18:21:29]Found Content-Length = 678 [18:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:29]execute_script... [18:21: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)195954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:29]POST & json_proto [18:21:29]process_json_proto [18:21:29]json parsed OK: [18:21:29]protocol is kg_v1.0 [18:21:29]action value=close_receipt [18:21:29]process_action close_receipt [18:21:29]cmd_close_receipt [18:21:29]MH_GetDate [18:21:29]Write to MH i2c: F0 00 00 2A AA C3 [18:21:29]Write i2c OK [18:21:29]MH_I2C_Read... [18:21:29]Read from MH i2c: F0 [18:21:29]MH_I2C_Read... [18:21:29]Read from MH i2c: F0 05 00 [18:21:29]MH_I2C_Read... [18:21:29]Read from MH i2c: F0 05 00 2A AA 00 B9 4B EF 65 20 [18:21:29]GetLastDocTimeStamp 1710181121 [18:21:29]current date 1710181305 [18:21:29]FM_GetShiftState [18:21:29]SAM_PROTO_GetShiftState [18:21:29]wFMCommunicate request_size=4 [18:21:29]MH_SAM_APDU [18:21:29]CAPDU: 80 13 01 00 [18:21:29]Write to MH i2c: E2 08 00 2B AA 80 13 01 00 00 00 00 00 52 [18:21:29]Write i2c OK [18:21:29]MH_I2C_Read... [18:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:29]Read from MH i2c: E2 [18:21:29]MH_I2C_Read... [18:21:29]Read from MH i2c: E2 0E 00 [18:21:29]MH_I2C_Read... [18:21:29]Read from MH i2c: E2 0E 00 2B AA 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EE [18:21:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:21:29]wFMCommunicate OK [18:21:29]SAM_PROTO_GetShiftState done [18:21:29]FM_GetShiftState done [18:21:29]opened in 1710115571 [18:21:29]opened+sec_in_day 1710201971 [18:21:29]quantity*price = 70056 [18:21:29]sum+1 = 70057 [18:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 169 11.03.2024 18:21 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94994 ФПД: 26830252401000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182145&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94994&fm=26830252401000&tin=02508201610067®Number=0000000000090555&sum=70000 [18:21:30]StoreToDocumentArchive [18:21:30]shift 326 fd 94994 [18:21:30]save to /storage/0326/doc_00094994 [18:21:30]save last doc name /storage/0326/doc_00094994 to /storage/kkm_last_doc_name [18:21:30]save OK [18:21:30]Clear old archive folders... [18:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:30]tlvbuf is 002256F0 [18:21:30]SAM_PROTO_ClearQueue [18:21:30]wFMCommunicate request_size=4 [18:21:30]MH_SAM_APDU [18:21:30]CAPDU: 80 09 00 00 [18:21:30]Write to MH i2c: E2 08 00 38 AA 80 09 00 00 00 00 00 00 54 [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:30]Read from MH i2c: E2 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 38 AA 00 90 00 56 [18:21:30]RAPDU: 90 00 [18:21:30]wFMCommunicate OK [18:21:30]SAM_PROTO_ClearQueue done [18:21:30]KKMCreateOFDPacket [18:21:30]OFDProtocolAddRootSTLVToBuf [18:21:30]FM_MakeSignedData [18:21:30]FM_MakeSignedData [18:21:30]SAM_PROTO_SignData [18:21:30]wFMCommunicate request_size=4 [18:21:30]MH_SAM_APDU [18:21:30]CAPDU: 80 0D 01 02 [18:21:30]Write to MH i2c: E2 08 00 39 AA 80 0D 01 02 00 00 00 00 5C [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:30]Read from MH i2c: E2 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 39 AA 00 90 00 57 [18:21:30]RAPDU: 90 00 [18:21:30]wFMCommunicate OK [18:21:30]wFMCommunicate request_size=255 [18:21:30]MH_SAM_APDU [18:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B9 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 73 01 00 35 04 06 00 18 [18:21:30]Write to MH i2c: E2 02 01 3A AA 80 0D 02 02 FA 00 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 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B9 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 73 01 00 35 04 06 00 18 00 00 6D [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 03 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 03 00 3A AA 00 90 00 58 [18:21:31]RAPDU: 90 00 [18:21:31]wFMCommunicate OK [18:21:31]wFMCommunicate request_size=10 [18:21:31]MH_SAM_APDU [18:21:31]CAPDU: 80 0D 02 02 05 66 E7 A9 E1 68 [18:21:31]Write to MH i2c: E2 0D 00 3B AA 80 0D 02 02 05 00 66 E7 A9 E1 68 00 00 A8 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 03 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 03 00 3B AA 00 90 00 59 [18:21:31]RAPDU: 90 00 [18:21:31]wFMCommunicate OK [18:21:31]wFMCommunicate request_size=4 [18:21:31]MH_SAM_APDU [18:21:31]CAPDU: 80 0D 03 02 [18:21:31]Write to MH i2c: E2 08 00 3C AA 80 0D 03 02 00 00 00 00 61 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 0B 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 0B 00 3C AA 00 9E 52 A7 27 11 3B F1 F3 90 00 50 [18:21:31]RAPDU: 9E 52 A7 27 11 3B F1 F3 90 00 [18:21:31]wFMCommunicate OK [18:21:31]SAM_PROTO_SignData done [18:21:31]FM_MakeSignedData done [18:21:31]CreateOFDProtocolMessage [18:21:31]wFMCommunicate request_size=4 [18:21:31]MH_SAM_APDU [18:21:31]CAPDU: 80 11 00 00 [18:21:31]Write to MH i2c: E2 08 00 3D AA 80 11 00 00 00 00 00 00 61 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 17 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 17 00 3D AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B1 [18:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:21:31]wFMCommunicate OK [18:21:31]CreateOFDProtocolMessage done [18:21:31]OFDSenderStorePacket 94994 [18:21:31]StoreOFDPacket docnum=94994 [18:21:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2B 0A 07 01 6F 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B9 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 73 01 00 35 04 06 00 18 66 E7 A9 E1 68 9E 52 A7 27 11 3B F1 F3 [18:21:31]CheckFolder [18:21:31]dirname=/storage/ofd_packets [18:21:31]CheckFolder done [18:21:31]ProducePacketName [18:21:31]name=ofd_packets/00094994 [18:21:31]NVStorageSaveData ofd_packets/00094994 [18:21:31]File name is /storage/ofd_packets/00094994 [18:21:31]Write 301 bytes [18:21:31]NVStorageSaveData done [18:21:31]OFDSenderStorePacket done [18:21:31]KKMCreateOFDPacket done [18:21:31]NVStorageSaveData kkm_last_timestamp [18:21:31]File name is /storage/kkm_last_timestamp [18:21:31]Write 4 bytes [18:21:31]NVStorageSaveData done [18:21:31]ExternCall_PrintAddStr [18:21:31]wPrintStart [18:21:31]Write to MH i2c: 01 00 00 3E AA E8 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: 01 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: 01 07 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: 01 07 00 3E AA 00 80 00 00 00 FF 0F 7D [18:21:31]RasterBufferAndPrint [18:21:31]line Счет N : (1)195954 [18:21:31]line ИНН: 02508201610067 [18:21:31]line Контрольно-Кассовый Чек [18:21:31]line ПРОДАЖА [18:21:31]line ТРК (МРК, ГНК) : 31 [18:21:31]line Товар: 2710124500 [18:21:31]line Аи-95-К-5 [18:21:31]line 10.080 * 69.50 [18:21:31]line = 700.56 [18:21:31]line НДС 12% НСП 1% [18:21:31]line > о реализуемом товаре [18:21:31]line ОКРУГЛЕНИЕ: -0.56 [18:21:31]line ИТОГО: 700.00 [18:21:31]line Внесено: 700.00 [18:21:31]line СДАЧА: 0.00 [18:21:31]line НСП 1% : 6.20 [18:21:31]line НДС 12% : 74.40 [18:21:31]line Наличными: 700.00 [18:21:31]line Безнал.: 0.00 [18:21:31]line Место: АЗС № 6 "Партнер Нефть" [18:21:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:21:31]line СНО: Общий режим [18:21:31]line Чек 169 11.03.2024 18:21 [18:21:31]line Смена: 326 ФФД: 1.0 [18:21:31]line ЗНМ: 0300000009 [18:21:31]line РНМ: 0000000000090555 [18:21:31]line Версия ККМ: 001 [18:21:31]line ФМ: 0000000000874811 [18:21:31]line ФД: 94994 [18:21:31]line ФПД: 26830252401000 [18:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182145&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94994&fm=26830252401000&tin=02508201610067®Number=0000000000090555&sum=70000 [18:21:31]OFD Sender: Processing packet 94994 [packets to send 30, broken 29] [18:21:31]ProducePacketName [18:21:31]name=ofd_packets/00094994 [18:21:31]OFD Sender: To server: pG, [18:21:31]CommunicateWithHost lk.salyk.kg:30040 [18:21:31]ConnectInit lk.salyk.kg [18:21:31]written 0, free lines is 4095 [18:21:31]Connected sock=10 [18:21: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 31 31 0F 01 00 00 2B 0A 07 01 6F 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B9 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 73 01 00 35 04 06 00 18 66 E7 A9 E1 68 9E 52 A7 27 11 3B F1 F3 [18:21: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 31 31 4F 00 00 00 64 2C 47 00 11 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 12 73 01 00 F4 03 04 00 11 F7 EE 65 B6 04 01 00 00 F1 CF 5B E2 97 D7 CC E8 [18:21:31]CommunicateWithHost err = 0 [18:21:31]CheckOFDResponse [18:21:31]1017 (14) - 77093643461234 [18:21:31]1041 (16) - 0000000000874811 [18:21:31]1040 (4) - 94994 [18:21:31]1012 (4) - 11.03.2024 12:20 [18:21:31]1206 (1) - 0 [18:21:31]OFD Sender: Remove packet 94994 [18:21:31]ProducePacketName [18:21:31]name=ofd_packets/00094994 [18:21:31]NVStorageDeleteData [18:21:32]Write to MH i2c: 01 00 00 69 AA 13 [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: 01 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: 01 07 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: 01 07 00 69 AA 00 80 00 00 00 51 0D F8 [18:21:32]RasterBufferAndPrint [18:21:32]line [18:21:32]line [18:21:32]line [18:21:32]line [18:21:32]line [18:21:32]written 0, free lines is 3417 [18:21:32]process_action close_receipt done [18:21:32]requested_data is exist [18:21:32]produce_requested_data [18:21:32]requested_item fm.sn is exist - process it [18:21:32]wFMCommunicate request_size=4 [18:21:32]MH_SAM_APDU [18:21:32]CAPDU: 80 11 00 00 [18:21:32]Write to MH i2c: E2 08 00 70 AA 80 11 00 00 00 00 00 00 94 [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:32]Read from MH i2c: E2 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 17 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 17 00 70 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E4 [18:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:21:32]wFMCommunicate OK [18:21:32]requested_item fd.num is exist - process it [18:21:32]SAM_PROTO_GetFieldsCounters [18:21:32]wFMCommunicate request_size=4 [18:21:32]MH_SAM_APDU [18:21:32]CAPDU: 80 13 00 00 [18:21:32]Write to MH i2c: E2 08 00 71 AA 80 13 00 00 00 00 00 00 97 [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 [18:21:32]MH_I2C_Read... [18:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:32]Read from MH i2c: E2 62 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 62 00 71 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 12 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [18:21: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 12 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:32]wFMCommunicate OK [18:21:32]SAM_PROTO_GetFieldsCounters done [18:21:32]requested_item shift.num is exist - process it [18:21:32]requested_item shift.opened is exist - process it [18:21:32]req_shift_opened [18:21:32]FM_GetShiftState [18:21:32]SAM_PROTO_GetShiftState [18:21:32]wFMCommunicate request_size=4 [18:21:32]MH_SAM_APDU [18:21:32]CAPDU: 80 13 01 00 [18:21:32]Write to MH i2c: E2 08 00 72 AA 80 13 01 00 00 00 00 00 99 [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]OFD Sender: No OFD packet to send [18:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:32]Read from MH i2c: E2 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 0E 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 0E 00 72 AA 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 35 [18:21:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:21:32]wFMCommunicate OK [18:21:32]SAM_PROTO_GetShiftState done [18:21:32]FM_GetShiftState done [18:21:32]req_shift_opened done [18:21:32]requested_item shift.open_date is exist - process it [18:21:32]req_shift_open_date [18:21:32]req_shift_open_date done [18:21:32]produce_requested_data done [18:21:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94994,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:21:32]process_action_free close_receipt [18:21:32]json_value_free [18:21:32]json_value_free done [18:21:32]process_json_proto returns [18:21:32]Send response to host [18:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94994,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:21:32]free response buf [18:21:32]execute_script done [18:21:32]execute_script returns [18:21:32]free content buf [18:21:32]Sock 7.Close socket [18:21:32]Sock 7.Thread stoped [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:25]accept exits with 9 [18:22:25]New connection [18:22:25]New thread 3067014500 created [18:22:25]Thread 3066871140 joined [18:22:25]Waiting for new connection... [18:22:25] Sock 9.Parse request [18:22:25]Sock 9.Check first char [18:22:25]Sock 9.First char is OK [18:22:25]request: POST /json_proto HTTP/1.0 [18:22:25]Method: POST [18:22:25]URL: /json_proto [18:22:25]Method is POST - this is cgi request [18:22:25]url: /json_proto [18:22:25]query_string will be loaded in cgi processing [18:22:25]execute_cgi json_proto POST (null) [18:22:25]execute_cgi path=json_proto method=POST [18:22:25]POST find Content-Length [18:22:25]Host: 172.17.62.67:8080 [18:22:25]Content-Length: 808 [18:22:25]Content-Type: application/json [18:22:25] [18:22:25]POST finish read [18:22:25]Found Content-Length = 808 [18:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:25]execute_script... [18:22:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:25]POST & json_proto [18:22:25]process_json_proto [18:22:25]json parsed OK: [18:22:25]protocol is kg_v1.0 [18:22:25]action value=close_receipt [18:22:25]process_action close_receipt [18:22:25]cmd_close_receipt [18:22:25]MH_GetDate [18:22:25]Write to MH i2c: F0 00 00 73 AA 0C [18:22:25]Write i2c OK [18:22:25]MH_I2C_Read... [18:22:25]Read from MH i2c: F0 [18:22:25]MH_I2C_Read... [18:22:25]Read from MH i2c: F0 05 00 [18:22:25]MH_I2C_Read... [18:22:25]Read from MH i2c: F0 05 00 73 AA 00 F1 4B EF 65 A1 [18:22:25]GetLastDocTimeStamp 1710181305 [18:22:25]current date 1710181361 [18:22:25]FM_GetShiftState [18:22:25]SAM_PROTO_GetShiftState [18:22:25]wFMCommunicate request_size=4 [18:22:25]MH_SAM_APDU [18:22:25]CAPDU: 80 13 01 00 [18:22:25]Write to MH i2c: E2 08 00 74 AA 80 13 01 00 00 00 00 00 9B [18:22:25]Write i2c OK [18:22:25]MH_I2C_Read... [18:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:25]Read from MH i2c: E2 [18:22:25]MH_I2C_Read... [18:22:25]Read from MH i2c: E2 0E 00 [18:22:25]MH_I2C_Read... [18:22:25]Read from MH i2c: E2 0E 00 74 AA 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 37 [18:22:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:22:25]wFMCommunicate OK [18:22:25]SAM_PROTO_GetShiftState done [18:22:25]FM_GetShiftState done [18:22:25]opened in 1710115571 [18:22:25]opened+sec_in_day 1710201971 [18:22:25]quantity*price = 100010 [18:22:25]sum+1 = 100012 [18:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 170 11.03.2024 18:22 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 94995 ФПД: 67906974525896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182241&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94995&fm=67906974525896&tin=02508201610067®Number=0000000000090555&sum=100011 [18:22:26]StoreToDocumentArchive [18:22:26]shift 326 fd 94995 [18:22:26]save to /storage/0326/doc_00094995 [18:22:26]save last doc name /storage/0326/doc_00094995 to /storage/kkm_last_doc_name [18:22:26]save OK [18:22:26]Clear old archive folders... [18:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:26]tlvbuf is 002D4420 [18:22:26]SAM_PROTO_ClearQueue [18:22:26]wFMCommunicate request_size=4 [18:22:26]MH_SAM_APDU [18:22:26]CAPDU: 80 09 00 00 [18:22:26]Write to MH i2c: E2 08 00 81 AA 80 09 00 00 00 00 00 00 9D [18:22:26]Write i2c OK [18:22:26]MH_I2C_Read... [18:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:26]Read from MH i2c: E2 [18:22:26]MH_I2C_Read... [18:22:26]Read from MH i2c: E2 03 00 [18:22:26]MH_I2C_Read... [18:22:26]Read from MH i2c: E2 03 00 81 AA 00 90 00 9F [18:22:26]RAPDU: 90 00 [18:22:26]wFMCommunicate OK [18:22:26]SAM_PROTO_ClearQueue done [18:22:26]KKMCreateOFDPacket [18:22:26]OFDProtocolAddRootSTLVToBuf [18:22:26]FM_MakeSignedData [18:22:26]FM_MakeSignedData [18:22:26]SAM_PROTO_SignData [18:22:26]wFMCommunicate request_size=4 [18:22:26]MH_SAM_APDU [18:22:26]CAPDU: 80 0D 01 02 [18:22:26]Write to MH i2c: E2 08 00 82 AA 80 0D 01 02 00 00 00 00 A5 [18:22:26]Write i2c OK [18:22:26]MH_I2C_Read... [18:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:26]Read from MH i2c: E2 [18:22:26]MH_I2C_Read... [18:22:26]Read from MH i2c: E2 03 00 [18:22:26]MH_I2C_Read... [18:22:26]Read from MH i2c: E2 03 00 82 AA 00 90 00 A0 [18:22:26]RAPDU: 90 00 [18:22:26]wFMCommunicate OK [18:22:26]wFMCommunicate request_size=255 [18:22:26]MH_SAM_APDU [18:22: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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F1 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 73 01 00 35 04 06 00 3D [18:22:26]Write to MH i2c: E2 02 01 83 AA 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F1 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 73 01 00 35 04 06 00 3D 00 00 57 [18:22:26]Write i2c OK [18:22:26]MH_I2C_Read... [18:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:27]Read from MH i2c: E2 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 03 00 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 03 00 83 AA 00 90 00 A1 [18:22:27]RAPDU: 90 00 [18:22:27]wFMCommunicate OK [18:22:27]wFMCommunicate request_size=10 [18:22:27]MH_SAM_APDU [18:22:27]CAPDU: 80 0D 02 02 05 C2 D3 18 29 C8 [18:22:27]Write to MH i2c: E2 0D 00 84 AA 80 0D 02 02 05 00 C2 D3 18 29 C8 00 00 50 [18:22:27]Write i2c OK [18:22:27]MH_I2C_Read... [18:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:27]Read from MH i2c: E2 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 03 00 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 03 00 84 AA 00 90 00 A2 [18:22:27]RAPDU: 90 00 [18:22:27]wFMCommunicate OK [18:22:27]wFMCommunicate request_size=4 [18:22:27]MH_SAM_APDU [18:22:27]CAPDU: 80 0D 03 02 [18:22:27]Write to MH i2c: E2 08 00 85 AA 80 0D 03 02 00 00 00 00 AA [18:22:27]Write i2c OK [18:22:27]MH_I2C_Read... [18:22:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:27]Read from MH i2c: E2 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 0B 00 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 0B 00 85 AA 00 B8 04 92 EC C2 A0 CE 2D 90 00 42 [18:22:27]RAPDU: B8 04 92 EC C2 A0 CE 2D 90 00 [18:22:27]wFMCommunicate OK [18:22:27]SAM_PROTO_SignData done [18:22:27]FM_MakeSignedData done [18:22:27]CreateOFDProtocolMessage [18:22:27]wFMCommunicate request_size=4 [18:22:27]MH_SAM_APDU [18:22:27]CAPDU: 80 11 00 00 [18:22:27]Write to MH i2c: E2 08 00 86 AA 80 11 00 00 00 00 00 00 AA [18:22:27]Write i2c OK [18:22:27]MH_I2C_Read... [18:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:27]Read from MH i2c: E2 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 17 00 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 17 00 86 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FA [18:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:22:27]wFMCommunicate OK [18:22:27]CreateOFDProtocolMessage done [18:22:27]OFDSenderStorePacket 94995 [18:22:27]StoreOFDPacket docnum=94995 [18:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F3 AA 07 01 32 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F1 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 73 01 00 35 04 06 00 3D C2 D3 18 29 C8 B8 04 92 EC C2 A0 CE 2D [18:22:27]CheckFolder [18:22:27]dirname=/storage/ofd_packets [18:22:27]CheckFolder done [18:22:27]ProducePacketName [18:22:27]name=ofd_packets/00094995 [18:22:27]NVStorageSaveData ofd_packets/00094995 [18:22:27]File name is /storage/ofd_packets/00094995 [18:22:27]Write 301 bytes [18:22:27]NVStorageSaveData done [18:22:27]OFDSenderStorePacket done [18:22:27]KKMCreateOFDPacket done [18:22:27]NVStorageSaveData kkm_last_timestamp [18:22:27]File name is /storage/kkm_last_timestamp [18:22:27]Write 4 bytes [18:22:27]NVStorageSaveData done [18:22:27]ExternCall_PrintAddStr [18:22:27]wPrintStart [18:22:27]Write to MH i2c: 01 00 00 87 AA 31 [18:22:27]Write i2c OK [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: 01 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: 01 07 00 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: 01 07 00 87 AA 00 80 00 00 00 FF 0F C6 [18:22:27]RasterBufferAndPrint [18:22:27]line Счет N : (1)195953 [18:22:27]line ИНН: 02508201610067 [18:22:27]line Контрольно-Кассовый Чек [18:22:27]line ПРОДАЖА [18:22:27]line ТРК (МРК, ГНК) : 41 [18:22:27]line Товар: 2710124500 [18:22:27]line Аи-95-К-5 [18:22:27]line 14.390 * 69.50 [18:22:27]line = 1000.11 [18:22:27]line НДС 12% НСП 1% [18:22:27]line > о реализуемом товаре [18:22:27]line ИТОГО: 1000.11 [18:22:27]line НСП 1% : 8.85 [18:22:27]line НДС 12% : 106.21 [18:22:27]line Наличными: 0.00 [18:22:27]line Безнал.: 1000.11 [18:22:27]line Место: АЗС № 6 "Партнер Нефть" [18:22:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:22:27]line СНО: Общий режим [18:22:27]line Чек 170 11.03.2024 18:22 [18:22:27]line Смена: 326 ФФД: 1.0 [18:22:27]line ЗНМ: 0300000009 [18:22:27]line РНМ: 0000000000090555 [18:22:27]line Версия ККМ: 001 [18:22:27]line Платежная система: О! деньги [18:22:27]line ФМ: 0000000000874811 [18:22:27]line ФД: 94995 [18:22:27]line ФПД: 67906974525896 [18:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182241&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94995&fm=67906974525896&tin=02508201610067®Number=0000000000090555&sum=100011 [18:22:27]OFD Sender: Processing packet 94995 [packets to send 30, broken 29] [18:22:27]ProducePacketName [18:22:27]name=ofd_packets/00094995 [18:22:27]OFD Sender: To server: pG, [18:22:27]CommunicateWithHost lk.salyk.kg:30040 [18:22:27]ConnectInit lk.salyk.kg [18:22:27]written 0, free lines is 4095 [18:22:27]Connected sock=10 [18:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F3 AA 07 01 32 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F1 4B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 73 01 00 35 04 06 00 3D C2 D3 18 29 C8 B8 04 92 EC C2 A0 CE 2D [18:22: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 31 31 4F 00 00 00 D0 57 47 00 96 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 13 73 01 00 F4 03 04 00 49 F7 EE 65 B6 04 01 00 00 23 10 EC F9 78 D7 96 7B [18:22:27]CommunicateWithHost err = 0 [18:22:27]CheckOFDResponse [18:22:27]1017 (14) - 77093643461234 [18:22:27]1041 (16) - 0000000000874811 [18:22:27]1040 (4) - 94995 [18:22:27]1012 (4) - 11.03.2024 12:21 [18:22:27]1206 (1) - 0 [18:22:27]OFD Sender: Remove packet 94995 [18:22:27]ProducePacketName [18:22:27]name=ofd_packets/00094995 [18:22:27]NVStorageDeleteData [18:22:28]Write to MH i2c: 01 00 00 B1 AA 5B [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: 01 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: 01 07 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: 01 07 00 B1 AA 00 80 00 00 00 6E 0D 5D [18:22:28]RasterBufferAndPrint [18:22:28]line [18:22:28]line [18:22:28]line [18:22:28]line [18:22:28]line [18:22:28]written 0, free lines is 3445 [18:22:28]process_action close_receipt done [18:22:28]requested_data is exist [18:22:28]produce_requested_data [18:22:28]requested_item fm.sn is exist - process it [18:22:28]wFMCommunicate request_size=4 [18:22:28]MH_SAM_APDU [18:22:28]CAPDU: 80 11 00 00 [18:22:28]Write to MH i2c: E2 08 00 B8 AA 80 11 00 00 00 00 00 00 DC [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:28]Read from MH i2c: E2 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 17 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 17 00 B8 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2C [18:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:22:28]wFMCommunicate OK [18:22:28]requested_item fd.num is exist - process it [18:22:28]SAM_PROTO_GetFieldsCounters [18:22:28]wFMCommunicate request_size=4 [18:22:28]MH_SAM_APDU [18:22:28]CAPDU: 80 13 00 00 [18:22:28]Write to MH i2c: E2 08 00 B9 AA 80 13 00 00 00 00 00 00 DF [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:28]Read from MH i2c: E2 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 62 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 62 00 B9 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 13 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [18:22: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 13 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:28]wFMCommunicate OK [18:22:28]SAM_PROTO_GetFieldsCounters done [18:22:28]requested_item shift.num is exist - process it [18:22:28]requested_item shift.opened is exist - process it [18:22:28]req_shift_opened [18:22:28]FM_GetShiftState [18:22:28]SAM_PROTO_GetShiftState [18:22:28]wFMCommunicate request_size=4 [18:22:28]MH_SAM_APDU [18:22:28]CAPDU: 80 13 01 00 [18:22:28]Write to MH i2c: E2 08 00 BA AA 80 13 01 00 00 00 00 00 E1 [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:28]OFD Sender: No OFD packet to send [18:22:28]Read from MH i2c: E2 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 0E 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 0E 00 BA AA 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7D [18:22:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:22:28]wFMCommunicate OK [18:22:28]SAM_PROTO_GetShiftState done [18:22:28]FM_GetShiftState done [18:22:28]req_shift_opened done [18:22:28]requested_item shift.open_date is exist - process it [18:22:28]req_shift_open_date [18:22:28]req_shift_open_date done [18:22:28]produce_requested_data done [18:22:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94995,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:22:28]process_action_free close_receipt [18:22:28]json_value_free [18:22:28]json_value_free done [18:22:28]process_json_proto returns [18:22:28]Send response to host [18:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94995,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:22:28]free response buf [18:22:28]execute_script done [18:22:28]execute_script returns [18:22:28]free content buf [18:22:28]Sock 9.Close socket [18:22:28]Sock 9.Thread stoped [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]accept exits with 7 [18:25:58]New connection [18:25:58]New thread 3066871140 created [18:25:58]Thread 3067014500 joined [18:25:58]Waiting for new connection... [18:25:58] Sock 7.Parse request [18:25:58]Sock 7.Check first char [18:25:58]Sock 7.First char is OK [18:25:58]request: POST /json_proto HTTP/1.0 [18:25:58]Method: POST [18:25:58]URL: /json_proto [18:25:58]Method is POST - this is cgi request [18:25:58]url: /json_proto [18:25:58]query_string will be loaded in cgi processing [18:25:58]execute_cgi json_proto POST (null) [18:25:58]execute_cgi path=json_proto method=POST [18:25:58]POST find Content-Length [18:25:58]Host: 172.17.62.67:8080 [18:25:58]Content-Length: 816 [18:25:58]Content-Type: application/json [18:25:58] [18:25:58]POST finish read [18:25:58]Found Content-Length = 816 [18:25:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:58]execute_script... [18: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)195955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:58]POST & json_proto [18:25:58]process_json_proto [18:25:58]json parsed OK: [18:25:58]protocol is kg_v1.0 [18:25:58]action value=close_receipt [18:25:58]process_action close_receipt [18:25:58]cmd_close_receipt [18:25:58]MH_GetDate [18:25:58]Write to MH i2c: F0 00 00 BB AA 54 [18:25:58]Write i2c OK [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 05 00 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 05 00 BB AA 00 C6 4C EF 65 BF [18:25:58]GetLastDocTimeStamp 1710181361 [18:25:58]current date 1710181574 [18:25:58]FM_GetShiftState [18:25:58]SAM_PROTO_GetShiftState [18:25:58]wFMCommunicate request_size=4 [18:25:58]MH_SAM_APDU [18:25:58]CAPDU: 80 13 01 00 [18:25:58]Write to MH i2c: E2 08 00 BC AA 80 13 01 00 00 00 00 00 E3 [18:25:58]Write i2c OK [18:25:58]MH_I2C_Read... [18:25:58]OFD Sender: No OFD packet to send [18:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:58]Read from MH i2c: E2 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: E2 0E 00 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: E2 0E 00 BC AA 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7F [18:25:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:25:58]wFMCommunicate OK [18:25:58]SAM_PROTO_GetShiftState done [18:25:58]FM_GetShiftState done [18:25:58]opened in 1710115571 [18:25:58]opened+sec_in_day 1710201971 [18:25:58]quantity*price = 50005 [18:25:58]sum+1 = 50007 [18:25:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 171 11.03.2024 18:26 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 94996 ФПД: 63315937084764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182614&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94996&fm=63315937084764&tin=02508201610067®Number=0000000000090555&sum=50006 [18:25:59]StoreToDocumentArchive [18:25:59]shift 326 fd 94996 [18:25:59]save to /storage/0326/doc_00094996 [18:25:59]save last doc name /storage/0326/doc_00094996 to /storage/kkm_last_doc_name [18:25:59]save OK [18:25:59]Clear old archive folders... [18:25:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:59]tlvbuf is 005549F0 [18:25:59]SAM_PROTO_ClearQueue [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 09 00 00 [18:25:59]Write to MH i2c: E2 08 00 C9 AA 80 09 00 00 00 00 00 00 E5 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 C9 AA 00 90 00 E7 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]SAM_PROTO_ClearQueue done [18:25:59]KKMCreateOFDPacket [18:25:59]OFDProtocolAddRootSTLVToBuf [18:25:59]FM_MakeSignedData [18:25:59]FM_MakeSignedData [18:25:59]SAM_PROTO_SignData [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 01 02 [18:25:59]Write to MH i2c: E2 08 00 CA AA 80 0D 01 02 00 00 00 00 ED [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 CA AA 00 90 00 E8 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]wFMCommunicate request_size=255 [18:25:59]MH_SAM_APDU [18: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 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C6 4C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 73 01 00 35 04 06 00 39 [18:25:59]Write to MH i2c: E2 02 01 CB AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C6 4C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 73 01 00 35 04 06 00 39 00 00 BB [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 CB AA 00 90 00 E9 [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]wFMCommunicate request_size=10 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 0D 02 02 05 95 E3 F0 45 5C [18:26:00]Write to MH i2c: E2 0D 00 CC AA 80 0D 02 02 05 00 95 E3 F0 45 5C 00 00 03 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 CC AA 00 90 00 EA [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]wFMCommunicate request_size=4 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 0D 03 02 [18:26:00]Write to MH i2c: E2 08 00 CD AA 80 0D 03 02 00 00 00 00 F2 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 0B 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 0B 00 CD AA 00 1F 7B 2D 2F BE B3 94 5D 90 00 4B [18:26:00]RAPDU: 1F 7B 2D 2F BE B3 94 5D 90 00 [18:26:00]wFMCommunicate OK [18:26:00]SAM_PROTO_SignData done [18:26:00]FM_MakeSignedData done [18:26:00]CreateOFDProtocolMessage [18:26:00]wFMCommunicate request_size=4 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 11 00 00 [18:26:00]Write to MH i2c: E2 08 00 CE AA 80 11 00 00 00 00 00 00 F2 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 17 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 17 00 CE AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 42 [18:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:26:00]wFMCommunicate OK [18:26:00]CreateOFDProtocolMessage done [18:26:00]OFDSenderStorePacket 94996 [18:26:00]StoreOFDPacket docnum=94996 [18:26:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B2 09 07 01 31 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C6 4C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 73 01 00 35 04 06 00 39 95 E3 F0 45 5C 1F 7B 2D 2F BE B3 94 5D [18:26:00]CheckFolder [18:26:00]dirname=/storage/ofd_packets [18:26:00]CheckFolder done [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00094996 [18:26:00]NVStorageSaveData ofd_packets/00094996 [18:26:00]File name is /storage/ofd_packets/00094996 [18:26:00]Write 301 bytes [18:26:00]NVStorageSaveData done [18:26:00]OFDSenderStorePacket done [18:26:00]KKMCreateOFDPacket done [18:26:00]NVStorageSaveData kkm_last_timestamp [18:26:00]File name is /storage/kkm_last_timestamp [18:26:00]Write 4 bytes [18:26:00]NVStorageSaveData done [18:26:00]ExternCall_PrintAddStr [18:26:00]wPrintStart [18:26:00]Write to MH i2c: 01 00 00 CF AA 79 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 CF AA 00 80 00 00 00 FF 0F 0E [18:26:00]RasterBufferAndPrint [18:26:00]line Счет N : (1)195955 [18:26:00]line ИНН: 02508201610067 [18:26:00]line Контрольно-Кассовый Чек [18:26:00]line ПРОДАЖА [18:26:00]line ТРК (МРК, ГНК) : 12 [18:26:00]line Товар: 2710124130 [18:26:00]line Аи-92-К-5 [18:26:00]line 7.950 * 62.90 [18:26:00]line = 500.06 [18:26:00]line НДС 12% НСП 1% [18:26:00]line > о реализуемом товаре [18:26:00]line ИТОГО: 500.06 [18:26:00]line НСП 1% : 4.42 [18:26:00]line НДС 12% : 53.10 [18:26:00]line Наличными: 0.00 [18:26:00]line Безнал.: 500.06 [18:26:00]line Место: АЗС № 6 "Партнер Нефть" [18:26:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:26:00]line СНО: Общий режим [18:26:00]line Чек 171 11.03.2024 18:26 [18:26:00]line Смена: 326 ФФД: 1.0 [18:26:00]line ЗНМ: 0300000009 [18:26:00]line РНМ: 0000000000090555 [18:26:00]line Версия ККМ: 001 [18:26:00]line Платежная система: Бакай Банк [18:26:00]line ФМ: 0000000000874811 [18:26:00]line ФД: 94996 [18:26:00]line ФПД: 63315937084764 [18:26:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182614&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94996&fm=63315937084764&tin=02508201610067®Number=0000000000090555&sum=50006 [18:26:00]OFD Sender: Processing packet 94996 [packets to send 30, broken 29] [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00094996 [18:26:00]OFD Sender: To server: pG, [18:26:00]CommunicateWithHost lk.salyk.kg:30040 [18:26:00]ConnectInit lk.salyk.kg [18:26:00]written 0, free lines is 4095 [18:26:00]Connected sock=10 [18: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 31 31 0F 01 00 00 B2 09 07 01 31 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 C6 4C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 73 01 00 35 04 06 00 39 95 E3 F0 45 5C 1F 7B 2D 2F BE B3 94 5D [18: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 31 31 4F 00 00 00 15 D3 47 00 28 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 14 73 01 00 F4 03 04 00 1E F8 EE 65 B6 04 01 00 00 BE 5F AE 2D F6 A8 43 52 [18:26:00]CommunicateWithHost err = 0 [18:26:00]CheckOFDResponse [18:26:00]1017 (14) - 77093643461234 [18:26:00]1041 (16) - 0000000000874811 [18:26:00]1040 (4) - 94996 [18:26:00]1012 (4) - 11.03.2024 12:25 [18:26:00]1206 (1) - 0 [18:26:00]OFD Sender: Remove packet 94996 [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00094996 [18:26:00]NVStorageDeleteData [18:26:01]Write to MH i2c: 01 00 00 F9 AA A3 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 07 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 07 00 F9 AA 00 80 00 00 00 5E 0D 95 [18:26:01]RasterBufferAndPrint [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]written 0, free lines is 3428 [18:26:01]process_action close_receipt done [18:26:01]requested_data is exist [18:26:01]produce_requested_data [18:26:01]requested_item fm.sn is exist - process it [18:26:01]wFMCommunicate request_size=4 [18:26:01]MH_SAM_APDU [18:26:01]CAPDU: 80 11 00 00 [18:26:01]Write to MH i2c: E2 08 00 00 AB 80 11 00 00 00 00 00 00 25 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:01]Read from MH i2c: E2 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 17 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 17 00 00 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [18:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:26:01]wFMCommunicate OK [18:26:01]requested_item fd.num is exist - process it [18:26:01]SAM_PROTO_GetFieldsCounters [18:26:01]wFMCommunicate request_size=4 [18:26:01]MH_SAM_APDU [18:26:01]CAPDU: 80 13 00 00 [18:26:01]Write to MH i2c: E2 08 00 01 AB 80 13 00 00 00 00 00 00 28 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:01]Read from MH i2c: E2 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 62 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 62 00 01 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 14 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [18:26: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 14 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:01]wFMCommunicate OK [18:26:01]SAM_PROTO_GetFieldsCounters done [18:26:01]requested_item shift.num is exist - process it [18:26:01]requested_item shift.opened is exist - process it [18:26:01]req_shift_opened [18:26:01]FM_GetShiftState [18:26:01]SAM_PROTO_GetShiftState [18:26:01]wFMCommunicate request_size=4 [18:26:01]MH_SAM_APDU [18:26:01]CAPDU: 80 13 01 00 [18:26:01]Write to MH i2c: E2 08 00 02 AB 80 13 01 00 00 00 00 00 2A [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:01]Read from MH i2c: E2 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 0E 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 0E 00 02 AB 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C6 [18:26:01]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:26:01]wFMCommunicate OK [18:26:01]SAM_PROTO_GetShiftState done [18:26:01]FM_GetShiftState done [18:26:01]req_shift_opened done [18:26:01]requested_item shift.open_date is exist - process it [18:26:01]req_shift_open_date [18:26:01]req_shift_open_date done [18:26:01]produce_requested_data done [18:26:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94996,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:26:01]process_action_free close_receipt [18:26:01]json_value_free [18:26:01]json_value_free done [18:26:01]process_json_proto returns [18:26:01]Send response to host [18:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94996,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:26:01]free response buf [18:26:01]execute_script done [18:26:01]execute_script returns [18:26:01]free content buf [18:26:01]Sock 7.Close socket [18:26:01]Sock 7.Thread stoped [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:27]accept exits with 9 [18:27:27]New connection [18:27:27]New thread 3067014500 created [18:27:27]Thread 3066871140 joined [18:27:27]Waiting for new connection... [18:27:27] Sock 9.Parse request [18:27:27]Sock 9.Check first char [18:27:27]Sock 9.First char is OK [18:27:27]request: POST /json_proto HTTP/1.0 [18:27:27]Method: POST [18:27:27]URL: /json_proto [18:27:27]Method is POST - this is cgi request [18:27:27]url: /json_proto [18:27:27]query_string will be loaded in cgi processing [18:27:27]execute_cgi json_proto POST (null) [18:27:27]execute_cgi path=json_proto method=POST [18:27:27]POST find Content-Length [18:27:27]Host: 172.17.62.67:8080 [18:27:27]Content-Length: 675 [18:27:27]Content-Type: application/json [18:27:27] [18:27:27]POST finish read [18:27:27]Found Content-Length = 675 [18:27:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:27]execute_script... [18:27: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)195956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:27]POST & json_proto [18:27:27]process_json_proto [18:27:27]json parsed OK: [18:27:27]protocol is kg_v1.0 [18:27:27]action value=close_receipt [18:27:27]process_action close_receipt [18:27:27]cmd_close_receipt [18:27:27]MH_GetDate [18:27:27]Write to MH i2c: F0 00 00 03 AB 9D [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: F0 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: F0 05 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: F0 05 00 03 AB 00 1E 4D EF 65 61 [18:27:27]GetLastDocTimeStamp 1710181574 [18:27:27]current date 1710181662 [18:27:27]FM_GetShiftState [18:27:27]SAM_PROTO_GetShiftState [18:27:27]wFMCommunicate request_size=4 [18:27:27]MH_SAM_APDU [18:27:27]CAPDU: 80 13 01 00 [18:27:27]Write to MH i2c: E2 08 00 04 AB 80 13 01 00 00 00 00 00 2C [18:27:27]Write i2c OK [18:27:27]MH_I2C_Read... [18:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:27]Read from MH i2c: E2 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 0E 00 [18:27:27]MH_I2C_Read... [18:27:27]Read from MH i2c: E2 0E 00 04 AB 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C8 [18:27:27]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:27:27]wFMCommunicate OK [18:27:27]SAM_PROTO_GetShiftState done [18:27:27]FM_GetShiftState done [18:27:27]opened in 1710115571 [18:27:27]opened+sec_in_day 1710201971 [18:27:27]quantity*price = 100003 [18:27:27]sum+1 = 100005 [18:27:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 172 11.03.2024 18:27 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94997 ФПД: 223050201558604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182742&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94997&fm=223050201558604&tin=02508201610067®Number=0000000000090555&sum=100000 [18:27:28]StoreToDocumentArchive [18:27:28]shift 326 fd 94997 [18:27:28]save to /storage/0326/doc_00094997 [18:27:28]save last doc name /storage/0326/doc_00094997 to /storage/kkm_last_doc_name [18:27:28]save OK [18:27:28]Clear old archive folders... [18:27:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:27:28]tlvbuf is 0021F2F0 [18:27:28]SAM_PROTO_ClearQueue [18:27:28]wFMCommunicate request_size=4 [18:27:28]MH_SAM_APDU [18:27:28]CAPDU: 80 09 00 00 [18:27:28]Write to MH i2c: E2 08 00 11 AB 80 09 00 00 00 00 00 00 2E [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:28]Read from MH i2c: E2 03 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 03 00 11 AB 00 90 00 30 [18:27:28]RAPDU: 90 00 [18:27:28]wFMCommunicate OK [18:27:28]SAM_PROTO_ClearQueue done [18:27:28]KKMCreateOFDPacket [18:27:28]OFDProtocolAddRootSTLVToBuf [18:27:28]FM_MakeSignedData [18:27:28]FM_MakeSignedData [18:27:28]SAM_PROTO_SignData [18:27:28]wFMCommunicate request_size=4 [18:27:28]MH_SAM_APDU [18:27:28]CAPDU: 80 0D 01 02 [18:27:28]Write to MH i2c: E2 08 00 12 AB 80 0D 01 02 00 00 00 00 36 [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 03 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 03 00 12 AB 00 90 00 31 [18:27:28]RAPDU: 90 00 [18:27:28]wFMCommunicate OK [18:27:28]wFMCommunicate request_size=255 [18:27:28]MH_SAM_APDU [18:27:28]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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 1E 4D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 73 01 00 35 04 06 00 [18:27:28]Write to MH i2c: E2 02 01 13 AB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 1E 4D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 73 01 00 35 04 06 00 00 00 17 [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 03 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 03 00 13 AB 00 90 00 32 [18:27:28]RAPDU: 90 00 [18:27:28]wFMCommunicate OK [18:27:28]wFMCommunicate request_size=11 [18:27:28]MH_SAM_APDU [18:27:28]CAPDU: 80 0D 02 02 06 CA DC EC 07 EE 4C [18:27:28]Write to MH i2c: E2 0E 00 14 AB 80 0D 02 02 06 00 CA DC EC 07 EE 4C 00 00 18 [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 03 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 03 00 14 AB 00 90 00 33 [18:27:28]RAPDU: 90 00 [18:27:28]wFMCommunicate OK [18:27:28]wFMCommunicate request_size=4 [18:27:28]MH_SAM_APDU [18:27:28]CAPDU: 80 0D 03 02 [18:27:28]Write to MH i2c: E2 08 00 15 AB 80 0D 03 02 00 00 00 00 3B [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 0B 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 0B 00 15 AB 00 68 18 6D 74 F5 82 89 D4 90 00 71 [18:27:28]RAPDU: 68 18 6D 74 F5 82 89 D4 90 00 [18:27:28]wFMCommunicate OK [18:27:28]SAM_PROTO_SignData done [18:27:28]FM_MakeSignedData done [18:27:28]CreateOFDProtocolMessage [18:27:28]wFMCommunicate request_size=4 [18:27:28]MH_SAM_APDU [18:27:28]CAPDU: 80 11 00 00 [18:27:28]Write to MH i2c: E2 08 00 16 AB 80 11 00 00 00 00 00 00 3B [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:28]Read from MH i2c: E2 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 17 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: E2 17 00 16 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8B [18:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:27:28]wFMCommunicate OK [18:27:28]CreateOFDProtocolMessage done [18:27:28]OFDSenderStorePacket 94997 [18:27:28]StoreOFDPacket docnum=94997 [18:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 13 88 08 01 A6 8A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 1E 4D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 73 01 00 35 04 06 00 CA DC EC 07 EE 4C 68 18 6D 74 F5 82 89 D4 [18:27:28]CheckFolder [18:27:28]dirname=/storage/ofd_packets [18:27:28]CheckFolder done [18:27:28]ProducePacketName [18:27:28]name=ofd_packets/00094997 [18:27:28]NVStorageSaveData ofd_packets/00094997 [18:27:28]File name is /storage/ofd_packets/00094997 [18:27:28]Write 302 bytes [18:27:28]NVStorageSaveData done [18:27:28]OFDSenderStorePacket done [18:27:28]KKMCreateOFDPacket done [18:27:28]NVStorageSaveData kkm_last_timestamp [18:27:28]File name is /storage/kkm_last_timestamp [18:27:28]Write 4 bytes [18:27:28]NVStorageSaveData done [18:27:28]ExternCall_PrintAddStr [18:27:28]wPrintStart [18:27:28]Write to MH i2c: 01 00 00 17 AB C2 [18:27:28]Write i2c OK [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 07 00 [18:27:28]MH_I2C_Read... [18:27:28]Read from MH i2c: 01 07 00 17 AB 00 80 00 00 00 FF 0F 57 [18:27:28]RasterBufferAndPrint [18:27:28]line Счет N : (1)195956 [18:27:28]line ИНН: 02508201610067 [18:27:28]line Контрольно-Кассовый Чек [18:27:28]line ПРОДАЖА [18:27:28]line ТРК (МРК, ГНК) : 33 [18:27:28]line Товар: 2710124130 [18:27:28]line SUPER 92-К-5 [18:27:28]line 15.650 * 63.90 [18:27:28]line = 1000.04 [18:27:28]line НДС 12% НСП 1% [18:27:28]line > о реализуемом товаре [18:27:28]line ОКРУГЛЕНИЕ: -0.04 [18:27:28]line ИТОГО: 1000.00 [18:27:28]line Внесено: 1000.00 [18:27:28]line СДАЧА: 0.00 [18:27:28]line НСП 1% : 8.85 [18:27:28]line НДС 12% : 106.20 [18:27:28]line Наличными: 1000.00 [18:27:28]line Безнал.: 0.00 [18:27:28]line Место: АЗС № 6 "Партнер Нефть" [18:27:28]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:27:28]line СНО: Общий режим [18:27:28]line Чек 172 11.03.2024 18:27 [18:27:28]line Смена: 326 ФФД: 1.0 [18:27:28]line ЗНМ: 0300000009 [18:27:28]line РНМ: 0000000000090555 [18:27:28]line Версия ККМ: 001 [18:27:28]line ФМ: 0000000000874811 [18:27:28]line ФД: 94997 [18:27:28]line ФПД: 223050201558604 [18:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182742&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94997&fm=223050201558604&tin=02508201610067®Number=0000000000090555&sum=100000 [18:27:29]OFD Sender: Processing packet 94997 [packets to send 30, broken 29] [18:27:29]ProducePacketName [18:27:29]name=ofd_packets/00094997 [18:27:29]OFD Sender: To server: pG, [18:27:29]CommunicateWithHost lk.salyk.kg:30040 [18:27:29]ConnectInit lk.salyk.kg [18:27:29]written 0, free lines is 4095 [18:27:29]Connected sock=10 [18:27: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 31 31 10 01 00 00 13 88 08 01 A6 8A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 1E 4D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 73 01 00 35 04 06 00 CA DC EC 07 EE 4C 68 18 6D 74 F5 82 89 D4 [18:27: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 31 31 4F 00 00 00 85 46 47 00 EE 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 15 73 01 00 F4 03 04 00 77 F8 EE 65 B6 04 01 00 00 48 7A D6 4A 67 EB 3E 47 [18:27:29]CommunicateWithHost err = 0 [18:27:29]CheckOFDResponse [18:27:29]1017 (14) - 77093643461234 [18:27:29]1041 (16) - 0000000000874811 [18:27:29]1040 (4) - 94997 [18:27:29]1012 (4) - 11.03.2024 12:26 [18:27:29]1206 (1) - 0 [18:27:29]OFD Sender: Remove packet 94997 [18:27:29]ProducePacketName [18:27:29]name=ofd_packets/00094997 [18:27:29]NVStorageDeleteData [18:27:29]Write to MH i2c: 01 00 00 42 AB ED [18:27:29]Write i2c OK [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: 01 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: 01 07 00 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: 01 07 00 42 AB 00 80 00 00 00 59 0D DA [18:27:29]RasterBufferAndPrint [18:27:29]line [18:27:29]line [18:27:29]line [18:27:29]line [18:27:29]line [18:27:29]written 0, free lines is 3423 [18:27:29]process_action close_receipt done [18:27:29]requested_data is exist [18:27:29]produce_requested_data [18:27:29]requested_item fm.sn is exist - process it [18:27:29]wFMCommunicate request_size=4 [18:27:29]MH_SAM_APDU [18:27:29]CAPDU: 80 11 00 00 [18:27:29]Write to MH i2c: E2 08 00 49 AB 80 11 00 00 00 00 00 00 6E [18:27:29]Write i2c OK [18:27:29]MH_I2C_Read... [18:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:29]Read from MH i2c: E2 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: E2 17 00 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: E2 17 00 49 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [18:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:27:29]wFMCommunicate OK [18:27:29]requested_item fd.num is exist - process it [18:27:29]SAM_PROTO_GetFieldsCounters [18:27:29]wFMCommunicate request_size=4 [18:27:29]MH_SAM_APDU [18:27:29]CAPDU: 80 13 00 00 [18:27:29]Write to MH i2c: E2 08 00 4A AB 80 13 00 00 00 00 00 00 71 [18:27:29]Write i2c OK [18:27:29]MH_I2C_Read... [18:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:29]Read from MH i2c: E2 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: E2 62 00 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: E2 62 00 4A AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 15 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [18:27: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 15 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:29]wFMCommunicate OK [18:27:29]SAM_PROTO_GetFieldsCounters done [18:27:29]requested_item shift.num is exist - process it [18:27:29]requested_item shift.opened is exist - process it [18:27:29]req_shift_opened [18:27:29]FM_GetShiftState [18:27:29]SAM_PROTO_GetShiftState [18:27:29]wFMCommunicate request_size=4 [18:27:29]MH_SAM_APDU [18:27:29]CAPDU: 80 13 01 00 [18:27:29]Write to MH i2c: E2 08 00 4B AB 80 13 01 00 00 00 00 00 73 [18:27:29]Write i2c OK [18:27:29]MH_I2C_Read... [18:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:29]Read from MH i2c: E2 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: E2 0E 00 [18:27:29]MH_I2C_Read... [18:27:29]Read from MH i2c: E2 0E 00 4B AB 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0F [18:27:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:27:29]wFMCommunicate OK [18:27:29]SAM_PROTO_GetShiftState done [18:27:29]FM_GetShiftState done [18:27:29]req_shift_opened done [18:27:29]requested_item shift.open_date is exist - process it [18:27:29]req_shift_open_date [18:27:29]req_shift_open_date done [18:27:29]produce_requested_data done [18:27:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94997,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:27:29]process_action_free close_receipt [18:27:29]json_value_free [18:27:29]json_value_free done [18:27:29]process_json_proto returns [18:27:29]Send response to host [18:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94997,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:27:29]free response buf [18:27:29]execute_script done [18:27:29]execute_script returns [18:27:29]free content buf [18:27:29]Sock 9.Close socket [18:27:29]Sock 9.Thread stoped [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:51]accept exits with 7 [18:27:51]New connection [18:27:51]New thread 3066871140 created [18:27:51]Thread 3067014500 joined [18:27:51]Waiting for new connection... [18:27:51] Sock 7.Parse request [18:27:51]Sock 7.Check first char [18:27:51]Sock 7.First char is OK [18:27:51]request: POST /json_proto HTTP/1.0 [18:27:51]Method: POST [18:27:51]URL: /json_proto [18:27:51]Method is POST - this is cgi request [18:27:51]url: /json_proto [18:27:51]query_string will be loaded in cgi processing [18:27:51]execute_cgi json_proto POST (null) [18:27:51]execute_cgi path=json_proto method=POST [18:27:51]POST find Content-Length [18:27:51]Host: 172.17.62.67:8080 [18:27:51]Content-Length: 682 [18:27:51]Content-Type: application/json [18:27:51] [18:27:51]POST finish read [18:27:51]Found Content-Length = 682 [18:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.17, "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" ] } } [18:27:51]execute_script... [18:27: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)195957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 23.850, "sum" : 1500.17, "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" ] } } [18:27:51]POST & json_proto [18:27:51]process_json_proto [18:27:51]json parsed OK: [18:27:51]protocol is kg_v1.0 [18:27:51]action value=close_receipt [18:27:51]process_action close_receipt [18:27:51]cmd_close_receipt [18:27:51]MH_GetDate [18:27:51]Write to MH i2c: F0 00 00 4C AB E6 [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: F0 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: F0 05 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: F0 05 00 4C AB 00 36 4D EF 65 C2 [18:27:51]GetLastDocTimeStamp 1710181662 [18:27:51]current date 1710181686 [18:27:51]FM_GetShiftState [18:27:51]SAM_PROTO_GetShiftState [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 13 01 00 [18:27:51]Write to MH i2c: E2 08 00 4D AB 80 13 01 00 00 00 00 00 75 [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 0E 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 0E 00 4D AB 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 11 [18:27:51]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:27:51]wFMCommunicate OK [18:27:51]SAM_PROTO_GetShiftState done [18:27:51]FM_GetShiftState done [18:27:51]opened in 1710115571 [18:27:51]opened+sec_in_day 1710201971 [18:27:51]quantity*price = 150016 [18:27:51]sum+1 = 150018 [18:27:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 173 11.03.2024 18:28 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94998 ФПД: 183388756686424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182806&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94998&fm=183388756686424&tin=02508201610067®Number=0000000000090555&sum=150000 [18:27:52]StoreToDocumentArchive [18:27:52]shift 326 fd 94998 [18:27:52]save to /storage/0326/doc_00094998 [18:27:52]save last doc name /storage/0326/doc_00094998 to /storage/kkm_last_doc_name [18:27:52]save OK [18:27:52]Clear old archive folders... [18:27:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:52]tlvbuf is 005209F0 [18:27:52]SAM_PROTO_ClearQueue [18:27:52]wFMCommunicate request_size=4 [18:27:52]MH_SAM_APDU [18:27:52]CAPDU: 80 09 00 00 [18:27:52]Write to MH i2c: E2 08 00 5A AB 80 09 00 00 00 00 00 00 77 [18:27:52]Write i2c OK [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 [18:27:52]MH_I2C_Read... [18:27:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:52]Read from MH i2c: E2 03 00 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 03 00 5A AB 00 90 00 79 [18:27:52]RAPDU: 90 00 [18:27:52]wFMCommunicate OK [18:27:52]SAM_PROTO_ClearQueue done [18:27:52]KKMCreateOFDPacket [18:27:52]OFDProtocolAddRootSTLVToBuf [18:27:52]FM_MakeSignedData [18:27:52]FM_MakeSignedData [18:27:52]SAM_PROTO_SignData [18:27:52]wFMCommunicate request_size=4 [18:27:52]MH_SAM_APDU [18:27:52]CAPDU: 80 0D 01 02 [18:27:52]Write to MH i2c: E2 08 00 5B AB 80 0D 01 02 00 00 00 00 7F [18:27:52]Write i2c OK [18:27:52]MH_I2C_Read... [18:27:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:52]Read from MH i2c: E2 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 03 00 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 03 00 5B AB 00 90 00 7A [18:27:52]RAPDU: 90 00 [18:27:52]wFMCommunicate OK [18:27:52]wFMCommunicate request_size=255 [18:27:52]MH_SAM_APDU [18:27:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 36 4D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 73 01 00 35 04 06 00 A6 [18:27:52]Write to MH i2c: E2 02 01 5C AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 36 4D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 73 01 00 35 04 06 00 A6 00 00 22 [18:27:52]Write i2c OK [18:27:52]MH_I2C_Read... [18:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:52]Read from MH i2c: E2 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 03 00 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 03 00 5C AB 00 90 00 7B [18:27:52]RAPDU: 90 00 [18:27:52]wFMCommunicate OK [18:27:52]wFMCommunicate request_size=10 [18:27:52]MH_SAM_APDU [18:27:52]CAPDU: 80 0D 02 02 05 CA 85 B2 B6 58 [18:27:52]Write to MH i2c: E2 0D 00 5D AB 80 0D 02 02 05 00 CA 85 B2 B6 58 00 00 9B [18:27:52]Write i2c OK [18:27:52]MH_I2C_Read... [18:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:52]Read from MH i2c: E2 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 03 00 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 03 00 5D AB 00 90 00 7C [18:27:52]RAPDU: 90 00 [18:27:52]wFMCommunicate OK [18:27:52]wFMCommunicate request_size=4 [18:27:52]MH_SAM_APDU [18:27:52]CAPDU: 80 0D 03 02 [18:27:52]Write to MH i2c: E2 08 00 5E AB 80 0D 03 02 00 00 00 00 84 [18:27:52]Write i2c OK [18:27:52]MH_I2C_Read... [18:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:52]Read from MH i2c: E2 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 0B 00 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 0B 00 5E AB 00 A5 1C 21 AD 42 76 10 41 90 00 1D [18:27:52]RAPDU: A5 1C 21 AD 42 76 10 41 90 00 [18:27:52]wFMCommunicate OK [18:27:52]SAM_PROTO_SignData done [18:27:52]FM_MakeSignedData done [18:27:52]CreateOFDProtocolMessage [18:27:52]wFMCommunicate request_size=4 [18:27:52]MH_SAM_APDU [18:27:52]CAPDU: 80 11 00 00 [18:27:52]Write to MH i2c: E2 08 00 5F AB 80 11 00 00 00 00 00 00 84 [18:27:52]Write i2c OK [18:27:52]MH_I2C_Read... [18:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:52]Read from MH i2c: E2 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 17 00 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: E2 17 00 5F AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D4 [18:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:27:52]wFMCommunicate OK [18:27:52]CreateOFDProtocolMessage done [18:27:52]OFDSenderStorePacket 94998 [18:27:52]StoreOFDPacket docnum=94998 [18:27:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 66 B7 07 01 06 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 36 4D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 73 01 00 35 04 06 00 A6 CA 85 B2 B6 58 A5 1C 21 AD 42 76 10 41 [18:27:52]CheckFolder [18:27:52]dirname=/storage/ofd_packets [18:27:52]CheckFolder done [18:27:52]ProducePacketName [18:27:52]name=ofd_packets/00094998 [18:27:52]NVStorageSaveData ofd_packets/00094998 [18:27:52]File name is /storage/ofd_packets/00094998 [18:27:52]Write 301 bytes [18:27:52]NVStorageSaveData done [18:27:52]OFDSenderStorePacket done [18:27:52]KKMCreateOFDPacket done [18:27:52]NVStorageSaveData kkm_last_timestamp [18:27:52]File name is /storage/kkm_last_timestamp [18:27:52]Write 4 bytes [18:27:52]NVStorageSaveData done [18:27:52]ExternCall_PrintAddStr [18:27:52]wPrintStart [18:27:52]Write to MH i2c: 01 00 00 60 AB 0B [18:27:52]Write i2c OK [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: 01 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: 01 07 00 [18:27:52]MH_I2C_Read... [18:27:52]Read from MH i2c: 01 07 00 60 AB 00 80 00 00 00 FF 0F A0 [18:27:52]RasterBufferAndPrint [18:27:52]line Счет N : (1)195957 [18:27:52]line ИНН: 02508201610067 [18:27:52]line Контрольно-Кассовый Чек [18:27:52]line ПРОДАЖА [18:27:52]line ТРК (МРК, ГНК) : 12 [18:27:52]line Товар: 2710124130 [18:27:52]line Аи-92-К-5 [18:27:52]line 23.850 * 62.90 [18:27:52]line = 1500.17 [18:27:52]line НДС 12% НСП 1% [18:27:52]line > о реализуемом товаре [18:27:52]line ОКРУГЛЕНИЕ: -0.17 [18:27:52]line ИТОГО: 1500.00 [18:27:52]line Внесено: 1500.00 [18:27:52]line СДАЧА: 0.00 [18:27:52]line НСП 1% : 13.28 [18:27:52]line НДС 12% : 159.31 [18:27:52]line Наличными: 1500.00 [18:27:52]line Безнал.: 0.00 [18:27:52]line Место: АЗС № 6 "Партнер Нефть" [18:27:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:27:52]line СНО: Общий режим [18:27:52]line Чек 173 11.03.2024 18:28 [18:27:52]line Смена: 326 ФФД: 1.0 [18:27:52]line ЗНМ: 0300000009 [18:27:52]line РНМ: 0000000000090555 [18:27:52]line Версия ККМ: 001 [18:27:52]line ФМ: 0000000000874811 [18:27:52]line ФД: 94998 [18:27:52]line ФПД: 183388756686424 [18:27:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T182806&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94998&fm=183388756686424&tin=02508201610067®Number=0000000000090555&sum=150000 [18:27:53]OFD Sender: Processing packet 94998 [packets to send 30, broken 29] [18:27:53]ProducePacketName [18:27:53]name=ofd_packets/00094998 [18:27:53]OFD Sender: To server: pG, [18:27:53]CommunicateWithHost lk.salyk.kg:30040 [18:27:53]ConnectInit lk.salyk.kg [18:27:53]written 0, free lines is 4095 [18:27:53]Connected sock=10 [18:27:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 66 B7 07 01 06 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 36 4D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 73 01 00 35 04 06 00 A6 CA 85 B2 B6 58 A5 1C 21 AD 42 76 10 41 [18:27:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E4 12 47 00 8D 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 16 73 01 00 F4 03 04 00 8F F8 EE 65 B6 04 01 00 00 F8 2D 07 1F 05 2D C6 D4 [18:27:53]CommunicateWithHost err = 0 [18:27:53]CheckOFDResponse [18:27:53]1017 (14) - 77093643461234 [18:27:53]1041 (16) - 0000000000874811 [18:27:53]1040 (4) - 94998 [18:27:53]1012 (4) - 11.03.2024 12:26 [18:27:53]1206 (1) - 0 [18:27:53]OFD Sender: Remove packet 94998 [18:27:53]ProducePacketName [18:27:53]name=ofd_packets/00094998 [18:27:53]NVStorageDeleteData [18:27:53]Write to MH i2c: 01 00 00 8B AB 36 [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: 01 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: 01 07 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: 01 07 00 8B AB 00 80 00 00 00 5E 0D 28 [18:27:53]RasterBufferAndPrint [18:27:53]line [18:27:53]line [18:27:53]line [18:27:53]line [18:27:53]line [18:27:53]written 0, free lines is 3428 [18:27:53]process_action close_receipt done [18:27:53]requested_data is exist [18:27:53]produce_requested_data [18:27:53]requested_item fm.sn is exist - process it [18:27:53]wFMCommunicate request_size=4 [18:27:53]MH_SAM_APDU [18:27:53]CAPDU: 80 11 00 00 [18:27:53]Write to MH i2c: E2 08 00 92 AB 80 11 00 00 00 00 00 00 B7 [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:53]Read from MH i2c: E2 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 17 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 17 00 92 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 07 [18:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:27:53]wFMCommunicate OK [18:27:53]requested_item fd.num is exist - process it [18:27:53]SAM_PROTO_GetFieldsCounters [18:27:53]wFMCommunicate request_size=4 [18:27:53]MH_SAM_APDU [18:27:53]CAPDU: 80 13 00 00 [18:27:53]Write to MH i2c: E2 08 00 93 AB 80 13 00 00 00 00 00 00 BA [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:53]Read from MH i2c: E2 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 62 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 62 00 93 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 16 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [18:27:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 16 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:53]wFMCommunicate OK [18:27:53]SAM_PROTO_GetFieldsCounters done [18:27:53]requested_item shift.num is exist - process it [18:27:53]requested_item shift.opened is exist - process it [18:27:53]req_shift_opened [18:27:53]FM_GetShiftState [18:27:53]SAM_PROTO_GetShiftState [18:27:53]wFMCommunicate request_size=4 [18:27:53]MH_SAM_APDU [18:27:53]CAPDU: 80 13 01 00 [18:27:53]Write to MH i2c: E2 08 00 94 AB 80 13 01 00 00 00 00 00 BC [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:53]OFD Sender: No OFD packet to send [18:27:53]Read from MH i2c: E2 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 0E 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 0E 00 94 AB 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 58 [18:27:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:27:53]wFMCommunicate OK [18:27:53]SAM_PROTO_GetShiftState done [18:27:53]FM_GetShiftState done [18:27:53]req_shift_opened done [18:27:53]requested_item shift.open_date is exist - process it [18:27:53]req_shift_open_date [18:27:53]req_shift_open_date done [18:27:53]produce_requested_data done [18:27:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94998,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:27:53]process_action_free close_receipt [18:27:53]json_value_free [18:27:53]json_value_free done [18:27:53]process_json_proto returns [18:27:53]Send response to host [18:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94998,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:27:53]free response buf [18:27:53]execute_script done [18:27:53]execute_script returns [18:27:53]free content buf [18:27:53]Sock 7.Close socket [18:27:53]Sock 7.Thread stoped [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:18]accept exits with 9 [18:31:18]New connection [18:31:18]New thread 3067014500 created [18:31:18]Thread 3066871140 joined [18:31:18]Waiting for new connection... [18:31:18] Sock 9.Parse request [18:31:18]Sock 9.Check first char [18:31:18]Sock 9.First char is OK [18:31:18]request: POST /json_proto HTTP/1.0 [18:31:18]Method: POST [18:31:18]URL: /json_proto [18:31:18]Method is POST - this is cgi request [18:31:18]url: /json_proto [18:31:18]query_string will be loaded in cgi processing [18:31:18]execute_cgi json_proto POST (null) [18:31:18]execute_cgi path=json_proto method=POST [18:31:18]POST find Content-Length [18:31:18]Host: 172.17.62.67:8080 [18:31:18]Content-Length: 682 [18:31:18]Content-Type: application/json [18:31:18] [18:31:18]POST finish read [18:31:18]Found Content-Length = 682 [18:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:18]execute_script... [18:31:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:18]POST & json_proto [18:31:18]process_json_proto [18:31:18]json parsed OK: [18:31:18]protocol is kg_v1.0 [18:31:18]action value=close_receipt [18:31:18]process_action close_receipt [18:31:18]cmd_close_receipt [18:31:18]MH_GetDate [18:31:18]Write to MH i2c: F0 00 00 95 AB 2F [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: F0 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: F0 05 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: F0 05 00 95 AB 00 06 4E EF 65 DC [18:31:18]GetLastDocTimeStamp 1710181686 [18:31:18]current date 1710181894 [18:31:18]FM_GetShiftState [18:31:18]SAM_PROTO_GetShiftState [18:31:18]wFMCommunicate request_size=4 [18:31:18]MH_SAM_APDU [18:31:18]CAPDU: 80 13 01 00 [18:31:18]Write to MH i2c: E2 08 00 96 AB 80 13 01 00 00 00 00 00 BE [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:18]Read from MH i2c: E2 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 0E 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 0E 00 96 AB 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5A [18:31:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:31:18]wFMCommunicate OK [18:31:18]SAM_PROTO_GetShiftState done [18:31:18]FM_GetShiftState done [18:31:18]opened in 1710115571 [18:31:18]opened+sec_in_day 1710201971 [18:31:18]quantity*price = 100011 [18:31:18]sum+1 = 100012 [18:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 174 11.03.2024 18:31 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 94999 ФПД: 52398747332580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T183134&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94999&fm=52398747332580&tin=02508201610067®Number=0000000000090555&sum=100000 [18:31:19]StoreToDocumentArchive [18:31:19]shift 326 fd 94999 [18:31:19]save to /storage/0326/doc_00094999 [18:31:19]save last doc name /storage/0326/doc_00094999 to /storage/kkm_last_doc_name [18:31:19]save OK [18:31:19]Clear old archive folders... [18:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:19]tlvbuf is 003209A0 [18:31:19]SAM_PROTO_ClearQueue [18:31:19]wFMCommunicate request_size=4 [18:31:19]MH_SAM_APDU [18:31:19]CAPDU: 80 09 00 00 [18:31:19]Write to MH i2c: E2 08 00 A3 AB 80 09 00 00 00 00 00 00 C0 [18:31:19]Write i2c OK [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 [18:31:19]MH_I2C_Read... [18:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:19]Read from MH i2c: E2 03 00 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 03 00 A3 AB 00 90 00 C2 [18:31:19]RAPDU: 90 00 [18:31:19]wFMCommunicate OK [18:31:19]SAM_PROTO_ClearQueue done [18:31:19]KKMCreateOFDPacket [18:31:19]OFDProtocolAddRootSTLVToBuf [18:31:19]FM_MakeSignedData [18:31:19]FM_MakeSignedData [18:31:19]SAM_PROTO_SignData [18:31:19]wFMCommunicate request_size=4 [18:31:19]MH_SAM_APDU [18:31:19]CAPDU: 80 0D 01 02 [18:31:19]Write to MH i2c: E2 08 00 A4 AB 80 0D 01 02 00 00 00 00 C8 [18:31:19]Write i2c OK [18:31:19]MH_I2C_Read... [18:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:19]Read from MH i2c: E2 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 03 00 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 03 00 A4 AB 00 90 00 C3 [18:31:19]RAPDU: 90 00 [18:31:19]wFMCommunicate OK [18:31:19]wFMCommunicate request_size=255 [18:31:19]MH_SAM_APDU [18:31:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 06 4E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 73 01 00 35 04 06 00 2F [18:31:19]Write to MH i2c: E2 02 01 A5 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 06 4E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 73 01 00 35 04 06 00 2F 00 00 C7 [18:31:19]Write i2c OK [18:31:19]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 A5 AB 00 90 00 C4 [18:31:20]RAPDU: 90 00 [18:31:20]wFMCommunicate OK [18:31:20]wFMCommunicate request_size=10 [18:31:20]MH_SAM_APDU [18:31:20]CAPDU: 80 0D 02 02 05 A8 08 B8 AF E4 [18:31:20]Write to MH i2c: E2 0D 00 A6 AB 80 0D 02 02 05 00 A8 08 B8 AF E4 00 00 D0 [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 03 00 A6 AB 00 90 00 C5 [18:31:20]RAPDU: 90 00 [18:31:20]wFMCommunicate OK [18:31:20]wFMCommunicate request_size=4 [18:31:20]MH_SAM_APDU [18:31:20]CAPDU: 80 0D 03 02 [18:31:20]Write to MH i2c: E2 08 00 A7 AB 80 0D 03 02 00 00 00 00 CD [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 0B 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 0B 00 A7 AB 00 27 00 40 A0 F7 17 20 FD 90 00 00 [18:31:20]RAPDU: 27 00 40 A0 F7 17 20 FD 90 00 [18:31:20]wFMCommunicate OK [18:31:20]SAM_PROTO_SignData done [18:31:20]FM_MakeSignedData done [18:31:20]CreateOFDProtocolMessage [18:31:20]wFMCommunicate request_size=4 [18:31:20]MH_SAM_APDU [18:31:20]CAPDU: 80 11 00 00 [18:31:20]Write to MH i2c: E2 08 00 A8 AB 80 11 00 00 00 00 00 00 CD [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:20]Read from MH i2c: E2 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 17 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: E2 17 00 A8 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1D [18:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:31:20]wFMCommunicate OK [18:31:20]CreateOFDProtocolMessage done [18:31:20]OFDSenderStorePacket 94999 [18:31:20]StoreOFDPacket docnum=94999 [18:31:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 6A 1E 07 01 73 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 06 4E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 73 01 00 35 04 06 00 2F A8 08 B8 AF E4 27 00 40 A0 F7 17 20 FD [18:31:20]CheckFolder [18:31:20]dirname=/storage/ofd_packets [18:31:20]CheckFolder done [18:31:20]ProducePacketName [18:31:20]name=ofd_packets/00094999 [18:31:20]NVStorageSaveData ofd_packets/00094999 [18:31:20]File name is /storage/ofd_packets/00094999 [18:31:20]Write 301 bytes [18:31:20]NVStorageSaveData done [18:31:20]OFDSenderStorePacket done [18:31:20]KKMCreateOFDPacket done [18:31:20]NVStorageSaveData kkm_last_timestamp [18:31:20]File name is /storage/kkm_last_timestamp [18:31:20]Write 4 bytes [18:31:20]NVStorageSaveData done [18:31:20]ExternCall_PrintAddStr [18:31:20]wPrintStart [18:31:20]Write to MH i2c: 01 00 00 A9 AB 54 [18:31:20]Write i2c OK [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 07 00 [18:31:20]MH_I2C_Read... [18:31:20]Read from MH i2c: 01 07 00 A9 AB 00 80 00 00 00 FF 0F E9 [18:31:20]RasterBufferAndPrint [18:31:20]line Счет N : (1)195958 [18:31:20]line ИНН: 02508201610067 [18:31:20]line Контрольно-Кассовый Чек [18:31:20]line ПРОДАЖА [18:31:20]line ТРК (МРК, ГНК) : 32 [18:31:20]line Товар: 2710124130 [18:31:20]line Аи-92-К-5 [18:31:20]line 15.900 * 62.90 [18:31:20]line = 1000.11 [18:31:20]line НДС 12% НСП 1% [18:31:20]line > о реализуемом товаре [18:31:20]line ОКРУГЛЕНИЕ: -0.11 [18:31:20]line ИТОГО: 1000.00 [18:31:20]line Внесено: 1000.00 [18:31:20]line СДАЧА: 0.00 [18:31:20]line НСП 1% : 8.85 [18:31:20]line НДС 12% : 106.21 [18:31:20]line Наличными: 1000.00 [18:31:20]line Безнал.: 0.00 [18:31:20]line Место: АЗС № 6 "Партнер Нефть" [18:31:20]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:31:20]line СНО: Общий режим [18:31:20]line Чек 174 11.03.2024 18:31 [18:31:20]line Смена: 326 ФФД: 1.0 [18:31:20]line ЗНМ: 0300000009 [18:31:20]line РНМ: 0000000000090555 [18:31:20]line Версия ККМ: 001 [18:31:20]line ФМ: 0000000000874811 [18:31:20]line ФД: 94999 [18:31:20]line ФПД: 52398747332580 [18:31:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T183134&type=1&operation_type=1&fn_number=0000000000874811&fd_number=94999&fm=52398747332580&tin=02508201610067®Number=0000000000090555&sum=100000 [18:31:20]OFD Sender: Processing packet 94999 [packets to send 30, broken 29] [18:31:20]ProducePacketName [18:31:20]name=ofd_packets/00094999 [18:31:20]OFD Sender: To server: pG, [18:31:20]CommunicateWithHost lk.salyk.kg:30040 [18:31:20]ConnectInit lk.salyk.kg [18:31:20]written 0, free lines is 4095 [18:31:20]Connected sock=10 [18:31: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 31 31 0F 01 00 00 6A 1E 07 01 73 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 06 4E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 73 01 00 35 04 06 00 2F A8 08 B8 AF E4 27 00 40 A0 F7 17 20 FD [18:31: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 31 31 4F 00 00 00 B2 5C 47 00 6F 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 17 73 01 00 F4 03 04 00 5E F9 EE 65 B6 04 01 00 00 09 FB 82 0A D7 95 79 38 [18:31:20]CommunicateWithHost err = 0 [18:31:20]CheckOFDResponse [18:31:20]1017 (14) - 77093643461234 [18:31:20]1041 (16) - 0000000000874811 [18:31:20]1040 (4) - 94999 [18:31:20]1012 (4) - 11.03.2024 12:30 [18:31:20]1206 (1) - 0 [18:31:20]OFD Sender: Remove packet 94999 [18:31:20]ProducePacketName [18:31:20]name=ofd_packets/00094999 [18:31:20]NVStorageDeleteData [18:31:21]Write to MH i2c: 01 00 00 D4 AB 7F [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: 01 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: 01 07 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: 01 07 00 D4 AB 00 80 00 00 00 4E 0D 61 [18:31:21]RasterBufferAndPrint [18:31:21]line [18:31:21]line [18:31:21]line [18:31:21]line [18:31:21]line [18:31:21]written 0, free lines is 3414 [18:31:21]process_action close_receipt done [18:31:21]requested_data is exist [18:31:21]produce_requested_data [18:31:21]requested_item fm.sn is exist - process it [18:31:21]wFMCommunicate request_size=4 [18:31:21]MH_SAM_APDU [18:31:21]CAPDU: 80 11 00 00 [18:31:21]Write to MH i2c: E2 08 00 DB AB 80 11 00 00 00 00 00 00 00 [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:21]Read from MH i2c: E2 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 17 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 17 00 DB AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 50 [18:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:31:21]wFMCommunicate OK [18:31:21]requested_item fd.num is exist - process it [18:31:21]SAM_PROTO_GetFieldsCounters [18:31:21]wFMCommunicate request_size=4 [18:31:21]MH_SAM_APDU [18:31:21]CAPDU: 80 13 00 00 [18:31:21]Write to MH i2c: E2 08 00 DC AB 80 13 00 00 00 00 00 00 03 [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:21]Read from MH i2c: E2 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 62 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 62 00 DC AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 17 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [18:31: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 17 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:21]wFMCommunicate OK [18:31:21]SAM_PROTO_GetFieldsCounters done [18:31:21]requested_item shift.num is exist - process it [18:31:21]requested_item shift.opened is exist - process it [18:31:21]req_shift_opened [18:31:21]FM_GetShiftState [18:31:21]SAM_PROTO_GetShiftState [18:31:21]wFMCommunicate request_size=4 [18:31:21]MH_SAM_APDU [18:31:21]CAPDU: 80 13 01 00 [18:31:21]Write to MH i2c: E2 08 00 DD AB 80 13 01 00 00 00 00 00 05 [18:31:21]Write i2c OK [18:31:21]MH_I2C_Read... [18:31:21]OFD Sender: No OFD packet to send [18:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:21]Read from MH i2c: E2 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 0E 00 [18:31:21]MH_I2C_Read... [18:31:21]Read from MH i2c: E2 0E 00 DD AB 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A1 [18:31:21]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:31:21]wFMCommunicate OK [18:31:21]SAM_PROTO_GetShiftState done [18:31:21]FM_GetShiftState done [18:31:21]req_shift_opened done [18:31:21]requested_item shift.open_date is exist - process it [18:31:21]req_shift_open_date [18:31:21]req_shift_open_date done [18:31:21]produce_requested_data done [18:31:21]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":94999,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:31:21]process_action_free close_receipt [18:31:21]json_value_free [18:31:21]json_value_free done [18:31:21]process_json_proto returns [18:31:21]Send response to host [18:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":94999,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:31:21]free response buf [18:31:21]execute_script done [18:31:21]execute_script returns [18:31:21]free content buf [18:31:21]Sock 9.Close socket [18:31:21]Sock 9.Thread stoped [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:40]accept exits with 7 [18:32:40]New connection [18:32:40]New thread 3066871140 created [18:32:40]Thread 3067014500 joined [18:32:40]Waiting for new connection... [18:32:40] Sock 7.Parse request [18:32:40]Sock 7.Check first char [18:32:40]Sock 7.First char is OK [18:32:40]request: POST /json_proto HTTP/1.0 [18:32:40]Method: POST [18:32:40]URL: /json_proto [18:32:40]Method is POST - this is cgi request [18:32:40]url: /json_proto [18:32:40]query_string will be loaded in cgi processing [18:32:40]execute_cgi json_proto POST (null) [18:32:40]execute_cgi path=json_proto method=POST [18:32:40]POST find Content-Length [18:32:40]Host: 172.17.62.67:8080 [18:32:40]Content-Length: 678 [18:32:40]Content-Type: application/json [18:32:40] [18:32:40]POST finish read [18:32:40]Found Content-Length = 678 [18:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:40]execute_script... [18:32: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)195959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:40]POST & json_proto [18:32:40]process_json_proto [18:32:40]json parsed OK: [18:32:40]protocol is kg_v1.0 [18:32:40]action value=close_receipt [18:32:40]process_action close_receipt [18:32:40]cmd_close_receipt [18:32:40]MH_GetDate [18:32:40]Write to MH i2c: F0 00 00 DE AB 78 [18:32:40]Write i2c OK [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: F0 [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: F0 05 00 [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: F0 05 00 DE AB 00 58 4E EF 65 77 [18:32:40]GetLastDocTimeStamp 1710181894 [18:32:40]current date 1710181976 [18:32:40]FM_GetShiftState [18:32:40]SAM_PROTO_GetShiftState [18:32:40]wFMCommunicate request_size=4 [18:32:40]MH_SAM_APDU [18:32:40]CAPDU: 80 13 01 00 [18:32:40]Write to MH i2c: E2 08 00 DF AB 80 13 01 00 00 00 00 00 07 [18:32:40]Write i2c OK [18:32:40]MH_I2C_Read... [18:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:40]Read from MH i2c: E2 [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: E2 0E 00 [18:32:40]MH_I2C_Read... [18:32:40]Read from MH i2c: E2 0E 00 DF AB 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A3 [18:32:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:32:40]wFMCommunicate OK [18:32:40]SAM_PROTO_GetShiftState done [18:32:40]FM_GetShiftState done [18:32:40]opened in 1710115571 [18:32:40]opened+sec_in_day 1710201971 [18:32:40]quantity*price = 70007 [18:32:40]sum+1 = 70009 [18:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 175 11.03.2024 18:32 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95000 ФПД: 4091209651912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T183256&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95000&fm=4091209651912&tin=02508201610067®Number=0000000000090555&sum=70000 [18:32:42]StoreToDocumentArchive [18:32:42]shift 326 fd 95000 [18:32:42]save to /storage/0326/doc_00095000 [18:32:42]save last doc name /storage/0326/doc_00095000 to /storage/kkm_last_doc_name [18:32:42]save OK [18:32:42]Clear old archive folders... [18:32:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:42]tlvbuf is 00197890 [18:32:42]SAM_PROTO_ClearQueue [18:32:42]wFMCommunicate request_size=4 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 09 00 00 [18:32:42]Write to MH i2c: E2 08 00 EC AB 80 09 00 00 00 00 00 00 09 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 EC AB 00 90 00 0B [18:32:42]RAPDU: 90 00 [18:32:42]wFMCommunicate OK [18:32:42]SAM_PROTO_ClearQueue done [18:32:42]KKMCreateOFDPacket [18:32:42]OFDProtocolAddRootSTLVToBuf [18:32:42]FM_MakeSignedData [18:32:42]FM_MakeSignedData [18:32:42]SAM_PROTO_SignData [18:32:42]wFMCommunicate request_size=4 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 0D 01 02 [18:32:42]Write to MH i2c: E2 08 00 ED AB 80 0D 01 02 00 00 00 00 11 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 ED AB 00 90 00 0C [18:32:42]RAPDU: 90 00 [18:32:42]wFMCommunicate OK [18:32:42]wFMCommunicate request_size=255 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 AF 00 00 00 F4 03 04 00 58 4E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 73 01 00 35 04 06 00 03 [18:32:42]Write to MH i2c: E2 02 01 EE AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 AF 00 00 00 F4 03 04 00 58 4E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 73 01 00 35 04 06 00 03 00 00 07 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 EE AB 00 90 00 0D [18:32:42]RAPDU: 90 00 [18:32:42]wFMCommunicate OK [18:32:42]wFMCommunicate request_size=10 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 0D 02 02 05 B8 8F 19 16 C8 [18:32:42]Write to MH i2c: E2 0D 00 EF AB 80 0D 02 02 05 00 B8 8F 19 16 C8 00 00 5C [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 03 00 EF AB 00 90 00 0E [18:32:42]RAPDU: 90 00 [18:32:42]wFMCommunicate OK [18:32:42]wFMCommunicate request_size=4 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 0D 03 02 [18:32:42]Write to MH i2c: E2 08 00 F0 AB 80 0D 03 02 00 00 00 00 16 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 0B 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 0B 00 F0 AB 00 87 60 F8 CC 29 05 3A 68 90 00 92 [18:32:42]RAPDU: 87 60 F8 CC 29 05 3A 68 90 00 [18:32:42]wFMCommunicate OK [18:32:42]SAM_PROTO_SignData done [18:32:42]FM_MakeSignedData done [18:32:42]CreateOFDProtocolMessage [18:32:42]wFMCommunicate request_size=4 [18:32:42]MH_SAM_APDU [18:32:42]CAPDU: 80 11 00 00 [18:32:42]Write to MH i2c: E2 08 00 F1 AB 80 11 00 00 00 00 00 00 16 [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:42]Read from MH i2c: E2 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 17 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: E2 17 00 F1 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 66 [18:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:32:42]wFMCommunicate OK [18:32:42]CreateOFDProtocolMessage done [18:32:42]OFDSenderStorePacket 95000 [18:32:42]StoreOFDPacket docnum=95000 [18:32:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A7 02 07 01 6F BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 AF 00 00 00 F4 03 04 00 58 4E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 73 01 00 35 04 06 00 03 B8 8F 19 16 C8 87 60 F8 CC 29 05 3A 68 [18:32:42]CheckFolder [18:32:42]dirname=/storage/ofd_packets [18:32:42]CheckFolder done [18:32:42]ProducePacketName [18:32:42]name=ofd_packets/00095000 [18:32:42]NVStorageSaveData ofd_packets/00095000 [18:32:42]File name is /storage/ofd_packets/00095000 [18:32:42]Write 301 bytes [18:32:42]NVStorageSaveData done [18:32:42]OFDSenderStorePacket done [18:32:42]KKMCreateOFDPacket done [18:32:42]NVStorageSaveData kkm_last_timestamp [18:32:42]File name is /storage/kkm_last_timestamp [18:32:42]Write 4 bytes [18:32:42]NVStorageSaveData done [18:32:42]ExternCall_PrintAddStr [18:32:42]wPrintStart [18:32:42]Write to MH i2c: 01 00 00 F2 AB 9D [18:32:42]Write i2c OK [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: 01 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: 01 07 00 [18:32:42]MH_I2C_Read... [18:32:42]Read from MH i2c: 01 07 00 F2 AB 00 80 00 00 00 FF 0F 32 [18:32:42]RasterBufferAndPrint [18:32:42]line Счет N : (1)195959 [18:32:42]line ИНН: 02508201610067 [18:32:42]line Контрольно-Кассовый Чек [18:32:42]line ПРОДАЖА [18:32:42]line ТРК (МРК, ГНК) : 12 [18:32:42]line Товар: 2710124130 [18:32:42]line Аи-92-К-5 [18:32:42]line 11.130 * 62.90 [18:32:42]line = 700.08 [18:32:42]line НДС 12% НСП 1% [18:32:42]line > о реализуемом товаре [18:32:42]line ОКРУГЛЕНИЕ: -0.08 [18:32:42]line ИТОГО: 700.00 [18:32:42]line Внесено: 700.00 [18:32:42]line СДАЧА: 0.00 [18:32:42]line НСП 1% : 6.19 [18:32:42]line НДС 12% : 74.34 [18:32:42]line Наличными: 700.00 [18:32:42]line Безнал.: 0.00 [18:32:42]line Место: АЗС № 6 "Партнер Нефть" [18:32:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:32:42]line СНО: Общий режим [18:32:42]line Чек 175 11.03.2024 18:32 [18:32:42]line Смена: 326 ФФД: 1.0 [18:32:42]line ЗНМ: 0300000009 [18:32:42]line РНМ: 0000000000090555 [18:32:42]line Версия ККМ: 001 [18:32:42]line ФМ: 0000000000874811 [18:32:42]line ФД: 95000 [18:32:42]line ФПД: 4091209651912 [18:32:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T183256&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95000&fm=4091209651912&tin=02508201610067®Number=0000000000090555&sum=70000 [18:32:42]written 0, free lines is 4095 [18:32:42]OFD Sender: Processing packet 95000 [packets to send 30, broken 29] [18:32:42]ProducePacketName [18:32:42]name=ofd_packets/00095000 [18:32:42]OFD Sender: To server: pG, [18:32:42]CommunicateWithHost lk.salyk.kg:30040 [18:32:42]ConnectInit lk.salyk.kg [18:32:43]Connected sock=9 [18:32: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 31 31 0F 01 00 00 A7 02 07 01 6F BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 AF 00 00 00 F4 03 04 00 58 4E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 18 73 01 00 35 04 06 00 03 B8 8F 19 16 C8 87 60 F8 CC 29 05 3A 68 [18:32: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 31 31 4F 00 00 00 67 B9 47 00 AD 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 31 31 10 04 04 00 18 73 01 00 F4 03 04 00 B1 F9 EE 65 B6 04 01 00 00 92 D4 96 6E E0 7F FE 43 [18:32:43]CommunicateWithHost err = 0 [18:32:43]CheckOFDResponse [18:32:43]1017 (14) - 77093643461234 [18:32:43]1041 (16) - 0000000000874811 [18:32:43]1040 (4) - 95000 [18:32:43]1012 (4) - 11.03.2024 12:31 [18:32:43]1206 (1) - 0 [18:32:43]OFD Sender: Remove packet 95000 [18:32:43]ProducePacketName [18:32:43]name=ofd_packets/00095000 [18:32:43]NVStorageDeleteData [18:32:43]Write to MH i2c: 01 00 00 1D AC C9 [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: 01 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: 01 07 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: 01 07 00 1D AC 00 80 00 00 00 54 0D B1 [18:32:43]RasterBufferAndPrint [18:32:43]line [18:32:43]line [18:32:43]line [18:32:43]line [18:32:43]line [18:32:43]written 0, free lines is 3419 [18:32:43]process_action close_receipt done [18:32:43]requested_data is exist [18:32:43]produce_requested_data [18:32:43]requested_item fm.sn is exist - process it [18:32:43]wFMCommunicate request_size=4 [18:32:43]MH_SAM_APDU [18:32:43]CAPDU: 80 11 00 00 [18:32:43]Write to MH i2c: E2 08 00 24 AC 80 11 00 00 00 00 00 00 4A [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:43]Read from MH i2c: E2 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 17 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 17 00 24 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9A [18:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:32:43]wFMCommunicate OK [18:32:43]requested_item fd.num is exist - process it [18:32:43]SAM_PROTO_GetFieldsCounters [18:32:43]wFMCommunicate request_size=4 [18:32:43]MH_SAM_APDU [18:32:43]CAPDU: 80 13 00 00 [18:32:43]Write to MH i2c: E2 08 00 25 AC 80 13 00 00 00 00 00 00 4D [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:43]Read from MH i2c: E2 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 62 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 62 00 25 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 18 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [18:32: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 18 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:43]wFMCommunicate OK [18:32:43]SAM_PROTO_GetFieldsCounters done [18:32:43]requested_item shift.num is exist - process it [18:32:43]requested_item shift.opened is exist - process it [18:32:43]req_shift_opened [18:32:43]FM_GetShiftState [18:32:43]SAM_PROTO_GetShiftState [18:32:43]wFMCommunicate request_size=4 [18:32:43]MH_SAM_APDU [18:32:43]CAPDU: 80 13 01 00 [18:32:43]Write to MH i2c: E2 08 00 26 AC 80 13 01 00 00 00 00 00 4F [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:43]Read from MH i2c: E2 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 0E 00 [18:32:43]MH_I2C_Read... [18:32:43]OFD Sender: No OFD packet to send [18:32:43]Read from MH i2c: E2 0E 00 26 AC 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EB [18:32:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:32:43]wFMCommunicate OK [18:32:43]SAM_PROTO_GetShiftState done [18:32:43]FM_GetShiftState done [18:32:43]req_shift_opened done [18:32:43]requested_item shift.open_date is exist - process it [18:32:43]req_shift_open_date [18:32:43]req_shift_open_date done [18:32:43]produce_requested_data done [18:32:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95000,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:32:43]process_action_free close_receipt [18:32:43]json_value_free [18:32:43]json_value_free done [18:32:43]process_json_proto returns [18:32:43]Send response to host [18:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95000,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:32:43]free response buf [18:32:43]execute_script done [18:32:43]execute_script returns [18:32:43]free content buf [18:32:43]Sock 7.Close socket [18:32:43]Sock 7.Thread stoped [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:23]accept exits with 10 [18:42:23]New connection [18:42:23]New thread 3067014500 created [18:42:23]Thread 3066871140 joined [18:42:23]Waiting for new connection... [18:42:23] Sock 10.Parse request [18:42:23]Sock 10.Check first char [18:42:23]Sock 10.First char is OK [18:42:23]request: POST /json_proto HTTP/1.0 [18:42:23]Method: POST [18:42:23]URL: /json_proto [18:42:23]Method is POST - this is cgi request [18:42:23]url: /json_proto [18:42:23]query_string will be loaded in cgi processing [18:42:23]execute_cgi json_proto POST (null) [18:42:23]execute_cgi path=json_proto method=POST [18:42:23]POST find Content-Length [18:42:23]Host: 172.17.62.67:8080 [18:42:23]Content-Length: 678 [18:42:23]Content-Type: application/json [18:42:23] [18:42:23]POST finish read [18:42:23]Found Content-Length = 678 [18:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.020, "sum" : 630.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:23]execute_script... [18:42: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)195960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.020, "sum" : 630.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:23]POST & json_proto [18:42:23]process_json_proto [18:42:23]json parsed OK: [18:42:23]protocol is kg_v1.0 [18:42:23]action value=close_receipt [18:42:23]process_action close_receipt [18:42:23]cmd_close_receipt [18:42:23]MH_GetDate [18:42:23]Write to MH i2c: F0 00 00 27 AC C2 [18:42:23]Write i2c OK [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: F0 [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: F0 05 00 [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: F0 05 00 27 AC 00 9F 50 EF 65 0A [18:42:23]GetLastDocTimeStamp 1710181976 [18:42:23]current date 1710182559 [18:42:23]FM_GetShiftState [18:42:23]SAM_PROTO_GetShiftState [18:42:23]wFMCommunicate request_size=4 [18:42:23]MH_SAM_APDU [18:42:23]CAPDU: 80 13 01 00 [18:42:23]Write to MH i2c: E2 08 00 28 AC 80 13 01 00 00 00 00 00 51 [18:42:23]Write i2c OK [18:42:23]MH_I2C_Read... [18:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:23]Read from MH i2c: E2 [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: E2 0E 00 [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: E2 0E 00 28 AC 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 ED [18:42:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:42:23]wFMCommunicate OK [18:42:23]SAM_PROTO_GetShiftState done [18:42:23]FM_GetShiftState done [18:42:23]opened in 1710115571 [18:42:23]opened+sec_in_day 1710201971 [18:42:23]quantity*price = 63025 [18:42:23]sum+1 = 63027 [18:42:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.93 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 176 11.03.2024 18:42 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95001 ФПД: 18076695792795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T184239&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95001&fm=18076695792795&tin=02508201610067®Number=0000000000090555&sum=63000 [18:42:24]StoreToDocumentArchive [18:42:24]shift 326 fd 95001 [18:42:24]save to /storage/0326/doc_00095001 [18:42:24]save last doc name /storage/0326/doc_00095001 to /storage/kkm_last_doc_name [18:42:24]save OK [18:42:24]Clear old archive folders... [18:42:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:24]tlvbuf is 005585E0 [18:42:24]SAM_PROTO_ClearQueue [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 09 00 00 [18:42:24]Write to MH i2c: E2 08 00 35 AC 80 09 00 00 00 00 00 00 53 [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:24]Read from MH i2c: E2 03 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 03 00 35 AC 00 90 00 55 [18:42:24]RAPDU: 90 00 [18:42:24]wFMCommunicate OK [18:42:24]SAM_PROTO_ClearQueue done [18:42:24]KKMCreateOFDPacket [18:42:24]OFDProtocolAddRootSTLVToBuf [18:42:24]FM_MakeSignedData [18:42:24]FM_MakeSignedData [18:42:24]SAM_PROTO_SignData [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 0D 01 02 [18:42:24]Write to MH i2c: E2 08 00 36 AC 80 0D 01 02 00 00 00 00 5B [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 36 AC 00 90 00 56 [18:42:25]RAPDU: 90 00 [18:42:25]wFMCommunicate OK [18:42:25]wFMCommunicate request_size=255 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 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 B0 00 00 00 F4 03 04 00 9F 50 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 73 01 00 35 04 06 00 10 [18:42:25]Write to MH i2c: E2 02 01 37 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 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 B0 00 00 00 F4 03 04 00 9F 50 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 73 01 00 35 04 06 00 10 00 00 E0 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 37 AC 00 90 00 57 [18:42:25]RAPDU: 90 00 [18:42:25]wFMCommunicate OK [18:42:25]wFMCommunicate request_size=10 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 0D 02 02 05 70 CF 08 0C 9B [18:42:25]Write to MH i2c: E2 0D 00 38 AC 80 0D 02 02 05 00 70 CF 08 0C 9B 00 00 56 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 03 00 38 AC 00 90 00 58 [18:42:25]RAPDU: 90 00 [18:42:25]wFMCommunicate OK [18:42:25]wFMCommunicate request_size=4 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 0D 03 02 [18:42:25]Write to MH i2c: E2 08 00 39 AC 80 0D 03 02 00 00 00 00 60 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 0B 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 0B 00 39 AC 00 96 84 E0 53 F3 C1 85 5D 90 00 44 [18:42:25]RAPDU: 96 84 E0 53 F3 C1 85 5D 90 00 [18:42:25]wFMCommunicate OK [18:42:25]SAM_PROTO_SignData done [18:42:25]FM_MakeSignedData done [18:42:25]CreateOFDProtocolMessage [18:42:25]wFMCommunicate request_size=4 [18:42:25]MH_SAM_APDU [18:42:25]CAPDU: 80 11 00 00 [18:42:25]Write to MH i2c: E2 08 00 3A AC 80 11 00 00 00 00 00 00 60 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 17 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 17 00 3A AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B0 [18:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:42:25]wFMCommunicate OK [18:42:25]CreateOFDProtocolMessage done [18:42:25]OFDSenderStorePacket 95001 [18:42:25]StoreOFDPacket docnum=95001 [18:42:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CE C2 07 01 09 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 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 B0 00 00 00 F4 03 04 00 9F 50 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 73 01 00 35 04 06 00 10 70 CF 08 0C 9B 96 84 E0 53 F3 C1 85 5D [18:42:25]CheckFolder [18:42:25]dirname=/storage/ofd_packets [18:42:25]CheckFolder done [18:42:25]ProducePacketName [18:42:25]name=ofd_packets/00095001 [18:42:25]NVStorageSaveData ofd_packets/00095001 [18:42:25]File name is /storage/ofd_packets/00095001 [18:42:25]Write 301 bytes [18:42:25]NVStorageSaveData done [18:42:25]OFDSenderStorePacket done [18:42:25]KKMCreateOFDPacket done [18:42:25]NVStorageSaveData kkm_last_timestamp [18:42:25]File name is /storage/kkm_last_timestamp [18:42:25]Write 4 bytes [18:42:25]NVStorageSaveData done [18:42:25]ExternCall_PrintAddStr [18:42:25]wPrintStart [18:42:25]Write to MH i2c: 01 00 00 3B AC E7 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 07 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 07 00 3B AC 00 80 00 00 00 FF 0F 7C [18:42:25]RasterBufferAndPrint [18:42:25]line Счет N : (1)195960 [18:42:25]line ИНН: 02508201610067 [18:42:25]line Контрольно-Кассовый Чек [18:42:25]line ПРОДАЖА [18:42:25]line ТРК (МРК, ГНК) : 32 [18:42:25]line Товар: 2710124130 [18:42:25]line Аи-92-К-5 [18:42:25]line 10.020 * 62.90 [18:42:25]line = 630.26 [18:42:25]line НДС 12% НСП 1% [18:42:25]line > о реализуемом товаре [18:42:25]line ОКРУГЛЕНИЕ: -0.26 [18:42:25]line ИТОГО: 630.00 [18:42:25]line Внесено: 630.00 [18:42:25]line СДАЧА: 0.00 [18:42:25]line НСП 1% : 5.58 [18:42:25]line НДС 12% : 66.93 [18:42:25]line Наличными: 630.00 [18:42:25]line Безнал.: 0.00 [18:42:25]line Место: АЗС № 6 "Партнер Нефть" [18:42:25]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:42:25]line СНО: Общий режим [18:42:25]line Чек 176 11.03.2024 18:42 [18:42:25]line Смена: 326 ФФД: 1.0 [18:42:25]line ЗНМ: 0300000009 [18:42:25]line РНМ: 0000000000090555 [18:42:25]line Версия ККМ: 001 [18:42:25]line ФМ: 0000000000874811 [18:42:25]line ФД: 95001 [18:42:25]line ФПД: 18076695792795 [18:42:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T184239&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95001&fm=18076695792795&tin=02508201610067®Number=0000000000090555&sum=63000 [18:42:25]written 0, free lines is 4095 [18:42:25]OFD Sender: Processing packet 95001 [packets to send 30, broken 29] [18:42:25]ProducePacketName [18:42:25]name=ofd_packets/00095001 [18:42:25]OFD Sender: To server: pG, [18:42:25]CommunicateWithHost lk.salyk.kg:30040 [18:42:25]ConnectInit lk.salyk.kg [18:42:25]Connected sock=9 [18:42: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 31 31 0F 01 00 00 CE C2 07 01 09 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 32 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 1A 00 00 00 00 07 04 06 00 18 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 B0 00 00 00 F4 03 04 00 9F 50 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 19 73 01 00 35 04 06 00 10 70 CF 08 0C 9B 96 84 E0 53 F3 C1 85 5D [18:42: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 31 31 4F 00 00 00 23 1A 47 00 89 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 31 31 10 04 04 00 19 73 01 00 F4 03 04 00 F8 FB EE 65 B6 04 01 00 00 94 48 9A 1F DF 37 86 EB [18:42:26]CommunicateWithHost err = 0 [18:42:26]CheckOFDResponse [18:42:26]1017 (14) - 77093643461234 [18:42:26]1041 (16) - 0000000000874811 [18:42:26]1040 (4) - 95001 [18:42:26]1012 (4) - 11.03.2024 12:41 [18:42:26]1206 (1) - 0 [18:42:26]OFD Sender: Remove packet 95001 [18:42:26]ProducePacketName [18:42:26]name=ofd_packets/00095001 [18:42:26]NVStorageDeleteData [18:42:26]Write to MH i2c: 01 00 00 66 AC 12 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 66 AC 00 80 00 00 00 56 0D FC [18:42:26]RasterBufferAndPrint [18:42:26]line [18:42:26]line [18:42:26]line [18:42:26]line [18:42:26]line [18:42:26]written 0, free lines is 3422 [18:42:26]process_action close_receipt done [18:42:26]requested_data is exist [18:42:26]produce_requested_data [18:42:26]requested_item fm.sn is exist - process it [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 11 00 00 [18:42:26]Write to MH i2c: E2 08 00 6D AC 80 11 00 00 00 00 00 00 93 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 6D AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E3 [18:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:42:26]wFMCommunicate OK [18:42:26]requested_item fd.num is exist - process it [18:42:26]SAM_PROTO_GetFieldsCounters [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 13 00 00 [18:42:26]Write to MH i2c: E2 08 00 6E AC 80 13 00 00 00 00 00 00 96 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 62 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 62 00 6E AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 19 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [18:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 19 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_GetFieldsCounters done [18:42:26]requested_item shift.num is exist - process it [18:42:26]requested_item shift.opened is exist - process it [18:42:26]req_shift_opened [18:42:26]FM_GetShiftState [18:42:26]SAM_PROTO_GetShiftState [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 13 01 00 [18:42:26]Write to MH i2c: E2 08 00 6F AC 80 13 01 00 00 00 00 00 98 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]OFD Sender: No OFD packet to send [18:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0E 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0E 00 6F AC 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 34 [18:42:26]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_GetShiftState done [18:42:26]FM_GetShiftState done [18:42:26]req_shift_opened done [18:42:26]requested_item shift.open_date is exist - process it [18:42:26]req_shift_open_date [18:42:26]req_shift_open_date done [18:42:26]produce_requested_data done [18:42:26]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95001,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:42:26]process_action_free close_receipt [18:42:26]json_value_free [18:42:26]json_value_free done [18:42:26]process_json_proto returns [18:42:26]Send response to host [18:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95001,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:42:26]free response buf [18:42:26]execute_script done [18:42:26]execute_script returns [18:42:26]free content buf [18:42:26]Sock 10.Close socket [18:42:26]Sock 10.Thread stoped [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:29]accept exits with 7 [18:46:29]New connection [18:46:29]New thread 3066871140 created [18:46:29]Thread 3067014500 joined [18:46:29]Waiting for new connection... [18:46:29] Sock 7.Parse request [18:46:29]Sock 7.Check first char [18:46:29]Sock 7.First char is OK [18:46:29]request: POST /json_proto HTTP/1.0 [18:46:29]Method: POST [18:46:29]URL: /json_proto [18:46:29]Method is POST - this is cgi request [18:46:29]url: /json_proto [18:46:29]query_string will be loaded in cgi processing [18:46:29]execute_cgi json_proto POST (null) [18:46:29]execute_cgi path=json_proto method=POST [18:46:29]POST find Content-Length [18:46:29]Host: 172.17.62.67:8080 [18:46:29]Content-Length: 678 [18:46:29]Content-Type: application/json [18:46:29] [18:46:29]POST finish read [18:46:29]Found Content-Length = 678 [18:46:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:29]execute_script... [18:46: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)195961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:29]POST & json_proto [18:46:29]process_json_proto [18:46:29]json parsed OK: [18:46:29]protocol is kg_v1.0 [18:46:29]action value=close_receipt [18:46:29]process_action close_receipt [18:46:29]cmd_close_receipt [18:46:29]MH_GetDate [18:46:29]Write to MH i2c: F0 00 00 70 AC 0B [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: F0 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: F0 05 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: F0 05 00 70 AC 00 95 51 EF 65 4A [18:46:29]GetLastDocTimeStamp 1710182559 [18:46:29]current date 1710182805 [18:46:29]FM_GetShiftState [18:46:29]SAM_PROTO_GetShiftState [18:46:29]wFMCommunicate request_size=4 [18:46:29]MH_SAM_APDU [18:46:29]CAPDU: 80 13 01 00 [18:46:29]Write to MH i2c: E2 08 00 71 AC 80 13 01 00 00 00 00 00 9A [18:46:29]Write i2c OK [18:46:29]MH_I2C_Read... [18:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:29]Read from MH i2c: E2 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 0E 00 [18:46:29]MH_I2C_Read... [18:46:29]Read from MH i2c: E2 0E 00 71 AC 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 36 [18:46:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:46:29]wFMCommunicate OK [18:46:29]SAM_PROTO_GetShiftState done [18:46:29]FM_GetShiftState done [18:46:29]opened in 1710115571 [18:46:29]opened+sec_in_day 1710201971 [18:46:29]quantity*price = 70007 [18:46:29]sum+1 = 70009 [18:46:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 177 11.03.2024 18:46 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95002 ФПД: 25037636246168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T184645&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95002&fm=25037636246168&tin=02508201610067®Number=0000000000090555&sum=70000 [18:46:30]StoreToDocumentArchive [18:46:30]shift 326 fd 95002 [18:46:30]save to /storage/0326/doc_00095002 [18:46:30]save last doc name /storage/0326/doc_00095002 to /storage/kkm_last_doc_name [18:46:30]save OK [18:46:30]Clear old archive folders... [18:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:30]tlvbuf is 00520C60 [18:46:30]SAM_PROTO_ClearQueue [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 09 00 00 [18:46:30]Write to MH i2c: E2 08 00 7E AC 80 09 00 00 00 00 00 00 9C [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 7E AC 00 90 00 9E [18:46:30]RAPDU: 90 00 [18:46:30]wFMCommunicate OK [18:46:30]SAM_PROTO_ClearQueue done [18:46:30]KKMCreateOFDPacket [18:46:30]OFDProtocolAddRootSTLVToBuf [18:46:30]FM_MakeSignedData [18:46:30]FM_MakeSignedData [18:46:30]SAM_PROTO_SignData [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 0D 01 02 [18:46:30]Write to MH i2c: E2 08 00 7F AC 80 0D 01 02 00 00 00 00 A4 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 03 00 7F AC 00 90 00 9F [18:46:30]RAPDU: 90 00 [18:46:30]wFMCommunicate OK [18:46:30]wFMCommunicate request_size=255 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 B1 00 00 00 F4 03 04 00 95 51 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 73 01 00 35 04 06 00 16 [18:46:30]Write to MH i2c: E2 02 01 80 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 B1 00 00 00 F4 03 04 00 95 51 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 73 01 00 35 04 06 00 16 00 00 F1 [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 80 AC 00 90 00 A0 [18:46:31]RAPDU: 90 00 [18:46:31]wFMCommunicate OK [18:46:31]wFMCommunicate request_size=10 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 0D 02 02 05 C5 87 6A 1A 98 [18:46:31]Write to MH i2c: E2 0D 00 81 AC 80 0D 02 02 05 00 C5 87 6A 1A 98 00 00 19 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 81 AC 00 90 00 A1 [18:46:31]RAPDU: 90 00 [18:46:31]wFMCommunicate OK [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 0D 03 02 [18:46:31]Write to MH i2c: E2 08 00 82 AC 80 0D 03 02 00 00 00 00 A9 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 0B 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 0B 00 82 AC 00 8A 88 58 B5 1B C2 F2 CE 90 00 66 [18:46:31]RAPDU: 8A 88 58 B5 1B C2 F2 CE 90 00 [18:46:31]wFMCommunicate OK [18:46:31]SAM_PROTO_SignData done [18:46:31]FM_MakeSignedData done [18:46:31]CreateOFDProtocolMessage [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 11 00 00 [18:46:31]Write to MH i2c: E2 08 00 83 AC 80 11 00 00 00 00 00 00 A9 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 17 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 17 00 83 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F9 [18:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:46:31]wFMCommunicate OK [18:46:31]CreateOFDProtocolMessage done [18:46:31]OFDSenderStorePacket 95002 [18:46:31]StoreOFDPacket docnum=95002 [18:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 31 A7 07 01 F5 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 B1 00 00 00 F4 03 04 00 95 51 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 73 01 00 35 04 06 00 16 C5 87 6A 1A 98 8A 88 58 B5 1B C2 F2 CE [18:46:31]CheckFolder [18:46:31]dirname=/storage/ofd_packets [18:46:31]CheckFolder done [18:46:31]ProducePacketName [18:46:31]name=ofd_packets/00095002 [18:46:31]NVStorageSaveData ofd_packets/00095002 [18:46:31]File name is /storage/ofd_packets/00095002 [18:46:31]Write 301 bytes [18:46:31]NVStorageSaveData done [18:46:31]OFDSenderStorePacket done [18:46:31]KKMCreateOFDPacket done [18:46:31]NVStorageSaveData kkm_last_timestamp [18:46:31]File name is /storage/kkm_last_timestamp [18:46:31]Write 4 bytes [18:46:31]NVStorageSaveData done [18:46:31]ExternCall_PrintAddStr [18:46:31]wPrintStart [18:46:31]Write to MH i2c: 01 00 00 84 AC 30 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 07 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: 01 07 00 84 AC 00 80 00 00 00 FF 0F C5 [18:46:31]RasterBufferAndPrint [18:46:31]line Счет N : (1)195961 [18:46:31]line ИНН: 02508201610067 [18:46:31]line Контрольно-Кассовый Чек [18:46:31]line ПРОДАЖА [18:46:31]line ТРК (МРК, ГНК) : 12 [18:46:31]line Товар: 2710124130 [18:46:31]line Аи-92-К-5 [18:46:31]line 11.130 * 62.90 [18:46:31]line = 700.08 [18:46:31]line НДС 12% НСП 1% [18:46:31]line > о реализуемом товаре [18:46:31]line ОКРУГЛЕНИЕ: -0.08 [18:46:31]line ИТОГО: 700.00 [18:46:31]line Внесено: 700.00 [18:46:31]line СДАЧА: 0.00 [18:46:31]line НСП 1% : 6.19 [18:46:31]line НДС 12% : 74.34 [18:46:31]line Наличными: 700.00 [18:46:31]line Безнал.: 0.00 [18:46:31]line Место: АЗС № 6 "Партнер Нефть" [18:46:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:46:31]line СНО: Общий режим [18:46:31]line Чек 177 11.03.2024 18:46 [18:46:31]line Смена: 326 ФФД: 1.0 [18:46:31]line ЗНМ: 0300000009 [18:46:31]line РНМ: 0000000000090555 [18:46:31]line Версия ККМ: 001 [18:46:31]line ФМ: 0000000000874811 [18:46:31]line ФД: 95002 [18:46:31]line ФПД: 25037636246168 [18:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T184645&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95002&fm=25037636246168&tin=02508201610067®Number=0000000000090555&sum=70000 [18:46:31]OFD Sender: Processing packet 95002 [packets to send 30, broken 29] [18:46:31]ProducePacketName [18:46:31]name=ofd_packets/00095002 [18:46:31]OFD Sender: To server: pG, [18:46:31]CommunicateWithHost lk.salyk.kg:30040 [18:46:31]ConnectInit lk.salyk.kg [18:46:31]written 0, free lines is 4095 [18:46:31]Connected sock=10 [18:46: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 31 31 0F 01 00 00 31 A7 07 01 F5 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 B1 00 00 00 F4 03 04 00 95 51 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1A 73 01 00 35 04 06 00 16 C5 87 6A 1A 98 8A 88 58 B5 1B C2 F2 CE [18:46: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 31 31 4F 00 00 00 5C C6 47 00 1C 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 31 31 10 04 04 00 1A 73 01 00 F4 03 04 00 EE FC EE 65 B6 04 01 00 00 51 AC 49 16 29 F6 DD 28 [18:46:31]CommunicateWithHost err = 0 [18:46:31]CheckOFDResponse [18:46:31]1017 (14) - 77093643461234 [18:46:31]1041 (16) - 0000000000874811 [18:46:31]1040 (4) - 95002 [18:46:31]1012 (4) - 11.03.2024 12:45 [18:46:31]1206 (1) - 0 [18:46:31]OFD Sender: Remove packet 95002 [18:46:31]ProducePacketName [18:46:31]name=ofd_packets/00095002 [18:46:31]NVStorageDeleteData [18:46:32]Write to MH i2c: 01 00 00 AF AC 5B [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 07 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 07 00 AF AC 00 80 00 00 00 52 0D 41 [18:46:32]RasterBufferAndPrint [18:46:32]line [18:46:32]line [18:46:32]line [18:46:32]line [18:46:32]line [18:46:32]written 0, free lines is 3416 [18:46:32]process_action close_receipt done [18:46:32]requested_data is exist [18:46:32]produce_requested_data [18:46:32]requested_item fm.sn is exist - process it [18:46:32]wFMCommunicate request_size=4 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 11 00 00 [18:46:32]Write to MH i2c: E2 08 00 B6 AC 80 11 00 00 00 00 00 00 DC [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 17 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 17 00 B6 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2C [18:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:46:32]wFMCommunicate OK [18:46:32]requested_item fd.num is exist - process it [18:46:32]SAM_PROTO_GetFieldsCounters [18:46:32]wFMCommunicate request_size=4 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 13 00 00 [18:46:32]Write to MH i2c: E2 08 00 B7 AC 80 13 00 00 00 00 00 00 DF [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 62 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 62 00 B7 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [18:46: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:32]wFMCommunicate OK [18:46:32]SAM_PROTO_GetFieldsCounters done [18:46:32]requested_item shift.num is exist - process it [18:46:32]requested_item shift.opened is exist - process it [18:46:32]req_shift_opened [18:46:32]FM_GetShiftState [18:46:32]SAM_PROTO_GetShiftState [18:46:32]wFMCommunicate request_size=4 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 13 01 00 [18:46:32]Write to MH i2c: E2 08 00 B8 AC 80 13 01 00 00 00 00 00 E1 [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:32]OFD Sender: No OFD packet to send [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 0E 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 0E 00 B8 AC 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7D [18:46:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:46:32]wFMCommunicate OK [18:46:32]SAM_PROTO_GetShiftState done [18:46:32]FM_GetShiftState done [18:46:32]req_shift_opened done [18:46:32]requested_item shift.open_date is exist - process it [18:46:32]req_shift_open_date [18:46:32]req_shift_open_date done [18:46:32]produce_requested_data done [18:46:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95002,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:46:32]process_action_free close_receipt [18:46:32]json_value_free [18:46:32]json_value_free done [18:46:32]process_json_proto returns [18:46:32]Send response to host [18:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95002,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:46:32]free response buf [18:46:32]execute_script done [18:46:32]execute_script returns [18:46:32]free content buf [18:46:32]Sock 7.Close socket [18:46:32]Sock 7.Thread stoped [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:26]accept exits with 9 [18:49:26]New connection [18:49:26]New thread 3067014500 created [18:49:26]Thread 3066871140 joined [18:49:26]Waiting for new connection... [18:49:26] Sock 9.Parse request [18:49:26]Sock 9.Check first char [18:49:26]Sock 9.First char is OK [18:49:26]request: POST /json_proto HTTP/1.0 [18:49:26]Method: POST [18:49:26]URL: /json_proto [18:49:26]Method is POST - this is cgi request [18:49:26]url: /json_proto [18:49:26]query_string will be loaded in cgi processing [18:49:26]execute_cgi json_proto POST (null) [18:49:26]execute_cgi path=json_proto method=POST [18:49:26]POST find Content-Length [18:49:26]Host: 172.17.62.67:8080 [18:49:26]Content-Length: 682 [18:49:26]Content-Type: application/json [18:49:26] [18:49:26]POST finish read [18:49:26]Found Content-Length = 682 [18:49:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:26]execute_script... [18:49: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)195962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:26]POST & json_proto [18:49:26]process_json_proto [18:49:26]json parsed OK: [18:49:26]protocol is kg_v1.0 [18:49:26]action value=close_receipt [18:49:26]process_action close_receipt [18:49:26]cmd_close_receipt [18:49:26]MH_GetDate [18:49:26]Write to MH i2c: F0 00 00 B9 AC 54 [18:49:26]Write i2c OK [18:49:26]MH_I2C_Read... [18:49:26]Read from MH i2c: F0 [18:49:26]MH_I2C_Read... [18:49:26]Read from MH i2c: F0 05 00 [18:49:26]MH_I2C_Read... [18:49:26]Read from MH i2c: F0 05 00 B9 AC 00 46 52 EF 65 45 [18:49:26]GetLastDocTimeStamp 1710182805 [18:49:26]current date 1710182982 [18:49:26]FM_GetShiftState [18:49:26]SAM_PROTO_GetShiftState [18:49:26]wFMCommunicate request_size=4 [18:49:26]MH_SAM_APDU [18:49:26]CAPDU: 80 13 01 00 [18:49:26]Write to MH i2c: E2 08 00 BA AC 80 13 01 00 00 00 00 00 E3 [18:49:26]Write i2c OK [18:49:26]MH_I2C_Read... [18:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:26]Read from MH i2c: E2 [18:49:26]MH_I2C_Read... [18:49:26]Read from MH i2c: E2 0E 00 [18:49:26]MH_I2C_Read... [18:49:26]Read from MH i2c: E2 0E 00 BA AC 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7F [18:49:26]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:49:26]wFMCommunicate OK [18:49:26]SAM_PROTO_GetShiftState done [18:49:26]FM_GetShiftState done [18:49:26]opened in 1710115571 [18:49:26]opened+sec_in_day 1710201971 [18:49:26]quantity*price = 100010 [18:49:26]sum+1 = 100012 [18:49:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 178 11.03.2024 18:49 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95003 ФПД: 45438636886399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T184942&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95003&fm=45438636886399&tin=02508201610067®Number=0000000000090555&sum=100000 [18:49:27]StoreToDocumentArchive [18:49:27]shift 326 fd 95003 [18:49:27]save to /storage/0326/doc_00095003 [18:49:27]save last doc name /storage/0326/doc_00095003 to /storage/kkm_last_doc_name [18:49:27]save OK [18:49:27]Clear old archive folders... [18:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:27]tlvbuf is 00191E70 [18:49:27]SAM_PROTO_ClearQueue [18:49:27]wFMCommunicate request_size=4 [18:49:27]MH_SAM_APDU [18:49:27]CAPDU: 80 09 00 00 [18:49:27]Write to MH i2c: E2 08 00 C7 AC 80 09 00 00 00 00 00 00 E5 [18:49:27]Write i2c OK [18:49:27]MH_I2C_Read... [18:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:27]Read from MH i2c: E2 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: E2 03 00 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: E2 03 00 C7 AC 00 90 00 E7 [18:49:27]RAPDU: 90 00 [18:49:27]wFMCommunicate OK [18:49:27]SAM_PROTO_ClearQueue done [18:49:27]KKMCreateOFDPacket [18:49:27]OFDProtocolAddRootSTLVToBuf [18:49:27]FM_MakeSignedData [18:49:27]FM_MakeSignedData [18:49:27]SAM_PROTO_SignData [18:49:27]wFMCommunicate request_size=4 [18:49:27]MH_SAM_APDU [18:49:27]CAPDU: 80 0D 01 02 [18:49:27]Write to MH i2c: E2 08 00 C8 AC 80 0D 01 02 00 00 00 00 ED [18:49:27]Write i2c OK [18:49:27]MH_I2C_Read... [18:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:27]Read from MH i2c: E2 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: E2 03 00 [18:49:27]MH_I2C_Read... [18:49:27]Read from MH i2c: E2 03 00 C8 AC 00 90 00 E8 [18:49:27]RAPDU: 90 00 [18:49:27]wFMCommunicate OK [18:49:27]wFMCommunicate request_size=255 [18:49:27]MH_SAM_APDU [18:49: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 46 52 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 73 01 00 35 04 06 00 29 [18:49:27]Write to MH i2c: E2 02 01 C9 AC 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 46 52 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 73 01 00 35 04 06 00 29 00 00 E1 [18:49:27]Write i2c OK [18:49:27]MH_I2C_Read... [18:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:28]Read from MH i2c: E2 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: E2 03 00 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: E2 03 00 C9 AC 00 90 00 E9 [18:49:28]RAPDU: 90 00 [18:49:28]wFMCommunicate OK [18:49:28]wFMCommunicate request_size=10 [18:49:28]MH_SAM_APDU [18:49:28]CAPDU: 80 0D 02 02 05 53 81 CF 89 7F [18:49:28]Write to MH i2c: E2 0D 00 CA AC 80 0D 02 02 05 00 53 81 CF 89 7F 00 00 A5 [18:49:28]Write i2c OK [18:49:28]MH_I2C_Read... [18:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:28]Read from MH i2c: E2 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: E2 03 00 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: E2 03 00 CA AC 00 90 00 EA [18:49:28]RAPDU: 90 00 [18:49:28]wFMCommunicate OK [18:49:28]wFMCommunicate request_size=4 [18:49:28]MH_SAM_APDU [18:49:28]CAPDU: 80 0D 03 02 [18:49:28]Write to MH i2c: E2 08 00 CB AC 80 0D 03 02 00 00 00 00 F2 [18:49:28]Write i2c OK [18:49:28]MH_I2C_Read... [18:49:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:28]Read from MH i2c: E2 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: E2 0B 00 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: E2 0B 00 CB AC 00 50 5F 70 7F 7F 35 E7 2A 90 00 56 [18:49:28]RAPDU: 50 5F 70 7F 7F 35 E7 2A 90 00 [18:49:28]wFMCommunicate OK [18:49:28]SAM_PROTO_SignData done [18:49:28]FM_MakeSignedData done [18:49:28]CreateOFDProtocolMessage [18:49:28]wFMCommunicate request_size=4 [18:49:28]MH_SAM_APDU [18:49:28]CAPDU: 80 11 00 00 [18:49:28]Write to MH i2c: E2 08 00 CC AC 80 11 00 00 00 00 00 00 F2 [18:49:28]Write i2c OK [18:49:28]MH_I2C_Read... [18:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:28]Read from MH i2c: E2 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: E2 17 00 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: E2 17 00 CC AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 42 [18:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:49:28]wFMCommunicate OK [18:49:28]CreateOFDProtocolMessage done [18:49:28]OFDSenderStorePacket 95003 [18:49:28]StoreOFDPacket docnum=95003 [18:49:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 06 90 07 01 BF 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 46 52 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 73 01 00 35 04 06 00 29 53 81 CF 89 7F 50 5F 70 7F 7F 35 E7 2A [18:49:28]CheckFolder [18:49:28]dirname=/storage/ofd_packets [18:49:28]CheckFolder done [18:49:28]ProducePacketName [18:49:28]name=ofd_packets/00095003 [18:49:28]NVStorageSaveData ofd_packets/00095003 [18:49:28]File name is /storage/ofd_packets/00095003 [18:49:28]Write 301 bytes [18:49:28]NVStorageSaveData done [18:49:28]OFDSenderStorePacket done [18:49:28]KKMCreateOFDPacket done [18:49:28]NVStorageSaveData kkm_last_timestamp [18:49:28]File name is /storage/kkm_last_timestamp [18:49:28]Write 4 bytes [18:49:28]NVStorageSaveData done [18:49:28]ExternCall_PrintAddStr [18:49:28]wPrintStart [18:49:28]Write to MH i2c: 01 00 00 CD AC 79 [18:49:28]Write i2c OK [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: 01 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: 01 07 00 [18:49:28]MH_I2C_Read... [18:49:28]Read from MH i2c: 01 07 00 CD AC 00 80 00 00 00 FF 0F 0E [18:49:28]RasterBufferAndPrint [18:49:28]line Счет N : (1)195962 [18:49:28]line ИНН: 02508201610067 [18:49:28]line Контрольно-Кассовый Чек [18:49:28]line ПРОДАЖА [18:49:28]line ТРК (МРК, ГНК) : 31 [18:49:28]line Товар: 2710124500 [18:49:28]line Аи-95-К-5 [18:49:28]line 14.390 * 69.50 [18:49:28]line = 1000.11 [18:49:28]line НДС 12% НСП 1% [18:49:28]line > о реализуемом товаре [18:49:28]line ОКРУГЛЕНИЕ: -0.11 [18:49:28]line ИТОГО: 1000.00 [18:49:28]line Внесено: 1000.00 [18:49:28]line СДАЧА: 0.00 [18:49:28]line НСП 1% : 8.85 [18:49:28]line НДС 12% : 106.21 [18:49:28]line Наличными: 1000.00 [18:49:28]line Безнал.: 0.00 [18:49:28]line Место: АЗС № 6 "Партнер Нефть" [18:49:28]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:49:28]line СНО: Общий режим [18:49:28]line Чек 178 11.03.2024 18:49 [18:49:28]line Смена: 326 ФФД: 1.0 [18:49:28]line ЗНМ: 0300000009 [18:49:28]line РНМ: 0000000000090555 [18:49:28]line Версия ККМ: 001 [18:49:28]line ФМ: 0000000000874811 [18:49:28]line ФД: 95003 [18:49:28]line ФПД: 45438636886399 [18:49:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T184942&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95003&fm=45438636886399&tin=02508201610067®Number=0000000000090555&sum=100000 [18:49:28]OFD Sender: Processing packet 95003 [packets to send 30, broken 29] [18:49:28]ProducePacketName [18:49:28]name=ofd_packets/00095003 [18:49:28]OFD Sender: To server: pG, [18:49:28]CommunicateWithHost lk.salyk.kg:30040 [18:49:28]ConnectInit lk.salyk.kg [18:49:28]written 0, free lines is 4095 [18:49:28]Connected sock=10 [18:49: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 31 31 0F 01 00 00 06 90 07 01 BF 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 46 52 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1B 73 01 00 35 04 06 00 29 53 81 CF 89 7F 50 5F 70 7F 7F 35 E7 2A [18:49: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 31 31 4F 00 00 00 60 D1 47 00 6F 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 31 31 10 04 04 00 1B 73 01 00 F4 03 04 00 9F FD EE 65 B6 04 01 00 00 FE F0 84 32 36 00 4B 0C [18:49:28]CommunicateWithHost err = 0 [18:49:28]CheckOFDResponse [18:49:28]1017 (14) - 77093643461234 [18:49:28]1041 (16) - 0000000000874811 [18:49:28]1040 (4) - 95003 [18:49:28]1012 (4) - 11.03.2024 12:48 [18:49:28]1206 (1) - 0 [18:49:28]OFD Sender: Remove packet 95003 [18:49:28]ProducePacketName [18:49:28]name=ofd_packets/00095003 [18:49:28]NVStorageDeleteData [18:49:29]Write to MH i2c: 01 00 00 F8 AC A4 [18:49:29]Write i2c OK [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: 01 [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: 01 07 00 [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: 01 07 00 F8 AC 00 80 00 00 00 4E 0D 86 [18:49:29]RasterBufferAndPrint [18:49:29]line [18:49:29]line [18:49:29]line [18:49:29]line [18:49:29]line [18:49:29]written 0, free lines is 3414 [18:49:29]process_action close_receipt done [18:49:29]requested_data is exist [18:49:29]produce_requested_data [18:49:29]requested_item fm.sn is exist - process it [18:49:29]wFMCommunicate request_size=4 [18:49:29]MH_SAM_APDU [18:49:29]CAPDU: 80 11 00 00 [18:49:29]Write to MH i2c: E2 08 00 FF AC 80 11 00 00 00 00 00 00 25 [18:49:29]Write i2c OK [18:49:29]MH_I2C_Read... [18:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:29]Read from MH i2c: E2 [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: E2 17 00 [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: E2 17 00 FF AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [18:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:49:29]wFMCommunicate OK [18:49:29]requested_item fd.num is exist - process it [18:49:29]SAM_PROTO_GetFieldsCounters [18:49:29]wFMCommunicate request_size=4 [18:49:29]MH_SAM_APDU [18:49:29]CAPDU: 80 13 00 00 [18:49:29]Write to MH i2c: E2 08 00 00 AD 80 13 00 00 00 00 00 00 29 [18:49:29]Write i2c OK [18:49:29]MH_I2C_Read... [18:49:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:29]Read from MH i2c: E2 [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: E2 62 00 [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: E2 62 00 00 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [18:49: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:29]wFMCommunicate OK [18:49:29]SAM_PROTO_GetFieldsCounters done [18:49:29]requested_item shift.num is exist - process it [18:49:29]requested_item shift.opened is exist - process it [18:49:29]req_shift_opened [18:49:29]FM_GetShiftState [18:49:29]SAM_PROTO_GetShiftState [18:49:29]wFMCommunicate request_size=4 [18:49:29]MH_SAM_APDU [18:49:29]CAPDU: 80 13 01 00 [18:49:29]Write to MH i2c: E2 08 00 01 AD 80 13 01 00 00 00 00 00 2B [18:49:29]Write i2c OK [18:49:29]MH_I2C_Read... [18:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:29]Read from MH i2c: E2 [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: E2 0E 00 [18:49:29]MH_I2C_Read... [18:49:29]Read from MH i2c: E2 0E 00 01 AD 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C7 [18:49:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:49:29]wFMCommunicate OK [18:49:29]SAM_PROTO_GetShiftState done [18:49:29]FM_GetShiftState done [18:49:29]req_shift_opened done [18:49:29]requested_item shift.open_date is exist - process it [18:49:29]req_shift_open_date [18:49:29]req_shift_open_date done [18:49:29]produce_requested_data done [18:49:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95003,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:49:29]process_action_free close_receipt [18:49:29]json_value_free [18:49:29]json_value_free done [18:49:29]process_json_proto returns [18:49:29]Send response to host [18:49:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95003,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:49:29]free response buf [18:49:29]execute_script done [18:49:29]execute_script returns [18:49:29]free content buf [18:49:29]Sock 9.Close socket [18:49:29]Sock 9.Thread stoped [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:00]accept exits with 7 [18:52:00]New connection [18:52:00]New thread 3066871140 created [18:52:00]Thread 3067014500 joined [18:52:00]Waiting for new connection... [18:52:00] Sock 7.Parse request [18:52:00]Sock 7.Check first char [18:52:00]Sock 7.First char is OK [18:52:00]request: POST /json_proto HTTP/1.0 [18:52:00]Method: POST [18:52:00]URL: /json_proto [18:52:00]Method is POST - this is cgi request [18:52:00]url: /json_proto [18:52:00]query_string will be loaded in cgi processing [18:52:00]execute_cgi json_proto POST (null) [18:52:00]execute_cgi path=json_proto method=POST [18:52:00]POST find Content-Length [18:52:00]Host: 172.17.62.67:8080 [18:52:00]Content-Length: 677 [18:52:00]Content-Type: application/json [18:52:00] [18:52:00]POST finish read [18:52:00]Found Content-Length = 677 [18:52:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:00]execute_script... [18:52: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)195964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:00]POST & json_proto [18:52:00]process_json_proto [18:52:00]json parsed OK: [18:52:00]protocol is kg_v1.0 [18:52:00]action value=close_receipt [18:52:00]process_action close_receipt [18:52:00]cmd_close_receipt [18:52:00]MH_GetDate [18:52:00]Write to MH i2c: F0 00 00 02 AD 9E [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: F0 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: F0 05 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: F0 05 00 02 AD 00 DF 52 EF 65 28 [18:52:00]GetLastDocTimeStamp 1710182982 [18:52:00]current date 1710183135 [18:52:00]FM_GetShiftState [18:52:00]SAM_PROTO_GetShiftState [18:52:00]wFMCommunicate request_size=4 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 13 01 00 [18:52:00]Write to MH i2c: E2 08 00 03 AD 80 13 01 00 00 00 00 00 2D [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 0E 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 0E 00 03 AD 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C9 [18:52:00]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:52:00]wFMCommunicate OK [18:52:00]SAM_PROTO_GetShiftState done [18:52:00]FM_GetShiftState done [18:52:00]opened in 1710115571 [18:52:00]opened+sec_in_day 1710201971 [18:52:00]quantity*price = 60006 [18:52:00]sum+1 = 60008 [18:52:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 179 11.03.2024 18:52 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95004 ФПД: 161583274029809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T185215&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95004&fm=161583274029809&tin=02508201610067®Number=0000000000090555&sum=60000 [18:52:01]StoreToDocumentArchive [18:52:01]shift 326 fd 95004 [18:52:01]save to /storage/0326/doc_00095004 [18:52:01]save last doc name /storage/0326/doc_00095004 to /storage/kkm_last_doc_name [18:52:01]save OK [18:52:01]Clear old archive folders... [18:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:01]tlvbuf is 0041C770 [18:52:01]SAM_PROTO_ClearQueue [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 09 00 00 [18:52:01]Write to MH i2c: E2 08 00 10 AD 80 09 00 00 00 00 00 00 2F [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 03 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 03 00 10 AD 00 90 00 31 [18:52:01]RAPDU: 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_ClearQueue done [18:52:01]KKMCreateOFDPacket [18:52:01]OFDProtocolAddRootSTLVToBuf [18:52:01]FM_MakeSignedData [18:52:01]FM_MakeSignedData [18:52:01]SAM_PROTO_SignData [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 0D 01 02 [18:52:01]Write to MH i2c: E2 08 00 11 AD 80 0D 01 02 00 00 00 00 37 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 03 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 03 00 11 AD 00 90 00 32 [18:52:01]RAPDU: 90 00 [18:52:01]wFMCommunicate OK [18:52:01]wFMCommunicate request_size=255 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 B3 00 00 00 F4 03 04 00 DF 52 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 73 01 00 35 04 06 00 92 [18:52:01]Write to MH i2c: E2 02 01 12 AD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 B3 00 00 00 F4 03 04 00 DF 52 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 73 01 00 35 04 06 00 92 00 00 E7 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 03 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 03 00 12 AD 00 90 00 33 [18:52:01]RAPDU: 90 00 [18:52:01]wFMCommunicate OK [18:52:01]wFMCommunicate request_size=10 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 0D 02 02 05 F5 89 A6 72 F1 [18:52:01]Write to MH i2c: E2 0D 00 13 AD 80 0D 02 02 05 00 F5 89 A6 72 F1 00 00 CB [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 03 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 03 00 13 AD 00 90 00 34 [18:52:01]RAPDU: 90 00 [18:52:01]wFMCommunicate OK [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 0D 03 02 [18:52:01]Write to MH i2c: E2 08 00 14 AD 80 0D 03 02 00 00 00 00 3C [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0B 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0B 00 14 AD 00 3A FF 2D 16 09 A2 5A D4 90 00 92 [18:52:01]RAPDU: 3A FF 2D 16 09 A2 5A D4 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_SignData done [18:52:01]FM_MakeSignedData done [18:52:01]CreateOFDProtocolMessage [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 11 00 00 [18:52:01]Write to MH i2c: E2 08 00 15 AD 80 11 00 00 00 00 00 00 3C [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 17 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 17 00 15 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8C [18:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:52:01]wFMCommunicate OK [18:52:01]CreateOFDProtocolMessage done [18:52:01]OFDSenderStorePacket 95004 [18:52:01]StoreOFDPacket docnum=95004 [18:52:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D5 C7 07 01 A5 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 B3 00 00 00 F4 03 04 00 DF 52 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 73 01 00 35 04 06 00 92 F5 89 A6 72 F1 3A FF 2D 16 09 A2 5A D4 [18:52:01]CheckFolder [18:52:01]dirname=/storage/ofd_packets [18:52:01]CheckFolder done [18:52:01]ProducePacketName [18:52:01]name=ofd_packets/00095004 [18:52:01]NVStorageSaveData ofd_packets/00095004 [18:52:01]File name is /storage/ofd_packets/00095004 [18:52:01]Write 301 bytes [18:52:01]NVStorageSaveData done [18:52:01]OFDSenderStorePacket done [18:52:01]KKMCreateOFDPacket done [18:52:01]NVStorageSaveData kkm_last_timestamp [18:52:01]File name is /storage/kkm_last_timestamp [18:52:01]Write 4 bytes [18:52:01]NVStorageSaveData done [18:52:01]ExternCall_PrintAddStr [18:52:01]wPrintStart [18:52:01]Write to MH i2c: 01 00 00 16 AD C3 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 07 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 07 00 16 AD 00 80 00 00 00 FF 0F 58 [18:52:01]RasterBufferAndPrint [18:52:01]line Счет N : (1)195964 [18:52:01]line ИНН: 02508201610067 [18:52:01]line Контрольно-Кассовый Чек [18:52:01]line ПРОДАЖА [18:52:01]line ТРК (МРК, ГНК) : 12 [18:52:01]line Товар: 2710124130 [18:52:01]line Аи-92-К-5 [18:52:01]line 9.540 * 62.90 [18:52:01]line = 600.07 [18:52:01]line НДС 12% НСП 1% [18:52:01]line > о реализуемом товаре [18:52:01]line ОКРУГЛЕНИЕ: -0.07 [18:52:01]line ИТОГО: 600.00 [18:52:01]line Внесено: 600.00 [18:52:01]line СДАЧА: 0.00 [18:52:01]line НСП 1% : 5.31 [18:52:01]line НДС 12% : 63.72 [18:52:01]line Наличными: 600.00 [18:52:01]line Безнал.: 0.00 [18:52:01]line Место: АЗС № 6 "Партнер Нефть" [18:52:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:52:01]line СНО: Общий режим [18:52:01]line Чек 179 11.03.2024 18:52 [18:52:01]line Смена: 326 ФФД: 1.0 [18:52:01]line ЗНМ: 0300000009 [18:52:01]line РНМ: 0000000000090555 [18:52:01]line Версия ККМ: 001 [18:52:01]line ФМ: 0000000000874811 [18:52:01]line ФД: 95004 [18:52:01]line ФПД: 161583274029809 [18:52:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T185215&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95004&fm=161583274029809&tin=02508201610067®Number=0000000000090555&sum=60000 [18:52:02]OFD Sender: Processing packet 95004 [packets to send 30, broken 29] [18:52:02]ProducePacketName [18:52:02]name=ofd_packets/00095004 [18:52:02]OFD Sender: To server: pG, [18:52:02]CommunicateWithHost lk.salyk.kg:30040 [18:52:02]ConnectInit lk.salyk.kg [18:52:02]written 0, free lines is 4095 [18:52:02]Connected sock=10 [18:52: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 31 31 0F 01 00 00 D5 C7 07 01 A5 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 B3 00 00 00 F4 03 04 00 DF 52 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1C 73 01 00 35 04 06 00 92 F5 89 A6 72 F1 3A FF 2D 16 09 A2 5A D4 [18:52: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 31 31 4F 00 00 00 DD D2 47 00 58 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 31 31 10 04 04 00 1C 73 01 00 F4 03 04 00 38 FE EE 65 B6 04 01 00 00 ED D8 16 0B 1F 3C 50 07 [18:52:02]CommunicateWithHost err = 0 [18:52:02]CheckOFDResponse [18:52:02]1017 (14) - 77093643461234 [18:52:02]1041 (16) - 0000000000874811 [18:52:02]1040 (4) - 95004 [18:52:02]1012 (4) - 11.03.2024 12:51 [18:52:02]1206 (1) - 0 [18:52:02]OFD Sender: Remove packet 95004 [18:52:02]ProducePacketName [18:52:02]name=ofd_packets/00095004 [18:52:02]NVStorageDeleteData [18:52:02]Write to MH i2c: 01 00 00 41 AD EE [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: 01 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: 01 07 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: 01 07 00 41 AD 00 80 00 00 00 51 0D D3 [18:52:02]RasterBufferAndPrint [18:52:02]line [18:52:02]line [18:52:02]line [18:52:02]line [18:52:02]line [18:52:02]written 0, free lines is 3415 [18:52:02]process_action close_receipt done [18:52:02]requested_data is exist [18:52:02]produce_requested_data [18:52:02]requested_item fm.sn is exist - process it [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 11 00 00 [18:52:02]Write to MH i2c: E2 08 00 48 AD 80 11 00 00 00 00 00 00 6F [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 17 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 17 00 48 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BF [18:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:52:02]wFMCommunicate OK [18:52:02]requested_item fd.num is exist - process it [18:52:02]SAM_PROTO_GetFieldsCounters [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 13 00 00 [18:52:02]Write to MH i2c: E2 08 00 49 AD 80 13 00 00 00 00 00 00 72 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 62 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 62 00 49 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [18:52: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:02]wFMCommunicate OK [18:52:02]SAM_PROTO_GetFieldsCounters done [18:52:02]requested_item shift.num is exist - process it [18:52:02]requested_item shift.opened is exist - process it [18:52:02]req_shift_opened [18:52:02]FM_GetShiftState [18:52:02]SAM_PROTO_GetShiftState [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 13 01 00 [18:52:02]Write to MH i2c: E2 08 00 4A AD 80 13 01 00 00 00 00 00 74 [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:02]OFD Sender: No OFD packet to send [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 0E 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 0E 00 4A AD 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 10 [18:52:02]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:52:02]wFMCommunicate OK [18:52:02]SAM_PROTO_GetShiftState done [18:52:02]FM_GetShiftState done [18:52:02]req_shift_opened done [18:52:02]requested_item shift.open_date is exist - process it [18:52:02]req_shift_open_date [18:52:02]req_shift_open_date done [18:52:02]produce_requested_data done [18:52:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95004,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:52:02]process_action_free close_receipt [18:52:02]json_value_free [18:52:02]json_value_free done [18:52:02]process_json_proto returns [18:52:02]Send response to host [18:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95004,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:52:02]free response buf [18:52:02]execute_script done [18:52:02]execute_script returns [18:52:02]free content buf [18:52:02]Sock 7.Close socket [18:52:02]Sock 7.Thread stoped [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]accept exits with 9 [18:52:27]New connection [18:52:27]New thread 3067014500 created [18:52:27]Thread 3066871140 joined [18:52:27]Waiting for new connection... [18:52:27] Sock 9.Parse request [18:52:27]Sock 9.Check first char [18:52:27]Sock 9.First char is OK [18:52:27]request: POST /json_proto HTTP/1.0 [18:52:27]Method: POST [18:52:27]URL: /json_proto [18:52:27]Method is POST - this is cgi request [18:52:27]url: /json_proto [18:52:27]query_string will be loaded in cgi processing [18:52:27]execute_cgi json_proto POST (null) [18:52:27]execute_cgi path=json_proto method=POST [18:52:27]POST find Content-Length [18:52:27]Host: 172.17.62.67:8080 [18:52:27]Content-Length: 1193 [18:52:27]Content-Type: application/json [18:52:27] [18:52:27]POST finish read [18:52:27]Found Content-Length = 1193 [18:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195963\u000A11.03.2024 18:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 1390.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68834\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:27]execute_script... [18:52:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195963\u000A11.03.2024 18:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 1390.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68834\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:27]POST & json_proto [18:52:27]process_json_proto [18:52:27]json parsed OK: [18:52:27]protocol is kg_v1.0 [18:52:27]action value=print_text [18:52:27]process_action print_text [18:52:27]cmd_print_text [18:52:27]ExternCall_PrintAddStr [18:52:27]wPrintStart [18:52:27]Write to MH i2c: 01 00 00 4B AD F8 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 07 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 07 00 4B AD 00 80 00 00 00 FF 0F 8D [18:52:27]RasterBufferAndPrint [18:52:27]line *****ТОВАРНЫЙ ЧЕК***** [18:52:27]line АЗС 6 [18:52:27]line Партнер нефть [18:52:27]line 02508201610067 [18:52:27]line Кассир : Карыбаев Б. [18:52:27]line Счет N : (1)195963 [18:52:27]line 11.03.2024 18:46 [18:52:27]line ПРОДАЖА [18:52:27]line ТРК (МРК, ГНК): 31 [18:52:27]line Вид ГСМ : 2710124500 [18:52:27]line Аи-95-К-5 [18:52:27]line 20.000 x 69.50 [18:52:27]line ИТОГ: 1390.00 [18:52:27]line Тип оплаты: Талоны: Топливная Карта [18:52:27]line 68834 [18:52:27]line ______________________ [18:52:27]line (подпись) [18:52:27]written 0, free lines is 4095 [18:52:27]Write to MH i2c: 01 00 00 5F AD 0C [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 07 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: 01 07 00 5F AD 00 80 00 00 00 65 0E 06 [18:52:27]RasterBufferAndPrint [18:52:27]line [18:52:27]line [18:52:27]line [18:52:27]line [18:52:27]line [18:52:27]written 0, free lines is 3689 [18:52:27]process_action print_text done [18:52:27]requested_data is exist [18:52:27]produce_requested_data [18:52:27]requested_item fm.sn is exist - process it [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 11 00 00 [18:52:27]Write to MH i2c: E2 08 00 66 AD 80 11 00 00 00 00 00 00 8D [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 17 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 17 00 66 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DD [18:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:52:27]wFMCommunicate OK [18:52:27]requested_item fd.num is exist - process it [18:52:27]SAM_PROTO_GetFieldsCounters [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 13 00 00 [18:52:27]Write to MH i2c: E2 08 00 67 AD 80 13 00 00 00 00 00 00 90 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 62 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 62 00 67 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [18:52: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:27]wFMCommunicate OK [18:52:27]SAM_PROTO_GetFieldsCounters done [18:52:27]requested_item shift.num is exist - process it [18:52:27]requested_item shift.opened is exist - process it [18:52:27]req_shift_opened [18:52:27]FM_GetShiftState [18:52:27]SAM_PROTO_GetShiftState [18:52:27]wFMCommunicate request_size=4 [18:52:27]MH_SAM_APDU [18:52:27]CAPDU: 80 13 01 00 [18:52:27]Write to MH i2c: E2 08 00 68 AD 80 13 01 00 00 00 00 00 92 [18:52:27]Write i2c OK [18:52:27]MH_I2C_Read... [18:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:27]Read from MH i2c: E2 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 0E 00 [18:52:27]MH_I2C_Read... [18:52:27]Read from MH i2c: E2 0E 00 68 AD 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2E [18:52:27]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:52:27]wFMCommunicate OK [18:52:27]SAM_PROTO_GetShiftState done [18:52:27]FM_GetShiftState done [18:52:27]req_shift_opened done [18:52:27]requested_item shift.open_date is exist - process it [18:52:27]req_shift_open_date [18:52:27]req_shift_open_date done [18:52:27]produce_requested_data done [18:52:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95004,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:52:27]process_action_free print_text [18:52:27]json_value_free [18:52:27]json_value_free done [18:52:27]process_json_proto returns [18:52:27]Send response to host [18:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95004,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:52:27]free response buf [18:52:27]execute_script done [18:52:27]execute_script returns [18:52:27]free content buf [18:52:27]Sock 9.Close socket [18:52:27]Sock 9.Thread stoped [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 26 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 26 00 01 00 00 03 01 00 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 57 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF E3 [00:00:11]Possible old version of MH firmware - no need to switch from boot [00:00:11]Model is 3 [00:00:11]MH firmware is 1 [00:00:11]MH boot firmware is 0 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 02 00 41 00 40 00 FF FF 5C [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 02 00 00 D8 [00:00:11]Write to MH i2c: D5 00 00 03 00 D7 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 03 00 00 D8 [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 04 00 F3 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 05 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 05 00 04 00 00 30 53 EF 65 CF [18:53:36]Current date/time: 11.03.2024 18:53 [18:53:36]FM_Init [18:53:36]wFMConnect [18:53:36]MH_SAM_On [18:53:36]Write to MH i2c: E0 00 00 05 00 E4 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_init finished! [18:53:36]*** atr: [18:53:36]*** 0F 3B D5 18 FF 81 91 FE [18:53:36]*** 1F C3 80 73 C8 21 10 0A [18:53:36]*** 00 00 00 00 00 00 00 00 [18:53:36]*** 00 00 00 00 00 00 00 00 [18:53:36]*** 00 00 00 00 00 00 00 00 [18:53:36]*** 00 00 00 00 00 00 00 00 [18:53:36]*** 00 00 00 00 00 00 00 00 [18:53:36]*** 00 00 00 00 00 00 00 00 [18:53:36]Read from MH i2c: E0 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E0 10 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E0 10 00 05 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 03 [18:53:36]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:53:36]wFMCommunicate request_size=10 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:53:36]Write to MH i2c: E2 0D 00 06 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B0 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 06 00 00 90 00 7A [18:53:36]RAPDU: 90 00 [18:53:36]wFMCommunicate OK [18:53:36]wFMCommunicate request_size=4 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 11 00 00 [18:53:36]Write to MH i2c: E2 08 00 07 00 80 11 00 00 00 00 00 00 81 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 17 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 17 00 07 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D1 [18:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:53:36]wFMCommunicate OK [18:53:36]Detected FM SN is 0000000000874811 [18:53:36]Stored FM SN is 0000000000874811 [18:53:36]wFMCommunicate request_size=9 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 16 00 00 04 32 7F 00 00 [18:53:36]Write to MH i2c: E2 0C 00 08 00 80 16 00 00 04 00 32 7F 00 00 00 00 40 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 08 00 00 90 00 7C [18:53:36]RAPDU: 90 00 [18:53:36]wFMCommunicate OK [18:53:36]FM PIN OK [18:53:36]wFMCommunicate request_size=8 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 14 04 00 03 02 00 01 [18:53:36]Write to MH i2c: E2 0B 00 09 00 80 14 04 00 03 00 02 00 01 00 00 93 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:53:36]RAPDU: 90 00 [18:53:36]wFMCommunicate OK [18:53:36]wFMCommunicate request_size=13 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:53:36]Write to MH i2c: E2 10 00 0A 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B8 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [18:53:36]RAPDU: 90 00 [18:53:36]wFMCommunicate OK [18:53:36]wFMCommunicate request_size=4 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 11 00 00 [18:53:36]Write to MH i2c: E2 08 00 0B 00 80 11 00 00 00 00 00 00 85 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 17 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 17 00 0B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D5 [18:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:53:36]wFMCommunicate OK [18:53:36]DocumentArchiveInit [18:53:36]Start Httpd... [18:53:36]Httpd thread 3067243876 created [18:53:36]Write to MH i2c: 01 00 00 0C 00 0C [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: 01 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: 01 07 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: 01 07 00 0C 00 00 80 00 00 00 FF 0F A1 [18:53:36]MH Int Process started [18:53:36]Allocated Socket 7 [18:53:36]Bind OK [18:53:36]Listen OK [18:53:36]httpd running on port 8080 [18:53:36]Waiting for new connection... [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:45]accept exits with 8 [18:53:45]New connection [18:53:45]New thread 3066957156 created [18:53:45]Waiting for new connection... [18:53:45] Sock 8.Parse request [18:53:45]Sock 8.Check first char [18:53:45]Sock 8.First char is OK [18:53:45]request: POST /json_proto HTTP/1.0 [18:53:45]Method: POST [18:53:45]URL: /json_proto [18:53:45]Method is POST - this is cgi request [18:53:45]url: /json_proto [18:53:45]query_string will be loaded in cgi processing [18:53:45]execute_cgi json_proto POST (null) [18:53:45]execute_cgi path=json_proto method=POST [18:53:45]POST find Content-Length [18:53:45]Host: 172.17.62.67:8080 [18:53:45]Content-Length: 215 [18:53:45]Content-Type: application/json [18:53:45] [18:53:45]POST finish read [18:53:45]Found Content-Length = 215 [18:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:45]execute_script... [18:53:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:45]POST & json_proto [18:53:45]process_json_proto [18:53:45]json parsed OK: [18:53:45]protocol is kg_v1.0 [18:53:45]action value=get_value [18:53:45]process_action get_value [18:53:45]cmd_get_value [18:53:45]process_action get_value done [18:53:45]requested_data is exist [18:53:45]produce_requested_data [18:53:45]requested_item kkm.sn is exist - process it [18:53:45]requested_item kkm.ver is exist - process it [18:53:45]requested_item fm.sn is exist - process it [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 11 00 00 [18:53:45]Write to MH i2c: E2 08 00 0D 00 80 11 00 00 00 00 00 00 87 [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 17 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 17 00 0D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D7 [18:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:53:45]wFMCommunicate OK [18:53:45]requested_item fd.num is exist - process it [18:53:45]SAM_PROTO_GetFieldsCounters [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 13 00 00 [18:53:45]Write to MH i2c: E2 08 00 0E 00 80 13 00 00 00 00 00 00 8A [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 62 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 62 00 0E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [18:53: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:45]wFMCommunicate OK [18:53:45]SAM_PROTO_GetFieldsCounters done [18:53:45]requested_item shift.num is exist - process it [18:53:45]requested_item shift.opened is exist - process it [18:53:45]req_shift_opened [18:53:45]FM_GetShiftState [18:53:45]SAM_PROTO_GetShiftState [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 13 01 00 [18:53:45]Write to MH i2c: E2 08 00 0F 00 80 13 01 00 00 00 00 00 8C [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 0E 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 0E 00 0F 00 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 28 [18:53:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:53:45]wFMCommunicate OK [18:53:45]SAM_PROTO_GetShiftState done [18:53:45]FM_GetShiftState done [18:53:45]req_shift_opened done [18:53:45]requested_item shift.open_date is exist - process it [18:53:45]req_shift_open_date [18:53:45]req_shift_open_date done [18:53:45]produce_requested_data done [18:53:45]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95004,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:53:45]process_action_free get_value [18:53:45]json_value_free [18:53:45]json_value_free done [18:53:45]process_json_proto returns [18:53:45]Send response to host [18:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95004,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:53:45]free response buf [18:53:45]execute_script done [18:53:45]execute_script returns [18:53:45]free content buf [18:53:45]Sock 8.Close socket [18:53:45]Sock 8.Thread stoped [18:53:45]accept exits with 9 [18:53:45]New connection [18:53:45]New thread 3066813796 created [18:53:45]Thread 3066957156 joined [18:53:45]Waiting for new connection... [18:53:45] Sock 9.Parse request [18:53:45]Sock 9.Check first char [18:53:45]Sock 9.First char is OK [18:53:45]request: POST /json_proto HTTP/1.0 [18:53:45]Method: POST [18:53:45]URL: /json_proto [18:53:45]Method is POST - this is cgi request [18:53:45]url: /json_proto [18:53:45]query_string will be loaded in cgi processing [18:53:45]execute_cgi json_proto POST (null) [18:53:45]execute_cgi path=json_proto method=POST [18:53:45]POST find Content-Length [18:53:45]Host: 172.17.62.67:8080 [18:53:45]Content-Length: 331 [18:53:45]Content-Type: application/json [18:53:45] [18:53:45]POST finish read [18:53:45]Found Content-Length = 331 [18:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:53:45]execute_script... [18:53:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:53:45]POST & json_proto [18:53:45]process_json_proto [18:53:45]json parsed OK: [18:53:45]protocol is kg_v1.0 [18:53:45]action value=get_value [18:53:45]process_action get_value [18:53:45]cmd_get_value [18:53:45]process_action get_value done [18:53:45]requested_data is exist [18:53:45]produce_requested_data [18:53:45]requested_item fm.sale.total is exist - process it [18:53:45]SAM_PROTO_GetFMData [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 13 03 00 [18:53:45]Write to MH i2c: E2 08 00 10 00 80 13 03 00 00 00 00 00 8F [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:53:46]Read from MH i2c: E2 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: E2 FD 00 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: E2 FD 00 10 00 00 C8 04 85 04 C4 04 6E 04 04 00 8B 70 01 00 69 04 A3 00 6F 04 04 00 BA 63 01 00 B1 04 05 00 50 EE 99 AF 01 70 04 05 00 88 21 DB 5B 01 72 04 04 00 C8 CC BE 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9A 93 D8 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 F5 D1 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D1 0C 00 00 B1 04 04 00 84 14 E6 21 70 04 04 00 B0 E9 E4 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 06 B7 99 03 90 00 4D [18:53:46]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 8B 70 01 00 69 04 A3 00 6F 04 04 00 BA 63 01 00 B1 04 05 00 50 EE 99 AF 01 70 04 05 00 88 21 DB 5B 01 72 04 04 00 C8 CC BE 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9A 93 D8 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F6 F5 D1 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D1 0C 00 00 B1 04 04 00 84 14 E6 21 70 04 04 00 B0 E9 E4 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 06 B7 99 03 90 00 [18:53:46]wFMCommunicate OK [18:53:46]wFMCommunicate request_size=4 [18:53:46]MH_SAM_APDU [18:53:46]CAPDU: 80 17 00 00 [18:53:46]Write to MH i2c: E2 08 00 11 00 80 17 00 00 00 00 00 00 91 [18:53:46]Write i2c OK [18:53:46]MH_I2C_Read... [18:53:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:46]Read from MH i2c: E2 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: E2 FD 00 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: E2 FD 00 11 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 35 [18:53:46]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8E CE 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [18:53:46]wFMCommunicate OK [18:53:46]wFMCommunicate request_size=4 [18:53:46]MH_SAM_APDU [18:53:46]CAPDU: 80 17 00 00 [18:53:46]Write to MH i2c: E2 08 00 12 00 80 17 00 00 00 00 00 00 92 [18:53:46]Write i2c OK [18:53:46]MH_I2C_Read... [18:53:46]OFD Sender: No OFD packet to send [18:53:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:46]Read from MH i2c: E2 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: E2 FD 00 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: E2 FD 00 12 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 6A [18:53:46]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [18:53:46]wFMCommunicate OK [18:53:46]wFMCommunicate request_size=4 [18:53:46]MH_SAM_APDU [18:53:46]CAPDU: 80 17 00 00 [18:53:46]Write to MH i2c: E2 08 00 13 00 80 17 00 00 00 00 00 00 93 [18:53:46]Write i2c OK [18:53:46]MH_I2C_Read... [18:53:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:46]Read from MH i2c: E2 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: E2 FD 00 [18:53:46]MH_I2C_Read... [18:53:46]Read from MH i2c: E2 FD 00 13 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0B [18:53:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [18:53:46]wFMCommunicate OK [18:53:46]wFMCommunicate request_size=4 [18:53:46]MH_SAM_APDU [18:53:46]CAPDU: 80 17 00 00 [18:53:46]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:53:46]Write i2c OK [18:53:46]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 E5 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 E5 00 14 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 78 [18:53:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:53:47]wFMCommunicate OK [18:53:47]SAM_PROTO_GetFMData done [18:53:47]requested_item fm.sale_refund.total is exist - process it [18:53:47]requested_item fm.buy.total is exist - process it [18:53:47]requested_item shift.sale.total is exist - process it [18:53:47]SAM_PROTO_GetShiftData [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 13 02 00 [18:53:47]Write to MH i2c: E2 08 00 15 00 80 13 02 00 00 00 00 00 93 [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 FD 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 FD 00 15 00 00 BB 04 AA 04 B7 04 6E 04 04 00 B3 00 00 00 69 04 9D 00 6F 04 04 00 AD 00 00 00 B1 04 04 00 C3 A0 1F 01 70 04 03 00 A0 96 D7 72 04 03 00 23 0A 48 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7D 8C 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9E 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 00 BE 3C 70 04 03 00 00 BE 3C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5A 73 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 27 [18:53:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 B3 00 00 00 69 04 9D 00 6F 04 04 00 AD 00 00 00 B1 04 04 00 C3 A0 1F 01 70 04 03 00 A0 96 D7 72 04 03 00 23 0A 48 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7D 8C 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9E 8B 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 00 BE 3C 70 04 03 00 00 BE 3C 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5A 73 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [18:53:47]wFMCommunicate OK [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 17 00 00 [18:53:47]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 FD 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 FD 00 16 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9C 89 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 65 [18:53:47]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9C 89 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 90 00 [18:53:47]wFMCommunicate OK [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 17 00 00 [18:53:47]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:48]Read from MH i2c: E2 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: E2 FD 00 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: E2 FD 00 17 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 C3 [18:53:48]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [18:53:48]wFMCommunicate OK [18:53:48]wFMCommunicate request_size=4 [18:53:48]MH_SAM_APDU [18:53:48]CAPDU: 80 17 00 00 [18:53:48]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [18:53:48]Write i2c OK [18:53:48]MH_I2C_Read... [18:53:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:53:48]Read from MH i2c: E2 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: E2 FD 00 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: E2 FD 00 18 00 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 0D [18:53:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [18:53:48]wFMCommunicate OK [18:53:48]wFMCommunicate request_size=4 [18:53:48]MH_SAM_APDU [18:53:48]CAPDU: 80 17 00 00 [18:53:48]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:53:48]Write i2c OK [18:53:48]MH_I2C_Read... [18:53:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [18:53:48]Read from MH i2c: E2 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: E2 D8 00 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: E2 D8 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 80 [18:53:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:53:48]wFMCommunicate OK [18:53:48]SAM_PROTO_GetShiftData done [18:53:48]requested_item shift.sale.total_cash is exist - process it [18:53:48]requested_item shift.sale_refund.total is exist - process it [18:53:48]requested_item shift.sale_refund.total_cash is exist - process it [18:53:48]requested_item shift.buy.total is exist - process it [18:53:48]requested_item shift.buy.total_cash is exist - process it [18:53:48]produce_requested_data done [18:53:48]produce_requested_data return {"fm.sale.total":72410681.12,"fm.sale_refund.total":5687266.60,"fm.buy.total":0.00,"shift.sale.total":188499.87,"shift.sale.total_cash":141288.00,"shift.sale_refund.total":39808.00,"shift.sale_refund.total_cash":39808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:53:48]process_action_free get_value [18:53:48]json_value_free [18:53:48]json_value_free done [18:53:48]process_json_proto returns [18:53:48]Send response to host [18:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72410681.12,"fm.sale_refund.total":5687266.60,"fm.buy.total":0.00,"shift.sale.total":188499.87,"shift.sale.total_cash":141288.00,"shift.sale_refund.total":39808.00,"shift.sale_refund.total_cash":39808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:53:48]free response buf [18:53:48]execute_script done [18:53:48]execute_script returns [18:53:48]free content buf [18:53:48]Sock 9.Close socket [18:53:48]Sock 9.Thread stoped [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:25]accept exits with 8 [18:55:25]New connection [18:55:25]New thread 3066957156 created [18:55:25]Thread 3066813796 joined [18:55:25]Waiting for new connection... [18:55:25] Sock 8.Parse request [18:55:25]Sock 8.Check first char [18:55:25]Sock 8.First char is OK [18:55:25]request: POST /json_proto HTTP/1.0 [18:55:25]Method: POST [18:55:25]URL: /json_proto [18:55:25]Method is POST - this is cgi request [18:55:25]url: /json_proto [18:55:25]query_string will be loaded in cgi processing [18:55:25]execute_cgi json_proto POST (null) [18:55:25]execute_cgi path=json_proto method=POST [18:55:25]POST find Content-Length [18:55:25]Host: 172.17.62.67:8080 [18:55:25]Content-Length: 677 [18:55:25]Content-Type: application/json [18:55:25] [18:55:25]POST finish read [18:55:25]Found Content-Length = 677 [18:55:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.000, "sum" : 314.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 314.00, "total" : 314.00, "payments": [ { "type": 0, "sum" : 314.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:25]execute_script... [18:55: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)195965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.000, "sum" : 314.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 314.00, "total" : 314.00, "payments": [ { "type": 0, "sum" : 314.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:25]POST & json_proto [18:55:25]process_json_proto [18:55:25]json parsed OK: [18:55:25]protocol is kg_v1.0 [18:55:25]action value=close_receipt [18:55:25]process_action close_receipt [18:55:25]cmd_close_receipt [18:55:25]MH_GetDate [18:55:25]Write to MH i2c: F0 00 00 1A 00 09 [18:55:25]Write i2c OK [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: F0 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: F0 05 00 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: F0 05 00 1A 00 00 9E 53 EF 65 53 [18:55:25]GetLastDocTimeStamp 1710183135 [18:55:25]current date 1710183326 [18:55:25]FM_GetShiftState [18:55:25]SAM_PROTO_GetShiftState [18:55:25]wFMCommunicate request_size=4 [18:55:25]MH_SAM_APDU [18:55:25]CAPDU: 80 13 01 00 [18:55:25]Write to MH i2c: E2 08 00 1B 00 80 13 01 00 00 00 00 00 98 [18:55:25]Write i2c OK [18:55:25]MH_I2C_Read... [18:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:25]Read from MH i2c: E2 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 0E 00 [18:55:25]MH_I2C_Read... [18:55:25]Read from MH i2c: E2 0E 00 1B 00 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 34 [18:55:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:55:25]wFMCommunicate OK [18:55:25]SAM_PROTO_GetShiftState done [18:55:25]FM_GetShiftState done [18:55:25]opened in 1710115571 [18:55:25]opened+sec_in_day 1710201971 [18:55:25]quantity*price = 31450 [18:55:25]sum+1 = 31451 [18:55:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 314.00 Внесено: 314.00 СДАЧА: 0.00 НСП 1% : 2.78 НДС 12% : 33.40 Наличными: 314.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 180 11.03.2024 18:55 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95005 ФПД: 111943303105042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T185526&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95005&fm=111943303105042&tin=02508201610067®Number=0000000000090555&sum=31400 [18:55:26]StoreToDocumentArchive [18:55:26]shift 326 fd 95005 [18:55:26]save to /storage/0326/doc_00095005 [18:55:26]save last doc name /storage/0326/doc_00095005 to /storage/kkm_last_doc_name [18:55:26]save OK [18:55:26]Clear old archive folders... [18:55:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:26]tlvbuf is 019FD850 [18:55:26]SAM_PROTO_ClearQueue [18:55:26]wFMCommunicate request_size=4 [18:55:26]MH_SAM_APDU [18:55:26]CAPDU: 80 09 00 00 [18:55:26]Write to MH i2c: E2 08 00 28 00 80 09 00 00 00 00 00 00 9A [18:55:26]Write i2c OK [18:55:26]MH_I2C_Read... [18:55:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:26]Read from MH i2c: E2 [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: E2 03 00 [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [18:55:26]RAPDU: 90 00 [18:55:26]wFMCommunicate OK [18:55:26]SAM_PROTO_ClearQueue done [18:55:26]KKMCreateOFDPacket [18:55:26]OFDProtocolAddRootSTLVToBuf [18:55:26]FM_MakeSignedData [18:55:26]FM_MakeSignedData [18:55:26]SAM_PROTO_SignData [18:55:26]wFMCommunicate request_size=4 [18:55:26]MH_SAM_APDU [18:55:26]CAPDU: 80 0D 01 02 [18:55:26]Write to MH i2c: E2 08 00 29 00 80 0D 01 02 00 00 00 00 A2 [18:55:26]Write i2c OK [18:55:26]MH_I2C_Read... [18:55:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:26]Read from MH i2c: E2 [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: E2 03 00 [18:55:26]MH_I2C_Read... [18:55:26]Read from MH i2c: E2 03 00 29 00 00 90 00 9D [18:55:26]RAPDU: 90 00 [18:55:26]wFMCommunicate OK [18:55:26]wFMCommunicate request_size=255 [18:55:26]MH_SAM_APDU [18:55:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 9E 53 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 73 01 00 35 04 06 00 65 [18:55:26]Write to MH i2c: E2 02 01 2A 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 9E 53 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 73 01 00 35 04 06 00 65 00 00 EB [18:55:26]Write i2c OK [18:55:26]MH_I2C_Read... [18:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:27]Read from MH i2c: E2 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 03 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [18:55:27]RAPDU: 90 00 [18:55:27]wFMCommunicate OK [18:55:27]wFMCommunicate request_size=10 [18:55:27]MH_SAM_APDU [18:55:27]CAPDU: 80 0D 02 02 05 CF D4 D1 0A 12 [18:55:27]Write to MH i2c: E2 0D 00 2B 00 80 0D 02 02 05 00 CF D4 D1 0A 12 00 00 3F [18:55:27]Write i2c OK [18:55:27]MH_I2C_Read... [18:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:27]Read from MH i2c: E2 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 03 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:55:27]RAPDU: 90 00 [18:55:27]wFMCommunicate OK [18:55:27]wFMCommunicate request_size=4 [18:55:27]MH_SAM_APDU [18:55:27]CAPDU: 80 0D 03 02 [18:55:27]Write to MH i2c: E2 08 00 2C 00 80 0D 03 02 00 00 00 00 A7 [18:55:27]Write i2c OK [18:55:27]MH_I2C_Read... [18:55:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:27]Read from MH i2c: E2 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 0B 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 0B 00 2C 00 00 7C 48 2A 8D E5 C0 F5 D1 90 00 8E [18:55:27]RAPDU: 7C 48 2A 8D E5 C0 F5 D1 90 00 [18:55:27]wFMCommunicate OK [18:55:27]SAM_PROTO_SignData done [18:55:27]FM_MakeSignedData done [18:55:27]CreateOFDProtocolMessage [18:55:27]wFMCommunicate request_size=4 [18:55:27]MH_SAM_APDU [18:55:27]CAPDU: 80 11 00 00 [18:55:27]Write to MH i2c: E2 08 00 2D 00 80 11 00 00 00 00 00 00 A7 [18:55:27]Write i2c OK [18:55:27]MH_I2C_Read... [18:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:27]Read from MH i2c: E2 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 17 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: E2 17 00 2D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F7 [18:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:55:27]wFMCommunicate OK [18:55:27]CreateOFDProtocolMessage done [18:55:27]OFDSenderStorePacket 95005 [18:55:27]StoreOFDPacket docnum=95005 [18:55:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 17 8E 07 01 A3 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 9E 53 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 73 01 00 35 04 06 00 65 CF D4 D1 0A 12 7C 48 2A 8D E5 C0 F5 D1 [18:55:27]CheckFolder [18:55:27]dirname=/storage/ofd_packets [18:55:27]CheckFolder done [18:55:27]ProducePacketName [18:55:27]name=ofd_packets/00095005 [18:55:27]NVStorageSaveData ofd_packets/00095005 [18:55:27]File name is /storage/ofd_packets/00095005 [18:55:27]Write 301 bytes [18:55:27]NVStorageSaveData done [18:55:27]OFDSenderStorePacket done [18:55:27]KKMCreateOFDPacket done [18:55:27]NVStorageSaveData kkm_last_timestamp [18:55:27]File name is /storage/kkm_last_timestamp [18:55:27]Write 4 bytes [18:55:27]NVStorageSaveData done [18:55:27]ExternCall_PrintAddStr [18:55:27]wPrintStart [18:55:27]Write to MH i2c: 01 00 00 2E 00 2E [18:55:27]Write i2c OK [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: 01 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: 01 07 00 [18:55:27]MH_I2C_Read... [18:55:27]Read from MH i2c: 01 07 00 2E 00 00 80 00 00 00 FF 0F C3 [18:55:27]RasterBufferAndPrint [18:55:27]line Счет N : (1)195965 [18:55:27]line ИНН: 02508201610067 [18:55:27]line Контрольно-Кассовый Чек [18:55:27]line ПРОДАЖА [18:55:27]line ТРК (МРК, ГНК) : 12 [18:55:27]line Товар: 2710124130 [18:55:27]line Аи-92-К-5 [18:55:27]line 5.000 * 62.90 [18:55:27]line = 314.50 [18:55:27]line НДС 12% НСП 1% [18:55:27]line > о реализуемом товаре [18:55:27]line ОКРУГЛЕНИЕ: -0.50 [18:55:27]line ИТОГО: 314.00 [18:55:27]line Внесено: 314.00 [18:55:27]line СДАЧА: 0.00 [18:55:27]line НСП 1% : 2.78 [18:55:27]line НДС 12% : 33.40 [18:55:27]line Наличными: 314.00 [18:55:27]line Безнал.: 0.00 [18:55:27]line Место: АЗС № 6 "Партнер Нефть" [18:55:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:55:27]line СНО: Общий режим [18:55:27]line Чек 180 11.03.2024 18:55 [18:55:27]line Смена: 326 ФФД: 1.0 [18:55:27]line ЗНМ: 0300000009 [18:55:27]line РНМ: 0000000000090555 [18:55:27]line Версия ККМ: 001 [18:55:27]line ФМ: 0000000000874811 [18:55:27]line ФД: 95005 [18:55:27]line ФПД: 111943303105042 [18:55:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T185526&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95005&fm=111943303105042&tin=02508201610067®Number=0000000000090555&sum=31400 [18:55:27]OFD Sender: Processing packet 95005 [packets to send 30, broken 29] [18:55:27]ProducePacketName [18:55:27]name=ofd_packets/00095005 [18:55:27]OFD Sender: To server: pG, [18:55:27]CommunicateWithHost lk.salyk.kg:30040 [18:55:27]ConnectInit lk.salyk.kg [18:55:27]written 0, free lines is 4095 [18:55:27]Connected sock=10 [18:55: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 31 31 0F 01 00 00 17 8E 07 01 A3 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 A8 7A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 9E 53 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 73 01 00 35 04 06 00 65 CF D4 D1 0A 12 7C 48 2A 8D E5 C0 F5 D1 [18:55: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 31 31 4F 00 00 00 B2 E2 47 00 9F 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1D 73 01 00 F4 03 04 00 F7 FE EE 65 B6 04 01 00 00 C6 36 F3 AF 0C DE 2C 2D [18:55:27]CommunicateWithHost err = 0 [18:55:27]CheckOFDResponse [18:55:27]1017 (14) - 77093643461234 [18:55:27]1041 (16) - 0000000000874811 [18:55:27]1040 (4) - 95005 [18:55:27]1012 (4) - 11.03.2024 12:54 [18:55:27]1206 (1) - 0 [18:55:27]OFD Sender: Remove packet 95005 [18:55:27]ProducePacketName [18:55:27]name=ofd_packets/00095005 [18:55:27]NVStorageDeleteData [18:55:28]Write to MH i2c: 01 00 00 59 00 59 [18:55:28]Write i2c OK [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: 01 [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: 01 07 00 [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: 01 07 00 59 00 00 80 00 00 00 4C 0D 39 [18:55:28]RasterBufferAndPrint [18:55:28]line [18:55:28]line [18:55:28]line [18:55:28]line [18:55:28]line [18:55:28]written 0, free lines is 3408 [18:55:28]process_action close_receipt done [18:55:28]requested_data is exist [18:55:28]produce_requested_data [18:55:28]requested_item fm.sn is exist - process it [18:55:28]wFMCommunicate request_size=4 [18:55:28]MH_SAM_APDU [18:55:28]CAPDU: 80 11 00 00 [18:55:28]Write to MH i2c: E2 08 00 60 00 80 11 00 00 00 00 00 00 DA [18:55:28]Write i2c OK [18:55:28]MH_I2C_Read... [18:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:28]Read from MH i2c: E2 [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: E2 17 00 [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: E2 17 00 60 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [18:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:55:28]wFMCommunicate OK [18:55:28]requested_item fd.num is exist - process it [18:55:28]SAM_PROTO_GetFieldsCounters [18:55:28]wFMCommunicate request_size=4 [18:55:28]MH_SAM_APDU [18:55:28]CAPDU: 80 13 00 00 [18:55:28]Write to MH i2c: E2 08 00 61 00 80 13 00 00 00 00 00 00 DD [18:55:28]Write i2c OK [18:55:28]MH_I2C_Read... [18:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:28]Read from MH i2c: E2 [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: E2 62 00 [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: E2 62 00 61 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [18:55: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:28]wFMCommunicate OK [18:55:28]SAM_PROTO_GetFieldsCounters done [18:55:28]requested_item shift.num is exist - process it [18:55:28]requested_item shift.opened is exist - process it [18:55:28]req_shift_opened [18:55:28]FM_GetShiftState [18:55:28]SAM_PROTO_GetShiftState [18:55:28]wFMCommunicate request_size=4 [18:55:28]MH_SAM_APDU [18:55:28]CAPDU: 80 13 01 00 [18:55:28]Write to MH i2c: E2 08 00 62 00 80 13 01 00 00 00 00 00 DF [18:55:28]Write i2c OK [18:55:28]MH_I2C_Read... [18:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:28]Read from MH i2c: E2 [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: E2 0E 00 [18:55:28]MH_I2C_Read... [18:55:28]Read from MH i2c: E2 0E 00 62 00 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7B [18:55:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:55:28]wFMCommunicate OK [18:55:28]SAM_PROTO_GetShiftState done [18:55:28]FM_GetShiftState done [18:55:28]req_shift_opened done [18:55:28]requested_item shift.open_date is exist - process it [18:55:28]req_shift_open_date [18:55:28]req_shift_open_date done [18:55:28]produce_requested_data done [18:55:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95005,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:55:28]process_action_free close_receipt [18:55:28]json_value_free [18:55:28]json_value_free done [18:55:28]process_json_proto returns [18:55:28]Send response to host [18:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95005,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:55:28]free response buf [18:55:28]execute_script done [18:55:28]execute_script returns [18:55:28]free content buf [18:55:28]Sock 8.Close socket [18:55:28]Sock 8.Thread stoped [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:08]accept exits with 9 [18:57:08]New connection [18:57:08]New thread 3066813796 created [18:57:08]Thread 3066957156 joined [18:57:08]Waiting for new connection... [18:57:08] Sock 9.Parse request [18:57:08]Sock 9.Check first char [18:57:08]Sock 9.First char is OK [18:57:08]request: POST /json_proto HTTP/1.0 [18:57:08]Method: POST [18:57:08]URL: /json_proto [18:57:08]Method is POST - this is cgi request [18:57:08]url: /json_proto [18:57:08]query_string will be loaded in cgi processing [18:57:08]execute_cgi json_proto POST (null) [18:57:08]execute_cgi path=json_proto method=POST [18:57:08]POST find Content-Length [18:57:08]Host: 172.17.62.67:8080 [18:57:08]Content-Length: 682 [18:57:08]Content-Type: application/json [18:57:08] [18:57:08]POST finish read [18:57:08]Found Content-Length = 682 [18:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:08]execute_script... [18:57: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)195966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:08]POST & json_proto [18:57:08]process_json_proto [18:57:08]json parsed OK: [18:57:08]protocol is kg_v1.0 [18:57:08]action value=close_receipt [18:57:08]process_action close_receipt [18:57:08]cmd_close_receipt [18:57:08]MH_GetDate [18:57:08]Write to MH i2c: F0 00 00 63 00 52 [18:57:08]Write i2c OK [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 05 00 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 05 00 63 00 00 05 54 EF 65 04 [18:57:08]GetLastDocTimeStamp 1710183326 [18:57:08]current date 1710183429 [18:57:08]FM_GetShiftState [18:57:08]SAM_PROTO_GetShiftState [18:57:08]wFMCommunicate request_size=4 [18:57:08]MH_SAM_APDU [18:57:08]CAPDU: 80 13 01 00 [18:57:08]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [18:57:08]Write i2c OK [18:57:08]MH_I2C_Read... [18:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:08]Read from MH i2c: E2 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: E2 0E 00 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7D [18:57:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:57:08]wFMCommunicate OK [18:57:08]SAM_PROTO_GetShiftState done [18:57:08]FM_GetShiftState done [18:57:08]opened in 1710115571 [18:57:08]opened+sec_in_day 1710201971 [18:57:08]quantity*price = 100011 [18:57:08]sum+1 = 100012 [18:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 181 11.03.2024 18:57 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95006 ФПД: 15270656199268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T185709&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95006&fm=15270656199268&tin=02508201610067®Number=0000000000090555&sum=100000 [18:57:10]StoreToDocumentArchive [18:57:10]shift 326 fd 95006 [18:57:10]save to /storage/0326/doc_00095006 [18:57:10]save last doc name /storage/0326/doc_00095006 to /storage/kkm_last_doc_name [18:57:10]save OK [18:57:10]Clear old archive folders... [18:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:10]tlvbuf is 01A37500 [18:57:10]SAM_PROTO_ClearQueue [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 09 00 00 [18:57:10]Write to MH i2c: E2 08 00 71 00 80 09 00 00 00 00 00 00 E3 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 71 00 00 90 00 E5 [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]SAM_PROTO_ClearQueue done [18:57:10]KKMCreateOFDPacket [18:57:10]OFDProtocolAddRootSTLVToBuf [18:57:10]FM_MakeSignedData [18:57:10]FM_MakeSignedData [18:57:10]SAM_PROTO_SignData [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 01 02 [18:57:10]Write to MH i2c: E2 08 00 72 00 80 0D 01 02 00 00 00 00 EB [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]wFMCommunicate request_size=255 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 05 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 73 01 00 35 04 06 00 0D [18:57:10]Write to MH i2c: E2 02 01 73 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 05 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 73 01 00 35 04 06 00 0D 00 00 DB [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]wFMCommunicate request_size=10 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 02 02 05 E3 7A 09 CA 64 [18:57:10]Write to MH i2c: E2 0D 00 74 00 80 0D 02 02 05 00 E3 7A 09 CA 64 00 00 8C [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 03 02 [18:57:10]Write to MH i2c: E2 08 00 75 00 80 0D 03 02 00 00 00 00 F0 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 0B 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 0B 00 75 00 00 56 B2 4A 14 CE 7C 39 8D 90 00 67 [18:57:10]RAPDU: 56 B2 4A 14 CE 7C 39 8D 90 00 [18:57:10]wFMCommunicate OK [18:57:10]SAM_PROTO_SignData done [18:57:10]FM_MakeSignedData done [18:57:10]CreateOFDProtocolMessage [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 11 00 00 [18:57:10]Write to MH i2c: E2 08 00 76 00 80 11 00 00 00 00 00 00 F0 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 17 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 17 00 76 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [18:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:57:10]wFMCommunicate OK [18:57:10]CreateOFDProtocolMessage done [18:57:10]OFDSenderStorePacket 95006 [18:57:10]StoreOFDPacket docnum=95006 [18:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D9 34 07 01 85 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 05 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 73 01 00 35 04 06 00 0D E3 7A 09 CA 64 56 B2 4A 14 CE 7C 39 8D [18:57:10]CheckFolder [18:57:10]dirname=/storage/ofd_packets [18:57:10]CheckFolder done [18:57:10]ProducePacketName [18:57:10]name=ofd_packets/00095006 [18:57:10]NVStorageSaveData ofd_packets/00095006 [18:57:10]File name is /storage/ofd_packets/00095006 [18:57:10]Write 301 bytes [18:57:10]NVStorageSaveData done [18:57:10]OFDSenderStorePacket done [18:57:10]KKMCreateOFDPacket done [18:57:10]NVStorageSaveData kkm_last_timestamp [18:57:10]File name is /storage/kkm_last_timestamp [18:57:10]Write 4 bytes [18:57:10]NVStorageSaveData done [18:57:10]ExternCall_PrintAddStr [18:57:10]wPrintStart [18:57:10]Write to MH i2c: 01 00 00 77 00 77 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 07 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 07 00 77 00 00 80 00 00 00 FF 0F 0C [18:57:10]RasterBufferAndPrint [18:57:10]line Счет N : (1)195966 [18:57:10]line ИНН: 02508201610067 [18:57:10]line Контрольно-Кассовый Чек [18:57:10]line ПРОДАЖА [18:57:10]line ТРК (МРК, ГНК) : 32 [18:57:10]line Товар: 2710124130 [18:57:10]line Аи-92-К-5 [18:57:10]line 15.900 * 62.90 [18:57:10]line = 1000.11 [18:57:10]line НДС 12% НСП 1% [18:57:10]line > о реализуемом товаре [18:57:10]line ОКРУГЛЕНИЕ: -0.11 [18:57:10]line ИТОГО: 1000.00 [18:57:10]line Внесено: 1000.00 [18:57:10]line СДАЧА: 0.00 [18:57:10]line НСП 1% : 8.85 [18:57:10]line НДС 12% : 106.21 [18:57:10]line Наличными: 1000.00 [18:57:10]line Безнал.: 0.00 [18:57:10]line Место: АЗС № 6 "Партнер Нефть" [18:57:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:57:10]line СНО: Общий режим [18:57:10]line Чек 181 11.03.2024 18:57 [18:57:10]line Смена: 326 ФФД: 1.0 [18:57:10]line ЗНМ: 0300000009 [18:57:10]line РНМ: 0000000000090555 [18:57:10]line Версия ККМ: 001 [18:57:10]line ФМ: 0000000000874811 [18:57:10]line ФД: 95006 [18:57:10]line ФПД: 15270656199268 [18:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T185709&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95006&fm=15270656199268&tin=02508201610067®Number=0000000000090555&sum=100000 [18:57:10]OFD Sender: Processing packet 95006 [packets to send 30, broken 29] [18:57:10]ProducePacketName [18:57:10]name=ofd_packets/00095006 [18:57:10]OFD Sender: To server: pG, [18:57:10]CommunicateWithHost lk.salyk.kg:30040 [18:57:10]ConnectInit lk.salyk.kg [18:57:10]written 0, free lines is 4095 [18:57:11]Connected sock=10 [18:57: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 31 31 0F 01 00 00 D9 34 07 01 85 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 05 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 73 01 00 35 04 06 00 0D E3 7A 09 CA 64 56 B2 4A 14 CE 7C 39 8D [18:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6A ED 47 00 87 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1E 73 01 00 F4 03 04 00 5E FF EE 65 B6 04 01 00 00 22 73 41 BA AF 42 EE 49 [18:57:11]CommunicateWithHost err = 0 [18:57:11]CheckOFDResponse [18:57:11]1017 (14) - 77093643461234 [18:57:11]1041 (16) - 0000000000874811 [18:57:11]1040 (4) - 95006 [18:57:11]1012 (4) - 11.03.2024 12:55 [18:57:11]1206 (1) - 0 [18:57:11]OFD Sender: Remove packet 95006 [18:57:11]ProducePacketName [18:57:11]name=ofd_packets/00095006 [18:57:11]NVStorageDeleteData [18:57:11]Write to MH i2c: 01 00 00 A2 00 A2 [18:57:11]Write i2c OK [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: 01 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: 01 07 00 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: 01 07 00 A2 00 00 80 00 00 00 53 0D 89 [18:57:11]RasterBufferAndPrint [18:57:11]line [18:57:11]line [18:57:11]line [18:57:11]line [18:57:11]line [18:57:11]written 0, free lines is 3415 [18:57:11]process_action close_receipt done [18:57:11]requested_data is exist [18:57:11]produce_requested_data [18:57:11]requested_item fm.sn is exist - process it [18:57:11]wFMCommunicate request_size=4 [18:57:11]MH_SAM_APDU [18:57:11]CAPDU: 80 11 00 00 [18:57:11]Write to MH i2c: E2 08 00 A9 00 80 11 00 00 00 00 00 00 23 [18:57:11]Write i2c OK [18:57:11]MH_I2C_Read... [18:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:11]Read from MH i2c: E2 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: E2 17 00 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: E2 17 00 A9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 73 [18:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:57:11]wFMCommunicate OK [18:57:11]requested_item fd.num is exist - process it [18:57:11]SAM_PROTO_GetFieldsCounters [18:57:11]wFMCommunicate request_size=4 [18:57:11]MH_SAM_APDU [18:57:11]CAPDU: 80 13 00 00 [18:57:11]Write to MH i2c: E2 08 00 AA 00 80 13 00 00 00 00 00 00 26 [18:57:11]Write i2c OK [18:57:11]MH_I2C_Read... [18:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:11]Read from MH i2c: E2 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: E2 62 00 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: E2 62 00 AA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [18:57:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:11]wFMCommunicate OK [18:57:11]SAM_PROTO_GetFieldsCounters done [18:57:11]requested_item shift.num is exist - process it [18:57:11]requested_item shift.opened is exist - process it [18:57:11]req_shift_opened [18:57:11]FM_GetShiftState [18:57:11]SAM_PROTO_GetShiftState [18:57:11]wFMCommunicate request_size=4 [18:57:11]MH_SAM_APDU [18:57:11]CAPDU: 80 13 01 00 [18:57:11]Write to MH i2c: E2 08 00 AB 00 80 13 01 00 00 00 00 00 28 [18:57:11]Write i2c OK [18:57:11]MH_I2C_Read... [18:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:11]Read from MH i2c: E2 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: E2 0E 00 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: E2 0E 00 AB 00 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C4 [18:57:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:57:11]wFMCommunicate OK [18:57:11]SAM_PROTO_GetShiftState done [18:57:11]FM_GetShiftState done [18:57:11]req_shift_opened done [18:57:11]requested_item shift.open_date is exist - process it [18:57:11]req_shift_open_date [18:57:11]req_shift_open_date done [18:57:11]produce_requested_data done [18:57:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95006,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:57:11]process_action_free close_receipt [18:57:11]json_value_free [18:57:11]json_value_free done [18:57:11]process_json_proto returns [18:57:11]Send response to host [18:57:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95006,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:57:11]free response buf [18:57:11]execute_script done [18:57:11]execute_script returns [18:57:11]free content buf [18:57:11]Sock 9.Close socket [18:57:11]Sock 9.Thread stoped [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]accept exits with 8 [18:59:11]New connection [18:59:11]New thread 3066957156 created [18:59:11]Thread 3066813796 joined [18:59:11]Waiting for new connection... [18:59:11] Sock 8.Parse request [18:59:11]Sock 8.Check first char [18:59:11]Sock 8.First char is OK [18:59:11]request: POST /json_proto HTTP/1.0 [18:59:11]Method: POST [18:59:11]URL: /json_proto [18:59:11]Method is POST - this is cgi request [18:59:11]url: /json_proto [18:59:11]query_string will be loaded in cgi processing [18:59:11]execute_cgi json_proto POST (null) [18:59:11]execute_cgi path=json_proto method=POST [18:59:11]POST find Content-Length [18:59:11]Host: 172.17.62.67:8080 [18:59:11]Content-Length: 677 [18:59:11]Content-Type: application/json [18:59:11] [18:59:11]POST finish read [18:59:11]Found Content-Length = 677 [18:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:11]execute_script... [18:59: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)195967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:11]POST & json_proto [18:59:11]process_json_proto [18:59:11]json parsed OK: [18:59:11]protocol is kg_v1.0 [18:59:11]action value=close_receipt [18:59:11]process_action close_receipt [18:59:11]cmd_close_receipt [18:59:11]MH_GetDate [18:59:11]Write to MH i2c: F0 00 00 AC 00 9B [18:59:11]Write i2c OK [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: F0 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: F0 05 00 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: F0 05 00 AC 00 00 80 54 EF 65 C8 [18:59:11]GetLastDocTimeStamp 1710183429 [18:59:11]current date 1710183552 [18:59:11]FM_GetShiftState [18:59:11]SAM_PROTO_GetShiftState [18:59:11]wFMCommunicate request_size=4 [18:59:11]MH_SAM_APDU [18:59:11]CAPDU: 80 13 01 00 [18:59:11]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [18:59:11]Write i2c OK [18:59:11]MH_I2C_Read... [18:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:11]Read from MH i2c: E2 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: E2 0E 00 [18:59:11]MH_I2C_Read... [18:59:11]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C6 [18:59:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:59:11]wFMCommunicate OK [18:59:11]SAM_PROTO_GetShiftState done [18:59:11]FM_GetShiftState done [18:59:11]opened in 1710115571 [18:59:11]opened+sec_in_day 1710201971 [18:59:11]quantity*price = 60006 [18:59:11]sum+1 = 60008 [18:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 182 11.03.2024 18:59 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95007 ФПД: 233171329539701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T185912&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95007&fm=233171329539701&tin=02508201610067®Number=0000000000090555&sum=60000 [18:59:12]StoreToDocumentArchive [18:59:12]shift 326 fd 95007 [18:59:12]save to /storage/0326/doc_00095007 [18:59:12]save last doc name /storage/0326/doc_00095007 to /storage/kkm_last_doc_name [18:59:12]save OK [18:59:12]Clear old archive folders... [18:59:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:12]tlvbuf is 01A45190 [18:59:12]SAM_PROTO_ClearQueue [18:59:12]wFMCommunicate request_size=4 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 09 00 00 [18:59:12]Write to MH i2c: E2 08 00 BA 00 80 09 00 00 00 00 00 00 2C [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 03 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [18:59:12]RAPDU: 90 00 [18:59:12]wFMCommunicate OK [18:59:12]SAM_PROTO_ClearQueue done [18:59:12]KKMCreateOFDPacket [18:59:12]OFDProtocolAddRootSTLVToBuf [18:59:12]FM_MakeSignedData [18:59:12]FM_MakeSignedData [18:59:12]SAM_PROTO_SignData [18:59:12]wFMCommunicate request_size=4 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 0D 01 02 [18:59:12]Write to MH i2c: E2 08 00 BB 00 80 0D 01 02 00 00 00 00 34 [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 03 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [18:59:12]RAPDU: 90 00 [18:59:12]wFMCommunicate OK [18:59:12]wFMCommunicate request_size=255 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 B6 00 00 00 F4 03 04 00 80 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 73 01 00 35 04 06 00 D4 [18:59:12]Write to MH i2c: E2 02 01 BC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 B6 00 00 00 F4 03 04 00 80 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 73 01 00 35 04 06 00 D4 00 00 CF [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 03 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [18:59:12]RAPDU: 90 00 [18:59:12]wFMCommunicate OK [18:59:12]wFMCommunicate request_size=10 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 0D 02 02 05 11 6E 44 DE 75 [18:59:12]Write to MH i2c: E2 0D 00 BD 00 80 0D 02 02 05 00 11 6E 44 DE 75 00 00 57 [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 03 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [18:59:12]RAPDU: 90 00 [18:59:12]wFMCommunicate OK [18:59:12]wFMCommunicate request_size=4 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 0D 03 02 [18:59:12]Write to MH i2c: E2 08 00 BE 00 80 0D 03 02 00 00 00 00 39 [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 0B 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 0B 00 BE 00 00 AA 17 79 71 CB C7 CE 32 90 00 77 [18:59:12]RAPDU: AA 17 79 71 CB C7 CE 32 90 00 [18:59:12]wFMCommunicate OK [18:59:12]SAM_PROTO_SignData done [18:59:12]FM_MakeSignedData done [18:59:12]CreateOFDProtocolMessage [18:59:12]wFMCommunicate request_size=4 [18:59:12]MH_SAM_APDU [18:59:12]CAPDU: 80 11 00 00 [18:59:12]Write to MH i2c: E2 08 00 BF 00 80 11 00 00 00 00 00 00 39 [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:12]Read from MH i2c: E2 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 17 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: E2 17 00 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 89 [18:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:59:12]wFMCommunicate OK [18:59:12]CreateOFDProtocolMessage done [18:59:12]OFDSenderStorePacket 95007 [18:59:12]StoreOFDPacket docnum=95007 [18:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D7 18 07 01 C5 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 B6 00 00 00 F4 03 04 00 80 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 73 01 00 35 04 06 00 D4 11 6E 44 DE 75 AA 17 79 71 CB C7 CE 32 [18:59:12]CheckFolder [18:59:12]dirname=/storage/ofd_packets [18:59:12]CheckFolder done [18:59:12]ProducePacketName [18:59:12]name=ofd_packets/00095007 [18:59:12]NVStorageSaveData ofd_packets/00095007 [18:59:12]File name is /storage/ofd_packets/00095007 [18:59:12]Write 301 bytes [18:59:12]NVStorageSaveData done [18:59:12]OFDSenderStorePacket done [18:59:12]KKMCreateOFDPacket done [18:59:12]NVStorageSaveData kkm_last_timestamp [18:59:12]File name is /storage/kkm_last_timestamp [18:59:12]Write 4 bytes [18:59:12]NVStorageSaveData done [18:59:12]ExternCall_PrintAddStr [18:59:12]wPrintStart [18:59:12]Write to MH i2c: 01 00 00 C0 00 C0 [18:59:12]Write i2c OK [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: 01 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: 01 07 00 [18:59:12]MH_I2C_Read... [18:59:12]Read from MH i2c: 01 07 00 C0 00 00 80 00 00 00 FF 0F 55 [18:59:12]RasterBufferAndPrint [18:59:12]line Счет N : (1)195967 [18:59:12]line ИНН: 02508201610067 [18:59:12]line Контрольно-Кассовый Чек [18:59:12]line ПРОДАЖА [18:59:12]line ТРК (МРК, ГНК) : 32 [18:59:12]line Товар: 2710124130 [18:59:12]line Аи-92-К-5 [18:59:12]line 9.540 * 62.90 [18:59:12]line = 600.07 [18:59:12]line НДС 12% НСП 1% [18:59:12]line > о реализуемом товаре [18:59:12]line ОКРУГЛЕНИЕ: -0.07 [18:59:12]line ИТОГО: 600.00 [18:59:12]line Внесено: 600.00 [18:59:12]line СДАЧА: 0.00 [18:59:12]line НСП 1% : 5.31 [18:59:12]line НДС 12% : 63.72 [18:59:12]line Наличными: 600.00 [18:59:12]line Безнал.: 0.00 [18:59:12]line Место: АЗС № 6 "Партнер Нефть" [18:59:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [18:59:12]line СНО: Общий режим [18:59:12]line Чек 182 11.03.2024 18:59 [18:59:12]line Смена: 326 ФФД: 1.0 [18:59:12]line ЗНМ: 0300000009 [18:59:12]line РНМ: 0000000000090555 [18:59:12]line Версия ККМ: 001 [18:59:12]line ФМ: 0000000000874811 [18:59:12]line ФД: 95007 [18:59:12]line ФПД: 233171329539701 [18:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T185912&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95007&fm=233171329539701&tin=02508201610067®Number=0000000000090555&sum=60000 [18:59:13]OFD Sender: Processing packet 95007 [packets to send 30, broken 29] [18:59:13]ProducePacketName [18:59:13]name=ofd_packets/00095007 [18:59:13]OFD Sender: To server: pG, [18:59:13]CommunicateWithHost lk.salyk.kg:30040 [18:59:13]ConnectInit lk.salyk.kg [18:59:13]written 0, free lines is 4095 [18:59:13]Connected sock=10 [18:59: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 31 31 0F 01 00 00 D7 18 07 01 C5 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 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 B6 00 00 00 F4 03 04 00 80 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 73 01 00 35 04 06 00 D4 11 6E 44 DE 75 AA 17 79 71 CB C7 CE 32 [18:59: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 31 31 4F 00 00 00 41 22 47 00 8D 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 1F 73 01 00 F4 03 04 00 D8 FF EE 65 B6 04 01 00 00 33 3A 70 83 43 9B D2 A1 [18:59:13]CommunicateWithHost err = 0 [18:59:13]CheckOFDResponse [18:59:13]1017 (14) - 77093643461234 [18:59:13]1041 (16) - 0000000000874811 [18:59:13]1040 (4) - 95007 [18:59:13]1012 (4) - 11.03.2024 12:58 [18:59:13]1206 (1) - 0 [18:59:13]OFD Sender: Remove packet 95007 [18:59:13]ProducePacketName [18:59:13]name=ofd_packets/00095007 [18:59:13]NVStorageDeleteData [18:59:13]Write to MH i2c: 01 00 00 EB 00 EB [18:59:13]Write i2c OK [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: 01 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: 01 07 00 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: 01 07 00 EB 00 00 80 00 00 00 4E 0D CD [18:59:13]RasterBufferAndPrint [18:59:13]line [18:59:13]line [18:59:13]line [18:59:13]line [18:59:13]line [18:59:13]written 0, free lines is 3410 [18:59:13]process_action close_receipt done [18:59:13]requested_data is exist [18:59:13]produce_requested_data [18:59:13]requested_item fm.sn is exist - process it [18:59:13]wFMCommunicate request_size=4 [18:59:13]MH_SAM_APDU [18:59:13]CAPDU: 80 11 00 00 [18:59:13]Write to MH i2c: E2 08 00 F2 00 80 11 00 00 00 00 00 00 6C [18:59:13]Write i2c OK [18:59:13]MH_I2C_Read... [18:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:13]Read from MH i2c: E2 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: E2 17 00 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: E2 17 00 F2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BC [18:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [18:59:13]wFMCommunicate OK [18:59:13]requested_item fd.num is exist - process it [18:59:13]SAM_PROTO_GetFieldsCounters [18:59:13]wFMCommunicate request_size=4 [18:59:13]MH_SAM_APDU [18:59:13]CAPDU: 80 13 00 00 [18:59:13]Write to MH i2c: E2 08 00 F3 00 80 13 00 00 00 00 00 00 6F [18:59:13]Write i2c OK [18:59:13]MH_I2C_Read... [18:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:13]Read from MH i2c: E2 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: E2 62 00 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: E2 62 00 F3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [18: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 1F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:13]wFMCommunicate OK [18:59:13]SAM_PROTO_GetFieldsCounters done [18:59:13]requested_item shift.num is exist - process it [18:59:13]requested_item shift.opened is exist - process it [18:59:13]req_shift_opened [18:59:13]FM_GetShiftState [18:59:13]SAM_PROTO_GetShiftState [18:59:13]wFMCommunicate request_size=4 [18:59:13]MH_SAM_APDU [18:59:13]CAPDU: 80 13 01 00 [18:59:13]Write to MH i2c: E2 08 00 F4 00 80 13 01 00 00 00 00 00 71 [18:59:13]Write i2c OK [18:59:13]MH_I2C_Read... [18:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:13]Read from MH i2c: E2 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: E2 0E 00 [18:59:13]MH_I2C_Read... [18:59:13]Read from MH i2c: E2 0E 00 F4 00 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0D [18:59:13]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [18:59:13]wFMCommunicate OK [18:59:13]SAM_PROTO_GetShiftState done [18:59:13]FM_GetShiftState done [18:59:13]req_shift_opened done [18:59:13]requested_item shift.open_date is exist - process it [18:59:13]req_shift_open_date [18:59:13]req_shift_open_date done [18:59:13]produce_requested_data done [18:59:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95007,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [18:59:13]process_action_free close_receipt [18:59:13]json_value_free [18:59:13]json_value_free done [18:59:13]process_json_proto returns [18:59:13]Send response to host [18:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95007,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [18:59:13]free response buf [18:59:13]execute_script done [18:59:13]execute_script returns [18:59:13]free content buf [18:59:13]Sock 8.Close socket [18:59:13]Sock 8.Thread stoped [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:14]accept exits with 9 [19:01:14]New connection [19:01:14]New thread 3066813796 created [19:01:14]Thread 3066957156 joined [19:01:14]Waiting for new connection... [19:01:14] Sock 9.Parse request [19:01:14]Sock 9.Check first char [19:01:14]Sock 9.First char is OK [19:01:14]request: POST /json_proto HTTP/1.0 [19:01:14]Method: POST [19:01:14]URL: /json_proto [19:01:14]Method is POST - this is cgi request [19:01:14]url: /json_proto [19:01:14]query_string will be loaded in cgi processing [19:01:14]execute_cgi json_proto POST (null) [19:01:14]execute_cgi path=json_proto method=POST [19:01:14]POST find Content-Length [19:01:14]Host: 172.17.62.67:8080 [19:01:14]Content-Length: 682 [19:01:14]Content-Type: application/json [19:01:14] [19:01:14]POST finish read [19:01:14]Found Content-Length = 682 [19:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:14]execute_script... [19:01: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)195968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:14]POST & json_proto [19:01:14]process_json_proto [19:01:14]json parsed OK: [19:01:14]protocol is kg_v1.0 [19:01:14]action value=close_receipt [19:01:14]process_action close_receipt [19:01:14]cmd_close_receipt [19:01:14]MH_GetDate [19:01:14]Write to MH i2c: F0 00 00 F5 00 E4 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 05 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 05 00 F5 00 00 FB 54 EF 65 8C [19:01:14]GetLastDocTimeStamp 1710183552 [19:01:14]current date 1710183675 [19:01:14]FM_GetShiftState [19:01:14]SAM_PROTO_GetShiftState [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 13 01 00 [19:01:14]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0F [19:01:14]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:01:14]wFMCommunicate OK [19:01:14]SAM_PROTO_GetShiftState done [19:01:14]FM_GetShiftState done [19:01:14]opened in 1710115571 [19:01:14]opened+sec_in_day 1710201971 [19:01:14]quantity*price = 100011 [19:01:14]sum+1 = 100012 [19:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 183 11.03.2024 19:01 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95008 ФПД: 233311916870820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190115&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95008&fm=233311916870820&tin=02508201610067®Number=0000000000090555&sum=100000 [19:01:15]StoreToDocumentArchive [19:01:15]shift 326 fd 95008 [19:01:15]save to /storage/0326/doc_00095008 [19:01:15]save last doc name /storage/0326/doc_00095008 to /storage/kkm_last_doc_name [19:01:15]save OK [19:01:15]Clear old archive folders... [19:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:15]tlvbuf is 01A3E3E0 [19:01:15]SAM_PROTO_ClearQueue [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 09 00 00 [19:01:15]Write to MH i2c: E2 08 00 03 01 80 09 00 00 00 00 00 00 76 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]SAM_PROTO_ClearQueue done [19:01:15]KKMCreateOFDPacket [19:01:15]OFDProtocolAddRootSTLVToBuf [19:01:15]FM_MakeSignedData [19:01:15]FM_MakeSignedData [19:01:15]SAM_PROTO_SignData [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 01 02 [19:01:15]Write to MH i2c: E2 08 00 04 01 80 0D 01 02 00 00 00 00 7E [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]wFMCommunicate request_size=255 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 FB 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 73 01 00 35 04 06 00 D4 [19:01:15]Write to MH i2c: E2 02 01 05 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 FB 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 73 01 00 35 04 06 00 D4 00 00 2F [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [19:01:16]RAPDU: 90 00 [19:01:16]wFMCommunicate OK [19:01:16]wFMCommunicate request_size=10 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 0D 02 02 05 32 29 ED 4C A4 [19:01:16]Write to MH i2c: E2 0D 00 06 01 80 0D 02 02 05 00 32 29 ED 4C A4 00 00 C3 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [19:01:16]RAPDU: 90 00 [19:01:16]wFMCommunicate OK [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 0D 03 02 [19:01:16]Write to MH i2c: E2 08 00 07 01 80 0D 03 02 00 00 00 00 83 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0B 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0B 00 07 01 00 66 0C 1F F3 C5 2E 3D 0A 90 00 42 [19:01:16]RAPDU: 66 0C 1F F3 C5 2E 3D 0A 90 00 [19:01:16]wFMCommunicate OK [19:01:16]SAM_PROTO_SignData done [19:01:16]FM_MakeSignedData done [19:01:16]CreateOFDProtocolMessage [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 11 00 00 [19:01:16]Write to MH i2c: E2 08 00 08 01 80 11 00 00 00 00 00 00 83 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 17 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 17 00 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D3 [19:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:01:16]wFMCommunicate OK [19:01:16]CreateOFDProtocolMessage done [19:01:16]OFDSenderStorePacket 95008 [19:01:16]StoreOFDPacket docnum=95008 [19:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4D F9 07 01 60 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 FB 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 73 01 00 35 04 06 00 D4 32 29 ED 4C A4 66 0C 1F F3 C5 2E 3D 0A [19:01:16]CheckFolder [19:01:16]dirname=/storage/ofd_packets [19:01:16]CheckFolder done [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00095008 [19:01:16]NVStorageSaveData ofd_packets/00095008 [19:01:16]File name is /storage/ofd_packets/00095008 [19:01:16]Write 301 bytes [19:01:16]NVStorageSaveData done [19:01:16]OFDSenderStorePacket done [19:01:16]KKMCreateOFDPacket done [19:01:16]NVStorageSaveData kkm_last_timestamp [19:01:16]File name is /storage/kkm_last_timestamp [19:01:16]Write 4 bytes [19:01:16]NVStorageSaveData done [19:01:16]ExternCall_PrintAddStr [19:01:16]wPrintStart [19:01:16]Write to MH i2c: 01 00 00 09 01 0A [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 09 01 00 80 00 00 00 FF 0F 9F [19:01:16]RasterBufferAndPrint [19:01:16]line Счет N : (1)195968 [19:01:16]line ИНН: 02508201610067 [19:01:16]line Контрольно-Кассовый Чек [19:01:16]line ПРОДАЖА [19:01:16]line ТРК (МРК, ГНК) : 22 [19:01:16]line Товар: 2710124130 [19:01:16]line Аи-92-К-5 [19:01:16]line 15.900 * 62.90 [19:01:16]line = 1000.11 [19:01:16]line НДС 12% НСП 1% [19:01:16]line > о реализуемом товаре [19:01:16]line ОКРУГЛЕНИЕ: -0.11 [19:01:16]line ИТОГО: 1000.00 [19:01:16]line Внесено: 1000.00 [19:01:16]line СДАЧА: 0.00 [19:01:16]line НСП 1% : 8.85 [19:01:16]line НДС 12% : 106.21 [19:01:16]line Наличными: 1000.00 [19:01:16]line Безнал.: 0.00 [19:01:16]line Место: АЗС № 6 "Партнер Нефть" [19:01:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:01:16]line СНО: Общий режим [19:01:16]line Чек 183 11.03.2024 19:01 [19:01:16]line Смена: 326 ФФД: 1.0 [19:01:16]line ЗНМ: 0300000009 [19:01:16]line РНМ: 0000000000090555 [19:01:16]line Версия ККМ: 001 [19:01:16]line ФМ: 0000000000874811 [19:01:16]line ФД: 95008 [19:01:16]line ФПД: 233311916870820 [19:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190115&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95008&fm=233311916870820&tin=02508201610067®Number=0000000000090555&sum=100000 [19:01:16]OFD Sender: Processing packet 95008 [packets to send 30, broken 29] [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00095008 [19:01:16]OFD Sender: To server: pG, [19:01:16]CommunicateWithHost lk.salyk.kg:30040 [19:01:16]ConnectInit lk.salyk.kg [19:01:16]written 0, free lines is 4095 [19:01:16]Connected sock=10 [19:01: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 31 31 0F 01 00 00 4D F9 07 01 60 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 FB 54 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 73 01 00 35 04 06 00 D4 32 29 ED 4C A4 66 0C 1F F3 C5 2E 3D 0A [19:01: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 31 31 4F 00 00 00 11 11 47 00 D5 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 20 73 01 00 F4 03 04 00 54 00 EF 65 B6 04 01 00 00 00 E1 40 AE 67 EC 98 C7 [19:01:16]CommunicateWithHost err = 0 [19:01:16]CheckOFDResponse [19:01:16]1017 (14) - 77093643461234 [19:01:16]1041 (16) - 0000000000874811 [19:01:16]1040 (4) - 95008 [19:01:16]1012 (4) - 11.03.2024 13:00 [19:01:16]1206 (1) - 0 [19:01:16]OFD Sender: Remove packet 95008 [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00095008 [19:01:16]NVStorageDeleteData [19:01:17]Write to MH i2c: 01 00 00 34 01 35 [19:01:17]Write i2c OK [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: 01 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: 01 07 00 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: 01 07 00 34 01 00 80 00 00 00 51 0D 1A [19:01:17]RasterBufferAndPrint [19:01:17]line [19:01:17]line [19:01:17]line [19:01:17]line [19:01:17]line [19:01:17]written 0, free lines is 3416 [19:01:17]process_action close_receipt done [19:01:17]requested_data is exist [19:01:17]produce_requested_data [19:01:17]requested_item fm.sn is exist - process it [19:01:17]wFMCommunicate request_size=4 [19:01:17]MH_SAM_APDU [19:01:17]CAPDU: 80 11 00 00 [19:01:17]Write to MH i2c: E2 08 00 3B 01 80 11 00 00 00 00 00 00 B6 [19:01:17]Write i2c OK [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: E2 [19:01:17]MH_I2C_Read... [19:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:17]Read from MH i2c: E2 17 00 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: E2 17 00 3B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 06 [19:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:01:17]wFMCommunicate OK [19:01:17]requested_item fd.num is exist - process it [19:01:17]SAM_PROTO_GetFieldsCounters [19:01:17]wFMCommunicate request_size=4 [19:01:17]MH_SAM_APDU [19:01:17]CAPDU: 80 13 00 00 [19:01:17]Write to MH i2c: E2 08 00 3C 01 80 13 00 00 00 00 00 00 B9 [19:01:17]Write i2c OK [19:01:17]MH_I2C_Read... [19:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:17]Read from MH i2c: E2 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: E2 62 00 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: E2 62 00 3C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 20 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:01:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 20 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:17]wFMCommunicate OK [19:01:17]SAM_PROTO_GetFieldsCounters done [19:01:17]requested_item shift.num is exist - process it [19:01:17]requested_item shift.opened is exist - process it [19:01:17]req_shift_opened [19:01:17]FM_GetShiftState [19:01:17]SAM_PROTO_GetShiftState [19:01:17]wFMCommunicate request_size=4 [19:01:17]MH_SAM_APDU [19:01:17]CAPDU: 80 13 01 00 [19:01:17]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [19:01:17]Write i2c OK [19:01:17]MH_I2C_Read... [19:01:17]OFD Sender: No OFD packet to send [19:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:17]Read from MH i2c: E2 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: E2 0E 00 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 57 [19:01:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:01:17]wFMCommunicate OK [19:01:17]SAM_PROTO_GetShiftState done [19:01:17]FM_GetShiftState done [19:01:17]req_shift_opened done [19:01:17]requested_item shift.open_date is exist - process it [19:01:17]req_shift_open_date [19:01:17]req_shift_open_date done [19:01:17]produce_requested_data done [19:01:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95008,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:01:17]process_action_free close_receipt [19:01:17]json_value_free [19:01:17]json_value_free done [19:01:17]process_json_proto returns [19:01:17]Send response to host [19:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95008,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:01:17]free response buf [19:01:17]execute_script done [19:01:17]execute_script returns [19:01:17]free content buf [19:01:17]Sock 9.Close socket [19:01:17]Sock 9.Thread stoped [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:46]accept exits with 8 [19:06:46]New connection [19:06:46]New thread 3066957156 created [19:06:46]Thread 3066813796 joined [19:06:46]Waiting for new connection... [19:06:46] Sock 8.Parse request [19:06:46]Sock 8.Check first char [19:06:46]Sock 8.First char is OK [19:06:46]request: POST /json_proto HTTP/1.0 [19:06:46]Method: POST [19:06:46]URL: /json_proto [19:06:46]Method is POST - this is cgi request [19:06:46]url: /json_proto [19:06:46]query_string will be loaded in cgi processing [19:06:46]execute_cgi json_proto POST (null) [19:06:46]execute_cgi path=json_proto method=POST [19:06:46]POST find Content-Length [19:06:46]Host: 172.17.62.67:8080 [19:06:46]Content-Length: 677 [19:06:46]Content-Type: application/json [19:06:46] [19:06:46]POST finish read [19:06:46]Found Content-Length = 677 [19:06:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:46]execute_script... [19:06:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:46]POST & json_proto [19:06:46]process_json_proto [19:06:46]json parsed OK: [19:06:46]protocol is kg_v1.0 [19:06:46]action value=close_receipt [19:06:46]process_action close_receipt [19:06:46]cmd_close_receipt [19:06:46]MH_GetDate [19:06:46]Write to MH i2c: F0 00 00 3E 01 2E [19:06:46]Write i2c OK [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: F0 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: F0 05 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: F0 05 00 3E 01 00 47 56 EF 65 24 [19:06:46]GetLastDocTimeStamp 1710183675 [19:06:46]current date 1710184007 [19:06:46]FM_GetShiftState [19:06:46]SAM_PROTO_GetShiftState [19:06:46]wFMCommunicate request_size=4 [19:06:46]MH_SAM_APDU [19:06:46]CAPDU: 80 13 01 00 [19:06:46]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [19:06:46]Write i2c OK [19:06:46]MH_I2C_Read... [19:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:46]Read from MH i2c: E2 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 0E 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 59 [19:06:46]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:06:46]wFMCommunicate OK [19:06:46]SAM_PROTO_GetShiftState done [19:06:46]FM_GetShiftState done [19:06:46]opened in 1710115571 [19:06:46]opened+sec_in_day 1710201971 [19:06:46]quantity*price = 30003 [19:06:46]sum+1 = 30004 [19:06:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 184 11.03.2024 19:06 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95009 ФПД: 28887278796418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190647&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95009&fm=28887278796418&tin=02508201610067®Number=0000000000090555&sum=30000 [19:06:47]StoreToDocumentArchive [19:06:47]shift 326 fd 95009 [19:06:47]save to /storage/0326/doc_00095009 [19:06:47]save last doc name /storage/0326/doc_00095009 to /storage/kkm_last_doc_name [19:06:47]save OK [19:06:47]Clear old archive folders... [19:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:47]tlvbuf is 01A02180 [19:06:47]SAM_PROTO_ClearQueue [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 09 00 00 [19:06:47]Write to MH i2c: E2 08 00 4C 01 80 09 00 00 00 00 00 00 BF [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [19:06:47]RAPDU: 90 00 [19:06:47]wFMCommunicate OK [19:06:47]SAM_PROTO_ClearQueue done [19:06:47]KKMCreateOFDPacket [19:06:47]OFDProtocolAddRootSTLVToBuf [19:06:47]FM_MakeSignedData [19:06:47]FM_MakeSignedData [19:06:47]SAM_PROTO_SignData [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 0D 01 02 [19:06:47]Write to MH i2c: E2 08 00 4D 01 80 0D 01 02 00 00 00 00 C7 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [19:06:47]RAPDU: 90 00 [19:06:47]wFMCommunicate OK [19:06:47]wFMCommunicate request_size=255 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 47 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 73 01 00 35 04 06 00 1A [19:06:47]Write to MH i2c: E2 02 01 4E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 47 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 73 01 00 35 04 06 00 1A 00 00 44 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [19:06:48]RAPDU: 90 00 [19:06:48]wFMCommunicate OK [19:06:48]wFMCommunicate request_size=10 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 0D 02 02 05 45 D7 FD BE 82 [19:06:48]Write to MH i2c: E2 0D 00 4F 01 80 0D 02 02 05 00 45 D7 FD BE 82 00 00 2D [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [19:06:48]RAPDU: 90 00 [19:06:48]wFMCommunicate OK [19:06:48]wFMCommunicate request_size=4 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 0D 03 02 [19:06:48]Write to MH i2c: E2 08 00 50 01 80 0D 03 02 00 00 00 00 CC [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 0B 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 0B 00 50 01 00 71 3A 16 64 EC C7 9B F2 90 00 32 [19:06:48]RAPDU: 71 3A 16 64 EC C7 9B F2 90 00 [19:06:48]wFMCommunicate OK [19:06:48]SAM_PROTO_SignData done [19:06:48]FM_MakeSignedData done [19:06:48]CreateOFDProtocolMessage [19:06:48]wFMCommunicate request_size=4 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 11 00 00 [19:06:48]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 17 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1C [19:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:06:48]wFMCommunicate OK [19:06:48]CreateOFDProtocolMessage done [19:06:48]OFDSenderStorePacket 95009 [19:06:48]StoreOFDPacket docnum=95009 [19:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7A 98 07 01 2B E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 47 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 73 01 00 35 04 06 00 1A 45 D7 FD BE 82 71 3A 16 64 EC C7 9B F2 [19:06:48]CheckFolder [19:06:48]dirname=/storage/ofd_packets [19:06:48]CheckFolder done [19:06:48]ProducePacketName [19:06:48]name=ofd_packets/00095009 [19:06:48]NVStorageSaveData ofd_packets/00095009 [19:06:48]File name is /storage/ofd_packets/00095009 [19:06:48]Write 301 bytes [19:06:48]NVStorageSaveData done [19:06:48]OFDSenderStorePacket done [19:06:48]KKMCreateOFDPacket done [19:06:48]NVStorageSaveData kkm_last_timestamp [19:06:48]File name is /storage/kkm_last_timestamp [19:06:48]Write 4 bytes [19:06:48]NVStorageSaveData done [19:06:48]ExternCall_PrintAddStr [19:06:48]wPrintStart [19:06:48]Write to MH i2c: 01 00 00 52 01 53 [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 52 01 00 80 00 00 00 FF 0F E8 [19:06:48]RasterBufferAndPrint [19:06:48]line Счет N : (1)195969 [19:06:48]line ИНН: 02508201610067 [19:06:48]line Контрольно-Кассовый Чек [19:06:48]line ПРОДАЖА [19:06:48]line ТРК (МРК, ГНК) : 22 [19:06:48]line Товар: 2710124130 [19:06:48]line Аи-92-К-5 [19:06:48]line 4.770 * 62.90 [19:06:48]line = 300.03 [19:06:48]line НДС 12% НСП 1% [19:06:48]line > о реализуемом товаре [19:06:48]line ОКРУГЛЕНИЕ: -0.03 [19:06:48]line ИТОГО: 300.00 [19:06:48]line Внесено: 300.00 [19:06:48]line СДАЧА: 0.00 [19:06:48]line НСП 1% : 2.65 [19:06:48]line НДС 12% : 31.86 [19:06:48]line Наличными: 300.00 [19:06:48]line Безнал.: 0.00 [19:06:48]line Место: АЗС № 6 "Партнер Нефть" [19:06:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:06:48]line СНО: Общий режим [19:06:48]line Чек 184 11.03.2024 19:06 [19:06:48]line Смена: 326 ФФД: 1.0 [19:06:48]line ЗНМ: 0300000009 [19:06:48]line РНМ: 0000000000090555 [19:06:48]line Версия ККМ: 001 [19:06:48]line ФМ: 0000000000874811 [19:06:48]line ФД: 95009 [19:06:48]line ФПД: 28887278796418 [19:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190647&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95009&fm=28887278796418&tin=02508201610067®Number=0000000000090555&sum=30000 [19:06:48]OFD Sender: Processing packet 95009 [packets to send 30, broken 29] [19:06:48]ProducePacketName [19:06:48]name=ofd_packets/00095009 [19:06:48]OFD Sender: To server: pG, [19:06:48]CommunicateWithHost lk.salyk.kg:30040 [19:06:48]ConnectInit lk.salyk.kg [19:06:48]written 0, free lines is 4095 [19:06:48]Connected sock=10 [19:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7A 98 07 01 2B E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 47 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 21 73 01 00 35 04 06 00 1A 45 D7 FD BE 82 71 3A 16 64 EC C7 9B F2 [19:06: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 31 31 4F 00 00 00 54 C8 47 00 F8 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 31 31 10 04 04 00 21 73 01 00 F4 03 04 00 A0 01 EF 65 B6 04 01 00 00 55 77 60 8E AF EF AF C9 [19:06:48]CommunicateWithHost err = 0 [19:06:48]CheckOFDResponse [19:06:48]1017 (14) - 77093643461234 [19:06:48]1041 (16) - 0000000000874811 [19:06:48]1040 (4) - 95009 [19:06:48]1012 (4) - 11.03.2024 13:05 [19:06:48]1206 (1) - 0 [19:06:48]OFD Sender: Remove packet 95009 [19:06:48]ProducePacketName [19:06:48]name=ofd_packets/00095009 [19:06:48]NVStorageDeleteData [19:06:49]Write to MH i2c: 01 00 00 7D 01 7E [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 07 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 07 00 7D 01 00 80 00 00 00 55 0D 67 [19:06:49]RasterBufferAndPrint [19:06:49]line [19:06:49]line [19:06:49]line [19:06:49]line [19:06:49]line [19:06:49]written 0, free lines is 3417 [19:06:49]process_action close_receipt done [19:06:49]requested_data is exist [19:06:49]produce_requested_data [19:06:49]requested_item fm.sn is exist - process it [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 11 00 00 [19:06:49]Write to MH i2c: E2 08 00 84 01 80 11 00 00 00 00 00 00 FF [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 17 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 17 00 84 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4F [19:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:06:49]wFMCommunicate OK [19:06:49]requested_item fd.num is exist - process it [19:06:49]SAM_PROTO_GetFieldsCounters [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 13 00 00 [19:06:49]Write to MH i2c: E2 08 00 85 01 80 13 00 00 00 00 00 00 02 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 62 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 62 00 85 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 21 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [19:06: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 21 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:49]wFMCommunicate OK [19:06:49]SAM_PROTO_GetFieldsCounters done [19:06:49]requested_item shift.num is exist - process it [19:06:49]requested_item shift.opened is exist - process it [19:06:49]req_shift_opened [19:06:49]FM_GetShiftState [19:06:49]SAM_PROTO_GetShiftState [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 13 01 00 [19:06:49]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 0E 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A0 [19:06:49]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:06:49]wFMCommunicate OK [19:06:49]SAM_PROTO_GetShiftState done [19:06:49]FM_GetShiftState done [19:06:49]req_shift_opened done [19:06:49]requested_item shift.open_date is exist - process it [19:06:49]req_shift_open_date [19:06:49]req_shift_open_date done [19:06:49]produce_requested_data done [19:06:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95009,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:06:49]process_action_free close_receipt [19:06:49]json_value_free [19:06:49]json_value_free done [19:06:49]process_json_proto returns [19:06:49]Send response to host [19:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95009,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:06:49]free response buf [19:06:49]execute_script done [19:06:49]execute_script returns [19:06:49]free content buf [19:06:49]Sock 8.Close socket [19:06:49]Sock 8.Thread stoped [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:07]accept exits with 9 [19:07:07]New connection [19:07:07]New thread 3066813796 created [19:07:07]Thread 3066957156 joined [19:07:07]Waiting for new connection... [19:07:07] Sock 9.Parse request [19:07:07]Sock 9.Check first char [19:07:07]Sock 9.First char is OK [19:07:07]request: POST /json_proto HTTP/1.0 [19:07:07]Method: POST [19:07:07]URL: /json_proto [19:07:07]Method is POST - this is cgi request [19:07:07]url: /json_proto [19:07:07]query_string will be loaded in cgi processing [19:07:07]execute_cgi json_proto POST (null) [19:07:07]execute_cgi path=json_proto method=POST [19:07:07]POST find Content-Length [19:07:07]Host: 172.17.62.67:8080 [19:07:07]Content-Length: 678 [19:07:07]Content-Type: application/json [19:07:07] [19:07:07]POST finish read [19:07:07]Found Content-Length = 678 [19:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [19:07:07]execute_script... [19:07:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [19:07:07]POST & json_proto [19:07:07]process_json_proto [19:07:07]json parsed OK: [19:07:07]protocol is kg_v1.0 [19:07:07]action value=close_receipt [19:07:07]process_action close_receipt [19:07:07]cmd_close_receipt [19:07:07]MH_GetDate [19:07:07]Write to MH i2c: F0 00 00 87 01 77 [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: F0 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: F0 05 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: F0 05 00 87 01 00 5C 56 EF 65 82 [19:07:07]GetLastDocTimeStamp 1710184007 [19:07:07]current date 1710184028 [19:07:07]FM_GetShiftState [19:07:07]SAM_PROTO_GetShiftState [19:07:07]wFMCommunicate request_size=4 [19:07:07]MH_SAM_APDU [19:07:07]CAPDU: 80 13 01 00 [19:07:07]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:07]Read from MH i2c: E2 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 0E 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A2 [19:07:07]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:07:07]wFMCommunicate OK [19:07:07]SAM_PROTO_GetShiftState done [19:07:07]FM_GetShiftState done [19:07:07]opened in 1710115571 [19:07:07]opened+sec_in_day 1710201971 [19:07:07]quantity*price = 70007 [19:07:07]sum+1 = 70009 [19:07:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 185 11.03.2024 19:07 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95010 ФПД: 104759927075241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190708&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95010&fm=104759927075241&tin=02508201610067®Number=0000000000090555&sum=70000 [19:07:08]StoreToDocumentArchive [19:07:08]shift 326 fd 95010 [19:07:08]save to /storage/0326/doc_00095010 [19:07:08]save last doc name /storage/0326/doc_00095010 to /storage/kkm_last_doc_name [19:07:08]save OK [19:07:08]Clear old archive folders... [19:07:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:08]tlvbuf is 01A031B0 [19:07:08]SAM_PROTO_ClearQueue [19:07:08]wFMCommunicate request_size=4 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 09 00 00 [19:07:08]Write to MH i2c: E2 08 00 95 01 80 09 00 00 00 00 00 00 08 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [19:07:08]RAPDU: 90 00 [19:07:08]wFMCommunicate OK [19:07:08]SAM_PROTO_ClearQueue done [19:07:08]KKMCreateOFDPacket [19:07:08]OFDProtocolAddRootSTLVToBuf [19:07:08]FM_MakeSignedData [19:07:08]FM_MakeSignedData [19:07:08]SAM_PROTO_SignData [19:07:08]wFMCommunicate request_size=4 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 0D 01 02 [19:07:08]Write to MH i2c: E2 08 00 96 01 80 0D 01 02 00 00 00 00 10 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [19:07:08]RAPDU: 90 00 [19:07:08]wFMCommunicate OK [19:07:08]wFMCommunicate request_size=255 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 B9 00 00 00 F4 03 04 00 5C 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 73 01 00 35 04 06 00 5F [19:07:08]Write to MH i2c: E2 02 01 97 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 B9 00 00 00 F4 03 04 00 5C 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 73 01 00 35 04 06 00 5F 00 00 82 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [19:07:08]RAPDU: 90 00 [19:07:08]wFMCommunicate OK [19:07:08]wFMCommunicate request_size=10 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 0D 02 02 05 47 52 3D 71 A9 [19:07:08]Write to MH i2c: E2 0D 00 98 01 80 0D 02 02 05 00 47 52 3D 71 A9 00 00 0D [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [19:07:08]RAPDU: 90 00 [19:07:08]wFMCommunicate OK [19:07:08]wFMCommunicate request_size=4 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 0D 03 02 [19:07:08]Write to MH i2c: E2 08 00 99 01 80 0D 03 02 00 00 00 00 15 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 0B 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 0B 00 99 01 00 09 0D 87 61 79 13 94 73 90 00 A7 [19:07:08]RAPDU: 09 0D 87 61 79 13 94 73 90 00 [19:07:08]wFMCommunicate OK [19:07:08]SAM_PROTO_SignData done [19:07:08]FM_MakeSignedData done [19:07:08]CreateOFDProtocolMessage [19:07:08]wFMCommunicate request_size=4 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 11 00 00 [19:07:08]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:09]Read from MH i2c: E2 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 17 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 65 [19:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:07:09]wFMCommunicate OK [19:07:09]CreateOFDProtocolMessage done [19:07:09]OFDSenderStorePacket 95010 [19:07:09]StoreOFDPacket docnum=95010 [19:07:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3C 5A 07 01 A5 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 B9 00 00 00 F4 03 04 00 5C 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 73 01 00 35 04 06 00 5F 47 52 3D 71 A9 09 0D 87 61 79 13 94 73 [19:07:09]CheckFolder [19:07:09]dirname=/storage/ofd_packets [19:07:09]CheckFolder done [19:07:09]ProducePacketName [19:07:09]name=ofd_packets/00095010 [19:07:09]NVStorageSaveData ofd_packets/00095010 [19:07:09]File name is /storage/ofd_packets/00095010 [19:07:09]Write 301 bytes [19:07:09]NVStorageSaveData done [19:07:09]OFDSenderStorePacket done [19:07:09]KKMCreateOFDPacket done [19:07:09]NVStorageSaveData kkm_last_timestamp [19:07:09]File name is /storage/kkm_last_timestamp [19:07:09]Write 4 bytes [19:07:09]NVStorageSaveData done [19:07:09]ExternCall_PrintAddStr [19:07:09]wPrintStart [19:07:09]Write to MH i2c: 01 00 00 9B 01 9C [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 9B 01 00 80 00 00 00 FF 0F 31 [19:07:09]RasterBufferAndPrint [19:07:09]line Счет N : (1)195970 [19:07:09]line ИНН: 02508201610067 [19:07:09]line Контрольно-Кассовый Чек [19:07:09]line ПРОДАЖА [19:07:09]line ТРК (МРК, ГНК) : 42 [19:07:09]line Товар: 2710124130 [19:07:09]line Аи-92-К-5 [19:07:09]line 11.130 * 62.90 [19:07:09]line = 700.08 [19:07:09]line НДС 12% НСП 1% [19:07:09]line > о реализуемом товаре [19:07:09]line ОКРУГЛЕНИЕ: -0.08 [19:07:09]line ИТОГО: 700.00 [19:07:09]line Внесено: 700.00 [19:07:09]line СДАЧА: 0.00 [19:07:09]line НСП 1% : 6.19 [19:07:09]line НДС 12% : 74.34 [19:07:09]line Наличными: 700.00 [19:07:09]line Безнал.: 0.00 [19:07:09]line Место: АЗС № 6 "Партнер Нефть" [19:07:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:07:09]line СНО: Общий режим [19:07:09]line Чек 185 11.03.2024 19:07 [19:07:09]line Смена: 326 ФФД: 1.0 [19:07:09]line ЗНМ: 0300000009 [19:07:09]line РНМ: 0000000000090555 [19:07:09]line Версия ККМ: 001 [19:07:09]line ФМ: 0000000000874811 [19:07:09]line ФД: 95010 [19:07:09]line ФПД: 104759927075241 [19:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190708&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95010&fm=104759927075241&tin=02508201610067®Number=0000000000090555&sum=70000 [19:07:09]OFD Sender: Processing packet 95010 [packets to send 30, broken 29] [19:07:09]ProducePacketName [19:07:09]name=ofd_packets/00095010 [19:07:09]OFD Sender: To server: pG, [19:07:09]CommunicateWithHost lk.salyk.kg:30040 [19:07:09]ConnectInit lk.salyk.kg [19:07:09]written 0, free lines is 4095 [19:07:09]Connected sock=10 [19:07:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3C 5A 07 01 A5 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 B9 00 00 00 F4 03 04 00 5C 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 22 73 01 00 35 04 06 00 5F 47 52 3D 71 A9 09 0D 87 61 79 13 94 73 [19:07:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AB 97 47 00 D6 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 31 31 10 04 04 00 22 73 01 00 F4 03 04 00 B4 01 EF 65 B6 04 01 00 00 95 E4 B6 C6 9B 9D A8 B3 [19:07:09]CommunicateWithHost err = 0 [19:07:09]CheckOFDResponse [19:07:09]1017 (14) - 77093643461234 [19:07:09]1041 (16) - 0000000000874811 [19:07:09]1040 (4) - 95010 [19:07:09]1012 (4) - 11.03.2024 13:05 [19:07:09]1206 (1) - 0 [19:07:09]OFD Sender: Remove packet 95010 [19:07:09]ProducePacketName [19:07:09]name=ofd_packets/00095010 [19:07:09]NVStorageDeleteData [19:07:09]Write to MH i2c: 01 00 00 C6 01 C7 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 C6 01 00 80 00 00 00 53 0D AE [19:07:09]RasterBufferAndPrint [19:07:09]line [19:07:09]line [19:07:09]line [19:07:09]line [19:07:09]line [19:07:09]written 0, free lines is 3417 [19:07:09]process_action close_receipt done [19:07:09]requested_data is exist [19:07:09]produce_requested_data [19:07:09]requested_item fm.sn is exist - process it [19:07:09]wFMCommunicate request_size=4 [19:07:09]MH_SAM_APDU [19:07:09]CAPDU: 80 11 00 00 [19:07:09]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:09]Read from MH i2c: E2 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 17 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 17 00 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 98 [19:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:07:09]wFMCommunicate OK [19:07:09]requested_item fd.num is exist - process it [19:07:09]SAM_PROTO_GetFieldsCounters [19:07:09]wFMCommunicate request_size=4 [19:07:09]MH_SAM_APDU [19:07:09]CAPDU: 80 13 00 00 [19:07:09]Write to MH i2c: E2 08 00 CE 01 80 13 00 00 00 00 00 00 4B [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 62 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 62 00 CE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 22 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [19:07: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 22 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:10]wFMCommunicate OK [19:07:10]SAM_PROTO_GetFieldsCounters done [19:07:10]requested_item shift.num is exist - process it [19:07:10]requested_item shift.opened is exist - process it [19:07:10]req_shift_opened [19:07:10]FM_GetShiftState [19:07:10]SAM_PROTO_GetShiftState [19:07:10]wFMCommunicate request_size=4 [19:07:10]MH_SAM_APDU [19:07:10]CAPDU: 80 13 01 00 [19:07:10]Write to MH i2c: E2 08 00 CF 01 80 13 01 00 00 00 00 00 4D [19:07:10]Write i2c OK [19:07:10]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 0E 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 0E 00 CF 01 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E9 [19:07:10]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:07:10]wFMCommunicate OK [19:07:10]SAM_PROTO_GetShiftState done [19:07:10]FM_GetShiftState done [19:07:10]req_shift_opened done [19:07:10]requested_item shift.open_date is exist - process it [19:07:10]req_shift_open_date [19:07:10]req_shift_open_date done [19:07:10]produce_requested_data done [19:07:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95010,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:07:10]process_action_free close_receipt [19:07:10]json_value_free [19:07:10]json_value_free done [19:07:10]process_json_proto returns [19:07:10]Send response to host [19:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95010,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:07:10]free response buf [19:07:10]execute_script done [19:07:10]execute_script returns [19:07:10]free content buf [19:07:10]Sock 9.Close socket [19:07:10]Sock 9.Thread stoped [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:32]accept exits with 8 [19:08:32]New connection [19:08:32]New thread 3066957156 created [19:08:32]Thread 3066813796 joined [19:08:32]Waiting for new connection... [19:08:32] Sock 8.Parse request [19:08:32]Sock 8.Check first char [19:08:32]Sock 8.First char is OK [19:08:32]request: POST /json_proto HTTP/1.0 [19:08:32]Method: POST [19:08:32]URL: /json_proto [19:08:32]Method is POST - this is cgi request [19:08:32]url: /json_proto [19:08:32]query_string will be loaded in cgi processing [19:08:32]execute_cgi json_proto POST (null) [19:08:32]execute_cgi path=json_proto method=POST [19:08:32]POST find Content-Length [19:08:32]Host: 172.17.62.67:8080 [19:08:32]Content-Length: 677 [19:08:32]Content-Type: application/json [19:08:32] [19:08:32]POST finish read [19:08:32]Found Content-Length = 677 [19:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:32]execute_script... [19:08:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:32]POST & json_proto [19:08:32]process_json_proto [19:08:32]json parsed OK: [19:08:32]protocol is kg_v1.0 [19:08:32]action value=close_receipt [19:08:32]process_action close_receipt [19:08:32]cmd_close_receipt [19:08:32]MH_GetDate [19:08:32]Write to MH i2c: F0 00 00 D0 01 C0 [19:08:32]Write i2c OK [19:08:32]MH_I2C_Read... [19:08:32]Read from MH i2c: F0 [19:08:32]MH_I2C_Read... [19:08:32]Read from MH i2c: F0 05 00 [19:08:32]MH_I2C_Read... [19:08:32]Read from MH i2c: F0 05 00 D0 01 00 B1 56 EF 65 20 [19:08:32]GetLastDocTimeStamp 1710184028 [19:08:32]current date 1710184113 [19:08:32]FM_GetShiftState [19:08:32]SAM_PROTO_GetShiftState [19:08:32]wFMCommunicate request_size=4 [19:08:32]MH_SAM_APDU [19:08:32]CAPDU: 80 13 01 00 [19:08:32]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [19:08:32]Write i2c OK [19:08:32]MH_I2C_Read... [19:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:32]Read from MH i2c: E2 [19:08:32]MH_I2C_Read... [19:08:32]Read from MH i2c: E2 0E 00 [19:08:32]MH_I2C_Read... [19:08:32]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EB [19:08:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:08:32]wFMCommunicate OK [19:08:32]SAM_PROTO_GetShiftState done [19:08:32]FM_GetShiftState done [19:08:32]opened in 1710115571 [19:08:32]opened+sec_in_day 1710201971 [19:08:32]quantity*price = 40004 [19:08:32]sum+1 = 40005 [19:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 186 11.03.2024 19:08 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95011 ФПД: 197398162154915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190833&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95011&fm=197398162154915&tin=02508201610067®Number=0000000000090555&sum=40000 [19:08:33]StoreToDocumentArchive [19:08:33]shift 326 fd 95011 [19:08:33]save to /storage/0326/doc_00095011 [19:08:33]save last doc name /storage/0326/doc_00095011 to /storage/kkm_last_doc_name [19:08:33]save OK [19:08:33]Clear old archive folders... [19:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:33]tlvbuf is 01A34940 [19:08:33]SAM_PROTO_ClearQueue [19:08:33]wFMCommunicate request_size=4 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 09 00 00 [19:08:33]Write to MH i2c: E2 08 00 DE 01 80 09 00 00 00 00 00 00 51 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [19:08:33]RAPDU: 90 00 [19:08:33]wFMCommunicate OK [19:08:33]SAM_PROTO_ClearQueue done [19:08:33]KKMCreateOFDPacket [19:08:33]OFDProtocolAddRootSTLVToBuf [19:08:33]FM_MakeSignedData [19:08:33]FM_MakeSignedData [19:08:33]SAM_PROTO_SignData [19:08:33]wFMCommunicate request_size=4 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 0D 01 02 [19:08:33]Write to MH i2c: E2 08 00 DF 01 80 0D 01 02 00 00 00 00 59 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [19:08:33]RAPDU: 90 00 [19:08:33]wFMCommunicate OK [19:08:33]wFMCommunicate request_size=255 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 BA 00 00 00 F4 03 04 00 B1 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 73 01 00 35 04 06 00 B3 [19:08:33]Write to MH i2c: E2 02 01 E0 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 BA 00 00 00 F4 03 04 00 B1 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 73 01 00 35 04 06 00 B3 00 00 42 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:34]Read from MH i2c: E2 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: E2 03 00 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [19:08:34]RAPDU: 90 00 [19:08:34]wFMCommunicate OK [19:08:34]wFMCommunicate request_size=10 [19:08:34]MH_SAM_APDU [19:08:34]CAPDU: 80 0D 02 02 05 88 57 55 A5 A3 [19:08:34]Write to MH i2c: E2 0D 00 E1 01 80 0D 02 02 05 00 88 57 55 A5 A3 00 00 E2 [19:08:34]Write i2c OK [19:08:34]MH_I2C_Read... [19:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:34]Read from MH i2c: E2 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: E2 03 00 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [19:08:34]RAPDU: 90 00 [19:08:34]wFMCommunicate OK [19:08:34]wFMCommunicate request_size=4 [19:08:34]MH_SAM_APDU [19:08:34]CAPDU: 80 0D 03 02 [19:08:34]Write to MH i2c: E2 08 00 E2 01 80 0D 03 02 00 00 00 00 5E [19:08:34]Write i2c OK [19:08:34]MH_I2C_Read... [19:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:34]Read from MH i2c: E2 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: E2 0B 00 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: E2 0B 00 E2 01 00 C1 D4 E2 CF 95 81 83 4B 90 00 89 [19:08:34]RAPDU: C1 D4 E2 CF 95 81 83 4B 90 00 [19:08:34]wFMCommunicate OK [19:08:34]SAM_PROTO_SignData done [19:08:34]FM_MakeSignedData done [19:08:34]CreateOFDProtocolMessage [19:08:34]wFMCommunicate request_size=4 [19:08:34]MH_SAM_APDU [19:08:34]CAPDU: 80 11 00 00 [19:08:34]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [19:08:34]Write i2c OK [19:08:34]MH_I2C_Read... [19:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:34]Read from MH i2c: E2 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: E2 17 00 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: E2 17 00 E3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AE [19:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:08:34]wFMCommunicate OK [19:08:34]CreateOFDProtocolMessage done [19:08:34]OFDSenderStorePacket 95011 [19:08:34]StoreOFDPacket docnum=95011 [19:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A3 FF 07 01 45 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 BA 00 00 00 F4 03 04 00 B1 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 73 01 00 35 04 06 00 B3 88 57 55 A5 A3 C1 D4 E2 CF 95 81 83 4B [19:08:34]CheckFolder [19:08:34]dirname=/storage/ofd_packets [19:08:34]CheckFolder done [19:08:34]ProducePacketName [19:08:34]name=ofd_packets/00095011 [19:08:34]NVStorageSaveData ofd_packets/00095011 [19:08:34]File name is /storage/ofd_packets/00095011 [19:08:34]Write 301 bytes [19:08:34]NVStorageSaveData done [19:08:34]OFDSenderStorePacket done [19:08:34]KKMCreateOFDPacket done [19:08:34]NVStorageSaveData kkm_last_timestamp [19:08:34]File name is /storage/kkm_last_timestamp [19:08:34]Write 4 bytes [19:08:34]NVStorageSaveData done [19:08:34]ExternCall_PrintAddStr [19:08:34]wPrintStart [19:08:34]Write to MH i2c: 01 00 00 E4 01 E5 [19:08:34]Write i2c OK [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: 01 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: 01 07 00 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: 01 07 00 E4 01 00 80 00 00 00 FF 0F 7A [19:08:34]RasterBufferAndPrint [19:08:34]line Счет N : (1)195971 [19:08:34]line ИНН: 02508201610067 [19:08:34]line Контрольно-Кассовый Чек [19:08:34]line ПРОДАЖА [19:08:34]line ТРК (МРК, ГНК) : 12 [19:08:34]line Товар: 2710124130 [19:08:34]line Аи-92-К-5 [19:08:34]line 6.360 * 62.90 [19:08:34]line = 400.04 [19:08:34]line НДС 12% НСП 1% [19:08:34]line > о реализуемом товаре [19:08:34]line ОКРУГЛЕНИЕ: -0.04 [19:08:34]line ИТОГО: 400.00 [19:08:34]line Внесено: 400.00 [19:08:34]line СДАЧА: 0.00 [19:08:34]line НСП 1% : 3.54 [19:08:34]line НДС 12% : 42.48 [19:08:34]line Наличными: 400.00 [19:08:34]line Безнал.: 0.00 [19:08:34]line Место: АЗС № 6 "Партнер Нефть" [19:08:34]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:08:34]line СНО: Общий режим [19:08:34]line Чек 186 11.03.2024 19:08 [19:08:34]line Смена: 326 ФФД: 1.0 [19:08:34]line ЗНМ: 0300000009 [19:08:34]line РНМ: 0000000000090555 [19:08:34]line Версия ККМ: 001 [19:08:34]line ФМ: 0000000000874811 [19:08:34]line ФД: 95011 [19:08:34]line ФПД: 197398162154915 [19:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190833&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95011&fm=197398162154915&tin=02508201610067®Number=0000000000090555&sum=40000 [19:08:34]OFD Sender: Processing packet 95011 [packets to send 30, broken 29] [19:08:34]ProducePacketName [19:08:34]name=ofd_packets/00095011 [19:08:34]OFD Sender: To server: pG, [19:08:34]CommunicateWithHost lk.salyk.kg:30040 [19:08:34]ConnectInit lk.salyk.kg [19:08:34]written 0, free lines is 4095 [19:08:34]Connected sock=10 [19:08: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 31 31 0F 01 00 00 A3 FF 07 01 45 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 BA 00 00 00 F4 03 04 00 B1 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 23 73 01 00 35 04 06 00 B3 88 57 55 A5 A3 C1 D4 E2 CF 95 81 83 4B [19:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7A 94 47 00 8B 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 31 31 10 04 04 00 23 73 01 00 F4 03 04 00 0A 02 EF 65 B6 04 01 00 00 FA 8F C6 AA 2F 57 53 02 [19:08:34]CommunicateWithHost err = 0 [19:08:34]CheckOFDResponse [19:08:34]1017 (14) - 77093643461234 [19:08:34]1041 (16) - 0000000000874811 [19:08:34]1040 (4) - 95011 [19:08:34]1012 (4) - 11.03.2024 13:07 [19:08:34]1206 (1) - 0 [19:08:34]OFD Sender: Remove packet 95011 [19:08:34]ProducePacketName [19:08:34]name=ofd_packets/00095011 [19:08:34]NVStorageDeleteData [19:08:35]Write to MH i2c: 01 00 00 0F 02 11 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: 01 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: 01 07 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: 01 07 00 0F 02 00 80 00 00 00 56 0D FB [19:08:35]RasterBufferAndPrint [19:08:35]line [19:08:35]line [19:08:35]line [19:08:35]line [19:08:35]line [19:08:35]written 0, free lines is 3420 [19:08:35]process_action close_receipt done [19:08:35]requested_data is exist [19:08:35]produce_requested_data [19:08:35]requested_item fm.sn is exist - process it [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 11 00 00 [19:08:35]Write to MH i2c: E2 08 00 16 02 80 11 00 00 00 00 00 00 92 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:35]Read from MH i2c: E2 17 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 17 00 16 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E2 [19:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:08:35]wFMCommunicate OK [19:08:35]requested_item fd.num is exist - process it [19:08:35]SAM_PROTO_GetFieldsCounters [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 13 00 00 [19:08:35]Write to MH i2c: E2 08 00 17 02 80 13 00 00 00 00 00 00 95 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 62 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 62 00 17 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 23 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [19:08: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 23 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:35]wFMCommunicate OK [19:08:35]SAM_PROTO_GetFieldsCounters done [19:08:35]requested_item shift.num is exist - process it [19:08:35]requested_item shift.opened is exist - process it [19:08:35]req_shift_opened [19:08:35]FM_GetShiftState [19:08:35]SAM_PROTO_GetShiftState [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 13 01 00 [19:08:35]Write to MH i2c: E2 08 00 18 02 80 13 01 00 00 00 00 00 97 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]OFD Sender: No OFD packet to send [19:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:35]Read from MH i2c: E2 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 0E 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: E2 0E 00 18 02 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 33 [19:08:35]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:08:35]wFMCommunicate OK [19:08:35]SAM_PROTO_GetShiftState done [19:08:35]FM_GetShiftState done [19:08:35]req_shift_opened done [19:08:35]requested_item shift.open_date is exist - process it [19:08:35]req_shift_open_date [19:08:35]req_shift_open_date done [19:08:35]produce_requested_data done [19:08:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95011,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:08:35]process_action_free close_receipt [19:08:35]json_value_free [19:08:35]json_value_free done [19:08:35]process_json_proto returns [19:08:35]Send response to host [19:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95011,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:08:35]free response buf [19:08:35]execute_script done [19:08:35]execute_script returns [19:08:35]free content buf [19:08:35]Sock 8.Close socket [19:08:35]Sock 8.Thread stoped [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:11]accept exits with 9 [19:09:11]New connection [19:09:11]New thread 3066813796 created [19:09:11]Thread 3066957156 joined [19:09:11]Waiting for new connection... [19:09:11] Sock 9.Parse request [19:09:11]Sock 9.Check first char [19:09:11]Sock 9.First char is OK [19:09:11]request: POST /json_proto HTTP/1.0 [19:09:11]Method: POST [19:09:11]URL: /json_proto [19:09:11]Method is POST - this is cgi request [19:09:11]url: /json_proto [19:09:11]query_string will be loaded in cgi processing [19:09:11]execute_cgi json_proto POST (null) [19:09:11]execute_cgi path=json_proto method=POST [19:09:11]POST find Content-Length [19:09:11]Host: 172.17.62.67:8080 [19:09:11]Content-Length: 640 [19:09:11]Content-Type: application/json [19:09:11] [19:09:11]POST finish read [19:09:11]Found Content-Length = 640 [19:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:11]execute_script... [19:09: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)195972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:11]POST & json_proto [19:09:11]process_json_proto [19:09:11]json parsed OK: [19:09:11]protocol is kg_v1.0 [19:09:11]action value=close_receipt [19:09:11]process_action close_receipt [19:09:11]cmd_close_receipt [19:09:11]MH_GetDate [19:09:11]Write to MH i2c: F0 00 00 19 02 0A [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: F0 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: F0 05 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: F0 05 00 19 02 00 D8 56 EF 65 91 [19:09:11]GetLastDocTimeStamp 1710184113 [19:09:11]current date 1710184152 [19:09:11]FM_GetShiftState [19:09:11]SAM_PROTO_GetShiftState [19:09:11]wFMCommunicate request_size=4 [19:09:11]MH_SAM_APDU [19:09:11]CAPDU: 80 13 01 00 [19:09:11]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:11]Read from MH i2c: E2 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 0E 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 35 [19:09:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:09:11]wFMCommunicate OK [19:09:11]SAM_PROTO_GetShiftState done [19:09:11]FM_GetShiftState done [19:09:11]opened in 1710115571 [19:09:11]opened+sec_in_day 1710201971 [19:09:11]quantity*price = 62900 [19:09:11]sum+1 = 62901 [19:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 187 11.03.2024 19:09 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95012 ФПД: 59145512163025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190912&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95012&fm=59145512163025&tin=02508201610067®Number=0000000000090555&sum=62900 [19:09:12]StoreToDocumentArchive [19:09:12]shift 326 fd 95012 [19:09:12]save to /storage/0326/doc_00095012 [19:09:12]save last doc name /storage/0326/doc_00095012 to /storage/kkm_last_doc_name [19:09:12]save OK [19:09:12]Clear old archive folders... [19:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:13]tlvbuf is 01A2F480 [19:09:13]SAM_PROTO_ClearQueue [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 09 00 00 [19:09:13]Write to MH i2c: E2 08 00 27 02 80 09 00 00 00 00 00 00 9B [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [19:09:13]RAPDU: 90 00 [19:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_ClearQueue done [19:09:13]KKMCreateOFDPacket [19:09:13]OFDProtocolAddRootSTLVToBuf [19:09:13]FM_MakeSignedData [19:09:13]FM_MakeSignedData [19:09:13]SAM_PROTO_SignData [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 0D 01 02 [19:09:13]Write to MH i2c: E2 08 00 28 02 80 0D 01 02 00 00 00 00 A3 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [19:09:13]RAPDU: 90 00 [19:09:13]wFMCommunicate OK [19:09:13]wFMCommunicate request_size=255 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 D8 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 73 01 00 35 04 06 00 35 [19:09:13]Write to MH i2c: E2 02 01 29 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 D8 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 73 01 00 35 04 06 00 35 00 00 37 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [19:09:13]RAPDU: 90 00 [19:09:13]wFMCommunicate OK [19:09:13]wFMCommunicate request_size=10 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 0D 02 02 05 CA E3 3E 16 D1 [19:09:13]Write to MH i2c: E2 0D 00 2A 02 80 0D 02 02 05 00 CA E3 3E 16 D1 00 00 82 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [19:09:13]RAPDU: 90 00 [19:09:13]wFMCommunicate OK [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 0D 03 02 [19:09:13]Write to MH i2c: E2 08 00 2B 02 80 0D 03 02 00 00 00 00 A8 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0B 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0B 00 2B 02 00 84 88 E9 3B 72 09 96 18 90 00 02 [19:09:13]RAPDU: 84 88 E9 3B 72 09 96 18 90 00 [19:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_SignData done [19:09:13]FM_MakeSignedData done [19:09:13]CreateOFDProtocolMessage [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 11 00 00 [19:09:13]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 17 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [19:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:09:13]wFMCommunicate OK [19:09:13]CreateOFDProtocolMessage done [19:09:13]OFDSenderStorePacket 95012 [19:09:13]StoreOFDPacket docnum=95012 [19:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 26 5E 07 01 B4 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 D8 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 73 01 00 35 04 06 00 35 CA E3 3E 16 D1 84 88 E9 3B 72 09 96 18 [19:09:13]CheckFolder [19:09:13]dirname=/storage/ofd_packets [19:09:13]CheckFolder done [19:09:13]ProducePacketName [19:09:13]name=ofd_packets/00095012 [19:09:13]NVStorageSaveData ofd_packets/00095012 [19:09:13]File name is /storage/ofd_packets/00095012 [19:09:13]Write 301 bytes [19:09:13]NVStorageSaveData done [19:09:13]OFDSenderStorePacket done [19:09:13]KKMCreateOFDPacket done [19:09:13]NVStorageSaveData kkm_last_timestamp [19:09:13]File name is /storage/kkm_last_timestamp [19:09:13]Write 4 bytes [19:09:13]NVStorageSaveData done [19:09:13]ExternCall_PrintAddStr [19:09:13]wPrintStart [19:09:13]Write to MH i2c: 01 00 00 2D 02 2F [19:09:13]OFD Sender: Processing packet 95012 [packets to send 30, broken 29] [19:09:13]ProducePacketName [19:09:13]name=ofd_packets/00095012 [19:09:13]OFD Sender: To server: pG, [19:09:13]CommunicateWithHost lk.salyk.kg:30040 [19:09:13]ConnectInit lk.salyk.kg [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: 01 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: 01 07 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: 01 07 00 2D 02 00 80 00 00 00 FF 0F C4 [19:09:13]RasterBufferAndPrint [19:09:13]line Счет N : (1)195972 [19:09:13]line ИНН: 02508201610067 [19:09:13]line Контрольно-Кассовый Чек [19:09:13]line ПРОДАЖА [19:09:13]line ТРК (МРК, ГНК) : 42 [19:09:13]line Товар: 2710124130 [19:09:13]line Аи-92-К-5 [19:09:13]line 10.000 * 62.90 [19:09:13]line = 629.00 [19:09:13]line НДС 12% НСП 1% [19:09:13]line > о реализуемом товаре [19:09:13]line ИТОГО: 629.00 [19:09:13]line НСП 1% : 5.57 [19:09:13]line НДС 12% : 66.80 [19:09:13]line Наличными: 629.00 [19:09:13]line Безнал.: 0.00 [19:09:13]line Место: АЗС № 6 "Партнер Нефть" [19:09:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:09:13]line СНО: Общий режим [19:09:13]line Чек 187 11.03.2024 19:09 [19:09:13]line Смена: 326 ФФД: 1.0 [19:09:13]line ЗНМ: 0300000009 [19:09:13]line РНМ: 0000000000090555 [19:09:13]line Версия ККМ: 001 [19:09:13]line ФМ: 0000000000874811 [19:09:13]line ФД: 95012 [19:09:13]line ФПД: 59145512163025 [19:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190912&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95012&fm=59145512163025&tin=02508201610067®Number=0000000000090555&sum=62900 [19:09:13]Connected sock=10 [19:09: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 31 31 0F 01 00 00 26 5E 07 01 B4 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 D8 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 73 01 00 35 04 06 00 35 CA E3 3E 16 D1 84 88 E9 3B 72 09 96 18 [19:09:13]written 0, free lines is 4095 [19:09: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 31 31 4F 00 00 00 42 11 47 00 D4 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 24 73 01 00 F4 03 04 00 31 02 EF 65 B6 04 01 00 00 FE FC 61 9D 06 10 98 31 [19:09:14]CommunicateWithHost err = 0 [19:09:14]CheckOFDResponse [19:09:14]1017 (14) - 77093643461234 [19:09:14]1041 (16) - 0000000000874811 [19:09:14]1040 (4) - 95012 [19:09:14]1012 (4) - 11.03.2024 13:08 [19:09:14]1206 (1) - 0 [19:09:14]OFD Sender: Remove packet 95012 [19:09:14]ProducePacketName [19:09:14]name=ofd_packets/00095012 [19:09:14]NVStorageDeleteData [19:09:14]Write to MH i2c: 01 00 00 55 02 57 [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: 01 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: 01 07 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: 01 07 00 55 02 00 80 00 00 00 81 0D 6C [19:09:14]RasterBufferAndPrint [19:09:14]line [19:09:14]line [19:09:14]line [19:09:14]line [19:09:14]line [19:09:14]written 0, free lines is 3462 [19:09:14]process_action close_receipt done [19:09:14]requested_data is exist [19:09:14]produce_requested_data [19:09:14]requested_item fm.sn is exist - process it [19:09:14]wFMCommunicate request_size=4 [19:09:14]MH_SAM_APDU [19:09:14]CAPDU: 80 11 00 00 [19:09:14]Write to MH i2c: E2 08 00 5C 02 80 11 00 00 00 00 00 00 D8 [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:14]Read from MH i2c: E2 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 17 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 17 00 5C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [19:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:09:14]wFMCommunicate OK [19:09:14]requested_item fd.num is exist - process it [19:09:14]SAM_PROTO_GetFieldsCounters [19:09:14]wFMCommunicate request_size=4 [19:09:14]MH_SAM_APDU [19:09:14]CAPDU: 80 13 00 00 [19:09:14]Write to MH i2c: E2 08 00 5D 02 80 13 00 00 00 00 00 00 DB [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:14]OFD Sender: No OFD packet to send [19:09:14]Read from MH i2c: E2 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 62 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 62 00 5D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 24 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [19:09: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 24 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:14]wFMCommunicate OK [19:09:14]SAM_PROTO_GetFieldsCounters done [19:09:14]requested_item shift.num is exist - process it [19:09:14]requested_item shift.opened is exist - process it [19:09:14]req_shift_opened [19:09:14]FM_GetShiftState [19:09:14]SAM_PROTO_GetShiftState [19:09:14]wFMCommunicate request_size=4 [19:09:14]MH_SAM_APDU [19:09:14]CAPDU: 80 13 01 00 [19:09:14]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:14]Read from MH i2c: E2 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 0E 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 79 [19:09:14]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:09:14]wFMCommunicate OK [19:09:14]SAM_PROTO_GetShiftState done [19:09:14]FM_GetShiftState done [19:09:14]req_shift_opened done [19:09:14]requested_item shift.open_date is exist - process it [19:09:14]req_shift_open_date [19:09:14]req_shift_open_date done [19:09:14]produce_requested_data done [19:09:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95012,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:09:14]process_action_free close_receipt [19:09:14]json_value_free [19:09:14]json_value_free done [19:09:14]process_json_proto returns [19:09:14]Send response to host [19:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95012,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:09:14]free response buf [19:09:14]execute_script done [19:09:14]execute_script returns [19:09:14]free content buf [19:09:14]Sock 9.Close socket [19:09:14]Sock 9.Thread stoped [19:09:17]accept exits with 8 [19:09:17]New connection [19:09:17]New thread 3066957156 created [19:09:17]Thread 3066813796 joined [19:09:17]Waiting for new connection... [19:09:17] Sock 8.Parse request [19:09:17]Sock 8.Check first char [19:09:17]Sock 8.First char is OK [19:09:17]request: POST /json_proto HTTP/1.0 [19:09:17]Method: POST [19:09:17]URL: /json_proto [19:09:17]Method is POST - this is cgi request [19:09:17]url: /json_proto [19:09:17]query_string will be loaded in cgi processing [19:09:17]execute_cgi json_proto POST (null) [19:09:17]execute_cgi path=json_proto method=POST [19:09:17]POST find Content-Length [19:09:17]Host: 172.17.62.67:8080 [19:09:17]Content-Length: 682 [19:09:17]Content-Type: application/json [19:09:17] [19:09:17]POST finish read [19:09:17]Found Content-Length = 682 [19:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "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" ] } } [19:09:17]execute_script... [19:09: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)195973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "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" ] } } [19:09:17]POST & json_proto [19:09:17]process_json_proto [19:09:17]json parsed OK: [19:09:17]protocol is kg_v1.0 [19:09:17]action value=close_receipt [19:09:17]process_action close_receipt [19:09:17]cmd_close_receipt [19:09:17]MH_GetDate [19:09:17]Write to MH i2c: F0 00 00 5F 02 50 [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: F0 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: F0 05 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: F0 05 00 5F 02 00 DE 56 EF 65 DD [19:09:17]GetLastDocTimeStamp 1710184152 [19:09:17]current date 1710184158 [19:09:17]FM_GetShiftState [19:09:17]SAM_PROTO_GetShiftState [19:09:17]wFMCommunicate request_size=4 [19:09:17]MH_SAM_APDU [19:09:17]CAPDU: 80 13 01 00 [19:09:17]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:17]Read from MH i2c: E2 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 0E 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 7B [19:09:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:09:17]wFMCommunicate OK [19:09:17]SAM_PROTO_GetShiftState done [19:09:17]FM_GetShiftState done [19:09:17]opened in 1710115571 [19:09:17]opened+sec_in_day 1710201971 [19:09:17]quantity*price = 150050 [19:09:17]sum+1 = 150052 [19:09:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 188 11.03.2024 19:09 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95013 ФПД: 136798641860537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190918&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95013&fm=136798641860537&tin=02508201610067®Number=0000000000090555&sum=150000 [19:09:18]StoreToDocumentArchive [19:09:18]shift 326 fd 95013 [19:09:18]save to /storage/0326/doc_00095013 [19:09:18]save last doc name /storage/0326/doc_00095013 to /storage/kkm_last_doc_name [19:09:18]save OK [19:09:18]Clear old archive folders... [19:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:18]tlvbuf is 01A002B0 [19:09:18]SAM_PROTO_ClearQueue [19:09:18]wFMCommunicate request_size=4 [19:09:18]MH_SAM_APDU [19:09:18]CAPDU: 80 09 00 00 [19:09:18]Write to MH i2c: E2 08 00 6D 02 80 09 00 00 00 00 00 00 E1 [19:09:18]Write i2c OK [19:09:18]MH_I2C_Read... [19:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:18]Read from MH i2c: E2 [19:09:18]MH_I2C_Read... [19:09:18]Read from MH i2c: E2 03 00 [19:09:18]MH_I2C_Read... [19:09:18]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [19:09:18]RAPDU: 90 00 [19:09:18]wFMCommunicate OK [19:09:18]SAM_PROTO_ClearQueue done [19:09:18]KKMCreateOFDPacket [19:09:18]OFDProtocolAddRootSTLVToBuf [19:09:18]FM_MakeSignedData [19:09:18]FM_MakeSignedData [19:09:18]SAM_PROTO_SignData [19:09:18]wFMCommunicate request_size=4 [19:09:18]MH_SAM_APDU [19:09:18]CAPDU: 80 0D 01 02 [19:09:18]Write to MH i2c: E2 08 00 6E 02 80 0D 01 02 00 00 00 00 E9 [19:09:18]Write i2c OK [19:09:18]MH_I2C_Read... [19:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:18]Read from MH i2c: E2 [19:09:18]MH_I2C_Read... [19:09:18]Read from MH i2c: E2 03 00 [19:09:18]MH_I2C_Read... [19:09:18]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [19:09:18]RAPDU: 90 00 [19:09:18]wFMCommunicate OK [19:09:18]wFMCommunicate request_size=255 [19:09:18]MH_SAM_APDU [19:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 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 3F 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 BC 00 00 00 F4 03 04 00 DE 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 73 01 00 35 04 06 00 7C [19:09:18]Write to MH i2c: E2 02 01 6F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 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 3F 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 BC 00 00 00 F4 03 04 00 DE 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 73 01 00 35 04 06 00 7C 00 00 15 [19:09:18]Write i2c OK [19:09:18]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 03 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [19:09:19]RAPDU: 90 00 [19:09:19]wFMCommunicate OK [19:09:19]wFMCommunicate request_size=10 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 0D 02 02 05 6A EA 74 2F B9 [19:09:19]Write to MH i2c: E2 0D 00 70 02 80 0D 02 02 05 00 6A EA 74 2F B9 00 00 A6 [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 03 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [19:09:19]RAPDU: 90 00 [19:09:19]wFMCommunicate OK [19:09:19]wFMCommunicate request_size=4 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 0D 03 02 [19:09:19]Write to MH i2c: E2 08 00 71 02 80 0D 03 02 00 00 00 00 EE [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 0B 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 0B 00 71 02 00 03 C2 63 D5 AB 97 52 38 90 00 B8 [19:09:19]RAPDU: 03 C2 63 D5 AB 97 52 38 90 00 [19:09:19]wFMCommunicate OK [19:09:19]SAM_PROTO_SignData done [19:09:19]FM_MakeSignedData done [19:09:19]CreateOFDProtocolMessage [19:09:19]wFMCommunicate request_size=4 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 11 00 00 [19:09:19]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 17 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3E [19:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:09:19]wFMCommunicate OK [19:09:19]CreateOFDProtocolMessage done [19:09:19]OFDSenderStorePacket 95013 [19:09:19]StoreOFDPacket docnum=95013 [19:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7C E3 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 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 3F 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 BC 00 00 00 F4 03 04 00 DE 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 73 01 00 35 04 06 00 7C 6A EA 74 2F B9 03 C2 63 D5 AB 97 52 38 [19:09:19]CheckFolder [19:09:19]dirname=/storage/ofd_packets [19:09:19]CheckFolder done [19:09:19]ProducePacketName [19:09:19]name=ofd_packets/00095013 [19:09:19]NVStorageSaveData ofd_packets/00095013 [19:09:19]File name is /storage/ofd_packets/00095013 [19:09:19]Write 301 bytes [19:09:19]NVStorageSaveData done [19:09:19]OFDSenderStorePacket done [19:09:19]KKMCreateOFDPacket done [19:09:19]NVStorageSaveData kkm_last_timestamp [19:09:19]File name is /storage/kkm_last_timestamp [19:09:19]Write 4 bytes [19:09:19]NVStorageSaveData done [19:09:19]ExternCall_PrintAddStr [19:09:19]wPrintStart [19:09:19]Write to MH i2c: 01 00 00 73 02 75 [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: 01 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: 01 07 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: 01 07 00 73 02 00 80 00 00 00 FF 0F 0A [19:09:19]RasterBufferAndPrint [19:09:19]line Счет N : (1)195973 [19:09:19]line ИНН: 02508201610067 [19:09:19]line Контрольно-Кассовый Чек [19:09:19]line ПРОДАЖА [19:09:19]line ТРК (МРК, ГНК) : 31 [19:09:19]line Товар: 2710124500 [19:09:19]line Аи-95-К-5 [19:09:19]line 21.590 * 69.50 [19:09:19]line = 1500.51 [19:09:19]line НДС 12% НСП 1% [19:09:19]line > о реализуемом товаре [19:09:19]line ОКРУГЛЕНИЕ: -0.51 [19:09:19]line ИТОГО: 1500.00 [19:09:19]line Внесено: 1500.00 [19:09:19]line СДАЧА: 0.00 [19:09:19]line НСП 1% : 13.28 [19:09:19]line НДС 12% : 159.35 [19:09:19]line Наличными: 1500.00 [19:09:19]line Безнал.: 0.00 [19:09:19]line Место: АЗС № 6 "Партнер Нефть" [19:09:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:09:19]line СНО: Общий режим [19:09:19]line Чек 188 11.03.2024 19:09 [19:09:19]line Смена: 326 ФФД: 1.0 [19:09:19]line ЗНМ: 0300000009 [19:09:19]line РНМ: 0000000000090555 [19:09:19]line Версия ККМ: 001 [19:09:19]line ФМ: 0000000000874811 [19:09:19]line ФД: 95013 [19:09:19]line ФПД: 136798641860537 [19:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T190918&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95013&fm=136798641860537&tin=02508201610067®Number=0000000000090555&sum=150000 [19:09:19]written 0, free lines is 4095 [19:09:19]OFD Sender: Processing packet 95013 [packets to send 30, broken 29] [19:09:19]ProducePacketName [19:09:19]name=ofd_packets/00095013 [19:09:19]OFD Sender: To server: pG, [19:09:19]CommunicateWithHost lk.salyk.kg:30040 [19:09:19]ConnectInit lk.salyk.kg [19:09:19]Connected sock=10 [19:09: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 31 31 0F 01 00 00 7C E3 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 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 3F 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 BC 00 00 00 F4 03 04 00 DE 56 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 73 01 00 35 04 06 00 7C 6A EA 74 2F B9 03 C2 63 D5 AB 97 52 38 [19:09: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 31 31 4F 00 00 00 05 1B 47 00 18 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 25 73 01 00 F4 03 04 00 36 02 EF 65 B6 04 01 00 00 69 44 FB 03 82 CA 84 9F [19:09:19]CommunicateWithHost err = 0 [19:09:19]CheckOFDResponse [19:09:19]1017 (14) - 77093643461234 [19:09:19]1041 (16) - 0000000000874811 [19:09:19]1040 (4) - 95013 [19:09:19]1012 (4) - 11.03.2024 13:08 [19:09:19]1206 (1) - 0 [19:09:19]OFD Sender: Remove packet 95013 [19:09:19]ProducePacketName [19:09:19]name=ofd_packets/00095013 [19:09:19]NVStorageDeleteData [19:09:19]Write to MH i2c: 01 00 00 9E 02 A0 [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: 01 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: 01 07 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: 01 07 00 9E 02 00 80 00 00 00 60 0D 94 [19:09:19]RasterBufferAndPrint [19:09:19]line [19:09:19]line [19:09:19]line [19:09:19]line [19:09:19]line [19:09:19]written 0, free lines is 3438 [19:09:19]process_action close_receipt done [19:09:19]requested_data is exist [19:09:19]produce_requested_data [19:09:19]requested_item fm.sn is exist - process it [19:09:19]wFMCommunicate request_size=4 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 11 00 00 [19:09:19]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:19]Read from MH i2c: E2 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 17 00 [19:09:19]MH_I2C_Read... [19:09:19]Read from MH i2c: E2 17 00 A5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 71 [19:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:09:19]wFMCommunicate OK [19:09:19]requested_item fd.num is exist - process it [19:09:19]SAM_PROTO_GetFieldsCounters [19:09:19]wFMCommunicate request_size=4 [19:09:19]MH_SAM_APDU [19:09:19]CAPDU: 80 13 00 00 [19:09:19]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [19:09:19]Write i2c OK [19:09:19]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 62 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 62 00 A6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 25 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [19:09:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 25 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:20]wFMCommunicate OK [19:09:20]SAM_PROTO_GetFieldsCounters done [19:09:20]requested_item shift.num is exist - process it [19:09:20]requested_item shift.opened is exist - process it [19:09:20]req_shift_opened [19:09:20]FM_GetShiftState [19:09:20]SAM_PROTO_GetShiftState [19:09:20]wFMCommunicate request_size=4 [19:09:20]MH_SAM_APDU [19:09:20]CAPDU: 80 13 01 00 [19:09:20]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [19:09:20]Write i2c OK [19:09:20]MH_I2C_Read... [19:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:20]Read from MH i2c: E2 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 0E 00 [19:09:20]MH_I2C_Read... [19:09:20]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 C2 [19:09:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:09:20]wFMCommunicate OK [19:09:20]SAM_PROTO_GetShiftState done [19:09:20]FM_GetShiftState done [19:09:20]req_shift_opened done [19:09:20]requested_item shift.open_date is exist - process it [19:09:20]req_shift_open_date [19:09:20]req_shift_open_date done [19:09:20]produce_requested_data done [19:09:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95013,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:09:20]process_action_free close_receipt [19:09:20]json_value_free [19:09:20]json_value_free done [19:09:20]process_json_proto returns [19:09:20]Send response to host [19:09:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95013,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:09:20]free response buf [19:09:20]execute_script done [19:09:20]execute_script returns [19:09:20]free content buf [19:09:20]Sock 8.Close socket [19:09:20]Sock 8.Thread stoped [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:16]accept exits with 9 [19:14:16]New connection [19:14:16]New thread 3066813796 created [19:14:16]Thread 3066957156 joined [19:14:16]Waiting for new connection... [19:14:16] Sock 9.Parse request [19:14:16]Sock 9.Check first char [19:14:16]Sock 9.First char is OK [19:14:16]request: POST /json_proto HTTP/1.0 [19:14:16]Method: POST [19:14:16]URL: /json_proto [19:14:16]Method is POST - this is cgi request [19:14:16]url: /json_proto [19:14:16]query_string will be loaded in cgi processing [19:14:16]execute_cgi json_proto POST (null) [19:14:16]execute_cgi path=json_proto method=POST [19:14:16]POST find Content-Length [19:14:16]Host: 172.17.62.67:8080 [19:14:16]Content-Length: 1193 [19:14:16]Content-Type: application/json [19:14:16] [19:14:16]POST finish read [19:14:16]Found Content-Length = 1193 [19:14:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195974\u000A11.03.2024 19:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 21.700 x 69.50\u000A\u0418\u0422\u041E\u0413: 1508.15\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02307\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:16]execute_script... [19:14:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195974\u000A11.03.2024 19:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 21.700 x 69.50\u000A\u0418\u0422\u041E\u0413: 1508.15\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02307\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:16]POST & json_proto [19:14:16]process_json_proto [19:14:16]json parsed OK: [19:14:16]protocol is kg_v1.0 [19:14:16]action value=print_text [19:14:16]process_action print_text [19:14:16]cmd_print_text [19:14:16]ExternCall_PrintAddStr [19:14:16]wPrintStart [19:14:16]Write to MH i2c: 01 00 00 A8 02 AA [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 07 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 07 00 A8 02 00 80 00 00 00 FF 0F 3F [19:14:16]RasterBufferAndPrint [19:14:16]line *****ТОВАРНЫЙ ЧЕК***** [19:14:16]line АЗС 6 [19:14:16]line Партнер нефть [19:14:16]line 02508201610067 [19:14:16]line Кассир : Карыбаев Б. [19:14:16]line Счет N : (1)195974 [19:14:16]line 11.03.2024 19:08 [19:14:16]line ПРОДАЖА [19:14:16]line ТРК (МРК, ГНК): 41 [19:14:16]line Вид ГСМ : 2710124500 [19:14:16]line Аи-95-К-5 [19:14:16]line 21.700 x 69.50 [19:14:16]line ИТОГ: 1508.15 [19:14:16]line Тип оплаты: Талоны: Топливная Карта [19:14:16]line 02307 [19:14:16]line ______________________ [19:14:16]line (подпись) [19:14:16]written 0, free lines is 4095 [19:14:16]Write to MH i2c: 01 00 00 BC 02 BE [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 07 00 [19:14:16]MH_I2C_Read... [19:14:16]Read from MH i2c: 01 07 00 BC 02 00 80 00 00 00 64 0E B7 [19:14:16]RasterBufferAndPrint [19:14:16]line [19:14:16]line [19:14:16]line [19:14:16]line [19:14:16]line [19:14:16]written 0, free lines is 3688 [19:14:16]process_action print_text done [19:14:16]requested_data is exist [19:14:16]produce_requested_data [19:14:16]requested_item fm.sn is exist - process it [19:14:16]wFMCommunicate request_size=4 [19:14:16]MH_SAM_APDU [19:14:16]CAPDU: 80 11 00 00 [19:14:16]Write to MH i2c: E2 08 00 C3 02 80 11 00 00 00 00 00 00 3F [19:14:16]Write i2c OK [19:14:16]MH_I2C_Read... [19:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:17]Read from MH i2c: E2 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 17 00 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 17 00 C3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8F [19:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:14:17]wFMCommunicate OK [19:14:17]requested_item fd.num is exist - process it [19:14:17]SAM_PROTO_GetFieldsCounters [19:14:17]wFMCommunicate request_size=4 [19:14:17]MH_SAM_APDU [19:14:17]CAPDU: 80 13 00 00 [19:14:17]Write to MH i2c: E2 08 00 C4 02 80 13 00 00 00 00 00 00 42 [19:14:17]Write i2c OK [19:14:17]MH_I2C_Read... [19:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:17]Read from MH i2c: E2 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 62 00 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 62 00 C4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 25 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [19:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 25 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:17]wFMCommunicate OK [19:14:17]SAM_PROTO_GetFieldsCounters done [19:14:17]requested_item shift.num is exist - process it [19:14:17]requested_item shift.opened is exist - process it [19:14:17]req_shift_opened [19:14:17]FM_GetShiftState [19:14:17]SAM_PROTO_GetShiftState [19:14:17]wFMCommunicate request_size=4 [19:14:17]MH_SAM_APDU [19:14:17]CAPDU: 80 13 01 00 [19:14:17]Write to MH i2c: E2 08 00 C5 02 80 13 01 00 00 00 00 00 44 [19:14:17]Write i2c OK [19:14:17]MH_I2C_Read... [19:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:17]Read from MH i2c: E2 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 0E 00 [19:14:17]MH_I2C_Read... [19:14:17]Read from MH i2c: E2 0E 00 C5 02 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E0 [19:14:17]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:14:17]wFMCommunicate OK [19:14:17]SAM_PROTO_GetShiftState done [19:14:17]FM_GetShiftState done [19:14:17]req_shift_opened done [19:14:17]requested_item shift.open_date is exist - process it [19:14:17]req_shift_open_date [19:14:17]req_shift_open_date done [19:14:17]produce_requested_data done [19:14:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95013,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:14:17]process_action_free print_text [19:14:17]json_value_free [19:14:17]json_value_free done [19:14:17]process_json_proto returns [19:14:17]Send response to host [19:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95013,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:14:17]free response buf [19:14:17]execute_script done [19:14:17]execute_script returns [19:14:17]free content buf [19:14:17]Sock 9.Close socket [19:14:17]Sock 9.Thread stoped [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:46]accept exits with 8 [19:16:46]New connection [19:16:46]New thread 3066957156 created [19:16:46]Thread 3066813796 joined [19:16:46]Waiting for new connection... [19:16:46] Sock 8.Parse request [19:16:46]Sock 8.Check first char [19:16:46]Sock 8.First char is OK [19:16:46]request: POST /json_proto HTTP/1.0 [19:16:46]Method: POST [19:16:46]URL: /json_proto [19:16:46]Method is POST - this is cgi request [19:16:46]url: /json_proto [19:16:46]query_string will be loaded in cgi processing [19:16:46]execute_cgi json_proto POST (null) [19:16:46]execute_cgi path=json_proto method=POST [19:16:46]POST find Content-Length [19:16:46]Host: 172.17.62.67:8080 [19:16:46]Content-Length: 682 [19:16:46]Content-Type: application/json [19:16:46] [19:16:46]POST finish read [19:16:46]Found Content-Length = 682 [19:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:46]execute_script... [19:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:46]POST & json_proto [19:16:46]process_json_proto [19:16:46]json parsed OK: [19:16:46]protocol is kg_v1.0 [19:16:46]action value=close_receipt [19:16:46]process_action close_receipt [19:16:46]cmd_close_receipt [19:16:46]MH_GetDate [19:16:46]Write to MH i2c: F0 00 00 C6 02 B7 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: F0 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: F0 05 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: F0 05 00 C6 02 00 9F 58 EF 65 07 [19:16:46]GetLastDocTimeStamp 1710184158 [19:16:46]current date 1710184607 [19:16:46]FM_GetShiftState [19:16:46]SAM_PROTO_GetShiftState [19:16:46]wFMCommunicate request_size=4 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 13 01 00 [19:16:46]Write to MH i2c: E2 08 00 C7 02 80 13 01 00 00 00 00 00 46 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 0E 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 0E 00 C7 02 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 E2 [19:16:46]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:16:46]wFMCommunicate OK [19:16:46]SAM_PROTO_GetShiftState done [19:16:46]FM_GetShiftState done [19:16:46]opened in 1710115571 [19:16:46]opened+sec_in_day 1710201971 [19:16:46]quantity*price = 100011 [19:16:46]sum+1 = 100012 [19:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 189 11.03.2024 19:16 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95014 ФПД: 136971231855857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T191647&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95014&fm=136971231855857&tin=02508201610067®Number=0000000000090555&sum=100000 [19:16:47]StoreToDocumentArchive [19:16:47]shift 326 fd 95014 [19:16:47]save to /storage/0326/doc_00095014 [19:16:47]save last doc name /storage/0326/doc_00095014 to /storage/kkm_last_doc_name [19:16:47]save OK [19:16:47]Clear old archive folders... [19:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:47]tlvbuf is 01A2AD90 [19:16:47]SAM_PROTO_ClearQueue [19:16:47]wFMCommunicate request_size=4 [19:16:47]MH_SAM_APDU [19:16:47]CAPDU: 80 09 00 00 [19:16:47]Write to MH i2c: E2 08 00 D4 02 80 09 00 00 00 00 00 00 48 [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:47]Read from MH i2c: E2 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: E2 03 00 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [19:16:47]RAPDU: 90 00 [19:16:47]wFMCommunicate OK [19:16:47]SAM_PROTO_ClearQueue done [19:16:47]KKMCreateOFDPacket [19:16:47]OFDProtocolAddRootSTLVToBuf [19:16:47]FM_MakeSignedData [19:16:47]FM_MakeSignedData [19:16:47]SAM_PROTO_SignData [19:16:47]wFMCommunicate request_size=4 [19:16:47]MH_SAM_APDU [19:16:47]CAPDU: 80 0D 01 02 [19:16:47]Write to MH i2c: E2 08 00 D5 02 80 0D 01 02 00 00 00 00 50 [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:47]Read from MH i2c: E2 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: E2 03 00 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [19:16:47]RAPDU: 90 00 [19:16:47]wFMCommunicate OK [19:16:47]wFMCommunicate request_size=255 [19:16:47]MH_SAM_APDU [19:16:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9F 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 73 01 00 35 04 06 00 7C [19:16:47]Write to MH i2c: E2 02 01 D6 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9F 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 73 01 00 35 04 06 00 7C 00 00 5D [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:47]Read from MH i2c: E2 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: E2 03 00 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [19:16:47]RAPDU: 90 00 [19:16:47]wFMCommunicate OK [19:16:47]wFMCommunicate request_size=10 [19:16:47]MH_SAM_APDU [19:16:47]CAPDU: 80 0D 02 02 05 93 19 9E 84 F1 [19:16:47]Write to MH i2c: E2 0D 00 D7 02 80 0D 02 02 05 00 93 19 9E 84 F1 00 00 1C [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 03 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [19:16:48]RAPDU: 90 00 [19:16:48]wFMCommunicate OK [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 0D 03 02 [19:16:48]Write to MH i2c: E2 08 00 D8 02 80 0D 03 02 00 00 00 00 55 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 0B 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 0B 00 D8 02 00 99 25 DE F4 27 2A 09 2D 90 00 6D [19:16:48]RAPDU: 99 25 DE F4 27 2A 09 2D 90 00 [19:16:48]wFMCommunicate OK [19:16:48]SAM_PROTO_SignData done [19:16:48]FM_MakeSignedData done [19:16:48]CreateOFDProtocolMessage [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 11 00 00 [19:16:48]Write to MH i2c: E2 08 00 D9 02 80 11 00 00 00 00 00 00 55 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 17 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 17 00 D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A5 [19:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:16:48]wFMCommunicate OK [19:16:48]CreateOFDProtocolMessage done [19:16:48]OFDSenderStorePacket 95014 [19:16:48]StoreOFDPacket docnum=95014 [19:16:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EA BC 07 01 18 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9F 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 73 01 00 35 04 06 00 7C 93 19 9E 84 F1 99 25 DE F4 27 2A 09 2D [19:16:48]CheckFolder [19:16:48]dirname=/storage/ofd_packets [19:16:48]CheckFolder done [19:16:48]ProducePacketName [19:16:48]name=ofd_packets/00095014 [19:16:48]NVStorageSaveData ofd_packets/00095014 [19:16:48]File name is /storage/ofd_packets/00095014 [19:16:48]Write 301 bytes [19:16:48]NVStorageSaveData done [19:16:48]OFDSenderStorePacket done [19:16:48]KKMCreateOFDPacket done [19:16:48]NVStorageSaveData kkm_last_timestamp [19:16:48]File name is /storage/kkm_last_timestamp [19:16:48]Write 4 bytes [19:16:48]NVStorageSaveData done [19:16:48]ExternCall_PrintAddStr [19:16:48]wPrintStart [19:16:48]Write to MH i2c: 01 00 00 DA 02 DC [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 07 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 07 00 DA 02 00 80 00 00 00 FF 0F 71 [19:16:48]RasterBufferAndPrint [19:16:48]line Счет N : (1)195976 [19:16:48]line ИНН: 02508201610067 [19:16:48]line Контрольно-Кассовый Чек [19:16:48]line ПРОДАЖА [19:16:48]line ТРК (МРК, ГНК) : 42 [19:16:48]line Товар: 2710124130 [19:16:48]line Аи-92-К-5 [19:16:48]line 15.900 * 62.90 [19:16:48]line = 1000.11 [19:16:48]line НДС 12% НСП 1% [19:16:48]line > о реализуемом товаре [19:16:48]line ОКРУГЛЕНИЕ: -0.11 [19:16:48]line ИТОГО: 1000.00 [19:16:48]line Внесено: 1000.00 [19:16:48]line СДАЧА: 0.00 [19:16:48]line НСП 1% : 8.85 [19:16:48]line НДС 12% : 106.21 [19:16:48]line Наличными: 1000.00 [19:16:48]line Безнал.: 0.00 [19:16:48]line Место: АЗС № 6 "Партнер Нефть" [19:16:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:16:48]line СНО: Общий режим [19:16:48]line Чек 189 11.03.2024 19:16 [19:16:48]line Смена: 326 ФФД: 1.0 [19:16:48]line ЗНМ: 0300000009 [19:16:48]line РНМ: 0000000000090555 [19:16:48]line Версия ККМ: 001 [19:16:48]line ФМ: 0000000000874811 [19:16:48]line ФД: 95014 [19:16:48]line ФПД: 136971231855857 [19:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T191647&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95014&fm=136971231855857&tin=02508201610067®Number=0000000000090555&sum=100000 [19:16:48]OFD Sender: Processing packet 95014 [packets to send 30, broken 29] [19:16:48]ProducePacketName [19:16:48]name=ofd_packets/00095014 [19:16:48]OFD Sender: To server: pG, [19:16:48]CommunicateWithHost lk.salyk.kg:30040 [19:16:48]ConnectInit lk.salyk.kg [19:16:48]written 0, free lines is 4095 [19:16:48]Connected sock=10 [19:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EA BC 07 01 18 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9F 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 26 73 01 00 35 04 06 00 7C 93 19 9E 84 F1 99 25 DE F4 27 2A 09 2D [19:16: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 31 31 4F 00 00 00 D2 D7 47 00 52 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 31 31 10 04 04 00 26 73 01 00 F4 03 04 00 F8 03 EF 65 B6 04 01 00 00 14 AE 7F E3 E9 E7 92 12 [19:16:48]CommunicateWithHost err = 0 [19:16:48]CheckOFDResponse [19:16:48]1017 (14) - 77093643461234 [19:16:48]1041 (16) - 0000000000874811 [19:16:48]1040 (4) - 95014 [19:16:48]1012 (4) - 11.03.2024 13:15 [19:16:48]1206 (1) - 0 [19:16:48]OFD Sender: Remove packet 95014 [19:16:48]ProducePacketName [19:16:48]name=ofd_packets/00095014 [19:16:48]NVStorageDeleteData [19:16:48]Write to MH i2c: 01 00 00 05 03 08 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 07 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 07 00 05 03 00 80 00 00 00 4D 0D E9 [19:16:48]RasterBufferAndPrint [19:16:48]line [19:16:48]line [19:16:48]line [19:16:48]line [19:16:48]line [19:16:48]written 0, free lines is 3411 [19:16:48]process_action close_receipt done [19:16:48]requested_data is exist [19:16:48]produce_requested_data [19:16:48]requested_item fm.sn is exist - process it [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 11 00 00 [19:16:48]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 [19:16:49]MH_I2C_Read... [19:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:49]Read from MH i2c: E2 17 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 17 00 0C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D9 [19:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:16:49]wFMCommunicate OK [19:16:49]requested_item fd.num is exist - process it [19:16:49]SAM_PROTO_GetFieldsCounters [19:16:49]wFMCommunicate request_size=4 [19:16:49]MH_SAM_APDU [19:16:49]CAPDU: 80 13 00 00 [19:16:49]Write to MH i2c: E2 08 00 0D 03 80 13 00 00 00 00 00 00 8C [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:49]Read from MH i2c: E2 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 62 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 62 00 0D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 26 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [19: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 26 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:49]wFMCommunicate OK [19:16:49]SAM_PROTO_GetFieldsCounters done [19:16:49]requested_item shift.num is exist - process it [19:16:49]requested_item shift.opened is exist - process it [19:16:49]req_shift_opened [19:16:49]FM_GetShiftState [19:16:49]SAM_PROTO_GetShiftState [19:16:49]wFMCommunicate request_size=4 [19:16:49]MH_SAM_APDU [19:16:49]CAPDU: 80 13 01 00 [19:16:49]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]OFD Sender: No OFD packet to send [19:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:49]Read from MH i2c: E2 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 0E 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2A [19:16:49]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:16:49]wFMCommunicate OK [19:16:49]SAM_PROTO_GetShiftState done [19:16:49]FM_GetShiftState done [19:16:49]req_shift_opened done [19:16:49]requested_item shift.open_date is exist - process it [19:16:49]req_shift_open_date [19:16:49]req_shift_open_date done [19:16:49]produce_requested_data done [19:16:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95014,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:16:49]process_action_free close_receipt [19:16:49]json_value_free [19:16:49]json_value_free done [19:16:49]process_json_proto returns [19:16:49]Send response to host [19:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95014,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:16:49]free response buf [19:16:49]execute_script done [19:16:49]execute_script returns [19:16:49]free content buf [19:16:49]Sock 8.Close socket [19:16:49]Sock 8.Thread stoped [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:20]accept exits with 9 [19:17:20]New connection [19:17:20]New thread 3066813796 created [19:17:20]Thread 3066957156 joined [19:17:20]Waiting for new connection... [19:17:20] Sock 9.Parse request [19:17:20]Sock 9.Check first char [19:17:20]Sock 9.First char is OK [19:17:20]request: POST /json_proto HTTP/1.0 [19:17:20]Method: POST [19:17:20]URL: /json_proto [19:17:20]Method is POST - this is cgi request [19:17:20]url: /json_proto [19:17:20]query_string will be loaded in cgi processing [19:17:20]execute_cgi json_proto POST (null) [19:17:20]execute_cgi path=json_proto method=POST [19:17:20]POST find Content-Length [19:17:20]Host: 172.17.62.67:8080 [19:17:20]Content-Length: 816 [19:17:20]Content-Type: application/json [19:17:20] [19:17:20]POST finish read [19:17:20]Found Content-Length = 816 [19:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:20]execute_script... [19:17:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:20]POST & json_proto [19:17:20]process_json_proto [19:17:20]json parsed OK: [19:17:20]protocol is kg_v1.0 [19:17:20]action value=close_receipt [19:17:20]process_action close_receipt [19:17:20]cmd_close_receipt [19:17:20]MH_GetDate [19:17:20]Write to MH i2c: F0 00 00 0F 03 01 [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: F0 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: F0 05 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: F0 05 00 0F 03 00 C1 58 EF 65 73 [19:17:20]GetLastDocTimeStamp 1710184607 [19:17:20]current date 1710184641 [19:17:20]FM_GetShiftState [19:17:20]SAM_PROTO_GetShiftState [19:17:20]wFMCommunicate request_size=4 [19:17:20]MH_SAM_APDU [19:17:20]CAPDU: 80 13 01 00 [19:17:20]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:20]Read from MH i2c: E2 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 0E 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2C [19:17:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:17:20]wFMCommunicate OK [19:17:20]SAM_PROTO_GetShiftState done [19:17:20]FM_GetShiftState done [19:17:20]opened in 1710115571 [19:17:20]opened+sec_in_day 1710201971 [19:17:20]quantity*price = 40004 [19:17:20]sum+1 = 40005 [19:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.04 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 190 11.03.2024 19:17 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95015 ФПД: 29339560478224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T191721&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95015&fm=29339560478224&tin=02508201610067®Number=0000000000090555&sum=40004 [19:17:21]StoreToDocumentArchive [19:17:21]shift 326 fd 95015 [19:17:21]save to /storage/0326/doc_00095015 [19:17:21]save last doc name /storage/0326/doc_00095015 to /storage/kkm_last_doc_name [19:17:21]save OK [19:17:21]Clear old archive folders... [19:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:21]tlvbuf is 01A00760 [19:17:21]SAM_PROTO_ClearQueue [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 09 00 00 [19:17:21]Write to MH i2c: E2 08 00 1D 03 80 09 00 00 00 00 00 00 92 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]SAM_PROTO_ClearQueue done [19:17:21]KKMCreateOFDPacket [19:17:21]OFDProtocolAddRootSTLVToBuf [19:17:21]FM_MakeSignedData [19:17:21]FM_MakeSignedData [19:17:21]SAM_PROTO_SignData [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 0D 01 02 [19:17:21]Write to MH i2c: E2 08 00 1E 03 80 0D 01 02 00 00 00 00 9A [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]wFMCommunicate request_size=255 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 C1 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 73 01 00 35 04 06 00 1A [19:17:21]Write to MH i2c: E2 02 01 1F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 C1 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 73 01 00 35 04 06 00 1A 00 00 0C [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]wFMCommunicate request_size=10 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 0D 02 02 05 AF 26 14 86 10 [19:17:21]Write to MH i2c: E2 0D 00 20 03 80 0D 02 02 05 00 AF 26 14 86 10 00 00 26 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 0D 03 02 [19:17:21]Write to MH i2c: E2 08 00 21 03 80 0D 03 02 00 00 00 00 9F [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 0B 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 0B 00 21 03 00 DA 8A FE FC 98 29 B4 F9 90 00 6C [19:17:21]RAPDU: DA 8A FE FC 98 29 B4 F9 90 00 [19:17:21]wFMCommunicate OK [19:17:21]SAM_PROTO_SignData done [19:17:21]FM_MakeSignedData done [19:17:21]CreateOFDProtocolMessage [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 11 00 00 [19:17:21]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EF [19:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:17:21]wFMCommunicate OK [19:17:21]CreateOFDProtocolMessage done [19:17:21]OFDSenderStorePacket 95015 [19:17:21]StoreOFDPacket docnum=95015 [19:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 75 89 07 01 77 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 C1 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 73 01 00 35 04 06 00 1A AF 26 14 86 10 DA 8A FE FC 98 29 B4 F9 [19:17:21]CheckFolder [19:17:21]dirname=/storage/ofd_packets [19:17:21]CheckFolder done [19:17:21]ProducePacketName [19:17:21]name=ofd_packets/00095015 [19:17:21]NVStorageSaveData ofd_packets/00095015 [19:17:21]File name is /storage/ofd_packets/00095015 [19:17:21]Write 301 bytes [19:17:21]NVStorageSaveData done [19:17:21]OFDSenderStorePacket done [19:17:21]KKMCreateOFDPacket done [19:17:21]NVStorageSaveData kkm_last_timestamp [19:17:21]File name is /storage/kkm_last_timestamp [19:17:21]Write 4 bytes [19:17:21]NVStorageSaveData done [19:17:21]ExternCall_PrintAddStr [19:17:21]wPrintStart [19:17:21]Write to MH i2c: 01 00 00 23 03 26 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 23 03 00 80 00 00 00 FF 0F BB [19:17:21]RasterBufferAndPrint [19:17:21]line Счет N : (1)195975 [19:17:21]line ИНН: 02508201610067 [19:17:21]line Контрольно-Кассовый Чек [19:17:21]line ПРОДАЖА [19:17:21]line ТРК (МРК, ГНК) : 12 [19:17:21]line Товар: 2710124130 [19:17:21]line Аи-92-К-5 [19:17:21]line 6.360 * 62.90 [19:17:21]line = 400.04 [19:17:21]line НДС 12% НСП 1% [19:17:21]line > о реализуемом товаре [19:17:21]line ИТОГО: 400.04 [19:17:21]line НСП 1% : 3.54 [19:17:21]line НДС 12% : 42.48 [19:17:21]line Наличными: 0.00 [19:17:21]line Безнал.: 400.04 [19:17:21]line Место: АЗС № 6 "Партнер Нефть" [19:17:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:17:21]line СНО: Общий режим [19:17:21]line Чек 190 11.03.2024 19:17 [19:17:21]line Смена: 326 ФФД: 1.0 [19:17:21]line ЗНМ: 0300000009 [19:17:21]line РНМ: 0000000000090555 [19:17:21]line Версия ККМ: 001 [19:17:21]line Платежная система: Бакай Банк [19:17:21]line ФМ: 0000000000874811 [19:17:21]line ФД: 95015 [19:17:21]line ФПД: 29339560478224 [19:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T191721&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95015&fm=29339560478224&tin=02508201610067®Number=0000000000090555&sum=40004 [19:17:22]OFD Sender: Processing packet 95015 [packets to send 30, broken 29] [19:17:22]ProducePacketName [19:17:22]name=ofd_packets/00095015 [19:17:22]OFD Sender: To server: pG, [19:17:22]CommunicateWithHost lk.salyk.kg:30040 [19:17:22]ConnectInit lk.salyk.kg [19:17:22]written 0, free lines is 4095 [19:17:22]Connected sock=10 [19:17:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 75 89 07 01 77 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 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 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 C1 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 27 73 01 00 35 04 06 00 1A AF 26 14 86 10 DA 8A FE FC 98 29 B4 F9 [19:17: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 31 31 4F 00 00 00 B2 A6 47 00 06 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 31 31 10 04 04 00 27 73 01 00 F4 03 04 00 19 04 EF 65 B6 04 01 00 00 7E BF F7 41 B0 3B A6 30 [19:17:22]CommunicateWithHost err = 0 [19:17:22]CheckOFDResponse [19:17:22]1017 (14) - 77093643461234 [19:17:22]1041 (16) - 0000000000874811 [19:17:22]1040 (4) - 95015 [19:17:22]1012 (4) - 11.03.2024 13:16 [19:17:22]1206 (1) - 0 [19:17:22]OFD Sender: Remove packet 95015 [19:17:22]ProducePacketName [19:17:22]name=ofd_packets/00095015 [19:17:22]NVStorageDeleteData [19:17:22]Write to MH i2c: 01 00 00 4D 03 50 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: 01 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: 01 07 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: 01 07 00 4D 03 00 80 00 00 00 6B 0D 4F [19:17:22]RasterBufferAndPrint [19:17:22]line [19:17:22]line [19:17:22]line [19:17:22]line [19:17:22]line [19:17:22]written 0, free lines is 3441 [19:17:22]process_action close_receipt done [19:17:22]requested_data is exist [19:17:22]produce_requested_data [19:17:22]requested_item fm.sn is exist - process it [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 11 00 00 [19:17:22]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 17 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 21 [19:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:17:22]wFMCommunicate OK [19:17:22]requested_item fd.num is exist - process it [19:17:22]SAM_PROTO_GetFieldsCounters [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 13 00 00 [19:17:22]Write to MH i2c: E2 08 00 55 03 80 13 00 00 00 00 00 00 D4 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 62 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 62 00 55 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 27 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [19:17:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 27 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:22]wFMCommunicate OK [19:17:22]SAM_PROTO_GetFieldsCounters done [19:17:22]requested_item shift.num is exist - process it [19:17:22]requested_item shift.opened is exist - process it [19:17:22]req_shift_opened [19:17:22]FM_GetShiftState [19:17:22]SAM_PROTO_GetShiftState [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 13 01 00 [19:17:22]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0E 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 72 [19:17:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_GetShiftState done [19:17:23]FM_GetShiftState done [19:17:23]req_shift_opened done [19:17:23]requested_item shift.open_date is exist - process it [19:17:23]req_shift_open_date [19:17:23]req_shift_open_date done [19:17:23]produce_requested_data done [19:17:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95015,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:17:23]process_action_free close_receipt [19:17:23]json_value_free [19:17:23]json_value_free done [19:17:23]process_json_proto returns [19:17:23]Send response to host [19:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95015,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:17:23]free response buf [19:17:23]execute_script done [19:17:23]execute_script returns [19:17:23]free content buf [19:17:23]Sock 9.Close socket [19:17:23]Sock 9.Thread stoped [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:41]accept exits with 8 [19:17:41]New connection [19:17:41]New thread 3066957156 created [19:17:41]Thread 3066813796 joined [19:17:41]Waiting for new connection... [19:17:41] Sock 8.Parse request [19:17:41]Sock 8.Check first char [19:17:41]Sock 8.First char is OK [19:17:41]request: POST /json_proto HTTP/1.0 [19:17:41]Method: POST [19:17:41]URL: /json_proto [19:17:41]Method is POST - this is cgi request [19:17:41]url: /json_proto [19:17:41]query_string will be loaded in cgi processing [19:17:41]execute_cgi json_proto POST (null) [19:17:41]execute_cgi path=json_proto method=POST [19:17:41]POST find Content-Length [19:17:41]Host: 172.17.62.67:8080 [19:17:41]Content-Length: 682 [19:17:41]Content-Type: application/json [19:17:41] [19:17:41]POST finish read [19:17:41]Found Content-Length = 682 [19:17:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:41]execute_script... [19:17:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:41]POST & json_proto [19:17:41]process_json_proto [19:17:41]json parsed OK: [19:17:41]protocol is kg_v1.0 [19:17:41]action value=close_receipt [19:17:41]process_action close_receipt [19:17:41]cmd_close_receipt [19:17:41]MH_GetDate [19:17:41]Write to MH i2c: F0 00 00 57 03 49 [19:17:41]Write i2c OK [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: F0 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: F0 05 00 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: F0 05 00 57 03 00 D6 58 EF 65 D0 [19:17:41]GetLastDocTimeStamp 1710184641 [19:17:41]current date 1710184662 [19:17:41]FM_GetShiftState [19:17:41]SAM_PROTO_GetShiftState [19:17:41]wFMCommunicate request_size=4 [19:17:41]MH_SAM_APDU [19:17:41]CAPDU: 80 13 01 00 [19:17:41]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [19:17:41]Write i2c OK [19:17:41]MH_I2C_Read... [19:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:41]Read from MH i2c: E2 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 0E 00 [19:17:41]MH_I2C_Read... [19:17:41]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 74 [19:17:41]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:17:41]wFMCommunicate OK [19:17:41]SAM_PROTO_GetShiftState done [19:17:41]FM_GetShiftState done [19:17:41]opened in 1710115571 [19:17:41]opened+sec_in_day 1710201971 [19:17:41]quantity*price = 100011 [19:17:41]sum+1 = 100012 [19:17:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 191 11.03.2024 19:17 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95016 ФПД: 74332849888041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T191742&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95016&fm=74332849888041&tin=02508201610067®Number=0000000000090555&sum=100000 [19:17:43]StoreToDocumentArchive [19:17:43]shift 326 fd 95016 [19:17:43]save to /storage/0326/doc_00095016 [19:17:43]save last doc name /storage/0326/doc_00095016 to /storage/kkm_last_doc_name [19:17:43]save OK [19:17:43]Clear old archive folders... [19:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:43]tlvbuf is 01A424D0 [19:17:43]SAM_PROTO_ClearQueue [19:17:43]wFMCommunicate request_size=4 [19:17:43]MH_SAM_APDU [19:17:43]CAPDU: 80 09 00 00 [19:17:43]Write to MH i2c: E2 08 00 65 03 80 09 00 00 00 00 00 00 DA [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:43]Read from MH i2c: E2 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 03 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [19:17:43]RAPDU: 90 00 [19:17:43]wFMCommunicate OK [19:17:43]SAM_PROTO_ClearQueue done [19:17:43]KKMCreateOFDPacket [19:17:43]OFDProtocolAddRootSTLVToBuf [19:17:43]FM_MakeSignedData [19:17:43]FM_MakeSignedData [19:17:43]SAM_PROTO_SignData [19:17:43]wFMCommunicate request_size=4 [19:17:43]MH_SAM_APDU [19:17:43]CAPDU: 80 0D 01 02 [19:17:43]Write to MH i2c: E2 08 00 66 03 80 0D 01 02 00 00 00 00 E2 [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:43]Read from MH i2c: E2 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 03 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [19:17:43]RAPDU: 90 00 [19:17:43]wFMCommunicate OK [19:17:43]wFMCommunicate request_size=255 [19:17:43]MH_SAM_APDU [19:17:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 D6 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 73 01 00 35 04 06 00 43 [19:17:43]Write to MH i2c: E2 02 01 67 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 D6 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 73 01 00 35 04 06 00 43 00 00 F1 [19:17:43]OFD Sender: No OFD packet to send [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:43]Read from MH i2c: E2 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 03 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [19:17:43]RAPDU: 90 00 [19:17:43]wFMCommunicate OK [19:17:43]wFMCommunicate request_size=10 [19:17:43]MH_SAM_APDU [19:17:43]CAPDU: 80 0D 02 02 05 9A F7 1C DB 29 [19:17:43]Write to MH i2c: E2 0D 00 68 03 80 0D 02 02 05 00 9A F7 1C DB 29 00 00 A0 [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:43]Read from MH i2c: E2 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 03 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [19:17:43]RAPDU: 90 00 [19:17:43]wFMCommunicate OK [19:17:43]wFMCommunicate request_size=4 [19:17:43]MH_SAM_APDU [19:17:43]CAPDU: 80 0D 03 02 [19:17:43]Write to MH i2c: E2 08 00 69 03 80 0D 03 02 00 00 00 00 E7 [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:43]Read from MH i2c: E2 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 0B 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 0B 00 69 03 00 03 27 F0 8B ED CA 32 D0 90 00 46 [19:17:43]RAPDU: 03 27 F0 8B ED CA 32 D0 90 00 [19:17:43]wFMCommunicate OK [19:17:43]SAM_PROTO_SignData done [19:17:43]FM_MakeSignedData done [19:17:43]CreateOFDProtocolMessage [19:17:43]wFMCommunicate request_size=4 [19:17:43]MH_SAM_APDU [19:17:43]CAPDU: 80 11 00 00 [19:17:43]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:43]Read from MH i2c: E2 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 17 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [19:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:17:43]wFMCommunicate OK [19:17:43]CreateOFDProtocolMessage done [19:17:43]OFDSenderStorePacket 95016 [19:17:43]StoreOFDPacket docnum=95016 [19:17:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B8 D8 07 01 DC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 D6 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 73 01 00 35 04 06 00 43 9A F7 1C DB 29 03 27 F0 8B ED CA 32 D0 [19:17:43]CheckFolder [19:17:43]dirname=/storage/ofd_packets [19:17:43]CheckFolder done [19:17:43]ProducePacketName [19:17:43]name=ofd_packets/00095016 [19:17:43]NVStorageSaveData ofd_packets/00095016 [19:17:43]File name is /storage/ofd_packets/00095016 [19:17:43]Write 301 bytes [19:17:43]NVStorageSaveData done [19:17:43]OFDSenderStorePacket done [19:17:43]KKMCreateOFDPacket done [19:17:43]NVStorageSaveData kkm_last_timestamp [19:17:43]File name is /storage/kkm_last_timestamp [19:17:43]Write 4 bytes [19:17:43]NVStorageSaveData done [19:17:43]ExternCall_PrintAddStr [19:17:43]wPrintStart [19:17:43]Write to MH i2c: 01 00 00 6B 03 6E [19:17:43]Write i2c OK [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: 01 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: 01 07 00 [19:17:43]MH_I2C_Read... [19:17:43]Read from MH i2c: 01 07 00 6B 03 00 80 00 00 00 FF 0F 03 [19:17:43]RasterBufferAndPrint [19:17:43]line Счет N : (1)195977 [19:17:43]line ИНН: 02508201610067 [19:17:43]line Контрольно-Кассовый Чек [19:17:43]line ПРОДАЖА [19:17:43]line ТРК (МРК, ГНК) : 22 [19:17:43]line Товар: 2710124130 [19:17:43]line Аи-92-К-5 [19:17:43]line 15.900 * 62.90 [19:17:43]line = 1000.11 [19:17:43]line НДС 12% НСП 1% [19:17:43]line > о реализуемом товаре [19:17:43]line ОКРУГЛЕНИЕ: -0.11 [19:17:43]line ИТОГО: 1000.00 [19:17:43]line Внесено: 1000.00 [19:17:43]line СДАЧА: 0.00 [19:17:43]line НСП 1% : 8.85 [19:17:43]line НДС 12% : 106.21 [19:17:43]line Наличными: 1000.00 [19:17:43]line Безнал.: 0.00 [19:17:43]line Место: АЗС № 6 "Партнер Нефть" [19:17:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:17:43]line СНО: Общий режим [19:17:43]line Чек 191 11.03.2024 19:17 [19:17:43]line Смена: 326 ФФД: 1.0 [19:17:43]line ЗНМ: 0300000009 [19:17:43]line РНМ: 0000000000090555 [19:17:43]line Версия ККМ: 001 [19:17:43]line ФМ: 0000000000874811 [19:17:43]line ФД: 95016 [19:17:43]line ФПД: 74332849888041 [19:17:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T191742&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95016&fm=74332849888041&tin=02508201610067®Number=0000000000090555&sum=100000 [19:17:43]OFD Sender: Processing packet 95016 [packets to send 30, broken 29] [19:17:43]ProducePacketName [19:17:43]name=ofd_packets/00095016 [19:17:43]OFD Sender: To server: pG, [19:17:43]CommunicateWithHost lk.salyk.kg:30040 [19:17:43]ConnectInit lk.salyk.kg [19:17:43]written 0, free lines is 4095 [19:17:44]Connected sock=10 [19:17:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B8 D8 07 01 DC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 D6 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 28 73 01 00 35 04 06 00 43 9A F7 1C DB 29 03 27 F0 8B ED CA 32 D0 [19:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AA B1 47 00 70 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 31 31 10 04 04 00 28 73 01 00 F4 03 04 00 2F 04 EF 65 B6 04 01 00 00 2F 23 33 99 94 0B 2F 5A [19:17:44]CommunicateWithHost err = 0 [19:17:44]CheckOFDResponse [19:17:44]1017 (14) - 77093643461234 [19:17:44]1041 (16) - 0000000000874811 [19:17:44]1040 (4) - 95016 [19:17:44]1012 (4) - 11.03.2024 13:16 [19:17:44]1206 (1) - 0 [19:17:44]OFD Sender: Remove packet 95016 [19:17:44]ProducePacketName [19:17:44]name=ofd_packets/00095016 [19:17:44]NVStorageDeleteData [19:17:44]Write to MH i2c: 01 00 00 96 03 99 [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: 01 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: 01 07 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: 01 07 00 96 03 00 80 00 00 00 59 0D 86 [19:17:44]RasterBufferAndPrint [19:17:44]line [19:17:44]line [19:17:44]line [19:17:44]line [19:17:44]line [19:17:44]written 0, free lines is 3421 [19:17:44]process_action close_receipt done [19:17:44]requested_data is exist [19:17:44]produce_requested_data [19:17:44]requested_item fm.sn is exist - process it [19:17:44]wFMCommunicate request_size=4 [19:17:44]MH_SAM_APDU [19:17:44]CAPDU: 80 11 00 00 [19:17:44]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:44]Read from MH i2c: E2 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 17 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6A [19:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:17:44]wFMCommunicate OK [19:17:44]requested_item fd.num is exist - process it [19:17:44]SAM_PROTO_GetFieldsCounters [19:17:44]wFMCommunicate request_size=4 [19:17:44]MH_SAM_APDU [19:17:44]CAPDU: 80 13 00 00 [19:17:44]Write to MH i2c: E2 08 00 9E 03 80 13 00 00 00 00 00 00 1D [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:44]Read from MH i2c: E2 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 62 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 62 00 9E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 28 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [19:17: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 28 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:44]wFMCommunicate OK [19:17:44]SAM_PROTO_GetFieldsCounters done [19:17:44]requested_item shift.num is exist - process it [19:17:44]requested_item shift.opened is exist - process it [19:17:44]req_shift_opened [19:17:44]FM_GetShiftState [19:17:44]SAM_PROTO_GetShiftState [19:17:44]wFMCommunicate request_size=4 [19:17:44]MH_SAM_APDU [19:17:44]CAPDU: 80 13 01 00 [19:17:44]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [19:17:44]Write i2c OK [19:17:44]MH_I2C_Read... [19:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:44]Read from MH i2c: E2 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 0E 00 [19:17:44]MH_I2C_Read... [19:17:44]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BB [19:17:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:17:44]wFMCommunicate OK [19:17:44]SAM_PROTO_GetShiftState done [19:17:44]FM_GetShiftState done [19:17:44]req_shift_opened done [19:17:44]requested_item shift.open_date is exist - process it [19:17:44]req_shift_open_date [19:17:44]req_shift_open_date done [19:17:44]produce_requested_data done [19:17:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95016,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:17:44]process_action_free close_receipt [19:17:44]json_value_free [19:17:44]json_value_free done [19:17:44]process_json_proto returns [19:17:44]Send response to host [19:17:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95016,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:17:44]free response buf [19:17:44]execute_script done [19:17:44]execute_script returns [19:17:44]free content buf [19:17:44]Sock 8.Close socket [19:17:44]Sock 8.Thread stoped [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:01]accept exits with 9 [19:18:01]New connection [19:18:01]New thread 3066813796 created [19:18:01]Thread 3066957156 joined [19:18:01]Waiting for new connection... [19:18:01] Sock 9.Parse request [19:18:01]Sock 9.Check first char [19:18:01]Sock 9.First char is OK [19:18:01]request: POST /json_proto HTTP/1.0 [19:18:01]Method: POST [19:18:01]URL: /json_proto [19:18:01]Method is POST - this is cgi request [19:18:01]url: /json_proto [19:18:01]query_string will be loaded in cgi processing [19:18:01]execute_cgi json_proto POST (null) [19:18:01]execute_cgi path=json_proto method=POST [19:18:01]POST find Content-Length [19:18:01]Host: 172.17.62.67:8080 [19:18:01]Content-Length: 631 [19:18:01]Content-Type: application/json [19:18:01] [19:18:01]POST finish read [19:18:01]Found Content-Length = 631 [19:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11525", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:01]execute_script... [19:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11525", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:01]POST & json_proto [19:18:01]process_json_proto [19:18:01]json parsed OK: [19:18:01]protocol is kg_v1.0 [19:18:01]action value=close_receipt [19:18:01]process_action close_receipt [19:18:01]cmd_close_receipt [19:18:01]MH_GetDate [19:18:01]Write to MH i2c: F0 00 00 A0 03 92 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: F0 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: F0 05 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: F0 05 00 A0 03 00 EA 58 EF 65 2D [19:18:01]GetLastDocTimeStamp 1710184662 [19:18:01]current date 1710184682 [19:18:01]FM_GetShiftState [19:18:01]SAM_PROTO_GetShiftState [19:18:01]wFMCommunicate request_size=4 [19:18:01]MH_SAM_APDU [19:18:01]CAPDU: 80 13 01 00 [19:18:01]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:01]Read from MH i2c: E2 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 0E 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BD [19:18:01]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:18:01]wFMCommunicate OK [19:18:01]SAM_PROTO_GetShiftState done [19:18:01]FM_GetShiftState done [19:18:01]opened in 1710115571 [19:18:01]opened+sec_in_day 1710201971 [19:18:01]quantity*price = 3500 [19:18:01]sum+1 = 3501 [19:18:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 192 11.03.2024 19:18 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95017 ФПД: 58822532309210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T191802&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95017&fm=58822532309210&tin=02508201610067®Number=0000000000090555&sum=3500 0 [19:18:02]StoreToDocumentArchive [19:18:02]shift 326 fd 95017 [19:18:02]save to /storage/0326/doc_00095017 [19:18:02]save last doc name /storage/0326/doc_00095017 to /storage/kkm_last_doc_name [19:18:02]save OK [19:18:02]Clear old archive folders... [19:18:02]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:18:02]tlvbuf is 019FDF00 [19:18:02]SAM_PROTO_ClearQueue [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 09 00 00 [19:18:02]Write to MH i2c: E2 08 00 AE 03 80 09 00 00 00 00 00 00 23 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 03 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [19:18:02]RAPDU: 90 00 [19:18:02]wFMCommunicate OK [19:18:02]SAM_PROTO_ClearQueue done [19:18:02]KKMCreateOFDPacket [19:18:02]OFDProtocolAddRootSTLVToBuf [19:18:02]FM_MakeSignedData [19:18:02]FM_MakeSignedData [19:18:02]SAM_PROTO_SignData [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 0D 01 02 [19:18:02]Write to MH i2c: E2 08 00 AF 03 80 0D 01 02 00 00 00 00 2B [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 03 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [19:18:02]RAPDU: 90 00 [19:18:02]wFMCommunicate OK [19:18:02]wFMCommunicate request_size=255 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 EA 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:18:02]Write to MH i2c: E2 02 01 B0 03 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 EA 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 9B [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 03 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [19:18:02]RAPDU: 90 00 [19:18:02]wFMCommunicate OK [19:18:02]wFMCommunicate request_size=30 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 0D 02 02 19 30 38 37 34 38 31 31 10 04 04 00 29 73 01 00 35 04 06 00 35 7F B0 24 A0 DA [19:18:02]Write to MH i2c: E2 21 00 B1 03 80 0D 02 02 19 00 30 38 37 34 38 31 31 10 04 04 00 29 73 01 00 35 04 06 00 35 7F B0 24 A0 DA 00 00 C3 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 03 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [19:18:02]RAPDU: 90 00 [19:18:02]wFMCommunicate OK [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 0D 03 02 [19:18:02]Write to MH i2c: E2 08 00 B2 03 80 0D 03 02 00 00 00 00 30 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 0B 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 0B 00 B2 03 00 CC B1 AE 5A 78 16 BA C1 90 00 BF [19:18:02]RAPDU: CC B1 AE 5A 78 16 BA C1 90 00 [19:18:02]wFMCommunicate OK [19:18:02]SAM_PROTO_SignData done [19:18:02]FM_MakeSignedData done [19:18:02]CreateOFDProtocolMessage [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 11 00 00 [19:18:02]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 80 [19:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:18:02]wFMCommunicate OK [19:18:02]CreateOFDProtocolMessage done [19:18:02]OFDSenderStorePacket 95017 [19:18:02]StoreOFDPacket docnum=95017 [19:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 23 01 00 00 53 02 1B 01 E0 14 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 EA 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 29 73 01 00 35 04 06 00 35 7F B0 24 A0 DA CC B1 AE 5A 78 16 BA C1 [19:18:02]CheckFolder [19:18:02]dirname=/storage/ofd_packets [19:18:02]CheckFolder done [19:18:02]ProducePacketName [19:18:02]name=ofd_packets/00095017 [19:18:02]NVStorageSaveData ofd_packets/00095017 [19:18:02]File name is /storage/ofd_packets/00095017 [19:18:02]Write 321 bytes [19:18:02]NVStorageSaveData done [19:18:02]OFDSenderStorePacket done [19:18:02]KKMCreateOFDPacket done [19:18:02]NVStorageSaveData kkm_last_timestamp [19:18:02]File name is /storage/kkm_last_timestamp [19:18:02]Write 4 bytes [19:18:02]NVStorageSaveData done [19:18:02]ExternCall_PrintAddStr [19:18:02]wPrintStart [19:18:02]Write to MH i2c: 01 00 00 B4 03 B7 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 B4 03 00 80 00 00 00 FF 0F 4C [19:18:02]RasterBufferAndPrint [19:18:02]line Счет N : (3)11525 [19:18:02]line ИНН: 02508201610067 [19:18:02]line Контрольно-Кассовый Чек [19:18:02]line ПРОДАЖА [19:18:02]line Товар: 4700000160211 [19:18:02]line Вода Легенда 0,5л [19:18:02]line 1.000 * 35.00 [19:18:02]line = 35.00 [19:18:02]line НДС 12% НСП 1% [19:18:02]line > о реализуемом товаре [19:18:02]line ИТОГО: 35.00 [19:18:02]line НСП 1% : 0.31 [19:18:02]line НДС 12% : 3.72 [19:18:02]line Наличными: 35.00 [19:18:02]line Безнал.: 0.00 [19:18:02]line Место: АЗС № 6 "Партнер Нефть" [19:18:02]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:18:02]line СНО: Общий режим [19:18:02]line Чек 192 11.03.2024 19:18 [19:18:02]line Смена: 326 ФФД: 1.0 [19:18:02]line ЗНМ: 0300000009 [19:18:02]line РНМ: 0000000000090555 [19:18:02]line Версия ККМ: 001 [19:18:02]line ФМ: 0000000000874811 [19:18:02]line ФД: 95017 [19:18:02]line ФПД: 58822532309210 [19:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T191802&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95017&fm=58822532309210&tin=02508201610067®Number=0000000000090555&sum=3500 [19:18:03]line 0 [19:18:03]OFD Sender: Processing packet 95017 [packets to send 30, broken 29] [19:18:03]ProducePacketName [19:18:03]name=ofd_packets/00095017 [19:18:03]OFD Sender: To server: pG, [19:18:03]CommunicateWithHost lk.salyk.kg:30040 [19:18:03]ConnectInit lk.salyk.kg [19:18:03]written 0, free lines is 4095 [19:18:03]Connected sock=10 [19:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 23 01 00 00 53 02 1B 01 E0 14 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 EA 58 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 29 73 01 00 35 04 06 00 35 7F B0 24 A0 DA CC B1 AE 5A 78 16 BA C1 [19:18: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 31 31 4F 00 00 00 09 65 47 00 AC 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 29 73 01 00 F4 03 04 00 42 04 EF 65 B6 04 01 00 00 6A 47 FB 65 30 9F 8B 9B [19:18:03]CommunicateWithHost err = 0 [19:18:03]CheckOFDResponse [19:18:03]1017 (14) - 77093643461234 [19:18:03]1041 (16) - 0000000000874811 [19:18:03]1040 (4) - 95017 [19:18:03]1012 (4) - 11.03.2024 13:16 [19:18:03]1206 (1) - 0 [19:18:03]OFD Sender: Remove packet 95017 [19:18:03]ProducePacketName [19:18:03]name=ofd_packets/00095017 [19:18:03]NVStorageDeleteData [19:18:03]Write to MH i2c: 01 00 00 DC 03 DF [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: 01 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: 01 07 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: 01 07 00 DC 03 00 80 00 00 00 73 0D E6 [19:18:03]RasterBufferAndPrint [19:18:03]line [19:18:03]line [19:18:03]line [19:18:03]line [19:18:03]line [19:18:03]written 0, free lines is 3451 [19:18:03]process_action close_receipt done [19:18:03]requested_data is exist [19:18:03]produce_requested_data [19:18:03]requested_item fm.sn is exist - process it [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 11 00 00 [19:18:03]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 17 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B0 [19:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:18:03]wFMCommunicate OK [19:18:03]requested_item fd.num is exist - process it [19:18:03]SAM_PROTO_GetFieldsCounters [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 13 00 00 [19:18:03]Write to MH i2c: E2 08 00 E4 03 80 13 00 00 00 00 00 00 63 [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 62 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 62 00 E4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 29 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [19:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 29 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:03]wFMCommunicate OK [19:18:03]SAM_PROTO_GetFieldsCounters done [19:18:03]requested_item shift.num is exist - process it [19:18:03]requested_item shift.opened is exist - process it [19:18:03]req_shift_opened [19:18:03]FM_GetShiftState [19:18:03]SAM_PROTO_GetShiftState [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 13 01 00 [19:18:03]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 0E 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 01 [19:18:03]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:18:03]wFMCommunicate OK [19:18:03]SAM_PROTO_GetShiftState done [19:18:03]FM_GetShiftState done [19:18:03]req_shift_opened done [19:18:03]requested_item shift.open_date is exist - process it [19:18:03]req_shift_open_date [19:18:03]req_shift_open_date done [19:18:03]produce_requested_data done [19:18:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95017,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:18:03]process_action_free close_receipt [19:18:03]json_value_free [19:18:03]json_value_free done [19:18:03]process_json_proto returns [19:18:03]Send response to host [19:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95017,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:18:03]free response buf [19:18:03]execute_script done [19:18:03]execute_script returns [19:18:03]free content buf [19:18:03]Sock 9.Close socket [19:18:03]Sock 9.Thread stoped [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:31]accept exits with 8 [19:25:31]New connection [19:25:31]New thread 3066957156 created [19:25:31]Thread 3066813796 joined [19:25:31]Waiting for new connection... [19:25:31] Sock 8.Parse request [19:25:31]Sock 8.Check first char [19:25:31]Sock 8.First char is OK [19:25:31]request: POST /json_proto HTTP/1.0 [19:25:31]Method: POST [19:25:31]URL: /json_proto [19:25:31]Method is POST - this is cgi request [19:25:31]url: /json_proto [19:25:31]query_string will be loaded in cgi processing [19:25:31]execute_cgi json_proto POST (null) [19:25:31]execute_cgi path=json_proto method=POST [19:25:31]POST find Content-Length [19:25:31]Host: 172.17.62.67:8080 [19:25:31]Content-Length: 670 [19:25:31]Content-Type: application/json [19:25:31] [19:25:31]POST finish read [19:25:31]Found Content-Length = 670 [19:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:31]execute_script... [19:25: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)195978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 6.260, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:31]POST & json_proto [19:25:31]process_json_proto [19:25:31]json parsed OK: [19:25:31]protocol is kg_v1.0 [19:25:31]action value=close_receipt [19:25:31]process_action close_receipt [19:25:31]cmd_close_receipt [19:25:31]MH_GetDate [19:25:31]Write to MH i2c: F0 00 00 E6 03 D8 [19:25:31]Write i2c OK [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: F0 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: F0 05 00 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: F0 05 00 E6 03 00 AC 5A EF 65 37 [19:25:31]GetLastDocTimeStamp 1710184682 [19:25:31]current date 1710185132 [19:25:31]FM_GetShiftState [19:25:31]SAM_PROTO_GetShiftState [19:25:31]wFMCommunicate request_size=4 [19:25:31]MH_SAM_APDU [19:25:31]CAPDU: 80 13 01 00 [19:25:31]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [19:25:31]Write i2c OK [19:25:31]MH_I2C_Read... [19:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:31]Read from MH i2c: E2 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 0E 00 [19:25:31]MH_I2C_Read... [19:25:31]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 03 [19:25:31]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:25:31]wFMCommunicate OK [19:25:31]SAM_PROTO_GetShiftState done [19:25:31]FM_GetShiftState done [19:25:31]opened in 1710115571 [19:25:31]opened+sec_in_day 1710201971 [19:25:31]quantity*price = 40001 [19:25:31]sum+1 = 40002 [19:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 193 11.03.2024 19:25 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95018 ФПД: 53864762974066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T192532&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95018&fm=53864762974066&tin=02508201610067®Number=0000000000090555&sum=40000 [19:25:32]StoreToDocumentArchive [19:25:32]shift 326 fd 95018 [19:25:32]save to /storage/0326/doc_00095018 [19:25:32]save last doc name /storage/0326/doc_00095018 to /storage/kkm_last_doc_name [19:25:32]save OK [19:25:32]Clear old archive folders... [19:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:25:32]tlvbuf is 01A3F100 [19:25:32]SAM_PROTO_ClearQueue [19:25:32]wFMCommunicate request_size=4 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 09 00 00 [19:25:32]Write to MH i2c: E2 08 00 F4 03 80 09 00 00 00 00 00 00 69 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 03 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [19:25:32]RAPDU: 90 00 [19:25:32]wFMCommunicate OK [19:25:32]SAM_PROTO_ClearQueue done [19:25:32]KKMCreateOFDPacket [19:25:32]OFDProtocolAddRootSTLVToBuf [19:25:32]FM_MakeSignedData [19:25:32]FM_MakeSignedData [19:25:32]SAM_PROTO_SignData [19:25:32]wFMCommunicate request_size=4 [19:25:32]MH_SAM_APDU [19:25:32]CAPDU: 80 0D 01 02 [19:25:32]Write to MH i2c: E2 08 00 F5 03 80 0D 01 02 00 00 00 00 71 [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:32]Read from MH i2c: E2 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 03 00 [19:25:32]MH_I2C_Read... [19:25:32]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [19:25:32]RAPDU: 90 00 [19:25:32]wFMCommunicate OK [19:25:32]wFMCommunicate request_size=255 [19:25:32]MH_SAM_APDU [19:25:32]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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 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 98 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 C1 00 00 00 F4 03 04 00 AC 5A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 73 01 00 35 04 06 00 [19:25:32]Write to MH i2c: E2 02 01 F6 03 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 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 98 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 C1 00 00 00 F4 03 04 00 AC 5A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 73 01 00 35 04 06 00 00 00 4E [19:25:32]Write i2c OK [19:25:32]MH_I2C_Read... [19:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:33]Read from MH i2c: E2 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: E2 03 00 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [19:25:33]RAPDU: 90 00 [19:25:33]wFMCommunicate OK [19:25:33]wFMCommunicate request_size=11 [19:25:33]MH_SAM_APDU [19:25:33]CAPDU: 80 0D 02 02 06 30 FD 5E 10 1F 72 [19:25:33]Write to MH i2c: E2 0E 00 F7 03 80 0D 02 02 06 00 30 FD 5E 10 1F 72 00 00 AC [19:25:33]Write i2c OK [19:25:33]MH_I2C_Read... [19:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:33]Read from MH i2c: E2 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: E2 03 00 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [19:25:33]RAPDU: 90 00 [19:25:33]wFMCommunicate OK [19:25:33]wFMCommunicate request_size=4 [19:25:33]MH_SAM_APDU [19:25:33]CAPDU: 80 0D 03 02 [19:25:33]Write to MH i2c: E2 08 00 F8 03 80 0D 03 02 00 00 00 00 76 [19:25:33]Write i2c OK [19:25:33]MH_I2C_Read... [19:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:33]Read from MH i2c: E2 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: E2 0B 00 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: E2 0B 00 F8 03 00 A5 9C 2A AD DF FE 3A AC 90 00 52 [19:25:33]RAPDU: A5 9C 2A AD DF FE 3A AC 90 00 [19:25:33]wFMCommunicate OK [19:25:33]SAM_PROTO_SignData done [19:25:33]FM_MakeSignedData done [19:25:33]CreateOFDProtocolMessage [19:25:33]wFMCommunicate request_size=4 [19:25:33]MH_SAM_APDU [19:25:33]CAPDU: 80 11 00 00 [19:25:33]Write to MH i2c: E2 08 00 F9 03 80 11 00 00 00 00 00 00 76 [19:25:33]Write i2c OK [19:25:33]MH_I2C_Read... [19:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:33]Read from MH i2c: E2 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: E2 17 00 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: E2 17 00 F9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [19:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:25:33]wFMCommunicate OK [19:25:33]CreateOFDProtocolMessage done [19:25:33]OFDSenderStorePacket 95018 [19:25:33]StoreOFDPacket docnum=95018 [19:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 3C 6D 08 01 06 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 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 98 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 C1 00 00 00 F4 03 04 00 AC 5A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 73 01 00 35 04 06 00 30 FD 5E 10 1F 72 A5 9C 2A AD DF FE 3A AC [19:25:33]CheckFolder [19:25:33]dirname=/storage/ofd_packets [19:25:33]CheckFolder done [19:25:33]ProducePacketName [19:25:33]name=ofd_packets/00095018 [19:25:33]NVStorageSaveData ofd_packets/00095018 [19:25:33]File name is /storage/ofd_packets/00095018 [19:25:33]Write 302 bytes [19:25:33]NVStorageSaveData done [19:25:33]OFDSenderStorePacket done [19:25:33]KKMCreateOFDPacket done [19:25:33]NVStorageSaveData kkm_last_timestamp [19:25:33]File name is /storage/kkm_last_timestamp [19:25:33]Write 4 bytes [19:25:33]OFD Sender: Processing packet 95018 [packets to send 30, broken 29] [19:25:33]ProducePacketName [19:25:33]name=ofd_packets/00095018 [19:25:33]OFD Sender: To server: pG, [19:25:33]CommunicateWithHost lk.salyk.kg:30040 [19:25:33]ConnectInit lk.salyk.kg [19:25:33]NVStorageSaveData done [19:25:33]ExternCall_PrintAddStr [19:25:33]wPrintStart [19:25:33]Write to MH i2c: 01 00 00 FA 03 FD [19:25:33]Write i2c OK [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: 01 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: 01 07 00 [19:25:33]MH_I2C_Read... [19:25:33]Read from MH i2c: 01 07 00 FA 03 00 80 00 00 00 FF 0F 92 [19:25:33]RasterBufferAndPrint [19:25:33]line Счет N : (1)195978 [19:25:33]line ИНН: 02508201610067 [19:25:33]line Контрольно-Кассовый Чек [19:25:33]line ПРОДАЖА [19:25:33]line ТРК (МРК, ГНК) : 13 [19:25:33]line Товар: 2710124130 [19:25:33]line SUPER 92-К-5 [19:25:33]line 6.260 * 63.90 [19:25:33]line = 400.01 [19:25:33]line НДС 12% НСП 1% [19:25:33]line > о реализуемом товаре [19:25:33]line ОКРУГЛЕНИЕ: -0.01 [19:25:33]line ИТОГО: 400.00 [19:25:33]line Внесено: 400.00 [19:25:33]line СДАЧА: 0.00 [19:25:33]line НСП 1% : 3.54 [19:25:33]line НДС 12% : 42.48 [19:25:33]line Наличными: 400.00 [19:25:33]line Безнал.: 0.00 [19:25:33]line Место: АЗС № 6 "Партнер Нефть" [19:25:33]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:25:33]line СНО: Общий режим [19:25:33]line Чек 193 11.03.2024 19:25 [19:25:33]line Смена: 326 ФФД: 1.0 [19:25:33]line ЗНМ: 0300000009 [19:25:33]line РНМ: 0000000000090555 [19:25:33]line Версия ККМ: 001 [19:25:33]line ФМ: 0000000000874811 [19:25:33]line ФД: 95018 [19:25:33]line ФПД: 53864762974066 [19:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T192532&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95018&fm=53864762974066&tin=02508201610067®Number=0000000000090555&sum=40000 [19:25:33]Connected sock=11 [19:25: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 31 31 10 01 00 00 3C 6D 08 01 06 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 18 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 41 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 98 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 C1 00 00 00 F4 03 04 00 AC 5A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 73 01 00 35 04 06 00 30 FD 5E 10 1F 72 A5 9C 2A AD DF FE 3A AC [19:25:33]written 0, free lines is 4095 [19:25: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 31 31 4F 00 00 00 30 8E 47 00 D7 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2A 73 01 00 F4 03 04 00 05 06 EF 65 B6 04 01 00 00 15 7A F3 CD 8F 3E 7B 60 [19:25:33]CommunicateWithHost err = 0 [19:25:33]CheckOFDResponse [19:25:33]1017 (14) - 77093643461234 [19:25:33]1041 (16) - 0000000000874811 [19:25:33]1040 (4) - 95018 [19:25:33]1012 (4) - 11.03.2024 13:24 [19:25:33]1206 (1) - 0 [19:25:33]OFD Sender: Remove packet 95018 [19:25:33]ProducePacketName [19:25:33]name=ofd_packets/00095018 [19:25:33]NVStorageDeleteData [19:25:34]Write to MH i2c: 01 00 00 25 04 29 [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: 01 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: 01 07 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: 01 07 00 25 04 00 80 00 00 00 5A 0D 17 [19:25:34]RasterBufferAndPrint [19:25:34]line [19:25:34]line [19:25:34]line [19:25:34]line [19:25:34]line [19:25:34]written 0, free lines is 3424 [19:25:34]process_action close_receipt done [19:25:34]requested_data is exist [19:25:34]produce_requested_data [19:25:34]requested_item fm.sn is exist - process it [19:25:34]wFMCommunicate request_size=4 [19:25:34]MH_SAM_APDU [19:25:34]CAPDU: 80 11 00 00 [19:25:34]Write to MH i2c: E2 08 00 2C 04 80 11 00 00 00 00 00 00 AA [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:34]Read from MH i2c: E2 17 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 17 00 2C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FA [19:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:25:34]wFMCommunicate OK [19:25:34]requested_item fd.num is exist - process it [19:25:34]SAM_PROTO_GetFieldsCounters [19:25:34]wFMCommunicate request_size=4 [19:25:34]MH_SAM_APDU [19:25:34]CAPDU: 80 13 00 00 [19:25:34]Write to MH i2c: E2 08 00 2D 04 80 13 00 00 00 00 00 00 AD [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]OFD Sender: No OFD packet to send [19:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 62 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 62 00 2D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [19:25: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:34]wFMCommunicate OK [19:25:34]SAM_PROTO_GetFieldsCounters done [19:25:34]requested_item shift.num is exist - process it [19:25:34]requested_item shift.opened is exist - process it [19:25:34]req_shift_opened [19:25:34]FM_GetShiftState [19:25:34]SAM_PROTO_GetShiftState [19:25:34]wFMCommunicate request_size=4 [19:25:34]MH_SAM_APDU [19:25:34]CAPDU: 80 13 01 00 [19:25:34]Write to MH i2c: E2 08 00 2E 04 80 13 01 00 00 00 00 00 AF [19:25:34]Write i2c OK [19:25:34]MH_I2C_Read... [19:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:34]Read from MH i2c: E2 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 0E 00 [19:25:34]MH_I2C_Read... [19:25:34]Read from MH i2c: E2 0E 00 2E 04 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4B [19:25:34]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:25:34]wFMCommunicate OK [19:25:34]SAM_PROTO_GetShiftState done [19:25:34]FM_GetShiftState done [19:25:34]req_shift_opened done [19:25:34]requested_item shift.open_date is exist - process it [19:25:34]req_shift_open_date [19:25:34]req_shift_open_date done [19:25:34]produce_requested_data done [19:25:34]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95018,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:25:34]process_action_free close_receipt [19:25:34]json_value_free [19:25:34]json_value_free done [19:25:34]process_json_proto returns [19:25:34]Send response to host [19:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95018,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:25:34]free response buf [19:25:34]execute_script done [19:25:34]execute_script returns [19:25:34]free content buf [19:25:34]Sock 8.Close socket [19:25:34]Sock 8.Thread stoped [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:58]accept exits with 9 [19:26:58]New connection [19:26:58]New thread 3066813796 created [19:26:58]Thread 3066957156 joined [19:26:58]Waiting for new connection... [19:26:58] Sock 9.Parse request [19:26:58]Sock 9.Check first char [19:26:58]Sock 9.First char is OK [19:26:58]request: POST /json_proto HTTP/1.0 [19:26:58]Method: POST [19:26:58]URL: /json_proto [19:26:58]Method is POST - this is cgi request [19:26:58]url: /json_proto [19:26:58]query_string will be loaded in cgi processing [19:26:58]execute_cgi json_proto POST (null) [19:26:58]execute_cgi path=json_proto method=POST [19:26:58]POST find Content-Length [19:26:58]Host: 172.17.62.67:8080 [19:26:58]Content-Length: 678 [19:26:58]Content-Type: application/json [19:26:58] [19:26:58]POST finish read [19:26:58]Found Content-Length = 678 [19:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 13.760, "sum" : 865.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 865.00, "total" : 865.00, "payments": [ { "type": 0, "sum" : 865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:58]execute_script... [19:26: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)195979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 13.760, "sum" : 865.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 865.00, "total" : 865.00, "payments": [ { "type": 0, "sum" : 865.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:58]POST & json_proto [19:26:58]process_json_proto [19:26:58]json parsed OK: [19:26:58]protocol is kg_v1.0 [19:26:58]action value=close_receipt [19:26:58]process_action close_receipt [19:26:58]cmd_close_receipt [19:26:58]MH_GetDate [19:26:58]Write to MH i2c: F0 00 00 2F 04 22 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 05 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 05 00 2F 04 00 03 5B EF 65 D9 [19:26:58]GetLastDocTimeStamp 1710185132 [19:26:58]current date 1710185219 [19:26:58]FM_GetShiftState [19:26:58]SAM_PROTO_GetShiftState [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 13 01 00 [19:26:58]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 0E 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4D [19:26:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:26:58]wFMCommunicate OK [19:26:58]SAM_PROTO_GetShiftState done [19:26:58]FM_GetShiftState done [19:26:58]opened in 1710115571 [19:26:58]opened+sec_in_day 1710201971 [19:26:58]quantity*price = 86550 [19:26:58]sum+1 = 86551 [19:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 865.00 Внесено: 865.00 СДАЧА: 0.00 НСП 1% : 7.66 НДС 12% : 91.91 Наличными: 865.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 194 11.03.2024 19:26 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95019 ФПД: 32008008298810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T192659&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95019&fm=32008008298810&tin=02508201610067®Number=0000000000090555&sum=86500 [19:26:59]StoreToDocumentArchive [19:26:59]shift 326 fd 95019 [19:26:59]save to /storage/0326/doc_00095019 [19:26:59]save last doc name /storage/0326/doc_00095019 to /storage/kkm_last_doc_name [19:26:59]save OK [19:26:59]Clear old archive folders... [19:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:59]tlvbuf is 01A3E670 [19:26:59]SAM_PROTO_ClearQueue [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 09 00 00 [19:26:59]Write to MH i2c: E2 08 00 3D 04 80 09 00 00 00 00 00 00 B3 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [19:26:59]RAPDU: 90 00 [19:26:59]wFMCommunicate OK [19:26:59]SAM_PROTO_ClearQueue done [19:26:59]KKMCreateOFDPacket [19:26:59]OFDProtocolAddRootSTLVToBuf [19:26:59]FM_MakeSignedData [19:26:59]FM_MakeSignedData [19:26:59]SAM_PROTO_SignData [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 0D 01 02 [19:26:59]Write to MH i2c: E2 08 00 3E 04 80 0D 01 02 00 00 00 00 BB [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [19:26:59]RAPDU: 90 00 [19:26:59]wFMCommunicate OK [19:26:59]wFMCommunicate request_size=255 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 35 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 16 52 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 23 00 00 00 00 07 04 06 00 E4 51 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 03 5B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 73 01 00 35 04 06 00 1D [19:26:59]Write to MH i2c: E2 02 01 3F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 35 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 16 52 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 23 00 00 00 00 07 04 06 00 E4 51 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 03 5B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 73 01 00 35 04 06 00 1D 00 00 B6 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 03 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [19:27:00]RAPDU: 90 00 [19:27:00]wFMCommunicate OK [19:27:00]wFMCommunicate request_size=10 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 0D 02 02 05 1C 71 F6 F1 3A [19:27:00]Write to MH i2c: E2 0D 00 40 04 80 0D 02 02 05 00 1C 71 F6 F1 3A 00 00 76 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 03 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [19:27:00]RAPDU: 90 00 [19:27:00]wFMCommunicate OK [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 0D 03 02 [19:27:00]Write to MH i2c: E2 08 00 41 04 80 0D 03 02 00 00 00 00 C0 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0B 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0B 00 41 04 00 56 F4 13 6D CD 83 F7 02 90 00 D4 [19:27:00]RAPDU: 56 F4 13 6D CD 83 F7 02 90 00 [19:27:00]wFMCommunicate OK [19:27:00]SAM_PROTO_SignData done [19:27:00]FM_MakeSignedData done [19:27:00]CreateOFDProtocolMessage [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 11 00 00 [19:27:00]Write to MH i2c: E2 08 00 42 04 80 11 00 00 00 00 00 00 C0 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 17 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 17 00 42 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [19:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:27:00]wFMCommunicate OK [19:27:00]CreateOFDProtocolMessage done [19:27:00]OFDSenderStorePacket 95019 [19:27:00]StoreOFDPacket docnum=95019 [19:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BA E9 07 01 E8 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 35 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 16 52 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 23 00 00 00 00 07 04 06 00 E4 51 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 03 5B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 73 01 00 35 04 06 00 1D 1C 71 F6 F1 3A 56 F4 13 6D CD 83 F7 02 [19:27:00]CheckFolder [19:27:00]dirname=/storage/ofd_packets [19:27:00]CheckFolder done [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00095019 [19:27:00]NVStorageSaveData ofd_packets/00095019 [19:27:00]File name is /storage/ofd_packets/00095019 [19:27:00]Write 301 bytes [19:27:00]NVStorageSaveData done [19:27:00]OFDSenderStorePacket done [19:27:00]KKMCreateOFDPacket done [19:27:00]NVStorageSaveData kkm_last_timestamp [19:27:00]File name is /storage/kkm_last_timestamp [19:27:00]Write 4 bytes [19:27:00]NVStorageSaveData done [19:27:00]ExternCall_PrintAddStr [19:27:00]wPrintStart [19:27:00]Write to MH i2c: 01 00 00 43 04 47 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 43 04 00 80 00 00 00 FF 0F DC [19:27:00]RasterBufferAndPrint [19:27:00]line Счет N : (1)195979 [19:27:00]line ИНН: 02508201610067 [19:27:00]line Контрольно-Кассовый Чек [19:27:00]line ПРОДАЖА [19:27:00]line ТРК (МРК, ГНК) : 22 [19:27:00]line Товар: 2710124130 [19:27:00]line Аи-92-К-5 [19:27:00]line 13.760 * 62.90 [19:27:00]line = 865.50 [19:27:00]line НДС 12% НСП 1% [19:27:00]line > о реализуемом товаре [19:27:00]line ОКРУГЛЕНИЕ: -0.50 [19:27:00]line ИТОГО: 865.00 [19:27:00]line Внесено: 865.00 [19:27:00]line СДАЧА: 0.00 [19:27:00]line НСП 1% : 7.66 [19:27:00]line НДС 12% : 91.91 [19:27:00]line Наличными: 865.00 [19:27:00]line Безнал.: 0.00 [19:27:00]line Место: АЗС № 6 "Партнер Нефть" [19:27:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:27:00]line СНО: Общий режим [19:27:00]line Чек 194 11.03.2024 19:26 [19:27:00]line Смена: 326 ФФД: 1.0 [19:27:00]line ЗНМ: 0300000009 [19:27:00]line РНМ: 0000000000090555 [19:27:00]line Версия ККМ: 001 [19:27:00]line ФМ: 0000000000874811 [19:27:00]line ФД: 95019 [19:27:00]line ФПД: 32008008298810 [19:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T192659&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95019&fm=32008008298810&tin=02508201610067®Number=0000000000090555&sum=86500 [19:27:00]OFD Sender: Processing packet 95019 [packets to send 30, broken 29] [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00095019 [19:27:00]OFD Sender: To server: pG, [19:27:00]CommunicateWithHost lk.salyk.kg:30040 [19:27:00]ConnectInit lk.salyk.kg [19:27:00]written 0, free lines is 4095 [19:27:00]Connected sock=8 [19:27: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 31 31 0F 01 00 00 BA E9 07 01 E8 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 35 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 16 52 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 51 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FE 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 23 00 00 00 00 07 04 06 00 E4 51 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 03 5B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 73 01 00 35 04 06 00 1D 1C 71 F6 F1 3A 56 F4 13 6D CD 83 F7 02 [19:27: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 31 31 4F 00 00 00 05 4B 47 00 AC 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2B 73 01 00 F4 03 04 00 5C 06 EF 65 B6 04 01 00 00 45 22 C1 B4 83 4D B7 05 [19:27:00]CommunicateWithHost err = 0 [19:27:00]CheckOFDResponse [19:27:00]1017 (14) - 77093643461234 [19:27:00]1041 (16) - 0000000000874811 [19:27:00]1040 (4) - 95019 [19:27:00]1012 (4) - 11.03.2024 13:25 [19:27:00]1206 (1) - 0 [19:27:00]OFD Sender: Remove packet 95019 [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00095019 [19:27:00]NVStorageDeleteData [19:27:01]Write to MH i2c: 01 00 00 6E 04 72 [19:27:01]Write i2c OK [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: 01 [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: 01 07 00 [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: 01 07 00 6E 04 00 80 00 00 00 59 0D 5F [19:27:01]RasterBufferAndPrint [19:27:01]line [19:27:01]line [19:27:01]line [19:27:01]line [19:27:01]line [19:27:01]written 0, free lines is 3423 [19:27:01]process_action close_receipt done [19:27:01]requested_data is exist [19:27:01]produce_requested_data [19:27:01]requested_item fm.sn is exist - process it [19:27:01]wFMCommunicate request_size=4 [19:27:01]MH_SAM_APDU [19:27:01]CAPDU: 80 11 00 00 [19:27:01]Write to MH i2c: E2 08 00 75 04 80 11 00 00 00 00 00 00 F3 [19:27:01]Write i2c OK [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: E2 [19:27:01]MH_I2C_Read... [19:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:01]Read from MH i2c: E2 17 00 [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: E2 17 00 75 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 43 [19:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:27:01]wFMCommunicate OK [19:27:01]requested_item fd.num is exist - process it [19:27:01]SAM_PROTO_GetFieldsCounters [19:27:01]wFMCommunicate request_size=4 [19:27:01]MH_SAM_APDU [19:27:01]CAPDU: 80 13 00 00 [19:27:01]Write to MH i2c: E2 08 00 76 04 80 13 00 00 00 00 00 00 F6 [19:27:01]Write i2c OK [19:27:01]MH_I2C_Read... [19:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:01]Read from MH i2c: E2 [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: E2 62 00 [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: E2 62 00 76 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [19:27: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:01]wFMCommunicate OK [19:27:01]SAM_PROTO_GetFieldsCounters done [19:27:01]requested_item shift.num is exist - process it [19:27:01]requested_item shift.opened is exist - process it [19:27:01]req_shift_opened [19:27:01]FM_GetShiftState [19:27:01]SAM_PROTO_GetShiftState [19:27:01]wFMCommunicate request_size=4 [19:27:01]MH_SAM_APDU [19:27:01]CAPDU: 80 13 01 00 [19:27:01]Write to MH i2c: E2 08 00 77 04 80 13 01 00 00 00 00 00 F8 [19:27:01]Write i2c OK [19:27:01]MH_I2C_Read... [19:27:01]OFD Sender: No OFD packet to send [19:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:01]Read from MH i2c: E2 [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: E2 0E 00 [19:27:01]MH_I2C_Read... [19:27:01]Read from MH i2c: E2 0E 00 77 04 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 94 [19:27:01]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:27:01]wFMCommunicate OK [19:27:01]SAM_PROTO_GetShiftState done [19:27:01]FM_GetShiftState done [19:27:01]req_shift_opened done [19:27:01]requested_item shift.open_date is exist - process it [19:27:01]req_shift_open_date [19:27:01]req_shift_open_date done [19:27:01]produce_requested_data done [19:27:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95019,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:27:01]process_action_free close_receipt [19:27:01]json_value_free [19:27:01]json_value_free done [19:27:01]process_json_proto returns [19:27:01]Send response to host [19:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95019,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:27:01]free response buf [19:27:01]execute_script done [19:27:01]execute_script returns [19:27:01]free content buf [19:27:01]Sock 9.Close socket [19:27:01]Sock 9.Thread stoped [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:20]accept exits with 10 [19:27:20]New connection [19:27:20]New thread 3066957156 created [19:27:20]Thread 3066813796 joined [19:27:20]Waiting for new connection... [19:27:20] Sock 10.Parse request [19:27:20]Sock 10.Check first char [19:27:20]Sock 10.First char is OK [19:27:20]request: POST /json_proto HTTP/1.0 [19:27:20]Method: POST [19:27:20]URL: /json_proto [19:27:20]Method is POST - this is cgi request [19:27:20]url: /json_proto [19:27:20]query_string will be loaded in cgi processing [19:27:20]execute_cgi json_proto POST (null) [19:27:20]execute_cgi path=json_proto method=POST [19:27:20]POST find Content-Length [19:27:20]Host: 172.17.62.67:8080 [19:27:20]Content-Length: 620 [19:27:20]Content-Type: application/json [19:27:20] [19:27:20]POST finish read [19:27:20]Found Content-Length = 620 [19:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11526", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:20]execute_script... [19:27:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11526", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:20]POST & json_proto [19:27:20]process_json_proto [19:27:20]json parsed OK: [19:27:20]protocol is kg_v1.0 [19:27:20]action value=close_receipt [19:27:20]process_action close_receipt [19:27:20]cmd_close_receipt [19:27:20]MH_GetDate [19:27:20]Write to MH i2c: F0 00 00 78 04 6B [19:27:20]Write i2c OK [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: F0 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: F0 05 00 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: F0 05 00 78 04 00 19 5B EF 65 38 [19:27:20]GetLastDocTimeStamp 1710185219 [19:27:20]current date 1710185241 [19:27:20]FM_GetShiftState [19:27:20]SAM_PROTO_GetShiftState [19:27:20]wFMCommunicate request_size=4 [19:27:20]MH_SAM_APDU [19:27:20]CAPDU: 80 13 01 00 [19:27:20]Write to MH i2c: E2 08 00 79 04 80 13 01 00 00 00 00 00 FA [19:27:20]Write i2c OK [19:27:20]MH_I2C_Read... [19:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:20]Read from MH i2c: E2 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: E2 0E 00 [19:27:20]MH_I2C_Read... [19:27:20]Read from MH i2c: E2 0E 00 79 04 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 96 [19:27:20]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:27:20]wFMCommunicate OK [19:27:20]SAM_PROTO_GetShiftState done [19:27:20]FM_GetShiftState done [19:27:20]opened in 1710115571 [19:27:20]opened+sec_in_day 1710201971 [19:27:20]quantity*price = 13500 [19:27:20]sum+1 = 13501 [19:27:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 195 11.03.2024 19:27 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95020 ФПД: 164316841927838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T192721&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95020&fm=164316841927838&tin=02508201610067®Number=0000000000090555&sum=13500 0 [19:27:21]StoreToDocumentArchive [19:27:21]shift 326 fd 95020 [19:27:21]save to /storage/0326/doc_00095020 [19:27:21]save last doc name /storage/0326/doc_00095020 to /storage/kkm_last_doc_name [19:27:21]save OK [19:27:21]Clear old archive folders... [19:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:27:21]tlvbuf is 019FCFF0 [19:27:21]SAM_PROTO_ClearQueue [19:27:21]wFMCommunicate request_size=4 [19:27:21]MH_SAM_APDU [19:27:21]CAPDU: 80 09 00 00 [19:27:21]Write to MH i2c: E2 08 00 86 04 80 09 00 00 00 00 00 00 FC [19:27:21]Write i2c OK [19:27:21]MH_I2C_Read... [19:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:21]Read from MH i2c: E2 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 03 00 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [19:27:21]RAPDU: 90 00 [19:27:21]wFMCommunicate OK [19:27:21]SAM_PROTO_ClearQueue done [19:27:21]KKMCreateOFDPacket [19:27:21]OFDProtocolAddRootSTLVToBuf [19:27:21]FM_MakeSignedData [19:27:21]FM_MakeSignedData [19:27:21]SAM_PROTO_SignData [19:27:21]wFMCommunicate request_size=4 [19:27:21]MH_SAM_APDU [19:27:21]CAPDU: 80 0D 01 02 [19:27:21]Write to MH i2c: E2 08 00 87 04 80 0D 01 02 00 00 00 00 04 [19:27:21]Write i2c OK [19:27:21]MH_I2C_Read... [19:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:21]Read from MH i2c: E2 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 03 00 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [19:27:21]RAPDU: 90 00 [19:27:21]wFMCommunicate OK [19:27:21]wFMCommunicate request_size=255 [19:27:21]MH_SAM_APDU [19:27:21]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 19 5B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 [19:27:21]Write to MH i2c: E2 02 01 88 04 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 19 5B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 00 00 A4 [19:27:21]OFD Sender: No OFD packet to send [19:27:21]Write i2c OK [19:27:21]MH_I2C_Read... [19:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:21]Read from MH i2c: E2 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 03 00 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [19:27:21]RAPDU: 90 00 [19:27:21]wFMCommunicate OK [19:27:21]wFMCommunicate request_size=32 [19:27:21]MH_SAM_APDU [19:27:21]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 73 01 00 35 04 06 00 95 71 FE FE 64 9E [19:27:21]Write to MH i2c: E2 23 00 89 04 80 0D 02 02 1B 00 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 73 01 00 35 04 06 00 95 71 FE FE 64 9E 00 00 05 [19:27:21]Write i2c OK [19:27:21]MH_I2C_Read... [19:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:21]Read from MH i2c: E2 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 03 00 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [19:27:21]RAPDU: 90 00 [19:27:21]wFMCommunicate OK [19:27:21]wFMCommunicate request_size=4 [19:27:21]MH_SAM_APDU [19:27:21]CAPDU: 80 0D 03 02 [19:27:21]Write to MH i2c: E2 08 00 8A 04 80 0D 03 02 00 00 00 00 09 [19:27:21]Write i2c OK [19:27:21]MH_I2C_Read... [19:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:21]Read from MH i2c: E2 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 0B 00 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 0B 00 8A 04 00 E6 57 EC 12 72 73 89 72 90 00 25 [19:27:21]RAPDU: E6 57 EC 12 72 73 89 72 90 00 [19:27:21]wFMCommunicate OK [19:27:21]SAM_PROTO_SignData done [19:27:21]FM_MakeSignedData done [19:27:21]CreateOFDProtocolMessage [19:27:21]wFMCommunicate request_size=4 [19:27:21]MH_SAM_APDU [19:27:21]CAPDU: 80 11 00 00 [19:27:21]Write to MH i2c: E2 08 00 8B 04 80 11 00 00 00 00 00 00 09 [19:27:21]Write i2c OK [19:27:21]MH_I2C_Read... [19:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:21]Read from MH i2c: E2 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 17 00 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: E2 17 00 8B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 59 [19:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:27:21]wFMCommunicate OK [19:27:21]CreateOFDProtocolMessage done [19:27:21]OFDSenderStorePacket 95020 [19:27:21]StoreOFDPacket docnum=95020 [19:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 25 01 00 00 6B C3 1D 01 DD 8C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 19 5B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 73 01 00 35 04 06 00 95 71 FE FE 64 9E E6 57 EC 12 72 73 89 72 [19:27:21]CheckFolder [19:27:21]dirname=/storage/ofd_packets [19:27:21]CheckFolder done [19:27:21]ProducePacketName [19:27:21]name=ofd_packets/00095020 [19:27:21]NVStorageSaveData ofd_packets/00095020 [19:27:21]File name is /storage/ofd_packets/00095020 [19:27:21]Write 323 bytes [19:27:21]NVStorageSaveData done [19:27:21]OFDSenderStorePacket done [19:27:21]KKMCreateOFDPacket done [19:27:21]NVStorageSaveData kkm_last_timestamp [19:27:21]File name is /storage/kkm_last_timestamp [19:27:21]Write 4 bytes [19:27:21]NVStorageSaveData done [19:27:21]ExternCall_PrintAddStr [19:27:21]wPrintStart [19:27:21]Write to MH i2c: 01 00 00 8C 04 90 [19:27:21]Write i2c OK [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: 01 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: 01 07 00 [19:27:21]MH_I2C_Read... [19:27:21]Read from MH i2c: 01 07 00 8C 04 00 80 00 00 00 FF 0F 25 [19:27:21]RasterBufferAndPrint [19:27:21]line Счет N : (3)11526 [19:27:21]line ИНН: 02508201610067 [19:27:21]line Контрольно-Кассовый Чек [19:27:21]line ПРОДАЖА [19:27:21]line Товар: 48747059 [19:27:21]line Сигареты Winston Legend Blue [19:27:21]line 1.000 * 135.00 [19:27:21]line = 135.00 [19:27:21]line НДС 12% НСП 1% [19:27:21]line > о реализуемом товаре [19:27:21]line ИТОГО: 135.00 [19:27:21]line НСП 1% : 1.19 [19:27:21]line НДС 12% : 14.34 [19:27:21]line Наличными: 135.00 [19:27:21]line Безнал.: 0.00 [19:27:21]line Место: АЗС № 6 "Партнер Нефть" [19:27:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:27:21]line СНО: Общий режим [19:27:21]line Чек 195 11.03.2024 19:27 [19:27:21]line Смена: 326 ФФД: 1.0 [19:27:21]line ЗНМ: 0300000009 [19:27:21]line РНМ: 0000000000090555 [19:27:21]line Версия ККМ: 001 [19:27:21]line ФМ: 0000000000874811 [19:27:21]line ФД: 95020 [19:27:21]line ФПД: 164316841927838 [19:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T192721&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95020&fm=164316841927838&tin=02508201610067®Number=0000000000090555&sum=13500 [19:27:22]line 0 [19:27:22]OFD Sender: Processing packet 95020 [packets to send 30, broken 29] [19:27:22]ProducePacketName [19:27:22]name=ofd_packets/00095020 [19:27:22]OFD Sender: To server: pG, [19:27:22]CommunicateWithHost lk.salyk.kg:30040 [19:27:22]ConnectInit lk.salyk.kg [19:27:22]written 0, free lines is 4095 [19:27:22]Connected sock=9 [19:27:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 25 01 00 00 6B C3 1D 01 DD 8C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 19 5B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2C 73 01 00 35 04 06 00 95 71 FE FE 64 9E E6 57 EC 12 72 73 89 72 [19:27: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 31 31 4F 00 00 00 0C BE 47 00 57 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 31 31 10 04 04 00 2C 73 01 00 F4 03 04 00 71 06 EF 65 B6 04 01 00 00 2E 0D DF 8F 98 C5 2F BF [19:27:22]CommunicateWithHost err = 0 [19:27:22]CheckOFDResponse [19:27:22]1017 (14) - 77093643461234 [19:27:22]1041 (16) - 0000000000874811 [19:27:22]1040 (4) - 95020 [19:27:22]1012 (4) - 11.03.2024 13:26 [19:27:22]1206 (1) - 0 [19:27:22]OFD Sender: Remove packet 95020 [19:27:22]ProducePacketName [19:27:22]name=ofd_packets/00095020 [19:27:22]NVStorageDeleteData [19:27:22]Write to MH i2c: 01 00 00 B5 04 B9 [19:27:22]Write i2c OK [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: 01 [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: 01 07 00 [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: 01 07 00 B5 04 00 80 00 00 00 63 0D B0 [19:27:22]RasterBufferAndPrint [19:27:22]line [19:27:22]line [19:27:22]line [19:27:22]line [19:27:22]line [19:27:22]written 0, free lines is 3434 [19:27:22]process_action close_receipt done [19:27:22]requested_data is exist [19:27:22]produce_requested_data [19:27:22]requested_item fm.sn is exist - process it [19:27:22]wFMCommunicate request_size=4 [19:27:22]MH_SAM_APDU [19:27:22]CAPDU: 80 11 00 00 [19:27:22]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [19:27:22]Write i2c OK [19:27:22]MH_I2C_Read... [19:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:22]Read from MH i2c: E2 [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: E2 17 00 [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8A [19:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:27:22]wFMCommunicate OK [19:27:22]requested_item fd.num is exist - process it [19:27:22]SAM_PROTO_GetFieldsCounters [19:27:22]wFMCommunicate request_size=4 [19:27:22]MH_SAM_APDU [19:27:22]CAPDU: 80 13 00 00 [19:27:22]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [19:27:22]Write i2c OK [19:27:22]MH_I2C_Read... [19:27:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:22]Read from MH i2c: E2 [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: E2 62 00 [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: E2 62 00 BD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [19:27: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:22]wFMCommunicate OK [19:27:22]SAM_PROTO_GetFieldsCounters done [19:27:22]requested_item shift.num is exist - process it [19:27:22]requested_item shift.opened is exist - process it [19:27:22]req_shift_opened [19:27:22]FM_GetShiftState [19:27:22]SAM_PROTO_GetShiftState [19:27:22]wFMCommunicate request_size=4 [19:27:22]MH_SAM_APDU [19:27:22]CAPDU: 80 13 01 00 [19:27:22]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [19:27:22]Write i2c OK [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: E2 [19:27:22]MH_I2C_Read... [19:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:22]Read from MH i2c: E2 0E 00 [19:27:22]MH_I2C_Read... [19:27:22]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DB [19:27:22]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:27:22]wFMCommunicate OK [19:27:22]SAM_PROTO_GetShiftState done [19:27:22]FM_GetShiftState done [19:27:22]req_shift_opened done [19:27:22]requested_item shift.open_date is exist - process it [19:27:22]req_shift_open_date [19:27:22]req_shift_open_date done [19:27:22]produce_requested_data done [19:27:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95020,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:27:22]process_action_free close_receipt [19:27:22]json_value_free [19:27:22]json_value_free done [19:27:22]process_json_proto returns [19:27:22]Send response to host [19:27:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95020,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:27:22]free response buf [19:27:22]execute_script done [19:27:22]execute_script returns [19:27:22]free content buf [19:27:22]Sock 10.Close socket [19:27:22]Sock 10.Thread stoped [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]accept exits with 8 [19:44:13]New connection [19:44:13]New thread 3066813796 created [19:44:13]Thread 3066957156 joined [19:44:13]Waiting for new connection... [19:44:13] Sock 8.Parse request [19:44:13]Sock 8.Check first char [19:44:13]Sock 8.First char is OK [19:44:13]request: POST /json_proto HTTP/1.0 [19:44:13]Method: POST [19:44:13]URL: /json_proto [19:44:13]Method is POST - this is cgi request [19:44:13]url: /json_proto [19:44:13]query_string will be loaded in cgi processing [19:44:13]execute_cgi json_proto POST (null) [19:44:13]execute_cgi path=json_proto method=POST [19:44:13]POST find Content-Length [19:44:13]Host: 172.17.62.67:8080 [19:44:13]Content-Length: 805 [19:44:13]Content-Type: application/json [19:44:13] [19:44:13]POST finish read [19:44:13]Found Content-Length = 805 [19:44:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:13]execute_script... [19:44: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)195980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:13]POST & json_proto [19:44:13]process_json_proto [19:44:13]json parsed OK: [19:44:13]protocol is kg_v1.0 [19:44:13]action value=close_receipt [19:44:13]process_action close_receipt [19:44:13]cmd_close_receipt [19:44:13]MH_GetDate [19:44:13]Write to MH i2c: F0 00 00 BF 04 B2 [19:44:13]Write i2c OK [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: F0 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: F0 05 00 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: F0 05 00 BF 04 00 0E 5F EF 65 78 [19:44:13]GetLastDocTimeStamp 1710185241 [19:44:13]current date 1710186254 [19:44:13]FM_GetShiftState [19:44:13]SAM_PROTO_GetShiftState [19:44:13]wFMCommunicate request_size=4 [19:44:13]MH_SAM_APDU [19:44:13]CAPDU: 80 13 01 00 [19:44:13]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [19:44:13]Write i2c OK [19:44:13]MH_I2C_Read... [19:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:13]Read from MH i2c: E2 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: E2 0E 00 [19:44:13]MH_I2C_Read... [19:44:13]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DD [19:44:13]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:44:13]wFMCommunicate OK [19:44:13]SAM_PROTO_GetShiftState done [19:44:13]FM_GetShiftState done [19:44:13]opened in 1710115571 [19:44:13]opened+sec_in_day 1710201971 [19:44:13]quantity*price = 50005 [19:44:13]sum+1 = 50007 [19:44:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 196 11.03.2024 19:44 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95021 ФПД: 129980913827146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T194414&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95021&fm=129980913827146&tin=02508201610067®Number=0000000000090555&sum=50006 [19:44:14]StoreToDocumentArchive [19:44:14]shift 326 fd 95021 [19:44:14]save to /storage/0326/doc_00095021 [19:44:14]save last doc name /storage/0326/doc_00095021 to /storage/kkm_last_doc_name [19:44:14]save OK [19:44:14]Clear old archive folders... [19:44:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:14]tlvbuf is 01A2C930 [19:44:14]SAM_PROTO_ClearQueue [19:44:14]wFMCommunicate request_size=4 [19:44:14]MH_SAM_APDU [19:44:14]CAPDU: 80 09 00 00 [19:44:14]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [19:44:14]Write i2c OK [19:44:14]MH_I2C_Read... [19:44:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:14]Read from MH i2c: E2 [19:44:14]MH_I2C_Read... [19:44:14]Read from MH i2c: E2 03 00 [19:44:14]MH_I2C_Read... [19:44:14]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [19:44:14]RAPDU: 90 00 [19:44:14]wFMCommunicate OK [19:44:14]SAM_PROTO_ClearQueue done [19:44:14]KKMCreateOFDPacket [19:44:14]OFDProtocolAddRootSTLVToBuf [19:44:14]FM_MakeSignedData [19:44:14]FM_MakeSignedData [19:44:14]SAM_PROTO_SignData [19:44:14]wFMCommunicate request_size=4 [19:44:14]MH_SAM_APDU [19:44:14]CAPDU: 80 0D 01 02 [19:44:14]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [19:44:14]Write i2c OK [19:44:14]MH_I2C_Read... [19:44:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:14]Read from MH i2c: E2 [19:44:14]MH_I2C_Read... [19:44:14]Read from MH i2c: E2 03 00 [19:44:14]MH_I2C_Read... [19:44:14]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [19:44:14]RAPDU: 90 00 [19:44:14]wFMCommunicate OK [19:44:14]wFMCommunicate request_size=255 [19:44:14]MH_SAM_APDU [19:44:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 0E 5F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 73 01 00 35 04 06 00 76 [19:44:14]Write to MH i2c: E2 02 01 CF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 0E 5F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 73 01 00 35 04 06 00 76 00 00 E3 [19:44:14]Write i2c OK [19:44:14]MH_I2C_Read... [19:44:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:14]Read from MH i2c: E2 [19:44:14]MH_I2C_Read... [19:44:14]Read from MH i2c: E2 03 00 [19:44:14]MH_I2C_Read... [19:44:14]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [19:44:14]RAPDU: 90 00 [19:44:14]wFMCommunicate OK [19:44:14]wFMCommunicate request_size=10 [19:44:14]MH_SAM_APDU [19:44:14]CAPDU: 80 0D 02 02 05 37 8A 32 3D 4A [19:44:14]Write to MH i2c: E2 0D 00 D0 04 80 0D 02 02 05 00 37 8A 32 3D 4A 00 00 D2 [19:44:14]Write i2c OK [19:44:14]MH_I2C_Read... [19:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:15]Read from MH i2c: E2 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 03 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [19:44:15]RAPDU: 90 00 [19:44:15]wFMCommunicate OK [19:44:15]wFMCommunicate request_size=4 [19:44:15]MH_SAM_APDU [19:44:15]CAPDU: 80 0D 03 02 [19:44:15]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:15]Read from MH i2c: E2 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 0B 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 0B 00 D1 04 00 59 09 C3 2F AA 35 B5 8A 90 00 C3 [19:44:15]RAPDU: 59 09 C3 2F AA 35 B5 8A 90 00 [19:44:15]wFMCommunicate OK [19:44:15]SAM_PROTO_SignData done [19:44:15]FM_MakeSignedData done [19:44:15]CreateOFDProtocolMessage [19:44:15]wFMCommunicate request_size=4 [19:44:15]MH_SAM_APDU [19:44:15]CAPDU: 80 11 00 00 [19:44:15]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:15]Read from MH i2c: E2 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 17 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [19:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:44:15]wFMCommunicate OK [19:44:15]CreateOFDProtocolMessage done [19:44:15]OFDSenderStorePacket 95021 [19:44:15]StoreOFDPacket docnum=95021 [19:44:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 99 C6 07 01 06 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 0E 5F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 73 01 00 35 04 06 00 76 37 8A 32 3D 4A 59 09 C3 2F AA 35 B5 8A [19:44:15]CheckFolder [19:44:15]dirname=/storage/ofd_packets [19:44:15]CheckFolder done [19:44:15]ProducePacketName [19:44:15]name=ofd_packets/00095021 [19:44:15]NVStorageSaveData ofd_packets/00095021 [19:44:15]File name is /storage/ofd_packets/00095021 [19:44:15]Write 301 bytes [19:44:15]NVStorageSaveData done [19:44:15]OFDSenderStorePacket done [19:44:15]KKMCreateOFDPacket done [19:44:15]NVStorageSaveData kkm_last_timestamp [19:44:15]File name is /storage/kkm_last_timestamp [19:44:15]Write 4 bytes [19:44:15]NVStorageSaveData done [19:44:15]ExternCall_PrintAddStr [19:44:15]wPrintStart [19:44:15]Write to MH i2c: 01 00 00 D3 04 D7 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: 01 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: 01 07 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: 01 07 00 D3 04 00 80 00 00 00 FF 0F 6C [19:44:15]RasterBufferAndPrint [19:44:15]line Счет N : (1)195980 [19:44:15]line ИНН: 02508201610067 [19:44:15]line Контрольно-Кассовый Чек [19:44:15]line ПРОДАЖА [19:44:15]line ТРК (МРК, ГНК) : 12 [19:44:15]line Товар: 2710124130 [19:44:15]line Аи-92-К-5 [19:44:15]line 7.950 * 62.90 [19:44:15]line = 500.06 [19:44:15]line НДС 12% НСП 1% [19:44:15]line > о реализуемом товаре [19:44:15]line ИТОГО: 500.06 [19:44:15]line НСП 1% : 4.42 [19:44:15]line НДС 12% : 53.10 [19:44:15]line Наличными: 0.00 [19:44:15]line Безнал.: 500.06 [19:44:15]line Место: АЗС № 6 "Партнер Нефть" [19:44:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:44:15]line СНО: Общий режим [19:44:15]line Чек 196 11.03.2024 19:44 [19:44:15]line Смена: 326 ФФД: 1.0 [19:44:15]line ЗНМ: 0300000009 [19:44:15]line РНМ: 0000000000090555 [19:44:15]line Версия ККМ: 001 [19:44:15]line Платежная система: О! деньги [19:44:15]line ФМ: 0000000000874811 [19:44:15]line ФД: 95021 [19:44:15]line ФПД: 129980913827146 [19:44:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T194414&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95021&fm=129980913827146&tin=02508201610067®Number=0000000000090555&sum=50006 [19:44:15]OFD Sender: Processing packet 95021 [packets to send 30, broken 29] [19:44:15]ProducePacketName [19:44:15]name=ofd_packets/00095021 [19:44:15]OFD Sender: To server: pG, [19:44:15]CommunicateWithHost lk.salyk.kg:30040 [19:44:15]ConnectInit lk.salyk.kg [19:44:15]written 0, free lines is 4095 [19:44:15]Connected sock=10 [19:44: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 31 31 0F 01 00 00 99 C6 07 01 06 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 0E 5F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 73 01 00 35 04 06 00 76 37 8A 32 3D 4A 59 09 C3 2F AA 35 B5 8A [19:44: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 31 31 4F 00 00 00 3C 90 47 00 98 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2D 73 01 00 F4 03 04 00 67 0A EF 65 B6 04 01 00 00 78 FC 51 40 73 88 BB 07 [19:44:15]CommunicateWithHost err = 0 [19:44:15]CheckOFDResponse [19:44:15]1017 (14) - 77093643461234 [19:44:15]1041 (16) - 0000000000874811 [19:44:15]1040 (4) - 95021 [19:44:15]1012 (4) - 11.03.2024 13:43 [19:44:15]1206 (1) - 0 [19:44:15]OFD Sender: Remove packet 95021 [19:44:15]ProducePacketName [19:44:15]name=ofd_packets/00095021 [19:44:15]NVStorageDeleteData [19:44:15]Write to MH i2c: 01 00 00 FD 04 01 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: 01 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: 01 07 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: 01 07 00 FD 04 00 80 00 00 00 63 0D F8 [19:44:15]RasterBufferAndPrint [19:44:15]line [19:44:15]line [19:44:15]line [19:44:15]line [19:44:15]line [19:44:15]written 0, free lines is 3433 [19:44:15]process_action close_receipt done [19:44:15]requested_data is exist [19:44:15]produce_requested_data [19:44:15]requested_item fm.sn is exist - process it [19:44:15]wFMCommunicate request_size=4 [19:44:15]MH_SAM_APDU [19:44:15]CAPDU: 80 11 00 00 [19:44:15]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 17 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D3 [19:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:44:16]wFMCommunicate OK [19:44:16]requested_item fd.num is exist - process it [19:44:16]SAM_PROTO_GetFieldsCounters [19:44:16]wFMCommunicate request_size=4 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 13 00 00 [19:44:16]Write to MH i2c: E2 08 00 05 05 80 13 00 00 00 00 00 00 86 [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 62 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 62 00 05 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [19:44: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:16]wFMCommunicate OK [19:44:16]SAM_PROTO_GetFieldsCounters done [19:44:16]requested_item shift.num is exist - process it [19:44:16]requested_item shift.opened is exist - process it [19:44:16]req_shift_opened [19:44:16]FM_GetShiftState [19:44:16]SAM_PROTO_GetShiftState [19:44:16]wFMCommunicate request_size=4 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 13 01 00 [19:44:16]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 0E 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 24 [19:44:16]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:44:16]wFMCommunicate OK [19:44:16]SAM_PROTO_GetShiftState done [19:44:16]FM_GetShiftState done [19:44:16]req_shift_opened done [19:44:16]requested_item shift.open_date is exist - process it [19:44:16]req_shift_open_date [19:44:16]req_shift_open_date done [19:44:16]produce_requested_data done [19:44:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95021,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:44:16]process_action_free close_receipt [19:44:16]json_value_free [19:44:16]json_value_free done [19:44:16]process_json_proto returns [19:44:16]Send response to host [19:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95021,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:44:16]free response buf [19:44:16]execute_script done [19:44:16]execute_script returns [19:44:16]free content buf [19:44:16]Sock 8.Close socket [19:44:16]Sock 8.Thread stoped [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:03]accept exits with 9 [19:50:03]New connection [19:50:03]New thread 3066957156 created [19:50:03]Thread 3066813796 joined [19:50:03]Waiting for new connection... [19:50:03] Sock 9.Parse request [19:50:03]Sock 9.Check first char [19:50:03]Sock 9.First char is OK [19:50:03]request: POST /json_proto HTTP/1.0 [19:50:03]Method: POST [19:50:03]URL: /json_proto [19:50:03]Method is POST - this is cgi request [19:50:03]url: /json_proto [19:50:03]query_string will be loaded in cgi processing [19:50:03]execute_cgi json_proto POST (null) [19:50:03]execute_cgi path=json_proto method=POST [19:50:03]POST find Content-Length [19:50:03]Host: 172.17.62.67:8080 [19:50:03]Content-Length: 677 [19:50:03]Content-Type: application/json [19:50:03] [19:50:03]POST finish read [19:50:03]Found Content-Length = 677 [19:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:03]execute_script... [19: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)195981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:03]POST & json_proto [19:50:03]process_json_proto [19:50:03]json parsed OK: [19:50:03]protocol is kg_v1.0 [19:50:03]action value=close_receipt [19:50:03]process_action close_receipt [19:50:03]cmd_close_receipt [19:50:03]MH_GetDate [19:50:03]Write to MH i2c: F0 00 00 07 05 FB [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: F0 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: F0 05 00 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: F0 05 00 07 05 00 6C 60 EF 65 20 [19:50:03]GetLastDocTimeStamp 1710186254 [19:50:03]current date 1710186604 [19:50:03]FM_GetShiftState [19:50:03]SAM_PROTO_GetShiftState [19:50:03]wFMCommunicate request_size=4 [19:50:03]MH_SAM_APDU [19:50:03]CAPDU: 80 13 01 00 [19:50:03]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [19:50:03]Write i2c OK [19:50:03]MH_I2C_Read... [19:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:03]Read from MH i2c: E2 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: E2 0E 00 [19:50:03]MH_I2C_Read... [19:50:03]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 26 [19:50:03]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:50:03]wFMCommunicate OK [19:50:03]SAM_PROTO_GetShiftState done [19:50:03]FM_GetShiftState done [19:50:03]opened in 1710115571 [19:50:03]opened+sec_in_day 1710201971 [19:50:03]quantity*price = 60006 [19:50:03]sum+1 = 60008 [19:50:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 197 11.03.2024 19:50 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95022 ФПД: 194426236208571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T195004&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95022&fm=194426236208571&tin=02508201610067®Number=0000000000090555&sum=60000 [19:50:04]StoreToDocumentArchive [19:50:04]shift 326 fd 95022 [19:50:04]save to /storage/0326/doc_00095022 [19:50:04]save last doc name /storage/0326/doc_00095022 to /storage/kkm_last_doc_name [19:50:04]save OK [19:50:04]Clear old archive folders... [19:50:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:04]tlvbuf is 01A03160 [19:50:04]SAM_PROTO_ClearQueue [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 09 00 00 [19:50:04]Write to MH i2c: E2 08 00 15 05 80 09 00 00 00 00 00 00 8C [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 03 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [19:50:04]RAPDU: 90 00 [19:50:04]wFMCommunicate OK [19:50:04]SAM_PROTO_ClearQueue done [19:50:04]KKMCreateOFDPacket [19:50:04]OFDProtocolAddRootSTLVToBuf [19:50:04]FM_MakeSignedData [19:50:04]FM_MakeSignedData [19:50:04]SAM_PROTO_SignData [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 0D 01 02 [19:50:04]Write to MH i2c: E2 08 00 16 05 80 0D 01 02 00 00 00 00 94 [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 03 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [19:50:04]RAPDU: 90 00 [19:50:04]wFMCommunicate OK [19:50:04]wFMCommunicate request_size=255 [19:50:04]MH_SAM_APDU [19: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 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6C 60 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 73 01 00 35 04 06 00 B0 [19:50:04]Write to MH i2c: E2 02 01 17 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6C 60 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 73 01 00 35 04 06 00 B0 00 00 21 [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 03 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [19:50:04]RAPDU: 90 00 [19:50:04]wFMCommunicate OK [19:50:04]wFMCommunicate request_size=10 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 0D 02 02 05 D4 62 BE 85 BB [19:50:04]Write to MH i2c: E2 0D 00 18 05 80 0D 02 02 05 00 D4 62 BE 85 BB 00 00 D5 [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 03 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [19:50:04]RAPDU: 90 00 [19:50:04]wFMCommunicate OK [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 0D 03 02 [19:50:04]Write to MH i2c: E2 08 00 19 05 80 0D 03 02 00 00 00 00 99 [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 0B 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 0B 00 19 05 00 E3 D2 1F A3 83 0D BD 0B 90 00 69 [19:50:04]RAPDU: E3 D2 1F A3 83 0D BD 0B 90 00 [19:50:04]wFMCommunicate OK [19:50:04]SAM_PROTO_SignData done [19:50:04]FM_MakeSignedData done [19:50:04]CreateOFDProtocolMessage [19:50:04]wFMCommunicate request_size=4 [19:50:04]MH_SAM_APDU [19:50:04]CAPDU: 80 11 00 00 [19:50:04]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:04]Read from MH i2c: E2 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 17 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E9 [19:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:50:04]wFMCommunicate OK [19:50:04]CreateOFDProtocolMessage done [19:50:04]OFDSenderStorePacket 95022 [19:50:04]StoreOFDPacket docnum=95022 [19:50:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 57 8F 07 01 FE 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6C 60 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 73 01 00 35 04 06 00 B0 D4 62 BE 85 BB E3 D2 1F A3 83 0D BD 0B [19:50:04]CheckFolder [19:50:04]dirname=/storage/ofd_packets [19:50:04]CheckFolder done [19:50:04]ProducePacketName [19:50:04]name=ofd_packets/00095022 [19:50:04]NVStorageSaveData ofd_packets/00095022 [19:50:04]File name is /storage/ofd_packets/00095022 [19:50:04]Write 301 bytes [19:50:04]NVStorageSaveData done [19:50:04]OFDSenderStorePacket done [19:50:04]KKMCreateOFDPacket done [19:50:04]NVStorageSaveData kkm_last_timestamp [19:50:04]File name is /storage/kkm_last_timestamp [19:50:04]Write 4 bytes [19:50:04]NVStorageSaveData done [19:50:04]ExternCall_PrintAddStr [19:50:04]wPrintStart [19:50:04]Write to MH i2c: 01 00 00 1B 05 20 [19:50:04]Write i2c OK [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: 01 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: 01 07 00 [19:50:04]MH_I2C_Read... [19:50:04]Read from MH i2c: 01 07 00 1B 05 00 80 00 00 00 FF 0F B5 [19:50:04]RasterBufferAndPrint [19:50:04]line Счет N : (1)195981 [19:50:04]line ИНН: 02508201610067 [19:50:04]line Контрольно-Кассовый Чек [19:50:04]line ПРОДАЖА [19:50:04]line ТРК (МРК, ГНК) : 12 [19:50:04]line Товар: 2710124130 [19:50:04]line Аи-92-К-5 [19:50:04]line 9.540 * 62.90 [19:50:04]line = 600.07 [19:50:04]line НДС 12% НСП 1% [19:50:04]line > о реализуемом товаре [19:50:04]line ОКРУГЛЕНИЕ: -0.07 [19:50:04]line ИТОГО: 600.00 [19:50:04]line Внесено: 600.00 [19:50:04]line СДАЧА: 0.00 [19:50:04]line НСП 1% : 5.31 [19:50:04]line НДС 12% : 63.72 [19:50:04]line Наличными: 600.00 [19:50:04]line Безнал.: 0.00 [19:50:04]line Место: АЗС № 6 "Партнер Нефть" [19:50:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:50:04]line СНО: Общий режим [19:50:04]line Чек 197 11.03.2024 19:50 [19:50:04]line Смена: 326 ФФД: 1.0 [19:50:04]line ЗНМ: 0300000009 [19:50:04]line РНМ: 0000000000090555 [19:50:04]line Версия ККМ: 001 [19:50:04]line ФМ: 0000000000874811 [19:50:04]line ФД: 95022 [19:50:04]line ФПД: 194426236208571 [19:50:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T195004&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95022&fm=194426236208571&tin=02508201610067®Number=0000000000090555&sum=60000 [19:50:05]OFD Sender: Processing packet 95022 [packets to send 30, broken 29] [19:50:05]ProducePacketName [19:50:05]name=ofd_packets/00095022 [19:50:05]OFD Sender: To server: pG, [19:50:05]CommunicateWithHost lk.salyk.kg:30040 [19:50:05]ConnectInit lk.salyk.kg [19:50:05]written 0, free lines is 4095 [19:50:05]Connected sock=10 [19: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 31 31 0F 01 00 00 57 8F 07 01 FE 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 6C 60 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2E 73 01 00 35 04 06 00 B0 D4 62 BE 85 BB E3 D2 1F A3 83 0D BD 0B [19: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 31 31 4F 00 00 00 C6 1B 47 00 A2 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 31 31 10 04 04 00 2E 73 01 00 F4 03 04 00 C4 0B EF 65 B6 04 01 00 00 F2 CD CF 6E 59 AD 58 10 [19:50:05]CommunicateWithHost err = 0 [19:50:05]CheckOFDResponse [19:50:05]1017 (14) - 77093643461234 [19:50:05]1041 (16) - 0000000000874811 [19:50:05]1040 (4) - 95022 [19:50:05]1012 (4) - 11.03.2024 13:48 [19:50:05]1206 (1) - 0 [19:50:05]OFD Sender: Remove packet 95022 [19:50:05]ProducePacketName [19:50:05]name=ofd_packets/00095022 [19:50:05]NVStorageDeleteData [19:50:05]Write to MH i2c: 01 00 00 46 05 4B [19:50:05]Write i2c OK [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: 01 [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: 01 07 00 [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: 01 07 00 46 05 00 80 00 00 00 52 0D 31 [19:50:05]RasterBufferAndPrint [19:50:05]line [19:50:05]line [19:50:05]line [19:50:05]line [19:50:05]line [19:50:05]written 0, free lines is 3416 [19:50:05]process_action close_receipt done [19:50:05]requested_data is exist [19:50:05]produce_requested_data [19:50:05]requested_item fm.sn is exist - process it [19:50:05]wFMCommunicate request_size=4 [19:50:05]MH_SAM_APDU [19:50:05]CAPDU: 80 11 00 00 [19:50:05]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [19:50:05]Write i2c OK [19:50:05]MH_I2C_Read... [19:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:05]Read from MH i2c: E2 [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: E2 17 00 [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1C [19:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:50:05]wFMCommunicate OK [19:50:05]requested_item fd.num is exist - process it [19:50:05]SAM_PROTO_GetFieldsCounters [19:50:05]wFMCommunicate request_size=4 [19:50:05]MH_SAM_APDU [19:50:05]CAPDU: 80 13 00 00 [19:50:05]Write to MH i2c: E2 08 00 4E 05 80 13 00 00 00 00 00 00 CF [19:50:05]Write i2c OK [19:50:05]MH_I2C_Read... [19:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:05]Read from MH i2c: E2 [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: E2 62 00 [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: E2 62 00 4E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [19:50: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:05]wFMCommunicate OK [19:50:05]SAM_PROTO_GetFieldsCounters done [19:50:05]requested_item shift.num is exist - process it [19:50:05]requested_item shift.opened is exist - process it [19:50:05]req_shift_opened [19:50:05]FM_GetShiftState [19:50:05]SAM_PROTO_GetShiftState [19:50:05]wFMCommunicate request_size=4 [19:50:05]MH_SAM_APDU [19:50:05]CAPDU: 80 13 01 00 [19:50:05]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [19:50:05]Write i2c OK [19:50:05]MH_I2C_Read... [19:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:05]Read from MH i2c: E2 [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: E2 0E 00 [19:50:05]MH_I2C_Read... [19:50:05]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 6D [19:50:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:50:05]wFMCommunicate OK [19:50:05]SAM_PROTO_GetShiftState done [19:50:05]FM_GetShiftState done [19:50:05]req_shift_opened done [19:50:05]requested_item shift.open_date is exist - process it [19:50:05]req_shift_open_date [19:50:05]req_shift_open_date done [19:50:05]produce_requested_data done [19:50:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95022,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:50:05]process_action_free close_receipt [19:50:05]json_value_free [19:50:05]json_value_free done [19:50:05]process_json_proto returns [19:50:05]Send response to host [19:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95022,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:50:05]free response buf [19:50:05]execute_script done [19:50:05]execute_script returns [19:50:05]free content buf [19:50:05]Sock 9.Close socket [19:50:05]Sock 9.Thread stoped [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:55]accept exits with 8 [19:56:55]New connection [19:56:55]New thread 3066813796 created [19:56:55]Thread 3066957156 joined [19:56:55]Waiting for new connection... [19:56:55] Sock 8.Parse request [19:56:55]Sock 8.Check first char [19:56:55]Sock 8.First char is OK [19:56:55]request: POST /json_proto HTTP/1.0 [19:56:55]Method: POST [19:56:55]URL: /json_proto [19:56:55]Method is POST - this is cgi request [19:56:55]url: /json_proto [19:56:55]query_string will be loaded in cgi processing [19:56:55]execute_cgi json_proto POST (null) [19:56:55]execute_cgi path=json_proto method=POST [19:56:55]POST find Content-Length [19:56:55]Host: 172.17.62.67:8080 [19:56:55]Content-Length: 678 [19:56:55]Content-Type: application/json [19:56:55] [19:56:55]POST finish read [19:56:55]Found Content-Length = 678 [19:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [19:56:55]execute_script... [19:56: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)195982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [19:56:55]POST & json_proto [19:56:55]process_json_proto [19:56:55]json parsed OK: [19:56:55]protocol is kg_v1.0 [19:56:55]action value=close_receipt [19:56:55]process_action close_receipt [19:56:55]cmd_close_receipt [19:56:55]MH_GetDate [19:56:55]Write to MH i2c: F0 00 00 50 05 44 [19:56:55]Write i2c OK [19:56:55]MH_I2C_Read... [19:56:55]Read from MH i2c: F0 [19:56:55]MH_I2C_Read... [19:56:55]Read from MH i2c: F0 05 00 [19:56:55]MH_I2C_Read... [19:56:55]Read from MH i2c: F0 05 00 50 05 00 08 62 EF 65 07 [19:56:55]GetLastDocTimeStamp 1710186604 [19:56:55]current date 1710187016 [19:56:55]FM_GetShiftState [19:56:55]SAM_PROTO_GetShiftState [19:56:55]wFMCommunicate request_size=4 [19:56:55]MH_SAM_APDU [19:56:55]CAPDU: 80 13 01 00 [19:56:55]Write to MH i2c: E2 08 00 51 05 80 13 01 00 00 00 00 00 D3 [19:56:55]Write i2c OK [19:56:55]MH_I2C_Read... [19:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:55]Read from MH i2c: E2 [19:56:55]MH_I2C_Read... [19:56:55]Read from MH i2c: E2 0E 00 [19:56:55]MH_I2C_Read... [19:56:55]Read from MH i2c: E2 0E 00 51 05 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 6F [19:56:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:56:55]wFMCommunicate OK [19:56:55]SAM_PROTO_GetShiftState done [19:56:55]FM_GetShiftState done [19:56:55]opened in 1710115571 [19:56:55]opened+sec_in_day 1710201971 [19:56:55]quantity*price = 70007 [19:56:55]sum+1 = 70009 [19:56:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 198 11.03.2024 19:56 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95023 ФПД: 108565199627900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T195656&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95023&fm=108565199627900&tin=02508201610067®Number=0000000000090555&sum=70000 [19:56:56]StoreToDocumentArchive [19:56:56]shift 326 fd 95023 [19:56:56]save to /storage/0326/doc_00095023 [19:56:56]save last doc name /storage/0326/doc_00095023 to /storage/kkm_last_doc_name [19:56:56]save OK [19:56:56]Clear old archive folders... [19:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:56]tlvbuf is 01A44F20 [19:56:56]SAM_PROTO_ClearQueue [19:56:56]wFMCommunicate request_size=4 [19:56:56]MH_SAM_APDU [19:56:56]CAPDU: 80 09 00 00 [19:56:56]Write to MH i2c: E2 08 00 5E 05 80 09 00 00 00 00 00 00 D5 [19:56:56]Write i2c OK [19:56:56]MH_I2C_Read... [19:56:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:56]Read from MH i2c: E2 [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: E2 03 00 [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [19:56:56]RAPDU: 90 00 [19:56:56]wFMCommunicate OK [19:56:56]SAM_PROTO_ClearQueue done [19:56:56]KKMCreateOFDPacket [19:56:56]OFDProtocolAddRootSTLVToBuf [19:56:56]FM_MakeSignedData [19:56:56]FM_MakeSignedData [19:56:56]SAM_PROTO_SignData [19:56:56]wFMCommunicate request_size=4 [19:56:56]MH_SAM_APDU [19:56:56]CAPDU: 80 0D 01 02 [19:56:56]Write to MH i2c: E2 08 00 5F 05 80 0D 01 02 00 00 00 00 DD [19:56:56]Write i2c OK [19:56:56]MH_I2C_Read... [19:56:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:56]Read from MH i2c: E2 [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: E2 03 00 [19:56:56]MH_I2C_Read... [19:56:56]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [19:56:56]RAPDU: 90 00 [19:56:56]wFMCommunicate OK [19:56:56]wFMCommunicate request_size=255 [19:56:56]MH_SAM_APDU [19:56:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 C6 00 00 00 F4 03 04 00 08 62 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 73 01 00 35 04 06 00 62 [19:56:56]Write to MH i2c: E2 02 01 60 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 C6 00 00 00 F4 03 04 00 08 62 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 73 01 00 35 04 06 00 62 00 00 24 [19:56:56]Write i2c OK [19:56:56]MH_I2C_Read... [19:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:57]Read from MH i2c: E2 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 03 00 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [19:56:57]RAPDU: 90 00 [19:56:57]wFMCommunicate OK [19:56:57]wFMCommunicate request_size=10 [19:56:57]MH_SAM_APDU [19:56:57]CAPDU: 80 0D 02 02 05 BD 4E 28 A6 7C [19:56:57]Write to MH i2c: E2 0D 00 61 05 80 0D 02 02 05 00 BD 4E 28 A6 7C 00 00 3F [19:56:57]Write i2c OK [19:56:57]MH_I2C_Read... [19:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:57]Read from MH i2c: E2 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 03 00 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [19:56:57]RAPDU: 90 00 [19:56:57]wFMCommunicate OK [19:56:57]wFMCommunicate request_size=4 [19:56:57]MH_SAM_APDU [19:56:57]CAPDU: 80 0D 03 02 [19:56:57]Write to MH i2c: E2 08 00 62 05 80 0D 03 02 00 00 00 00 E2 [19:56:57]Write i2c OK [19:56:57]MH_I2C_Read... [19:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:57]Read from MH i2c: E2 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 0B 00 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 0B 00 62 05 00 80 C3 46 C1 89 43 75 E3 90 00 51 [19:56:57]RAPDU: 80 C3 46 C1 89 43 75 E3 90 00 [19:56:57]wFMCommunicate OK [19:56:57]SAM_PROTO_SignData done [19:56:57]FM_MakeSignedData done [19:56:57]CreateOFDProtocolMessage [19:56:57]wFMCommunicate request_size=4 [19:56:57]MH_SAM_APDU [19:56:57]CAPDU: 80 11 00 00 [19:56:57]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [19:56:57]Write i2c OK [19:56:57]MH_I2C_Read... [19:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:57]Read from MH i2c: E2 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 17 00 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 32 [19:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:56:57]wFMCommunicate OK [19:56:57]CreateOFDProtocolMessage done [19:56:57]OFDSenderStorePacket 95023 [19:56:57]StoreOFDPacket docnum=95023 [19:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 52 07 01 44 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 C6 00 00 00 F4 03 04 00 08 62 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 73 01 00 35 04 06 00 62 BD 4E 28 A6 7C 80 C3 46 C1 89 43 75 E3 [19:56:57]CheckFolder [19:56:57]dirname=/storage/ofd_packets [19:56:57]CheckFolder done [19:56:57]ProducePacketName [19:56:57]name=ofd_packets/00095023 [19:56:57]NVStorageSaveData ofd_packets/00095023 [19:56:57]File name is /storage/ofd_packets/00095023 [19:56:57]Write 301 bytes [19:56:57]NVStorageSaveData done [19:56:57]OFDSenderStorePacket done [19:56:57]KKMCreateOFDPacket done [19:56:57]NVStorageSaveData kkm_last_timestamp [19:56:57]File name is /storage/kkm_last_timestamp [19:56:57]Write 4 bytes [19:56:57]NVStorageSaveData done [19:56:57]ExternCall_PrintAddStr [19:56:57]wPrintStart [19:56:57]Write to MH i2c: 01 00 00 64 05 69 [19:56:57]Write i2c OK [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: 01 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: 01 07 00 [19:56:57]MH_I2C_Read... [19:56:57]Read from MH i2c: 01 07 00 64 05 00 80 00 00 00 FF 0F FE [19:56:57]RasterBufferAndPrint [19:56:57]line Счет N : (1)195982 [19:56:57]line ИНН: 02508201610067 [19:56:57]line Контрольно-Кассовый Чек [19:56:57]line ПРОДАЖА [19:56:57]line ТРК (МРК, ГНК) : 42 [19:56:57]line Товар: 2710124130 [19:56:57]line Аи-92-К-5 [19:56:57]line 11.130 * 62.90 [19:56:57]line = 700.08 [19:56:57]line НДС 12% НСП 1% [19:56:57]line > о реализуемом товаре [19:56:57]line ОКРУГЛЕНИЕ: -0.08 [19:56:57]line ИТОГО: 700.00 [19:56:57]line Внесено: 700.00 [19:56:57]line СДАЧА: 0.00 [19:56:57]line НСП 1% : 6.19 [19:56:57]line НДС 12% : 74.34 [19:56:57]line Наличными: 700.00 [19:56:57]line Безнал.: 0.00 [19:56:57]line Место: АЗС № 6 "Партнер Нефть" [19:56:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:56:57]line СНО: Общий режим [19:56:57]line Чек 198 11.03.2024 19:56 [19:56:57]line Смена: 326 ФФД: 1.0 [19:56:57]line ЗНМ: 0300000009 [19:56:57]line РНМ: 0000000000090555 [19:56:57]line Версия ККМ: 001 [19:56:57]line ФМ: 0000000000874811 [19:56:57]line ФД: 95023 [19:56:57]line ФПД: 108565199627900 [19:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T195656&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95023&fm=108565199627900&tin=02508201610067®Number=0000000000090555&sum=70000 [19:56:57]OFD Sender: Processing packet 95023 [packets to send 30, broken 29] [19:56:57]ProducePacketName [19:56:57]name=ofd_packets/00095023 [19:56:57]OFD Sender: To server: pG, [19:56:57]CommunicateWithHost lk.salyk.kg:30040 [19:56:57]ConnectInit lk.salyk.kg [19:56:57]written 0, free lines is 4095 [19:56:57]Connected sock=10 [19:56: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 31 31 0F 01 00 00 58 52 07 01 44 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 C6 00 00 00 F4 03 04 00 08 62 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 2F 73 01 00 35 04 06 00 62 BD 4E 28 A6 7C 80 C3 46 C1 89 43 75 E3 [19:56: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 31 31 4F 00 00 00 96 EE 47 00 E4 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 31 31 10 04 04 00 2F 73 01 00 F4 03 04 00 61 0D EF 65 B6 04 01 00 00 00 25 BA 40 0E 8C 60 22 [19:56:57]CommunicateWithHost err = 0 [19:56:57]CheckOFDResponse [19:56:57]1017 (14) - 77093643461234 [19:56:57]1041 (16) - 0000000000874811 [19:56:57]1040 (4) - 95023 [19:56:57]1012 (4) - 11.03.2024 13:55 [19:56:57]1206 (1) - 0 [19:56:57]OFD Sender: Remove packet 95023 [19:56:57]ProducePacketName [19:56:57]name=ofd_packets/00095023 [19:56:57]NVStorageDeleteData [19:56:58]Write to MH i2c: 01 00 00 8F 05 94 [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 07 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: 01 07 00 8F 05 00 80 00 00 00 4E 0D 76 [19:56:58]RasterBufferAndPrint [19:56:58]line [19:56:58]line [19:56:58]line [19:56:58]line [19:56:58]line [19:56:58]written 0, free lines is 3412 [19:56:58]process_action close_receipt done [19:56:58]requested_data is exist [19:56:58]produce_requested_data [19:56:58]requested_item fm.sn is exist - process it [19:56:58]wFMCommunicate request_size=4 [19:56:58]MH_SAM_APDU [19:56:58]CAPDU: 80 11 00 00 [19:56:58]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 [19:56:58]MH_I2C_Read... [19:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:58]Read from MH i2c: E2 17 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 65 [19:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:56:58]wFMCommunicate OK [19:56:58]requested_item fd.num is exist - process it [19:56:58]SAM_PROTO_GetFieldsCounters [19:56:58]wFMCommunicate request_size=4 [19:56:58]MH_SAM_APDU [19:56:58]CAPDU: 80 13 00 00 [19:56:58]Write to MH i2c: E2 08 00 97 05 80 13 00 00 00 00 00 00 18 [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:58]Read from MH i2c: E2 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 62 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 62 00 97 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [19:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 2F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:58]wFMCommunicate OK [19:56:58]SAM_PROTO_GetFieldsCounters done [19:56:58]requested_item shift.num is exist - process it [19:56:58]requested_item shift.opened is exist - process it [19:56:58]req_shift_opened [19:56:58]FM_GetShiftState [19:56:58]SAM_PROTO_GetShiftState [19:56:58]wFMCommunicate request_size=4 [19:56:58]MH_SAM_APDU [19:56:58]CAPDU: 80 13 01 00 [19:56:58]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [19:56:58]Write i2c OK [19:56:58]MH_I2C_Read... [19:56:58]OFD Sender: No OFD packet to send [19:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:58]Read from MH i2c: E2 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 0E 00 [19:56:58]MH_I2C_Read... [19:56:58]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B6 [19:56:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:56:58]wFMCommunicate OK [19:56:58]SAM_PROTO_GetShiftState done [19:56:58]FM_GetShiftState done [19:56:58]req_shift_opened done [19:56:58]requested_item shift.open_date is exist - process it [19:56:58]req_shift_open_date [19:56:58]req_shift_open_date done [19:56:58]produce_requested_data done [19:56:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95023,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:56:58]process_action_free close_receipt [19:56:58]json_value_free [19:56:58]json_value_free done [19:56:58]process_json_proto returns [19:56:58]Send response to host [19:56:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95023,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:56:58]free response buf [19:56:58]execute_script done [19:56:58]execute_script returns [19:56:58]free content buf [19:56:58]Sock 8.Close socket [19:56:58]Sock 8.Thread stoped [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:11]accept exits with 9 [19:58:11]New connection [19:58:11]New thread 3066957156 created [19:58:11]Thread 3066813796 joined [19:58:11]Waiting for new connection... [19:58:11] Sock 9.Parse request [19:58:11]Sock 9.Check first char [19:58:11]Sock 9.First char is OK [19:58:11]request: POST /json_proto HTTP/1.0 [19:58:11]Method: POST [19:58:11]URL: /json_proto [19:58:11]Method is POST - this is cgi request [19:58:11]url: /json_proto [19:58:11]query_string will be loaded in cgi processing [19:58:11]execute_cgi json_proto POST (null) [19:58:11]execute_cgi path=json_proto method=POST [19:58:11]POST find Content-Length [19:58:11]Host: 172.17.62.67:8080 [19:58:11]Content-Length: 678 [19:58:11]Content-Type: application/json [19:58:11] [19:58:11]POST finish read [19:58:11]Found Content-Length = 678 [19:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [19:58:11]execute_script... [19:58: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)195983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 11.130, "sum" : 700.08, "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" ] } } [19:58:11]POST & json_proto [19:58:11]process_json_proto [19:58:11]json parsed OK: [19:58:11]protocol is kg_v1.0 [19:58:11]action value=close_receipt [19:58:11]process_action close_receipt [19:58:11]cmd_close_receipt [19:58:11]MH_GetDate [19:58:11]Write to MH i2c: F0 00 00 99 05 8D [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: F0 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: F0 05 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: F0 05 00 99 05 00 54 62 EF 65 9C [19:58:11]GetLastDocTimeStamp 1710187016 [19:58:11]current date 1710187092 [19:58:11]FM_GetShiftState [19:58:11]SAM_PROTO_GetShiftState [19:58:11]wFMCommunicate request_size=4 [19:58:11]MH_SAM_APDU [19:58:11]CAPDU: 80 13 01 00 [19:58:11]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:11]Read from MH i2c: E2 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 0E 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B8 [19:58:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:58:11]wFMCommunicate OK [19:58:11]SAM_PROTO_GetShiftState done [19:58:11]FM_GetShiftState done [19:58:11]opened in 1710115571 [19:58:11]opened+sec_in_day 1710201971 [19:58:11]quantity*price = 70007 [19:58:11]sum+1 = 70009 [19:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 199 11.03.2024 19:58 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95024 ФПД: 188374395561394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T195812&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95024&fm=188374395561394&tin=02508201610067®Number=0000000000090555&sum=70000 [19:58:12]StoreToDocumentArchive [19:58:12]shift 326 fd 95024 [19:58:12]save to /storage/0326/doc_00095024 [19:58:12]save last doc name /storage/0326/doc_00095024 to /storage/kkm_last_doc_name [19:58:12]save OK [19:58:12]Clear old archive folders... [19:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:12]tlvbuf is 01A34B10 [19:58:12]SAM_PROTO_ClearQueue [19:58:12]wFMCommunicate request_size=4 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 09 00 00 [19:58:12]Write to MH i2c: E2 08 00 A7 05 80 09 00 00 00 00 00 00 1E [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [19:58:12]RAPDU: 90 00 [19:58:12]wFMCommunicate OK [19:58:12]SAM_PROTO_ClearQueue done [19:58:12]KKMCreateOFDPacket [19:58:12]OFDProtocolAddRootSTLVToBuf [19:58:12]FM_MakeSignedData [19:58:12]FM_MakeSignedData [19:58:12]SAM_PROTO_SignData [19:58:12]wFMCommunicate request_size=4 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 0D 01 02 [19:58:12]Write to MH i2c: E2 08 00 A8 05 80 0D 01 02 00 00 00 00 26 [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:12]Read from MH i2c: E2 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 [19:58:12]MH_I2C_Read... [19:58:12]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [19:58:12]RAPDU: 90 00 [19:58:12]wFMCommunicate OK [19:58:12]wFMCommunicate request_size=255 [19:58:12]MH_SAM_APDU [19:58:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 C7 00 00 00 F4 03 04 00 54 62 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 73 01 00 35 04 06 00 AB [19:58:12]Write to MH i2c: E2 02 01 A9 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 C7 00 00 00 F4 03 04 00 54 62 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 73 01 00 35 04 06 00 AB 00 00 04 [19:58:12]Write i2c OK [19:58:12]MH_I2C_Read... [19:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:13]Read from MH i2c: E2 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 03 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [19:58:13]RAPDU: 90 00 [19:58:13]wFMCommunicate OK [19:58:13]wFMCommunicate request_size=10 [19:58:13]MH_SAM_APDU [19:58:13]CAPDU: 80 0D 02 02 05 53 54 EE A5 B2 [19:58:13]Write to MH i2c: E2 0D 00 AA 05 80 0D 02 02 05 00 53 54 EE A5 B2 00 00 1F [19:58:13]Write i2c OK [19:58:13]MH_I2C_Read... [19:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:13]Read from MH i2c: E2 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 03 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [19:58:13]RAPDU: 90 00 [19:58:13]wFMCommunicate OK [19:58:13]wFMCommunicate request_size=4 [19:58:13]MH_SAM_APDU [19:58:13]CAPDU: 80 0D 03 02 [19:58:13]Write to MH i2c: E2 08 00 AB 05 80 0D 03 02 00 00 00 00 2B [19:58:13]Write i2c OK [19:58:13]MH_I2C_Read... [19:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:13]Read from MH i2c: E2 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 0B 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 0B 00 AB 05 00 05 1D 9D FE 7E 7A 10 68 90 00 59 [19:58:13]RAPDU: 05 1D 9D FE 7E 7A 10 68 90 00 [19:58:13]wFMCommunicate OK [19:58:13]SAM_PROTO_SignData done [19:58:13]FM_MakeSignedData done [19:58:13]CreateOFDProtocolMessage [19:58:13]wFMCommunicate request_size=4 [19:58:13]MH_SAM_APDU [19:58:13]CAPDU: 80 11 00 00 [19:58:13]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [19:58:13]Write i2c OK [19:58:13]MH_I2C_Read... [19:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:13]Read from MH i2c: E2 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 17 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7B [19:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:58:13]wFMCommunicate OK [19:58:13]CreateOFDProtocolMessage done [19:58:13]OFDSenderStorePacket 95024 [19:58:13]StoreOFDPacket docnum=95024 [19:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3F 47 07 01 D4 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 C7 00 00 00 F4 03 04 00 54 62 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 73 01 00 35 04 06 00 AB 53 54 EE A5 B2 05 1D 9D FE 7E 7A 10 68 [19:58:13]CheckFolder [19:58:13]dirname=/storage/ofd_packets [19:58:13]CheckFolder done [19:58:13]ProducePacketName [19:58:13]name=ofd_packets/00095024 [19:58:13]NVStorageSaveData ofd_packets/00095024 [19:58:13]File name is /storage/ofd_packets/00095024 [19:58:13]Write 301 bytes [19:58:13]NVStorageSaveData done [19:58:13]OFDSenderStorePacket done [19:58:13]KKMCreateOFDPacket done [19:58:13]NVStorageSaveData kkm_last_timestamp [19:58:13]File name is /storage/kkm_last_timestamp [19:58:13]Write 4 bytes [19:58:13]NVStorageSaveData done [19:58:13]ExternCall_PrintAddStr [19:58:13]wPrintStart [19:58:13]Write to MH i2c: 01 00 00 AD 05 B2 [19:58:13]OFD Sender: Processing packet 95024 [packets to send 30, broken 29] [19:58:13]ProducePacketName [19:58:13]name=ofd_packets/00095024 [19:58:13]OFD Sender: To server: pG, [19:58:13]CommunicateWithHost lk.salyk.kg:30040 [19:58:13]ConnectInit lk.salyk.kg [19:58:13]Write i2c OK [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: 01 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: 01 07 00 [19:58:13]MH_I2C_Read... [19:58:13]Read from MH i2c: 01 07 00 AD 05 00 80 00 00 00 FF 0F 47 [19:58:13]RasterBufferAndPrint [19:58:13]line Счет N : (1)195983 [19:58:13]line ИНН: 02508201610067 [19:58:13]line Контрольно-Кассовый Чек [19:58:13]line ПРОДАЖА [19:58:13]line ТРК (МРК, ГНК) : 32 [19:58:13]line Товар: 2710124130 [19:58:13]line Аи-92-К-5 [19:58:13]line 11.130 * 62.90 [19:58:13]line = 700.08 [19:58:13]line НДС 12% НСП 1% [19:58:13]line > о реализуемом товаре [19:58:13]line ОКРУГЛЕНИЕ: -0.08 [19:58:13]line ИТОГО: 700.00 [19:58:13]line Внесено: 700.00 [19:58:13]line СДАЧА: 0.00 [19:58:13]line НСП 1% : 6.19 [19:58:13]line НДС 12% : 74.34 [19:58:13]line Наличными: 700.00 [19:58:13]line Безнал.: 0.00 [19:58:13]line Место: АЗС № 6 "Партнер Нефть" [19:58:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [19:58:13]line СНО: Общий режим [19:58:13]line Чек 199 11.03.2024 19:58 [19:58:13]line Смена: 326 ФФД: 1.0 [19:58:13]line ЗНМ: 0300000009 [19:58:13]line РНМ: 0000000000090555 [19:58:13]line Версия ККМ: 001 [19:58:13]line ФМ: 0000000000874811 [19:58:13]line ФД: 95024 [19:58:13]line ФПД: 188374395561394 [19:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T195812&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95024&fm=188374395561394&tin=02508201610067®Number=0000000000090555&sum=70000 [19:58:13]Connected sock=11 [19:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3F 47 07 01 D4 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 C7 00 00 00 F4 03 04 00 54 62 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 30 73 01 00 35 04 06 00 AB 53 54 EE A5 B2 05 1D 9D FE 7E 7A 10 68 [19:58:13]written 0, free lines is 4095 [19:58: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 31 31 4F 00 00 00 78 27 47 00 F4 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 31 31 10 04 04 00 30 73 01 00 F4 03 04 00 AD 0D EF 65 B6 04 01 00 00 23 E8 78 6C 6C 6F 64 F2 [19:58:13]CommunicateWithHost err = 0 [19:58:13]CheckOFDResponse [19:58:13]1017 (14) - 77093643461234 [19:58:13]1041 (16) - 0000000000874811 [19:58:13]1040 (4) - 95024 [19:58:13]1012 (4) - 11.03.2024 13:57 [19:58:13]1206 (1) - 0 [19:58:13]OFD Sender: Remove packet 95024 [19:58:13]ProducePacketName [19:58:13]name=ofd_packets/00095024 [19:58:13]NVStorageDeleteData [19:58:14]Write to MH i2c: 01 00 00 D8 05 DD [19:58:14]Write i2c OK [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: 01 [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: 01 07 00 [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: 01 07 00 D8 05 00 80 00 00 00 52 0D C3 [19:58:14]RasterBufferAndPrint [19:58:14]line [19:58:14]line [19:58:14]line [19:58:14]line [19:58:14]line [19:58:14]written 0, free lines is 3414 [19:58:14]process_action close_receipt done [19:58:14]requested_data is exist [19:58:14]produce_requested_data [19:58:14]requested_item fm.sn is exist - process it [19:58:14]wFMCommunicate request_size=4 [19:58:14]MH_SAM_APDU [19:58:14]CAPDU: 80 11 00 00 [19:58:14]Write to MH i2c: E2 08 00 DF 05 80 11 00 00 00 00 00 00 5E [19:58:14]Write i2c OK [19:58:14]MH_I2C_Read... [19:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:14]Read from MH i2c: E2 [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: E2 17 00 [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: E2 17 00 DF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AE [19:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [19:58:14]wFMCommunicate OK [19:58:14]requested_item fd.num is exist - process it [19:58:14]SAM_PROTO_GetFieldsCounters [19:58:14]wFMCommunicate request_size=4 [19:58:14]MH_SAM_APDU [19:58:14]CAPDU: 80 13 00 00 [19:58:14]Write to MH i2c: E2 08 00 E0 05 80 13 00 00 00 00 00 00 61 [19:58:14]Write i2c OK [19:58:14]MH_I2C_Read... [19:58:14]OFD Sender: No OFD packet to send [19:58:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:14]Read from MH i2c: E2 [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: E2 62 00 [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: E2 62 00 E0 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 30 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [19:58: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 30 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:14]wFMCommunicate OK [19:58:14]SAM_PROTO_GetFieldsCounters done [19:58:14]requested_item shift.num is exist - process it [19:58:14]requested_item shift.opened is exist - process it [19:58:14]req_shift_opened [19:58:14]FM_GetShiftState [19:58:14]SAM_PROTO_GetShiftState [19:58:14]wFMCommunicate request_size=4 [19:58:14]MH_SAM_APDU [19:58:14]CAPDU: 80 13 01 00 [19:58:14]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [19:58:14]Write i2c OK [19:58:14]MH_I2C_Read... [19:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:14]Read from MH i2c: E2 [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: E2 0E 00 [19:58:14]MH_I2C_Read... [19:58:14]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FF [19:58:14]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [19:58:14]wFMCommunicate OK [19:58:14]SAM_PROTO_GetShiftState done [19:58:14]FM_GetShiftState done [19:58:14]req_shift_opened done [19:58:14]requested_item shift.open_date is exist - process it [19:58:14]req_shift_open_date [19:58:14]req_shift_open_date done [19:58:14]produce_requested_data done [19:58:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95024,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [19:58:14]process_action_free close_receipt [19:58:14]json_value_free [19:58:14]json_value_free done [19:58:14]process_json_proto returns [19:58:14]Send response to host [19:58:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95024,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [19:58:14]free response buf [19:58:14]execute_script done [19:58:14]execute_script returns [19:58:14]free content buf [19:58:14]Sock 9.Close socket [19:58:14]Sock 9.Thread stoped [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:06]accept exits with 8 [20:03:06]New connection [20:03:06]New thread 3066813796 created [20:03:06]Thread 3066957156 joined [20:03:06]Waiting for new connection... [20:03:06] Sock 8.Parse request [20:03:06]Sock 8.Check first char [20:03:06]Sock 8.First char is OK [20:03:06]request: POST /json_proto HTTP/1.0 [20:03:06]Method: POST [20:03:06]URL: /json_proto [20:03:06]Method is POST - this is cgi request [20:03:06]url: /json_proto [20:03:06]query_string will be loaded in cgi processing [20:03:06]execute_cgi json_proto POST (null) [20:03:06]execute_cgi path=json_proto method=POST [20:03:06]POST find Content-Length [20:03:06]Host: 172.17.62.67:8080 [20:03:06]Content-Length: 677 [20:03:06]Content-Type: application/json [20:03:06] [20:03:06]POST finish read [20:03:06]Found Content-Length = 677 [20:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:06]execute_script... [20:03:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:06]POST & json_proto [20:03:06]process_json_proto [20:03:06]json parsed OK: [20:03:06]protocol is kg_v1.0 [20:03:06]action value=close_receipt [20:03:06]process_action close_receipt [20:03:06]cmd_close_receipt [20:03:06]MH_GetDate [20:03:06]Write to MH i2c: F0 00 00 E2 05 D6 [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: F0 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: F0 05 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: F0 05 00 E2 05 00 7B 63 EF 65 0D [20:03:06]GetLastDocTimeStamp 1710187092 [20:03:06]current date 1710187387 [20:03:06]FM_GetShiftState [20:03:06]SAM_PROTO_GetShiftState [20:03:06]wFMCommunicate request_size=4 [20:03:06]MH_SAM_APDU [20:03:06]CAPDU: 80 13 01 00 [20:03:06]Write to MH i2c: E2 08 00 E3 05 80 13 01 00 00 00 00 00 65 [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:06]Read from MH i2c: E2 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 0E 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 0E 00 E3 05 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 01 [20:03:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:03:06]wFMCommunicate OK [20:03:06]SAM_PROTO_GetShiftState done [20:03:06]FM_GetShiftState done [20:03:06]opened in 1710115571 [20:03:06]opened+sec_in_day 1710201971 [20:03:06]quantity*price = 20002 [20:03:06]sum+1 = 20003 [20:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 200 11.03.2024 20:03 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95025 ФПД: 83701175727465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T200307&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95025&fm=83701175727465&tin=02508201610067®Number=0000000000090555&sum=20000 [20:03:07]StoreToDocumentArchive [20:03:07]shift 326 fd 95025 [20:03:07]save to /storage/0326/doc_00095025 [20:03:07]save last doc name /storage/0326/doc_00095025 to /storage/kkm_last_doc_name [20:03:07]save OK [20:03:07]Clear old archive folders... [20:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:07]tlvbuf is 01A36430 [20:03:07]SAM_PROTO_ClearQueue [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 09 00 00 [20:03:07]Write to MH i2c: E2 08 00 F0 05 80 09 00 00 00 00 00 00 67 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]SAM_PROTO_ClearQueue done [20:03:07]KKMCreateOFDPacket [20:03:07]OFDProtocolAddRootSTLVToBuf [20:03:07]FM_MakeSignedData [20:03:07]FM_MakeSignedData [20:03:07]SAM_PROTO_SignData [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 01 02 [20:03:07]Write to MH i2c: E2 08 00 F1 05 80 0D 01 02 00 00 00 00 6F [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]wFMCommunicate request_size=255 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 7B 63 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 73 01 00 35 04 06 00 4C [20:03:07]Write to MH i2c: E2 02 01 F2 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 7B 63 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 73 01 00 35 04 06 00 4C 00 00 1A [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]wFMCommunicate request_size=10 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 02 02 05 20 32 D8 B5 69 [20:03:07]Write to MH i2c: E2 0D 00 F3 05 80 0D 02 02 05 00 20 32 D8 B5 69 00 00 C4 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 03 02 [20:03:07]Write to MH i2c: E2 08 00 F4 05 80 0D 03 02 00 00 00 00 74 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 0B 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 0B 00 F4 05 00 1F 07 A2 3F 92 94 15 81 90 00 38 [20:03:07]RAPDU: 1F 07 A2 3F 92 94 15 81 90 00 [20:03:07]wFMCommunicate OK [20:03:07]SAM_PROTO_SignData done [20:03:07]FM_MakeSignedData done [20:03:07]CreateOFDProtocolMessage [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 11 00 00 [20:03:07]Write to MH i2c: E2 08 00 F5 05 80 11 00 00 00 00 00 00 74 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 17 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 17 00 F5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C4 [20:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:03:07]wFMCommunicate OK [20:03:07]CreateOFDProtocolMessage done [20:03:07]OFDSenderStorePacket 95025 [20:03:07]StoreOFDPacket docnum=95025 [20:03:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 8F 07 01 FD 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 7B 63 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 73 01 00 35 04 06 00 4C 20 32 D8 B5 69 1F 07 A2 3F 92 94 15 81 [20:03:07]CheckFolder [20:03:07]dirname=/storage/ofd_packets [20:03:07]CheckFolder done [20:03:07]ProducePacketName [20:03:07]name=ofd_packets/00095025 [20:03:07]NVStorageSaveData ofd_packets/00095025 [20:03:07]File name is /storage/ofd_packets/00095025 [20:03:07]Write 301 bytes [20:03:07]NVStorageSaveData done [20:03:07]OFDSenderStorePacket done [20:03:07]KKMCreateOFDPacket done [20:03:07]NVStorageSaveData kkm_last_timestamp [20:03:07]File name is /storage/kkm_last_timestamp [20:03:07]Write 4 bytes [20:03:07]NVStorageSaveData done [20:03:07]ExternCall_PrintAddStr [20:03:07]wPrintStart [20:03:07]Write to MH i2c: 01 00 00 F6 05 FB [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 F6 05 00 80 00 00 00 FF 0F 90 [20:03:07]RasterBufferAndPrint [20:03:07]line Счет N : (1)195984 [20:03:07]line ИНН: 02508201610067 [20:03:07]line Контрольно-Кассовый Чек [20:03:07]line ПРОДАЖА [20:03:07]line ТРК (МРК, ГНК) : 32 [20:03:07]line Товар: 2710124130 [20:03:07]line Аи-92-К-5 [20:03:07]line 3.180 * 62.90 [20:03:07]line = 200.02 [20:03:07]line НДС 12% НСП 1% [20:03:07]line > о реализуемом товаре [20:03:07]line ОКРУГЛЕНИЕ: -0.02 [20:03:07]line ИТОГО: 200.00 [20:03:07]line Внесено: 200.00 [20:03:07]line СДАЧА: 0.00 [20:03:07]line НСП 1% : 1.77 [20:03:07]line НДС 12% : 21.24 [20:03:07]line Наличными: 200.00 [20:03:07]line Безнал.: 0.00 [20:03:07]line Место: АЗС № 6 "Партнер Нефть" [20:03:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:03:07]line СНО: Общий режим [20:03:07]line Чек 200 11.03.2024 20:03 [20:03:07]line Смена: 326 ФФД: 1.0 [20:03:07]line ЗНМ: 0300000009 [20:03:07]line РНМ: 0000000000090555 [20:03:07]line Версия ККМ: 001 [20:03:07]line ФМ: 0000000000874811 [20:03:07]line ФД: 95025 [20:03:07]line ФПД: 83701175727465 [20:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T200307&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95025&fm=83701175727465&tin=02508201610067®Number=0000000000090555&sum=20000 [20:03:08]OFD Sender: Processing packet 95025 [packets to send 30, broken 29] [20:03:08]ProducePacketName [20:03:08]name=ofd_packets/00095025 [20:03:08]OFD Sender: To server: pG, [20:03:08]CommunicateWithHost lk.salyk.kg:30040 [20:03:08]ConnectInit lk.salyk.kg [20:03:08]written 0, free lines is 4095 [20:03:08]Connected sock=10 [20:03:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 52 8F 07 01 FD 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 7B 63 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 73 01 00 35 04 06 00 4C 20 32 D8 B5 69 1F 07 A2 3F 92 94 15 81 [20:03:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 FF CF 47 00 3F ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 31 73 01 00 F4 03 04 00 D3 0E EF 65 B6 04 01 00 00 BE D7 79 E1 7A 31 00 9D [20:03:08]CommunicateWithHost err = 0 [20:03:08]CheckOFDResponse [20:03:08]1017 (14) - 77093643461234 [20:03:08]1041 (16) - 0000000000874811 [20:03:08]1040 (4) - 95025 [20:03:08]1012 (4) - 11.03.2024 14:01 [20:03:08]1206 (1) - 0 [20:03:08]OFD Sender: Remove packet 95025 [20:03:08]ProducePacketName [20:03:08]name=ofd_packets/00095025 [20:03:08]NVStorageDeleteData [20:03:08]Write to MH i2c: 01 00 00 21 06 27 [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: 01 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: 01 07 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: 01 07 00 21 06 00 80 00 00 00 57 0D 12 [20:03:08]RasterBufferAndPrint [20:03:08]line [20:03:08]line [20:03:08]line [20:03:08]line [20:03:08]line [20:03:08]written 0, free lines is 3419 [20:03:08]process_action close_receipt done [20:03:08]requested_data is exist [20:03:08]produce_requested_data [20:03:08]requested_item fm.sn is exist - process it [20:03:08]wFMCommunicate request_size=4 [20:03:08]MH_SAM_APDU [20:03:08]CAPDU: 80 11 00 00 [20:03:08]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:08]Read from MH i2c: E2 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 17 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [20:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:03:08]wFMCommunicate OK [20:03:08]requested_item fd.num is exist - process it [20:03:08]SAM_PROTO_GetFieldsCounters [20:03:08]wFMCommunicate request_size=4 [20:03:08]MH_SAM_APDU [20:03:08]CAPDU: 80 13 00 00 [20:03:08]Write to MH i2c: E2 08 00 29 06 80 13 00 00 00 00 00 00 AB [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:08]Read from MH i2c: E2 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 62 00 [20:03:08]MH_I2C_Read... [20:03:08]Read from MH i2c: E2 62 00 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 31 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [20:03: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 31 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:08]wFMCommunicate OK [20:03:08]SAM_PROTO_GetFieldsCounters done [20:03:08]requested_item shift.num is exist - process it [20:03:08]requested_item shift.opened is exist - process it [20:03:08]req_shift_opened [20:03:08]FM_GetShiftState [20:03:08]SAM_PROTO_GetShiftState [20:03:08]wFMCommunicate request_size=4 [20:03:08]MH_SAM_APDU [20:03:08]CAPDU: 80 13 01 00 [20:03:08]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [20:03:08]Write i2c OK [20:03:08]MH_I2C_Read... [20:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:09]Read from MH i2c: E2 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 0E 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 49 [20:03:09]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:03:09]wFMCommunicate OK [20:03:09]SAM_PROTO_GetShiftState done [20:03:09]FM_GetShiftState done [20:03:09]req_shift_opened done [20:03:09]requested_item shift.open_date is exist - process it [20:03:09]req_shift_open_date [20:03:09]req_shift_open_date done [20:03:09]produce_requested_data done [20:03:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95025,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:03:09]process_action_free close_receipt [20:03:09]json_value_free [20:03:09]json_value_free done [20:03:09]process_json_proto returns [20:03:09]Send response to host [20:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95025,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:03:09]free response buf [20:03:09]execute_script done [20:03:09]execute_script returns [20:03:09]free content buf [20:03:09]Sock 8.Close socket [20:03:09]Sock 8.Thread stoped [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:29]accept exits with 9 [20:03:29]New connection [20:03:29]New thread 3066957156 created [20:03:29]Thread 3066813796 joined [20:03:29]Waiting for new connection... [20:03:29] Sock 9.Parse request [20:03:29]Sock 9.Check first char [20:03:29]Sock 9.First char is OK [20:03:29]request: POST /json_proto HTTP/1.0 [20:03:29]Method: POST [20:03:29]URL: /json_proto [20:03:29]Method is POST - this is cgi request [20:03:29]url: /json_proto [20:03:29]query_string will be loaded in cgi processing [20:03:29]execute_cgi json_proto POST (null) [20:03:29]execute_cgi path=json_proto method=POST [20:03:29]POST find Content-Length [20:03:29]Host: 172.17.62.67:8080 [20:03:29]Content-Length: 677 [20:03:29]Content-Type: application/json [20:03:29] [20:03:29]POST finish read [20:03:29]Found Content-Length = 677 [20:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:29]execute_script... [20:03:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:29]POST & json_proto [20:03:29]process_json_proto [20:03:29]json parsed OK: [20:03:29]protocol is kg_v1.0 [20:03:29]action value=close_receipt [20:03:29]process_action close_receipt [20:03:29]cmd_close_receipt [20:03:29]MH_GetDate [20:03:29]Write to MH i2c: F0 00 00 2B 06 20 [20:03:29]Write i2c OK [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: F0 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: F0 05 00 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: F0 05 00 2B 06 00 93 63 EF 65 6F [20:03:29]GetLastDocTimeStamp 1710187387 [20:03:29]current date 1710187411 [20:03:29]FM_GetShiftState [20:03:29]SAM_PROTO_GetShiftState [20:03:29]wFMCommunicate request_size=4 [20:03:29]MH_SAM_APDU [20:03:29]CAPDU: 80 13 01 00 [20:03:29]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [20:03:29]Write i2c OK [20:03:29]MH_I2C_Read... [20:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:29]Read from MH i2c: E2 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: E2 0E 00 [20:03:29]MH_I2C_Read... [20:03:29]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4B [20:03:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:03:29]wFMCommunicate OK [20:03:29]SAM_PROTO_GetShiftState done [20:03:29]FM_GetShiftState done [20:03:29]opened in 1710115571 [20:03:29]opened+sec_in_day 1710201971 [20:03:29]quantity*price = 50005 [20:03:29]sum+1 = 50007 [20:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 201 11.03.2024 20:03 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95026 ФПД: 104061503369424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T200331&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95026&fm=104061503369424&tin=02508201610067®Number=0000000000090555&sum=50000 [20:03:31]StoreToDocumentArchive [20:03:31]shift 326 fd 95026 [20:03:31]save to /storage/0326/doc_00095026 [20:03:31]save last doc name /storage/0326/doc_00095026 to /storage/kkm_last_doc_name [20:03:31]save OK [20:03:31]Clear old archive folders... [20:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:31]tlvbuf is 01A2DFE0 [20:03:31]SAM_PROTO_ClearQueue [20:03:31]wFMCommunicate request_size=4 [20:03:31]MH_SAM_APDU [20:03:31]CAPDU: 80 09 00 00 [20:03:31]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:31]Read from MH i2c: E2 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 03 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [20:03:31]RAPDU: 90 00 [20:03:31]wFMCommunicate OK [20:03:31]SAM_PROTO_ClearQueue done [20:03:31]KKMCreateOFDPacket [20:03:31]OFDProtocolAddRootSTLVToBuf [20:03:31]FM_MakeSignedData [20:03:31]FM_MakeSignedData [20:03:31]SAM_PROTO_SignData [20:03:31]wFMCommunicate request_size=4 [20:03:31]MH_SAM_APDU [20:03:31]CAPDU: 80 0D 01 02 [20:03:31]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:31]Read from MH i2c: E2 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 03 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [20:03:31]RAPDU: 90 00 [20:03:31]wFMCommunicate OK [20:03:31]wFMCommunicate request_size=255 [20:03:31]MH_SAM_APDU [20:03:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 93 63 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 32 73 01 00 35 04 06 00 5E [20:03:31]Write to MH i2c: E2 02 01 3B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 93 63 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 32 73 01 00 35 04 06 00 5E 00 00 C0 [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:31]Read from MH i2c: E2 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 03 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [20:03:31]RAPDU: 90 00 [20:03:31]wFMCommunicate OK [20:03:31]wFMCommunicate request_size=10 [20:03:31]MH_SAM_APDU [20:03:31]CAPDU: 80 0D 02 02 05 A4 B4 F1 70 D0 [20:03:31]Write to MH i2c: E2 0D 00 3C 06 80 0D 02 02 05 00 A4 B4 F1 70 D0 00 00 4F [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:31]Read from MH i2c: E2 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 03 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [20:03:31]RAPDU: 90 00 [20:03:31]wFMCommunicate OK [20:03:31]wFMCommunicate request_size=4 [20:03:31]MH_SAM_APDU [20:03:31]CAPDU: 80 0D 03 02 [20:03:31]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:31]Read from MH i2c: E2 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 0B 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 0B 00 3D 06 00 48 7C B4 43 0C FD CB 77 90 00 C5 [20:03:31]RAPDU: 48 7C B4 43 0C FD CB 77 90 00 [20:03:31]wFMCommunicate OK [20:03:31]SAM_PROTO_SignData done [20:03:31]FM_MakeSignedData done [20:03:31]CreateOFDProtocolMessage [20:03:31]wFMCommunicate request_size=4 [20:03:31]MH_SAM_APDU [20:03:31]CAPDU: 80 11 00 00 [20:03:31]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:31]Read from MH i2c: E2 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 17 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [20:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:03:31]wFMCommunicate OK [20:03:31]CreateOFDProtocolMessage done [20:03:31]OFDSenderStorePacket 95026 [20:03:31]StoreOFDPacket docnum=95026 [20:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0B 9E 07 01 B6 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 93 63 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 32 73 01 00 35 04 06 00 5E A4 B4 F1 70 D0 48 7C B4 43 0C FD CB 77 [20:03:31]CheckFolder [20:03:31]dirname=/storage/ofd_packets [20:03:31]CheckFolder done [20:03:31]ProducePacketName [20:03:31]name=ofd_packets/00095026 [20:03:31]NVStorageSaveData ofd_packets/00095026 [20:03:31]File name is /storage/ofd_packets/00095026 [20:03:31]Write 301 bytes [20:03:31]NVStorageSaveData done [20:03:31]OFDSenderStorePacket done [20:03:31]KKMCreateOFDPacket done [20:03:31]NVStorageSaveData kkm_last_timestamp [20:03:31]File name is /storage/kkm_last_timestamp [20:03:31]Write 4 bytes [20:03:31]NVStorageSaveData done [20:03:31]ExternCall_PrintAddStr [20:03:31]wPrintStart [20:03:31]Write to MH i2c: 01 00 00 3F 06 45 [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: 01 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: 01 07 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: 01 07 00 3F 06 00 80 00 00 00 FF 0F DA [20:03:31]RasterBufferAndPrint [20:03:31]line Счет N : (1)195985 [20:03:31]line ИНН: 02508201610067 [20:03:31]line Контрольно-Кассовый Чек [20:03:31]line ПРОДАЖА [20:03:31]line ТРК (МРК, ГНК) : 12 [20:03:31]line Товар: 2710124130 [20:03:31]line Аи-92-К-5 [20:03:31]line 7.950 * 62.90 [20:03:31]line = 500.06 [20:03:31]line НДС 12% НСП 1% [20:03:31]line > о реализуемом товаре [20:03:31]line ОКРУГЛЕНИЕ: -0.06 [20:03:31]line ИТОГО: 500.00 [20:03:31]line Внесено: 500.00 [20:03:31]line СДАЧА: 0.00 [20:03:31]line НСП 1% : 4.42 [20:03:31]line НДС 12% : 53.10 [20:03:31]line Наличными: 500.00 [20:03:31]line Безнал.: 0.00 [20:03:31]line Место: АЗС № 6 "Партнер Нефть" [20:03:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:03:31]line СНО: Общий режим [20:03:31]line Чек 201 11.03.2024 20:03 [20:03:31]line Смена: 326 ФФД: 1.0 [20:03:31]line ЗНМ: 0300000009 [20:03:31]line РНМ: 0000000000090555 [20:03:31]line Версия ККМ: 001 [20:03:31]line ФМ: 0000000000874811 [20:03:31]line ФД: 95026 [20:03:31]line ФПД: 104061503369424 [20:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T200331&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95026&fm=104061503369424&tin=02508201610067®Number=0000000000090555&sum=50000 [20:03:31]OFD Sender: Processing packet 95026 [packets to send 30, broken 29] [20:03:31]ProducePacketName [20:03:31]name=ofd_packets/00095026 [20:03:31]OFD Sender: To server: pG, [20:03:31]CommunicateWithHost lk.salyk.kg:30040 [20:03:31]ConnectInit lk.salyk.kg [20:03:31]written 0, free lines is 4095 [20:03:32]Connected sock=10 [20:03: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 31 31 0F 01 00 00 0B 9E 07 01 B6 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 93 63 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 32 73 01 00 35 04 06 00 5E A4 B4 F1 70 D0 48 7C B4 43 0C FD CB 77 [20:03: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 31 31 4F 00 00 00 2B BD 47 00 21 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 31 31 10 04 04 00 32 73 01 00 F4 03 04 00 EB 0E EF 65 B6 04 01 00 00 EE 8E 95 F9 47 EC E2 A6 [20:03:32]CommunicateWithHost err = 0 [20:03:32]CheckOFDResponse [20:03:32]1017 (14) - 77093643461234 [20:03:32]1041 (16) - 0000000000874811 [20:03:32]1040 (4) - 95026 [20:03:32]1012 (4) - 11.03.2024 14:02 [20:03:32]1206 (1) - 0 [20:03:32]OFD Sender: Remove packet 95026 [20:03:32]ProducePacketName [20:03:32]name=ofd_packets/00095026 [20:03:32]NVStorageDeleteData [20:03:32]Write to MH i2c: 01 00 00 6A 06 70 [20:03:32]Write i2c OK [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: 01 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: 01 07 00 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: 01 07 00 6A 06 00 80 00 00 00 5B 0D 5F [20:03:32]RasterBufferAndPrint [20:03:32]line [20:03:32]line [20:03:32]line [20:03:32]line [20:03:32]line [20:03:32]written 0, free lines is 3425 [20:03:32]process_action close_receipt done [20:03:32]requested_data is exist [20:03:32]produce_requested_data [20:03:32]requested_item fm.sn is exist - process it [20:03:32]wFMCommunicate request_size=4 [20:03:32]MH_SAM_APDU [20:03:32]CAPDU: 80 11 00 00 [20:03:32]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [20:03:32]Write i2c OK [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 [20:03:32]MH_I2C_Read... [20:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:32]Read from MH i2c: E2 17 00 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 41 [20:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:03:32]wFMCommunicate OK [20:03:32]requested_item fd.num is exist - process it [20:03:32]SAM_PROTO_GetFieldsCounters [20:03:32]wFMCommunicate request_size=4 [20:03:32]MH_SAM_APDU [20:03:32]CAPDU: 80 13 00 00 [20:03:32]Write to MH i2c: E2 08 00 72 06 80 13 00 00 00 00 00 00 F4 [20:03:32]Write i2c OK [20:03:32]MH_I2C_Read... [20:03:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:32]Read from MH i2c: E2 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 62 00 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 62 00 72 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 32 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [20:03: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 32 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:32]wFMCommunicate OK [20:03:32]SAM_PROTO_GetFieldsCounters done [20:03:32]requested_item shift.num is exist - process it [20:03:32]requested_item shift.opened is exist - process it [20:03:32]req_shift_opened [20:03:32]FM_GetShiftState [20:03:32]SAM_PROTO_GetShiftState [20:03:32]wFMCommunicate request_size=4 [20:03:32]MH_SAM_APDU [20:03:32]CAPDU: 80 13 01 00 [20:03:32]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [20:03:32]Write i2c OK [20:03:32]MH_I2C_Read... [20:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:32]Read from MH i2c: E2 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 0E 00 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 92 [20:03:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:03:32]wFMCommunicate OK [20:03:32]SAM_PROTO_GetShiftState done [20:03:32]FM_GetShiftState done [20:03:32]req_shift_opened done [20:03:32]requested_item shift.open_date is exist - process it [20:03:32]req_shift_open_date [20:03:32]req_shift_open_date done [20:03:32]produce_requested_data done [20:03:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95026,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:03:32]process_action_free close_receipt [20:03:32]json_value_free [20:03:32]json_value_free done [20:03:32]process_json_proto returns [20:03:32]Send response to host [20:03:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95026,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:03:32]free response buf [20:03:32]execute_script done [20:03:32]execute_script returns [20:03:32]free content buf [20:03:32]Sock 9.Close socket [20:03:32]Sock 9.Thread stoped [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:16]accept exits with 8 [20:08:16]New connection [20:08:16]New thread 3066813796 created [20:08:16]Thread 3066957156 joined [20:08:16]Waiting for new connection... [20:08:16] Sock 8.Parse request [20:08:16]Sock 8.Check first char [20:08:16]Sock 8.First char is OK [20:08:16]request: POST /json_proto HTTP/1.0 [20:08:16]Method: POST [20:08:16]URL: /json_proto [20:08:16]Method is POST - this is cgi request [20:08:16]url: /json_proto [20:08:16]query_string will be loaded in cgi processing [20:08:16]execute_cgi json_proto POST (null) [20:08:16]execute_cgi path=json_proto method=POST [20:08:16]POST find Content-Length [20:08:16]Host: 172.17.62.67:8080 [20:08:16]Content-Length: 677 [20:08:16]Content-Type: application/json [20:08:16] [20:08:16]POST finish read [20:08:16]Found Content-Length = 677 [20:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:16]execute_script... [20:08: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)195986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:16]POST & json_proto [20:08:16]process_json_proto [20:08:16]json parsed OK: [20:08:16]protocol is kg_v1.0 [20:08:16]action value=close_receipt [20:08:16]process_action close_receipt [20:08:16]cmd_close_receipt [20:08:16]MH_GetDate [20:08:16]Write to MH i2c: F0 00 00 74 06 69 [20:08:16]Write i2c OK [20:08:16]MH_I2C_Read... [20:08:16]Read from MH i2c: F0 [20:08:16]MH_I2C_Read... [20:08:16]Read from MH i2c: F0 05 00 [20:08:16]MH_I2C_Read... [20:08:16]Read from MH i2c: F0 05 00 74 06 00 B1 64 EF 65 D7 [20:08:16]GetLastDocTimeStamp 1710187411 [20:08:16]current date 1710187697 [20:08:16]FM_GetShiftState [20:08:16]SAM_PROTO_GetShiftState [20:08:16]wFMCommunicate request_size=4 [20:08:16]MH_SAM_APDU [20:08:16]CAPDU: 80 13 01 00 [20:08:16]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [20:08:16]Write i2c OK [20:08:16]MH_I2C_Read... [20:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:16]Read from MH i2c: E2 [20:08:16]MH_I2C_Read... [20:08:16]Read from MH i2c: E2 0E 00 [20:08:16]MH_I2C_Read... [20:08:16]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 94 [20:08:16]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:08:16]wFMCommunicate OK [20:08:16]SAM_PROTO_GetShiftState done [20:08:16]FM_GetShiftState done [20:08:16]opened in 1710115571 [20:08:16]opened+sec_in_day 1710201971 [20:08:16]quantity*price = 10001 [20:08:16]sum+1 = 10002 [20:08:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 202 11.03.2024 20:08 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95027 ФПД: 59467083606078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T200817&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95027&fm=59467083606078&tin=02508201610067®Number=0000000000090555&sum=10000 [20:08:17]StoreToDocumentArchive [20:08:17]shift 326 fd 95027 [20:08:17]save to /storage/0326/doc_00095027 [20:08:17]save last doc name /storage/0326/doc_00095027 to /storage/kkm_last_doc_name [20:08:17]save OK [20:08:17]Clear old archive folders... [20:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:17]tlvbuf is 01A2D490 [20:08:17]SAM_PROTO_ClearQueue [20:08:17]wFMCommunicate request_size=4 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 09 00 00 [20:08:17]Write to MH i2c: E2 08 00 82 06 80 09 00 00 00 00 00 00 FA [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:17]Read from MH i2c: E2 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [20:08:17]RAPDU: 90 00 [20:08:17]wFMCommunicate OK [20:08:17]SAM_PROTO_ClearQueue done [20:08:17]KKMCreateOFDPacket [20:08:17]OFDProtocolAddRootSTLVToBuf [20:08:17]FM_MakeSignedData [20:08:17]FM_MakeSignedData [20:08:17]SAM_PROTO_SignData [20:08:17]wFMCommunicate request_size=4 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 0D 01 02 [20:08:17]Write to MH i2c: E2 08 00 83 06 80 0D 01 02 00 00 00 00 02 [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:17]Read from MH i2c: E2 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 [20:08:17]MH_I2C_Read... [20:08:17]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [20:08:17]RAPDU: 90 00 [20:08:17]wFMCommunicate OK [20:08:17]wFMCommunicate request_size=255 [20:08:17]MH_SAM_APDU [20:08:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B1 64 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 73 01 00 35 04 06 00 36 [20:08:17]Write to MH i2c: E2 02 01 84 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B1 64 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 73 01 00 35 04 06 00 36 00 00 6D [20:08:17]Write i2c OK [20:08:17]MH_I2C_Read... [20:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:18]OFD Sender: No OFD packet to send [20:08:18]Read from MH i2c: E2 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: E2 03 00 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [20:08:18]RAPDU: 90 00 [20:08:18]wFMCommunicate OK [20:08:18]wFMCommunicate request_size=10 [20:08:18]MH_SAM_APDU [20:08:18]CAPDU: 80 0D 02 02 05 15 C2 64 E8 3E [20:08:18]Write to MH i2c: E2 0D 00 85 06 80 0D 02 02 05 00 15 C2 64 E8 3E 00 00 70 [20:08:18]Write i2c OK [20:08:18]MH_I2C_Read... [20:08:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:18]Read from MH i2c: E2 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: E2 03 00 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [20:08:18]RAPDU: 90 00 [20:08:18]wFMCommunicate OK [20:08:18]wFMCommunicate request_size=4 [20:08:18]MH_SAM_APDU [20:08:18]CAPDU: 80 0D 03 02 [20:08:18]Write to MH i2c: E2 08 00 86 06 80 0D 03 02 00 00 00 00 07 [20:08:18]Write i2c OK [20:08:18]MH_I2C_Read... [20:08:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:18]Read from MH i2c: E2 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: E2 0B 00 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: E2 0B 00 86 06 00 C9 7F 8E D4 A2 60 D6 CB 90 00 55 [20:08:18]RAPDU: C9 7F 8E D4 A2 60 D6 CB 90 00 [20:08:18]wFMCommunicate OK [20:08:18]SAM_PROTO_SignData done [20:08:18]FM_MakeSignedData done [20:08:18]CreateOFDProtocolMessage [20:08:18]wFMCommunicate request_size=4 [20:08:18]MH_SAM_APDU [20:08:18]CAPDU: 80 11 00 00 [20:08:18]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [20:08:18]Write i2c OK [20:08:18]MH_I2C_Read... [20:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:18]Read from MH i2c: E2 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: E2 17 00 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [20:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:08:18]wFMCommunicate OK [20:08:18]CreateOFDProtocolMessage done [20:08:18]OFDSenderStorePacket 95027 [20:08:18]StoreOFDPacket docnum=95027 [20:08:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5F 6F 07 01 A0 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B1 64 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 73 01 00 35 04 06 00 36 15 C2 64 E8 3E C9 7F 8E D4 A2 60 D6 CB [20:08:18]CheckFolder [20:08:18]dirname=/storage/ofd_packets [20:08:18]CheckFolder done [20:08:18]ProducePacketName [20:08:18]name=ofd_packets/00095027 [20:08:18]NVStorageSaveData ofd_packets/00095027 [20:08:18]File name is /storage/ofd_packets/00095027 [20:08:18]Write 301 bytes [20:08:18]NVStorageSaveData done [20:08:18]OFDSenderStorePacket done [20:08:18]KKMCreateOFDPacket done [20:08:18]NVStorageSaveData kkm_last_timestamp [20:08:18]File name is /storage/kkm_last_timestamp [20:08:18]Write 4 bytes [20:08:18]NVStorageSaveData done [20:08:18]ExternCall_PrintAddStr [20:08:18]wPrintStart [20:08:18]Write to MH i2c: 01 00 00 88 06 8E [20:08:18]Write i2c OK [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: 01 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: 01 07 00 [20:08:18]MH_I2C_Read... [20:08:18]Read from MH i2c: 01 07 00 88 06 00 80 00 00 00 FF 0F 23 [20:08:18]RasterBufferAndPrint [20:08:18]line Счет N : (1)195986 [20:08:18]line ИНН: 02508201610067 [20:08:18]line Контрольно-Кассовый Чек [20:08:18]line ПРОДАЖА [20:08:18]line ТРК (МРК, ГНК) : 22 [20:08:18]line Товар: 2710124130 [20:08:18]line Аи-92-К-5 [20:08:18]line 1.590 * 62.90 [20:08:18]line = 100.01 [20:08:18]line НДС 12% НСП 1% [20:08:18]line > о реализуемом товаре [20:08:18]line ОКРУГЛЕНИЕ: -0.01 [20:08:18]line ИТОГО: 100.00 [20:08:18]line Внесено: 100.00 [20:08:18]line СДАЧА: 0.00 [20:08:18]line НСП 1% : 0.88 [20:08:18]line НДС 12% : 10.62 [20:08:18]line Наличными: 100.00 [20:08:18]line Безнал.: 0.00 [20:08:18]line Место: АЗС № 6 "Партнер Нефть" [20:08:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:08:18]line СНО: Общий режим [20:08:18]line Чек 202 11.03.2024 20:08 [20:08:18]line Смена: 326 ФФД: 1.0 [20:08:18]line ЗНМ: 0300000009 [20:08:18]line РНМ: 0000000000090555 [20:08:18]line Версия ККМ: 001 [20:08:18]line ФМ: 0000000000874811 [20:08:18]line ФД: 95027 [20:08:18]line ФПД: 59467083606078 [20:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T200817&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95027&fm=59467083606078&tin=02508201610067®Number=0000000000090555&sum=10000 [20:08:18]OFD Sender: Processing packet 95027 [packets to send 30, broken 29] [20:08:18]ProducePacketName [20:08:18]name=ofd_packets/00095027 [20:08:18]OFD Sender: To server: pG, [20:08:18]CommunicateWithHost lk.salyk.kg:30040 [20:08:18]ConnectInit lk.salyk.kg [20:08:18]written 0, free lines is 4095 [20:08:18]Connected sock=10 [20:08: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 31 31 0F 01 00 00 5F 6F 07 01 A0 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 B1 64 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 73 01 00 35 04 06 00 36 15 C2 64 E8 3E C9 7F 8E D4 A2 60 D6 CB [20:08:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C1 B9 47 00 46 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 33 73 01 00 F4 03 04 00 0A 10 EF 65 B6 04 01 00 00 9E 73 01 0F CE 83 86 15 [20:08:18]CommunicateWithHost err = 0 [20:08:18]CheckOFDResponse [20:08:18]1017 (14) - 77093643461234 [20:08:18]1041 (16) - 0000000000874811 [20:08:18]1040 (4) - 95027 [20:08:18]1012 (4) - 11.03.2024 14:07 [20:08:18]1206 (1) - 0 [20:08:18]OFD Sender: Remove packet 95027 [20:08:18]ProducePacketName [20:08:18]name=ofd_packets/00095027 [20:08:18]NVStorageDeleteData [20:08:19]Write to MH i2c: 01 00 00 B3 06 B9 [20:08:19]Write i2c OK [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: 01 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: 01 07 00 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: 01 07 00 B3 06 00 80 00 00 00 52 0D 9F [20:08:19]RasterBufferAndPrint [20:08:19]line [20:08:19]line [20:08:19]line [20:08:19]line [20:08:19]line [20:08:19]written 0, free lines is 3416 [20:08:19]process_action close_receipt done [20:08:19]requested_data is exist [20:08:19]produce_requested_data [20:08:19]requested_item fm.sn is exist - process it [20:08:19]wFMCommunicate request_size=4 [20:08:19]MH_SAM_APDU [20:08:19]CAPDU: 80 11 00 00 [20:08:19]Write to MH i2c: E2 08 00 BA 06 80 11 00 00 00 00 00 00 3A [20:08:19]Write i2c OK [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: E2 [20:08:19]MH_I2C_Read... [20:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:19]Read from MH i2c: E2 17 00 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: E2 17 00 BA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8A [20:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:08:19]wFMCommunicate OK [20:08:19]requested_item fd.num is exist - process it [20:08:19]SAM_PROTO_GetFieldsCounters [20:08:19]wFMCommunicate request_size=4 [20:08:19]MH_SAM_APDU [20:08:19]CAPDU: 80 13 00 00 [20:08:19]Write to MH i2c: E2 08 00 BB 06 80 13 00 00 00 00 00 00 3D [20:08:19]Write i2c OK [20:08:19]MH_I2C_Read... [20:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:19]Read from MH i2c: E2 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: E2 62 00 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: E2 62 00 BB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 33 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [20:08: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 33 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:19]wFMCommunicate OK [20:08:19]SAM_PROTO_GetFieldsCounters done [20:08:19]requested_item shift.num is exist - process it [20:08:19]requested_item shift.opened is exist - process it [20:08:19]req_shift_opened [20:08:19]FM_GetShiftState [20:08:19]SAM_PROTO_GetShiftState [20:08:19]wFMCommunicate request_size=4 [20:08:19]MH_SAM_APDU [20:08:19]CAPDU: 80 13 01 00 [20:08:19]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [20:08:19]Write i2c OK [20:08:19]MH_I2C_Read... [20:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:19]Read from MH i2c: E2 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: E2 0E 00 [20:08:19]MH_I2C_Read... [20:08:19]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DB [20:08:19]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:08:19]wFMCommunicate OK [20:08:19]SAM_PROTO_GetShiftState done [20:08:19]FM_GetShiftState done [20:08:19]req_shift_opened done [20:08:19]requested_item shift.open_date is exist - process it [20:08:19]req_shift_open_date [20:08:19]req_shift_open_date done [20:08:19]produce_requested_data done [20:08:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95027,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:08:19]process_action_free close_receipt [20:08:19]json_value_free [20:08:19]json_value_free done [20:08:19]process_json_proto returns [20:08:19]Send response to host [20:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95027,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:08:19]free response buf [20:08:19]execute_script done [20:08:19]execute_script returns [20:08:19]free content buf [20:08:19]Sock 8.Close socket [20:08:19]Sock 8.Thread stoped [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:16]accept exits with 9 [20:09:16]New connection [20:09:16]New thread 3066957156 created [20:09:16]Thread 3066813796 joined [20:09:16]Waiting for new connection... [20:09:16] Sock 9.Parse request [20:09:16]Sock 9.Check first char [20:09:16]Sock 9.First char is OK [20:09:16]request: POST /json_proto HTTP/1.0 [20:09:16]Method: POST [20:09:16]URL: /json_proto [20:09:16]Method is POST - this is cgi request [20:09:16]url: /json_proto [20:09:16]query_string will be loaded in cgi processing [20:09:16]execute_cgi json_proto POST (null) [20:09:16]execute_cgi path=json_proto method=POST [20:09:16]POST find Content-Length [20:09:16]Host: 172.17.62.67:8080 [20:09:16]Content-Length: 678 [20:09:16]Content-Type: application/json [20:09:16] [20:09:16]POST finish read [20:09:16]Found Content-Length = 678 [20:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.720, "sum" : 800.09, "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" ] } } [20:09:16]execute_script... [20:09: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)195987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 12.720, "sum" : 800.09, "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" ] } } [20:09:16]POST & json_proto [20:09:16]process_json_proto [20:09:16]json parsed OK: [20:09:16]protocol is kg_v1.0 [20:09:16]action value=close_receipt [20:09:16]process_action close_receipt [20:09:16]cmd_close_receipt [20:09:16]MH_GetDate [20:09:16]Write to MH i2c: F0 00 00 BD 06 B2 [20:09:16]Write i2c OK [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: F0 [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: F0 05 00 [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: F0 05 00 BD 06 00 ED 64 EF 65 5C [20:09:16]GetLastDocTimeStamp 1710187697 [20:09:16]current date 1710187757 [20:09:16]FM_GetShiftState [20:09:16]SAM_PROTO_GetShiftState [20:09:16]wFMCommunicate request_size=4 [20:09:16]MH_SAM_APDU [20:09:16]CAPDU: 80 13 01 00 [20:09:16]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [20:09:16]Write i2c OK [20:09:16]MH_I2C_Read... [20:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:16]Read from MH i2c: E2 [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: E2 0E 00 [20:09:16]MH_I2C_Read... [20:09:16]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DD [20:09:16]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:09:16]wFMCommunicate OK [20:09:16]SAM_PROTO_GetShiftState done [20:09:16]FM_GetShiftState done [20:09:16]opened in 1710115571 [20:09:16]opened+sec_in_day 1710201971 [20:09:16]quantity*price = 80008 [20:09:16]sum+1 = 80010 [20:09:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 203 11.03.2024 20:09 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95028 ФПД: 12520422081998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T200917&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95028&fm=12520422081998&tin=02508201610067®Number=0000000000090555&sum=80000 [20:09:17]StoreToDocumentArchive [20:09:17]shift 326 fd 95028 [20:09:17]save to /storage/0326/doc_00095028 [20:09:17]save last doc name /storage/0326/doc_00095028 to /storage/kkm_last_doc_name [20:09:17]save OK [20:09:17]Clear old archive folders... [20:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:17]tlvbuf is 01A2D750 [20:09:17]SAM_PROTO_ClearQueue [20:09:17]wFMCommunicate request_size=4 [20:09:17]MH_SAM_APDU [20:09:17]CAPDU: 80 09 00 00 [20:09:17]Write to MH i2c: E2 08 00 CB 06 80 09 00 00 00 00 00 00 43 [20:09:17]Write i2c OK [20:09:17]MH_I2C_Read... [20:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:17]Read from MH i2c: E2 [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: E2 03 00 [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [20:09:17]RAPDU: 90 00 [20:09:17]wFMCommunicate OK [20:09:17]SAM_PROTO_ClearQueue done [20:09:17]KKMCreateOFDPacket [20:09:17]OFDProtocolAddRootSTLVToBuf [20:09:17]FM_MakeSignedData [20:09:17]FM_MakeSignedData [20:09:17]SAM_PROTO_SignData [20:09:17]wFMCommunicate request_size=4 [20:09:17]MH_SAM_APDU [20:09:17]CAPDU: 80 0D 01 02 [20:09:17]Write to MH i2c: E2 08 00 CC 06 80 0D 01 02 00 00 00 00 4B [20:09:17]Write i2c OK [20:09:17]MH_I2C_Read... [20:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:17]Read from MH i2c: E2 [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: E2 03 00 [20:09:17]MH_I2C_Read... [20:09:17]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [20:09:17]RAPDU: 90 00 [20:09:17]wFMCommunicate OK [20:09:17]wFMCommunicate request_size=255 [20:09:17]MH_SAM_APDU [20:09:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 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 CB 00 00 00 F4 03 04 00 ED 64 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 73 01 00 35 04 06 00 0B [20:09:17]Write to MH i2c: E2 02 01 CD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 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 CB 00 00 00 F4 03 04 00 ED 64 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 73 01 00 35 04 06 00 0B 00 00 91 [20:09:17]Write i2c OK [20:09:17]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]wFMCommunicate request_size=10 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 02 02 05 63 23 4F 85 CE [20:09:18]Write to MH i2c: E2 0D 00 CE 06 80 0D 02 02 05 00 63 23 4F 85 CE 00 00 80 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [20:09:18]RAPDU: 90 00 [20:09:18]wFMCommunicate OK [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 0D 03 02 [20:09:18]Write to MH i2c: E2 08 00 CF 06 80 0D 03 02 00 00 00 00 50 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 0B 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 0B 00 CF 06 00 E1 CC 40 26 A2 F1 D3 C3 90 00 8D [20:09:18]RAPDU: E1 CC 40 26 A2 F1 D3 C3 90 00 [20:09:18]wFMCommunicate OK [20:09:18]SAM_PROTO_SignData done [20:09:18]FM_MakeSignedData done [20:09:18]CreateOFDProtocolMessage [20:09:18]wFMCommunicate request_size=4 [20:09:18]MH_SAM_APDU [20:09:18]CAPDU: 80 11 00 00 [20:09:18]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:18]Read from MH i2c: E2 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 17 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [20:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:09:18]wFMCommunicate OK [20:09:18]CreateOFDProtocolMessage done [20:09:18]OFDSenderStorePacket 95028 [20:09:18]StoreOFDPacket docnum=95028 [20:09:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F8 43 07 01 E1 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 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 CB 00 00 00 F4 03 04 00 ED 64 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 73 01 00 35 04 06 00 0B 63 23 4F 85 CE E1 CC 40 26 A2 F1 D3 C3 [20:09:18]CheckFolder [20:09:18]dirname=/storage/ofd_packets [20:09:18]CheckFolder done [20:09:18]ProducePacketName [20:09:18]name=ofd_packets/00095028 [20:09:18]NVStorageSaveData ofd_packets/00095028 [20:09:18]File name is /storage/ofd_packets/00095028 [20:09:18]Write 301 bytes [20:09:18]NVStorageSaveData done [20:09:18]OFDSenderStorePacket done [20:09:18]KKMCreateOFDPacket done [20:09:18]NVStorageSaveData kkm_last_timestamp [20:09:18]File name is /storage/kkm_last_timestamp [20:09:18]Write 4 bytes [20:09:18]NVStorageSaveData done [20:09:18]ExternCall_PrintAddStr [20:09:18]wPrintStart [20:09:18]Write to MH i2c: 01 00 00 D1 06 D7 [20:09:18]Write i2c OK [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: 01 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: 01 07 00 [20:09:18]MH_I2C_Read... [20:09:18]Read from MH i2c: 01 07 00 D1 06 00 80 00 00 00 FF 0F 6C [20:09:18]RasterBufferAndPrint [20:09:18]line Счет N : (1)195987 [20:09:18]line ИНН: 02508201610067 [20:09:18]line Контрольно-Кассовый Чек [20:09:18]line ПРОДАЖА [20:09:18]line ТРК (МРК, ГНК) : 12 [20:09:18]line Товар: 2710124130 [20:09:18]line Аи-92-К-5 [20:09:18]line 12.720 * 62.90 [20:09:18]line = 800.09 [20:09:18]line НДС 12% НСП 1% [20:09:18]line > о реализуемом товаре [20:09:18]line ОКРУГЛЕНИЕ: -0.09 [20:09:18]line ИТОГО: 800.00 [20:09:18]line Внесено: 800.00 [20:09:18]line СДАЧА: 0.00 [20:09:18]line НСП 1% : 7.08 [20:09:18]line НДС 12% : 84.96 [20:09:18]line Наличными: 800.00 [20:09:18]line Безнал.: 0.00 [20:09:18]line Место: АЗС № 6 "Партнер Нефть" [20:09:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:09:18]line СНО: Общий режим [20:09:18]line Чек 203 11.03.2024 20:09 [20:09:18]line Смена: 326 ФФД: 1.0 [20:09:18]line ЗНМ: 0300000009 [20:09:18]line РНМ: 0000000000090555 [20:09:18]line Версия ККМ: 001 [20:09:18]line ФМ: 0000000000874811 [20:09:18]line ФД: 95028 [20:09:18]line ФПД: 12520422081998 [20:09:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T200917&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95028&fm=12520422081998&tin=02508201610067®Number=0000000000090555&sum=80000 [20:09:18]OFD Sender: Processing packet 95028 [packets to send 30, broken 29] [20:09:18]ProducePacketName [20:09:18]name=ofd_packets/00095028 [20:09:18]OFD Sender: To server: pG, [20:09:18]CommunicateWithHost lk.salyk.kg:30040 [20:09:18]ConnectInit lk.salyk.kg [20:09:18]written 0, free lines is 4095 [20:09:18]Connected sock=10 [20:09: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 31 31 0F 01 00 00 F8 43 07 01 E1 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 31 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 89 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 CB 00 00 00 F4 03 04 00 ED 64 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 34 73 01 00 35 04 06 00 0B 63 23 4F 85 CE E1 CC 40 26 A2 F1 D3 C3 [20:09: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 31 31 4F 00 00 00 9B 57 47 00 38 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 31 31 10 04 04 00 34 73 01 00 F4 03 04 00 46 10 EF 65 B6 04 01 00 00 3F FF 4B 8A 14 B9 71 7B [20:09:18]CommunicateWithHost err = 0 [20:09:18]CheckOFDResponse [20:09:18]1017 (14) - 77093643461234 [20:09:18]1041 (16) - 0000000000874811 [20:09:18]1040 (4) - 95028 [20:09:18]1012 (4) - 11.03.2024 14:08 [20:09:18]1206 (1) - 0 [20:09:18]OFD Sender: Remove packet 95028 [20:09:18]ProducePacketName [20:09:18]name=ofd_packets/00095028 [20:09:18]NVStorageDeleteData [20:09:19]Write to MH i2c: 01 00 00 FC 06 02 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 07 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: 01 07 00 FC 06 00 80 00 00 00 55 0D EB [20:09:19]RasterBufferAndPrint [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]line [20:09:19]written 0, free lines is 3417 [20:09:19]process_action close_receipt done [20:09:19]requested_data is exist [20:09:19]produce_requested_data [20:09:19]requested_item fm.sn is exist - process it [20:09:19]wFMCommunicate request_size=4 [20:09:19]MH_SAM_APDU [20:09:19]CAPDU: 80 11 00 00 [20:09:19]Write to MH i2c: E2 08 00 03 07 80 11 00 00 00 00 00 00 84 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:19]Read from MH i2c: E2 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: E2 17 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: E2 17 00 03 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D4 [20:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:09:19]wFMCommunicate OK [20:09:19]requested_item fd.num is exist - process it [20:09:19]SAM_PROTO_GetFieldsCounters [20:09:19]wFMCommunicate request_size=4 [20:09:19]MH_SAM_APDU [20:09:19]CAPDU: 80 13 00 00 [20:09:19]Write to MH i2c: E2 08 00 04 07 80 13 00 00 00 00 00 00 87 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:19]Read from MH i2c: E2 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: E2 62 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: E2 62 00 04 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 34 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [20:09: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 34 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:19]wFMCommunicate OK [20:09:19]SAM_PROTO_GetFieldsCounters done [20:09:19]requested_item shift.num is exist - process it [20:09:19]requested_item shift.opened is exist - process it [20:09:19]req_shift_opened [20:09:19]FM_GetShiftState [20:09:19]SAM_PROTO_GetShiftState [20:09:19]wFMCommunicate request_size=4 [20:09:19]MH_SAM_APDU [20:09:19]CAPDU: 80 13 01 00 [20:09:19]Write to MH i2c: E2 08 00 05 07 80 13 01 00 00 00 00 00 89 [20:09:19]Write i2c OK [20:09:19]MH_I2C_Read... [20:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:19]Read from MH i2c: E2 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: E2 0E 00 [20:09:19]MH_I2C_Read... [20:09:19]Read from MH i2c: E2 0E 00 05 07 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 25 [20:09:19]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:09:19]wFMCommunicate OK [20:09:19]SAM_PROTO_GetShiftState done [20:09:19]FM_GetShiftState done [20:09:19]req_shift_opened done [20:09:19]requested_item shift.open_date is exist - process it [20:09:19]req_shift_open_date [20:09:19]req_shift_open_date done [20:09:19]produce_requested_data done [20:09:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95028,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:09:19]process_action_free close_receipt [20:09:19]json_value_free [20:09:19]json_value_free done [20:09:19]process_json_proto returns [20:09:19]Send response to host [20:09:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95028,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:09:19]free response buf [20:09:19]execute_script done [20:09:19]execute_script returns [20:09:19]free content buf [20:09:19]Sock 9.Close socket [20:09:19]Sock 9.Thread stoped [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:56]accept exits with 8 [20:15:56]New connection [20:15:56]New thread 3066813796 created [20:15:56]Thread 3066957156 joined [20:15:56]Waiting for new connection... [20:15:56] Sock 8.Parse request [20:15:56]Sock 8.Check first char [20:15:56]Sock 8.First char is OK [20:15:56]request: POST /json_proto HTTP/1.0 [20:15:56]Method: POST [20:15:56]URL: /json_proto [20:15:56]Method is POST - this is cgi request [20:15:56]url: /json_proto [20:15:56]query_string will be loaded in cgi processing [20:15:56]execute_cgi json_proto POST (null) [20:15:56]execute_cgi path=json_proto method=POST [20:15:56]POST find Content-Length [20:15:56]Host: 172.17.62.67:8080 [20:15:56]Content-Length: 816 [20:15:56]Content-Type: application/json [20:15:56] [20:15:56]POST finish read [20:15:56]Found Content-Length = 816 [20:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.000, "sum" : 314.50, "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" : 314.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:56]execute_script... [20:15: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)195988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 5.000, "sum" : 314.50, "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" : 314.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:56]POST & json_proto [20:15:56]process_json_proto [20:15:56]json parsed OK: [20:15:56]protocol is kg_v1.0 [20:15:56]action value=close_receipt [20:15:56]process_action close_receipt [20:15:56]cmd_close_receipt [20:15:56]MH_GetDate [20:15:56]Write to MH i2c: F0 00 00 06 07 FC [20:15:56]Write i2c OK [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: F0 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: F0 05 00 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: F0 05 00 06 07 00 7E 66 EF 65 39 [20:15:56]GetLastDocTimeStamp 1710187757 [20:15:56]current date 1710188158 [20:15:56]FM_GetShiftState [20:15:56]SAM_PROTO_GetShiftState [20:15:56]wFMCommunicate request_size=4 [20:15:56]MH_SAM_APDU [20:15:56]CAPDU: 80 13 01 00 [20:15:56]Write to MH i2c: E2 08 00 07 07 80 13 01 00 00 00 00 00 8B [20:15:56]Write i2c OK [20:15:56]MH_I2C_Read... [20:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:56]Read from MH i2c: E2 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: E2 0E 00 [20:15:56]MH_I2C_Read... [20:15:56]Read from MH i2c: E2 0E 00 07 07 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 27 [20:15:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:15:56]wFMCommunicate OK [20:15:56]SAM_PROTO_GetShiftState done [20:15:56]FM_GetShiftState done [20:15:56]opened in 1710115571 [20:15:56]opened+sec_in_day 1710201971 [20:15:56]quantity*price = 31450 [20:15:56]sum+1 = 31451 [20:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 314.50 НСП 1% : 2.78 НДС 12% : 33.40 Наличными: 0.00 Безнал.: 314.50 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 204 11.03.2024 20:15 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95029 ФПД: 256072518950230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T201558&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95029&fm=256072518950230&tin=02508201610067®Number=0000000000090555&sum=31450 [20:15:57]StoreToDocumentArchive [20:15:57]shift 326 fd 95029 [20:15:57]save to /storage/0326/doc_00095029 [20:15:57]save last doc name /storage/0326/doc_00095029 to /storage/kkm_last_doc_name [20:15:57]save OK [20:15:57]Clear old archive folders... [20:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:57]tlvbuf is 01A45260 [20:15:57]SAM_PROTO_ClearQueue [20:15:57]wFMCommunicate request_size=4 [20:15:57]MH_SAM_APDU [20:15:57]CAPDU: 80 09 00 00 [20:15:57]Write to MH i2c: E2 08 00 14 07 80 09 00 00 00 00 00 00 8D [20:15:57]Write i2c OK [20:15:57]MH_I2C_Read... [20:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:58]Read from MH i2c: E2 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [20:15:58]RAPDU: 90 00 [20:15:58]wFMCommunicate OK [20:15:58]SAM_PROTO_ClearQueue done [20:15:58]KKMCreateOFDPacket [20:15:58]OFDProtocolAddRootSTLVToBuf [20:15:58]FM_MakeSignedData [20:15:58]FM_MakeSignedData [20:15:58]SAM_PROTO_SignData [20:15:58]wFMCommunicate request_size=4 [20:15:58]MH_SAM_APDU [20:15:58]CAPDU: 80 0D 01 02 [20:15:58]Write to MH i2c: E2 08 00 15 07 80 0D 01 02 00 00 00 00 95 [20:15:58]Write i2c OK [20:15:58]MH_I2C_Read... [20:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:58]Read from MH i2c: E2 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [20:15:58]RAPDU: 90 00 [20:15:58]wFMCommunicate OK [20:15:58]wFMCommunicate request_size=255 [20:15:58]MH_SAM_APDU [20:15:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7E 66 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 73 01 00 35 04 06 00 E8 [20:15:58]Write to MH i2c: E2 02 01 16 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7E 66 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 73 01 00 35 04 06 00 E8 00 00 E8 [20:15:58]Write i2c OK [20:15:58]MH_I2C_Read... [20:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:58]Read from MH i2c: E2 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [20:15:58]RAPDU: 90 00 [20:15:58]wFMCommunicate OK [20:15:58]wFMCommunicate request_size=10 [20:15:58]MH_SAM_APDU [20:15:58]CAPDU: 80 0D 02 02 05 E5 87 87 5D 56 [20:15:58]Write to MH i2c: E2 0D 00 17 07 80 0D 02 02 05 00 E5 87 87 5D 56 00 00 48 [20:15:58]Write i2c OK [20:15:58]MH_I2C_Read... [20:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:58]Read from MH i2c: E2 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 03 00 17 07 00 90 00 92 [20:15:58]RAPDU: 90 00 [20:15:58]wFMCommunicate OK [20:15:58]wFMCommunicate request_size=4 [20:15:58]MH_SAM_APDU [20:15:58]CAPDU: 80 0D 03 02 [20:15:58]Write to MH i2c: E2 08 00 18 07 80 0D 03 02 00 00 00 00 9A [20:15:58]Write i2c OK [20:15:58]MH_I2C_Read... [20:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:58]Read from MH i2c: E2 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 0B 00 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 0B 00 18 07 00 F0 52 26 28 4F 8D 5F 75 90 00 DB [20:15:58]RAPDU: F0 52 26 28 4F 8D 5F 75 90 00 [20:15:58]wFMCommunicate OK [20:15:58]SAM_PROTO_SignData done [20:15:58]FM_MakeSignedData done [20:15:58]CreateOFDProtocolMessage [20:15:58]wFMCommunicate request_size=4 [20:15:58]MH_SAM_APDU [20:15:58]CAPDU: 80 11 00 00 [20:15:58]Write to MH i2c: E2 08 00 19 07 80 11 00 00 00 00 00 00 9A [20:15:58]Write i2c OK [20:15:58]MH_I2C_Read... [20:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:58]Read from MH i2c: E2 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 17 00 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: E2 17 00 19 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EA [20:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:15:58]wFMCommunicate OK [20:15:58]CreateOFDProtocolMessage done [20:15:58]OFDSenderStorePacket 95029 [20:15:58]StoreOFDPacket docnum=95029 [20:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 32 4F 07 01 E1 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7E 66 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 73 01 00 35 04 06 00 E8 E5 87 87 5D 56 F0 52 26 28 4F 8D 5F 75 [20:15:58]CheckFolder [20:15:58]dirname=/storage/ofd_packets [20:15:58]CheckFolder done [20:15:58]ProducePacketName [20:15:58]name=ofd_packets/00095029 [20:15:58]NVStorageSaveData ofd_packets/00095029 [20:15:58]File name is /storage/ofd_packets/00095029 [20:15:58]Write 301 bytes [20:15:58]NVStorageSaveData done [20:15:58]OFDSenderStorePacket done [20:15:58]KKMCreateOFDPacket done [20:15:58]NVStorageSaveData kkm_last_timestamp [20:15:58]File name is /storage/kkm_last_timestamp [20:15:58]Write 4 bytes [20:15:58]NVStorageSaveData done [20:15:58]ExternCall_PrintAddStr [20:15:58]wPrintStart [20:15:58]Write to MH i2c: 01 00 00 1A 07 21 [20:15:58]Write i2c OK [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: 01 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: 01 07 00 [20:15:58]MH_I2C_Read... [20:15:58]Read from MH i2c: 01 07 00 1A 07 00 80 00 00 00 FF 0F B6 [20:15:58]RasterBufferAndPrint [20:15:58]line Счет N : (1)195988 [20:15:58]line ИНН: 02508201610067 [20:15:58]line Контрольно-Кассовый Чек [20:15:58]line ПРОДАЖА [20:15:58]line ТРК (МРК, ГНК) : 42 [20:15:58]line Товар: 2710124130 [20:15:58]line Аи-92-К-5 [20:15:58]line 5.000 * 62.90 [20:15:58]line = 314.50 [20:15:58]line НДС 12% НСП 1% [20:15:58]line > о реализуемом товаре [20:15:58]line ИТОГО: 314.50 [20:15:58]line НСП 1% : 2.78 [20:15:58]line НДС 12% : 33.40 [20:15:58]line Наличными: 0.00 [20:15:58]line Безнал.: 314.50 [20:15:58]line Место: АЗС № 6 "Партнер Нефть" [20:15:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:15:58]line СНО: Общий режим [20:15:58]line Чек 204 11.03.2024 20:15 [20:15:58]line Смена: 326 ФФД: 1.0 [20:15:58]line ЗНМ: 0300000009 [20:15:58]line РНМ: 0000000000090555 [20:15:58]line Версия ККМ: 001 [20:15:58]line Платежная система: Бакай Банк [20:15:58]line ФМ: 0000000000874811 [20:15:58]line ФД: 95029 [20:15:58]line ФПД: 256072518950230 [20:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T201558&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95029&fm=256072518950230&tin=02508201610067®Number=0000000000090555&sum=31450 [20:15:58]OFD Sender: Processing packet 95029 [packets to send 30, broken 29] [20:15:58]ProducePacketName [20:15:58]name=ofd_packets/00095029 [20:15:58]OFD Sender: To server: pG, [20:15:58]CommunicateWithHost lk.salyk.kg:30040 [20:15:58]ConnectInit lk.salyk.kg [20:15:58]written 0, free lines is 4095 [20:15:58]Connected sock=10 [20:15: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 31 31 0F 01 00 00 32 4F 07 01 E1 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 7A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7E 66 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 73 01 00 35 04 06 00 E8 E5 87 87 5D 56 F0 52 26 28 4F 8D 5F 75 [20:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 07 80 47 00 7B CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 35 73 01 00 F4 03 04 00 D6 11 EF 65 B6 04 01 00 00 14 4E 5C 25 C9 CA 58 E1 [20:15:59]CommunicateWithHost err = 0 [20:15:59]CheckOFDResponse [20:15:59]1017 (14) - 77093643461234 [20:15:59]1041 (16) - 0000000000874811 [20:15:59]1040 (4) - 95029 [20:15:59]1012 (4) - 11.03.2024 14:14 [20:15:59]1206 (1) - 0 [20:15:59]OFD Sender: Remove packet 95029 [20:15:59]ProducePacketName [20:15:59]name=ofd_packets/00095029 [20:15:59]NVStorageDeleteData [20:15:59]Write to MH i2c: 01 00 00 44 07 4B [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 07 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: 01 07 00 44 07 00 80 00 00 00 71 0D 50 [20:15:59]RasterBufferAndPrint [20:15:59]line [20:15:59]line [20:15:59]line [20:15:59]line [20:15:59]line [20:15:59]written 0, free lines is 3447 [20:15:59]process_action close_receipt done [20:15:59]requested_data is exist [20:15:59]produce_requested_data [20:15:59]requested_item fm.sn is exist - process it [20:15:59]wFMCommunicate request_size=4 [20:15:59]MH_SAM_APDU [20:15:59]CAPDU: 80 11 00 00 [20:15:59]Write to MH i2c: E2 08 00 4B 07 80 11 00 00 00 00 00 00 CC [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:59]Read from MH i2c: E2 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 17 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 17 00 4B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1C [20:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:15:59]wFMCommunicate OK [20:15:59]requested_item fd.num is exist - process it [20:15:59]SAM_PROTO_GetFieldsCounters [20:15:59]wFMCommunicate request_size=4 [20:15:59]MH_SAM_APDU [20:15:59]CAPDU: 80 13 00 00 [20:15:59]Write to MH i2c: E2 08 00 4C 07 80 13 00 00 00 00 00 00 CF [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:59]Read from MH i2c: E2 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 62 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 62 00 4C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 35 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [20:15: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 35 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:59]wFMCommunicate OK [20:15:59]SAM_PROTO_GetFieldsCounters done [20:15:59]requested_item shift.num is exist - process it [20:15:59]requested_item shift.opened is exist - process it [20:15:59]req_shift_opened [20:15:59]FM_GetShiftState [20:15:59]SAM_PROTO_GetShiftState [20:15:59]wFMCommunicate request_size=4 [20:15:59]MH_SAM_APDU [20:15:59]CAPDU: 80 13 01 00 [20:15:59]Write to MH i2c: E2 08 00 4D 07 80 13 01 00 00 00 00 00 D1 [20:15:59]Write i2c OK [20:15:59]MH_I2C_Read... [20:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:59]Read from MH i2c: E2 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 0E 00 [20:15:59]MH_I2C_Read... [20:15:59]Read from MH i2c: E2 0E 00 4D 07 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 6D [20:15:59]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:15:59]wFMCommunicate OK [20:15:59]SAM_PROTO_GetShiftState done [20:15:59]FM_GetShiftState done [20:15:59]req_shift_opened done [20:15:59]requested_item shift.open_date is exist - process it [20:15:59]req_shift_open_date [20:15:59]req_shift_open_date done [20:15:59]produce_requested_data done [20:15:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95029,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:15:59]process_action_free close_receipt [20:15:59]json_value_free [20:15:59]json_value_free done [20:15:59]process_json_proto returns [20:15:59]Send response to host [20:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95029,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:15:59]free response buf [20:15:59]execute_script done [20:15:59]execute_script returns [20:15:59]free content buf [20:15:59]Sock 8.Close socket [20:15:59]Sock 8.Thread stoped [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:45]accept exits with 9 [20:27:45]New connection [20:27:45]New thread 3066957156 created [20:27:45]Thread 3066813796 joined [20:27:45]Waiting for new connection... [20:27:45] Sock 9.Parse request [20:27:45]Sock 9.Check first char [20:27:45]Sock 9.First char is OK [20:27:45]request: POST /json_proto HTTP/1.0 [20:27:45]Method: POST [20:27:45]URL: /json_proto [20:27:45]Method is POST - this is cgi request [20:27:45]url: /json_proto [20:27:45]query_string will be loaded in cgi processing [20:27:45]execute_cgi json_proto POST (null) [20:27:45]execute_cgi path=json_proto method=POST [20:27:45]POST find Content-Length [20:27:45]Host: 172.17.62.67:8080 [20:27:45]Content-Length: 819 [20:27:45]Content-Type: application/json [20:27:45] [20:27:45]POST finish read [20:27:45]Found Content-Length = 819 [20:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 33.190, "sum" : 2087.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2087.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:45]execute_script... [20:27: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)195989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 33.190, "sum" : 2087.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2087.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:45]POST & json_proto [20:27:45]process_json_proto [20:27:45]json parsed OK: [20:27:45]protocol is kg_v1.0 [20:27:45]action value=close_receipt [20:27:45]process_action close_receipt [20:27:45]cmd_close_receipt [20:27:45]MH_GetDate [20:27:45]Write to MH i2c: F0 00 00 4E 07 44 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: F0 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: F0 05 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: F0 05 00 4E 07 00 42 69 EF 65 48 [20:27:45]GetLastDocTimeStamp 1710188158 [20:27:45]current date 1710188866 [20:27:45]FM_GetShiftState [20:27:45]SAM_PROTO_GetShiftState [20:27:45]wFMCommunicate request_size=4 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 13 01 00 [20:27:45]Write to MH i2c: E2 08 00 4F 07 80 13 01 00 00 00 00 00 D3 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 0E 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 0E 00 4F 07 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 6F [20:27:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:27:45]wFMCommunicate OK [20:27:45]SAM_PROTO_GetShiftState done [20:27:45]FM_GetShiftState done [20:27:45]opened in 1710115571 [20:27:45]opened+sec_in_day 1710201971 [20:27:45]quantity*price = 208765 [20:27:45]sum+1 = 208766 [20:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2087.65 НСП 1% : 18.47 НДС 12% : 221.70 Наличными: 0.00 Безнал.: 2087.65 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 205 11.03.2024 20:27 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95030 ФПД: 192873399361305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T202746&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95030&fm=192873399361305&tin=02508201610067®Number=0000000000090555&sum=208765 [20:27:46]StoreToDocumentArchive [20:27:46]shift 326 fd 95030 [20:27:46]save to /storage/0326/doc_00095030 [20:27:46]save last doc name /storage/0326/doc_00095030 to /storage/kkm_last_doc_name [20:27:46]save OK [20:27:46]Clear old archive folders... [20:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:46]tlvbuf is 01A45150 [20:27:46]SAM_PROTO_ClearQueue [20:27:46]wFMCommunicate request_size=4 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 09 00 00 [20:27:46]Write to MH i2c: E2 08 00 5C 07 80 09 00 00 00 00 00 00 D5 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 03 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [20:27:46]RAPDU: 90 00 [20:27:46]wFMCommunicate OK [20:27:46]SAM_PROTO_ClearQueue done [20:27:46]KKMCreateOFDPacket [20:27:46]OFDProtocolAddRootSTLVToBuf [20:27:46]FM_MakeSignedData [20:27:46]FM_MakeSignedData [20:27:46]SAM_PROTO_SignData [20:27:46]wFMCommunicate request_size=4 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 0D 01 02 [20:27:46]Write to MH i2c: E2 08 00 5D 07 80 0D 01 02 00 00 00 00 DD [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 03 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [20:27:46]RAPDU: 90 00 [20:27:46]wFMCommunicate OK [20:27:46]wFMCommunicate request_size=255 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 81 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 7D 2F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 2F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 2F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 42 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 73 01 00 35 04 06 00 AF [20:27:46]Write to MH i2c: E2 02 01 5E 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 81 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 7D 2F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 2F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 2F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 42 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 73 01 00 35 04 06 00 AF 00 00 5B [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 03 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 03 00 5E 07 00 90 00 D9 [20:27:46]RAPDU: 90 00 [20:27:46]wFMCommunicate OK [20:27:46]wFMCommunicate request_size=10 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 0D 02 02 05 6A D6 74 9F 19 [20:27:46]Write to MH i2c: E2 0D 00 5F 07 80 0D 02 02 05 00 6A D6 74 9F 19 00 00 56 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 03 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [20:27:46]RAPDU: 90 00 [20:27:46]wFMCommunicate OK [20:27:46]wFMCommunicate request_size=4 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 0D 03 02 [20:27:46]Write to MH i2c: E2 08 00 60 07 80 0D 03 02 00 00 00 00 E2 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 0B 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 0B 00 60 07 00 82 6D A2 DA 07 18 9B 5A 90 00 62 [20:27:46]RAPDU: 82 6D A2 DA 07 18 9B 5A 90 00 [20:27:46]wFMCommunicate OK [20:27:46]SAM_PROTO_SignData done [20:27:46]FM_MakeSignedData done [20:27:46]CreateOFDProtocolMessage [20:27:46]wFMCommunicate request_size=4 [20:27:46]MH_SAM_APDU [20:27:46]CAPDU: 80 11 00 00 [20:27:46]Write to MH i2c: E2 08 00 61 07 80 11 00 00 00 00 00 00 E2 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:46]Read from MH i2c: E2 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 17 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: E2 17 00 61 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 32 [20:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:27:46]wFMCommunicate OK [20:27:46]CreateOFDProtocolMessage done [20:27:46]OFDSenderStorePacket 95030 [20:27:46]StoreOFDPacket docnum=95030 [20:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 45 4F 07 01 3F 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 81 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 7D 2F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 2F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 2F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 42 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 73 01 00 35 04 06 00 AF 6A D6 74 9F 19 82 6D A2 DA 07 18 9B 5A [20:27:46]CheckFolder [20:27:46]dirname=/storage/ofd_packets [20:27:46]CheckFolder done [20:27:46]ProducePacketName [20:27:46]name=ofd_packets/00095030 [20:27:46]NVStorageSaveData ofd_packets/00095030 [20:27:46]File name is /storage/ofd_packets/00095030 [20:27:46]Write 301 bytes [20:27:46]NVStorageSaveData done [20:27:46]OFDSenderStorePacket done [20:27:46]KKMCreateOFDPacket done [20:27:46]NVStorageSaveData kkm_last_timestamp [20:27:46]File name is /storage/kkm_last_timestamp [20:27:46]Write 4 bytes [20:27:46]NVStorageSaveData done [20:27:46]ExternCall_PrintAddStr [20:27:46]wPrintStart [20:27:46]Write to MH i2c: 01 00 00 62 07 69 [20:27:46]Write i2c OK [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 [20:27:46]MH_I2C_Read... [20:27:46]Read from MH i2c: 01 07 00 62 07 00 80 00 00 00 FF 0F FE [20:27:46]RasterBufferAndPrint [20:27:46]line Счет N : (1)195989 [20:27:46]line ИНН: 02508201610067 [20:27:46]line Контрольно-Кассовый Чек [20:27:46]line ПРОДАЖА [20:27:46]line ТРК (МРК, ГНК) : 12 [20:27:46]line Товар: 2710124130 [20:27:46]line Аи-92-К-5 [20:27:46]line 33.190 * 62.90 [20:27:46]line = 2087.65 [20:27:46]line НДС 12% НСП 1% [20:27:46]line > о реализуемом товаре [20:27:46]line ИТОГО: 2087.65 [20:27:46]line НСП 1% : 18.47 [20:27:46]line НДС 12% : 221.70 [20:27:46]line Наличными: 0.00 [20:27:46]line Безнал.: 2087.65 [20:27:46]line Место: АЗС № 6 "Партнер Нефть" [20:27:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:27:46]line СНО: Общий режим [20:27:46]line Чек 205 11.03.2024 20:27 [20:27:46]line Смена: 326 ФФД: 1.0 [20:27:46]line ЗНМ: 0300000009 [20:27:46]line РНМ: 0000000000090555 [20:27:46]line Версия ККМ: 001 [20:27:46]line Платежная система: Бакай Банк [20:27:46]line ФМ: 0000000000874811 [20:27:46]line ФД: 95030 [20:27:46]line ФПД: 192873399361305 [20:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T202746&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95030&fm=192873399361305&tin=02508201610067®Number=0000000000090555&sum=208765 [20:27:47]OFD Sender: Processing packet 95030 [packets to send 30, broken 29] [20:27:47]ProducePacketName [20:27:47]name=ofd_packets/00095030 [20:27:47]OFD Sender: To server: pG, [20:27:47]CommunicateWithHost lk.salyk.kg:30040 [20:27:47]ConnectInit lk.salyk.kg [20:27:47]written 0, free lines is 4095 [20:27:47]Connected sock=8 [20:27: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 31 31 0F 01 00 00 45 4F 07 01 3F 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 81 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 7D 2F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 2F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 2F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 42 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 73 01 00 35 04 06 00 AF 6A D6 74 9F 19 82 6D A2 DA 07 18 9B 5A [20:27: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 31 31 4F 00 00 00 77 56 47 00 28 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 36 73 01 00 F4 03 04 00 9A 14 EF 65 B6 04 01 00 00 BE F7 37 64 6D 20 BC EB [20:27:47]CommunicateWithHost err = 0 [20:27:47]CheckOFDResponse [20:27:47]1017 (14) - 77093643461234 [20:27:47]1041 (16) - 0000000000874811 [20:27:47]1040 (4) - 95030 [20:27:47]1012 (4) - 11.03.2024 14:26 [20:27:47]1206 (1) - 0 [20:27:47]OFD Sender: Remove packet 95030 [20:27:47]ProducePacketName [20:27:47]name=ofd_packets/00095030 [20:27:47]NVStorageDeleteData [20:27:47]Write to MH i2c: 01 00 00 8C 07 93 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 8C 07 00 80 00 00 00 6C 0D 93 [20:27:47]RasterBufferAndPrint [20:27:47]line [20:27:47]line [20:27:47]line [20:27:47]line [20:27:47]line [20:27:47]written 0, free lines is 3442 [20:27:47]process_action close_receipt done [20:27:47]requested_data is exist [20:27:47]produce_requested_data [20:27:47]requested_item fm.sn is exist - process it [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 11 00 00 [20:27:47]Write to MH i2c: E2 08 00 93 07 80 11 00 00 00 00 00 00 14 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 93 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 64 [20:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:27:47]wFMCommunicate OK [20:27:47]requested_item fd.num is exist - process it [20:27:47]SAM_PROTO_GetFieldsCounters [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 00 00 [20:27:47]Write to MH i2c: E2 08 00 94 07 80 13 00 00 00 00 00 00 17 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 62 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 62 00 94 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 36 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [20:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 36 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_GetFieldsCounters done [20:27:47]requested_item shift.num is exist - process it [20:27:47]requested_item shift.opened is exist - process it [20:27:47]req_shift_opened [20:27:47]FM_GetShiftState [20:27:47]SAM_PROTO_GetShiftState [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 01 00 [20:27:47]Write to MH i2c: E2 08 00 95 07 80 13 01 00 00 00 00 00 19 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:48]Read from MH i2c: E2 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: E2 0E 00 [20:27:48]MH_I2C_Read... [20:27:48]Read from MH i2c: E2 0E 00 95 07 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B5 [20:27:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:27:48]wFMCommunicate OK [20:27:48]SAM_PROTO_GetShiftState done [20:27:48]FM_GetShiftState done [20:27:48]req_shift_opened done [20:27:48]requested_item shift.open_date is exist - process it [20:27:48]req_shift_open_date [20:27:48]req_shift_open_date done [20:27:48]produce_requested_data done [20:27:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95030,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:27:48]process_action_free close_receipt [20:27:48]json_value_free [20:27:48]json_value_free done [20:27:48]process_json_proto returns [20:27:48]Send response to host [20:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95030,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:27:48]free response buf [20:27:48]execute_script done [20:27:48]execute_script returns [20:27:48]free content buf [20:27:48]Sock 9.Close socket [20:27:48]Sock 9.Thread stoped [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:18]accept exits with 10 [20:29:18]New connection [20:29:18]New thread 3066813796 created [20:29:18]Thread 3066957156 joined [20:29:18]Waiting for new connection... [20:29:18] Sock 10.Parse request [20:29:18]Sock 10.Check first char [20:29:18]Sock 10.First char is OK [20:29:18]request: POST /json_proto HTTP/1.0 [20:29:18]Method: POST [20:29:18]URL: /json_proto [20:29:18]Method is POST - this is cgi request [20:29:18]url: /json_proto [20:29:18]query_string will be loaded in cgi processing [20:29:18]execute_cgi json_proto POST (null) [20:29:18]execute_cgi path=json_proto method=POST [20:29:18]POST find Content-Length [20:29:18]Host: 172.17.62.67:8080 [20:29:18]Content-Length: 819 [20:29:18]Content-Type: application/json [20:29:18] [20:29:18]POST finish read [20:29:18]Found Content-Length = 819 [20:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:18]execute_script... [20:29:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:18]POST & json_proto [20:29:18]process_json_proto [20:29:18]json parsed OK: [20:29:18]protocol is kg_v1.0 [20:29:18]action value=close_receipt [20:29:18]process_action close_receipt [20:29:18]cmd_close_receipt [20:29:18]MH_GetDate [20:29:18]Write to MH i2c: F0 00 00 96 07 8C [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: F0 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: F0 05 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: F0 05 00 96 07 00 9F 69 EF 65 ED [20:29:18]GetLastDocTimeStamp 1710188866 [20:29:18]current date 1710188959 [20:29:18]FM_GetShiftState [20:29:18]SAM_PROTO_GetShiftState [20:29:18]wFMCommunicate request_size=4 [20:29:18]MH_SAM_APDU [20:29:18]CAPDU: 80 13 01 00 [20:29:18]Write to MH i2c: E2 08 00 97 07 80 13 01 00 00 00 00 00 1B [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:18]Read from MH i2c: E2 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 0E 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 0E 00 97 07 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B7 [20:29:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:29:18]wFMCommunicate OK [20:29:18]SAM_PROTO_GetShiftState done [20:29:18]FM_GetShiftState done [20:29:18]opened in 1710115571 [20:29:18]opened+sec_in_day 1710201971 [20:29:18]quantity*price = 100011 [20:29:18]sum+1 = 100012 [20:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 206 11.03.2024 20:29 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95031 ФПД: 236857686450960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T202919&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95031&fm=236857686450960&tin=02508201610067®Number=0000000000090555&sum=100011 [20:29:19]StoreToDocumentArchive [20:29:19]shift 326 fd 95031 [20:29:19]save to /storage/0326/doc_00095031 [20:29:19]save last doc name /storage/0326/doc_00095031 to /storage/kkm_last_doc_name [20:29:19]save OK [20:29:19]Clear old archive folders... [20:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:19]tlvbuf is 01A35B20 [20:29:19]SAM_PROTO_ClearQueue [20:29:19]wFMCommunicate request_size=4 [20:29:19]MH_SAM_APDU [20:29:19]CAPDU: 80 09 00 00 [20:29:19]Write to MH i2c: E2 08 00 A4 07 80 09 00 00 00 00 00 00 1D [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:19]Read from MH i2c: E2 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 03 00 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [20:29:19]RAPDU: 90 00 [20:29:19]wFMCommunicate OK [20:29:19]SAM_PROTO_ClearQueue done [20:29:19]KKMCreateOFDPacket [20:29:19]OFDProtocolAddRootSTLVToBuf [20:29:19]FM_MakeSignedData [20:29:19]FM_MakeSignedData [20:29:19]SAM_PROTO_SignData [20:29:19]wFMCommunicate request_size=4 [20:29:19]MH_SAM_APDU [20:29:19]CAPDU: 80 0D 01 02 [20:29:19]Write to MH i2c: E2 08 00 A5 07 80 0D 01 02 00 00 00 00 25 [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:19]Read from MH i2c: E2 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 03 00 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [20:29:19]RAPDU: 90 00 [20:29:19]wFMCommunicate OK [20:29:19]wFMCommunicate request_size=255 [20:29:19]MH_SAM_APDU [20:29:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 9F 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 73 01 00 35 04 06 00 D7 [20:29:19]Write to MH i2c: E2 02 01 A6 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 9F 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 73 01 00 35 04 06 00 D7 00 00 D6 [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:19]Read from MH i2c: E2 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 03 00 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [20:29:19]RAPDU: 90 00 [20:29:19]wFMCommunicate OK [20:29:19]wFMCommunicate request_size=10 [20:29:19]MH_SAM_APDU [20:29:19]CAPDU: 80 0D 02 02 05 6B BA 43 63 10 [20:29:19]Write to MH i2c: E2 0D 00 A7 07 80 0D 02 02 05 00 6B BA 43 63 10 00 00 0D [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:19]Read from MH i2c: E2 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 03 00 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 03 00 A7 07 00 90 00 22 [20:29:19]RAPDU: 90 00 [20:29:19]wFMCommunicate OK [20:29:19]wFMCommunicate request_size=4 [20:29:19]MH_SAM_APDU [20:29:19]CAPDU: 80 0D 03 02 [20:29:19]Write to MH i2c: E2 08 00 A8 07 80 0D 03 02 00 00 00 00 2A [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:19]Read from MH i2c: E2 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 0B 00 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 0B 00 A8 07 00 91 EC CB D8 9D 11 C1 79 90 00 33 [20:29:19]RAPDU: 91 EC CB D8 9D 11 C1 79 90 00 [20:29:19]wFMCommunicate OK [20:29:19]SAM_PROTO_SignData done [20:29:19]FM_MakeSignedData done [20:29:19]CreateOFDProtocolMessage [20:29:19]wFMCommunicate request_size=4 [20:29:19]MH_SAM_APDU [20:29:19]CAPDU: 80 11 00 00 [20:29:19]Write to MH i2c: E2 08 00 A9 07 80 11 00 00 00 00 00 00 2A [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:19]Read from MH i2c: E2 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 17 00 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: E2 17 00 A9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7A [20:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:29:19]wFMCommunicate OK [20:29:19]CreateOFDProtocolMessage done [20:29:19]OFDSenderStorePacket 95031 [20:29:19]StoreOFDPacket docnum=95031 [20:29:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 51 6D 07 01 81 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 9F 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 73 01 00 35 04 06 00 D7 6B BA 43 63 10 91 EC CB D8 9D 11 C1 79 [20:29:19]CheckFolder [20:29:19]dirname=/storage/ofd_packets [20:29:19]CheckFolder done [20:29:19]ProducePacketName [20:29:19]name=ofd_packets/00095031 [20:29:19]NVStorageSaveData ofd_packets/00095031 [20:29:19]File name is /storage/ofd_packets/00095031 [20:29:19]Write 301 bytes [20:29:19]NVStorageSaveData done [20:29:19]OFDSenderStorePacket done [20:29:19]KKMCreateOFDPacket done [20:29:19]NVStorageSaveData kkm_last_timestamp [20:29:19]File name is /storage/kkm_last_timestamp [20:29:19]Write 4 bytes [20:29:19]NVStorageSaveData done [20:29:19]ExternCall_PrintAddStr [20:29:19]wPrintStart [20:29:19]Write to MH i2c: 01 00 00 AA 07 B1 [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: 01 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: 01 07 00 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: 01 07 00 AA 07 00 80 00 00 00 FF 0F 46 [20:29:19]RasterBufferAndPrint [20:29:19]line Счет N : (1)195990 [20:29:19]line ИНН: 02508201610067 [20:29:19]line Контрольно-Кассовый Чек [20:29:19]line ПРОДАЖА [20:29:19]line ТРК (МРК, ГНК) : 32 [20:29:19]line Товар: 2710124130 [20:29:19]line Аи-92-К-5 [20:29:19]line 15.900 * 62.90 [20:29:19]line = 1000.11 [20:29:19]line НДС 12% НСП 1% [20:29:19]line > о реализуемом товаре [20:29:19]line ИТОГО: 1000.11 [20:29:19]line НСП 1% : 8.85 [20:29:19]line НДС 12% : 106.21 [20:29:19]line Наличными: 0.00 [20:29:19]line Безнал.: 1000.11 [20:29:19]line Место: АЗС № 6 "Партнер Нефть" [20:29:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:29:19]line СНО: Общий режим [20:29:19]line Чек 206 11.03.2024 20:29 [20:29:19]line Смена: 326 ФФД: 1.0 [20:29:19]line ЗНМ: 0300000009 [20:29:19]line РНМ: 0000000000090555 [20:29:19]line Версия ККМ: 001 [20:29:19]line Платежная система: Бакай Банк [20:29:19]line ФМ: 0000000000874811 [20:29:19]line ФД: 95031 [20:29:19]line ФПД: 236857686450960 [20:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T202919&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95031&fm=236857686450960&tin=02508201610067®Number=0000000000090555&sum=100011 [20:29:20]OFD Sender: Processing packet 95031 [packets to send 30, broken 29] [20:29:20]ProducePacketName [20:29:20]name=ofd_packets/00095031 [20:29:20]OFD Sender: To server: pG, [20:29:20]CommunicateWithHost lk.salyk.kg:30040 [20:29:20]ConnectInit lk.salyk.kg [20:29:20]written 0, free lines is 4095 [20:29:20]Connected sock=9 [20:29: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 31 31 0F 01 00 00 51 6D 07 01 81 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 9F 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 73 01 00 35 04 06 00 D7 6B BA 43 63 10 91 EC CB D8 9D 11 C1 79 [20:29: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 31 31 4F 00 00 00 C3 0A 47 00 7F 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 37 73 01 00 F4 03 04 00 F7 14 EF 65 B6 04 01 00 00 06 3E E5 13 55 DF 6A A0 [20:29:20]CommunicateWithHost err = 0 [20:29:20]CheckOFDResponse [20:29:20]1017 (14) - 77093643461234 [20:29:20]1041 (16) - 0000000000874811 [20:29:20]1040 (4) - 95031 [20:29:20]1012 (4) - 11.03.2024 14:28 [20:29:20]1206 (1) - 0 [20:29:20]OFD Sender: Remove packet 95031 [20:29:20]ProducePacketName [20:29:20]name=ofd_packets/00095031 [20:29:20]NVStorageDeleteData [20:29:20]Write to MH i2c: 01 00 00 D4 07 DB [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: 01 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: 01 07 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: 01 07 00 D4 07 00 80 00 00 00 63 0D D2 [20:29:20]RasterBufferAndPrint [20:29:20]line [20:29:20]line [20:29:20]line [20:29:20]line [20:29:20]line [20:29:20]written 0, free lines is 3433 [20:29:20]process_action close_receipt done [20:29:20]requested_data is exist [20:29:20]produce_requested_data [20:29:20]requested_item fm.sn is exist - process it [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 11 00 00 [20:29:20]Write to MH i2c: E2 08 00 DB 07 80 11 00 00 00 00 00 00 5C [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:20]Read from MH i2c: E2 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 17 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 17 00 DB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AC [20:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:29:20]wFMCommunicate OK [20:29:20]requested_item fd.num is exist - process it [20:29:20]SAM_PROTO_GetFieldsCounters [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 13 00 00 [20:29:20]Write to MH i2c: E2 08 00 DC 07 80 13 00 00 00 00 00 00 5F [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:20]Read from MH i2c: E2 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 62 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 62 00 DC 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 37 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [20:29:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 37 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:20]wFMCommunicate OK [20:29:20]SAM_PROTO_GetFieldsCounters done [20:29:20]requested_item shift.num is exist - process it [20:29:20]requested_item shift.opened is exist - process it [20:29:20]req_shift_opened [20:29:20]FM_GetShiftState [20:29:20]SAM_PROTO_GetShiftState [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 13 01 00 [20:29:20]Write to MH i2c: E2 08 00 DD 07 80 13 01 00 00 00 00 00 61 [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:21]Read from MH i2c: E2 [20:29:21]MH_I2C_Read... [20:29:21]Read from MH i2c: E2 0E 00 [20:29:21]MH_I2C_Read... [20:29:21]Read from MH i2c: E2 0E 00 DD 07 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FD [20:29:21]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:29:21]wFMCommunicate OK [20:29:21]SAM_PROTO_GetShiftState done [20:29:21]FM_GetShiftState done [20:29:21]req_shift_opened done [20:29:21]requested_item shift.open_date is exist - process it [20:29:21]req_shift_open_date [20:29:21]req_shift_open_date done [20:29:21]produce_requested_data done [20:29:21]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95031,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:29:21]process_action_free close_receipt [20:29:21]json_value_free [20:29:21]json_value_free done [20:29:21]process_json_proto returns [20:29:21]Send response to host [20:29:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95031,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:29:21]free response buf [20:29:21]execute_script done [20:29:21]execute_script returns [20:29:21]free content buf [20:29:21]Sock 10.Close socket [20:29:21]Sock 10.Thread stoped [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]accept exits with 8 [20:29:56]New connection [20:29:56]New thread 3066957156 created [20:29:56]Thread 3066813796 joined [20:29:56]Waiting for new connection... [20:29:56] Sock 8.Parse request [20:29:56]Sock 8.Check first char [20:29:56]Sock 8.First char is OK [20:29:56]request: POST /json_proto HTTP/1.0 [20:29:56]Method: POST [20:29:56]URL: /json_proto [20:29:56]Method is POST - this is cgi request [20:29:56]url: /json_proto [20:29:56]query_string will be loaded in cgi processing [20:29:56]execute_cgi json_proto POST (null) [20:29:56]execute_cgi path=json_proto method=POST [20:29:56]POST find Content-Length [20:29:56]Host: 172.17.62.67:8080 [20:29:56]Content-Length: 661 [20:29:56]Content-Type: application/json [20:29:56] [20:29:56]POST finish read [20:29:56]Found Content-Length = 661 [20:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:56]execute_script... [20:29: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)195991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:56]POST & json_proto [20:29:56]process_json_proto [20:29:56]json parsed OK: [20:29:56]protocol is kg_v1.0 [20:29:56]action value=close_receipt [20:29:56]process_action close_receipt [20:29:56]cmd_close_receipt [20:29:56]MH_GetDate [20:29:56]Write to MH i2c: F0 00 00 DE 07 D4 [20:29:56]Write i2c OK [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: F0 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: F0 05 00 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: F0 05 00 DE 07 00 C5 69 EF 65 5B [20:29:56]GetLastDocTimeStamp 1710188959 [20:29:56]current date 1710188997 [20:29:56]FM_GetShiftState [20:29:56]SAM_PROTO_GetShiftState [20:29:56]wFMCommunicate request_size=4 [20:29:56]MH_SAM_APDU [20:29:56]CAPDU: 80 13 01 00 [20:29:56]Write to MH i2c: E2 08 00 DF 07 80 13 01 00 00 00 00 00 63 [20:29:56]Write i2c OK [20:29:56]MH_I2C_Read... [20:29:56]OFD Sender: No OFD packet to send [20:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:56]Read from MH i2c: E2 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: E2 0E 00 [20:29:56]MH_I2C_Read... [20:29:56]Read from MH i2c: E2 0E 00 DF 07 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FF [20:29:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:29:56]wFMCommunicate OK [20:29:56]SAM_PROTO_GetShiftState done [20:29:56]FM_GetShiftState done [20:29:56]opened in 1710115571 [20:29:56]opened+sec_in_day 1710201971 [20:29:56]quantity*price = 62900 [20:29:56]sum+1 = 62901 [20:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 1000.00 СДАЧА: 371.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 207 11.03.2024 20:29 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95032 ФПД: 235037675941363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T202957&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95032&fm=235037675941363&tin=02508201610067®Number=0000000000090555&sum=62900 [20:29:57]StoreToDocumentArchive [20:29:57]shift 326 fd 95032 [20:29:57]save to /storage/0326/doc_00095032 [20:29:57]save last doc name /storage/0326/doc_00095032 to /storage/kkm_last_doc_name [20:29:57]save OK [20:29:57]Clear old archive folders... [20:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:57]tlvbuf is 01A148D0 [20:29:57]SAM_PROTO_ClearQueue [20:29:57]wFMCommunicate request_size=4 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 09 00 00 [20:29:57]Write to MH i2c: E2 08 00 EC 07 80 09 00 00 00 00 00 00 65 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 03 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [20:29:57]RAPDU: 90 00 [20:29:57]wFMCommunicate OK [20:29:57]SAM_PROTO_ClearQueue done [20:29:57]KKMCreateOFDPacket [20:29:57]OFDProtocolAddRootSTLVToBuf [20:29:57]FM_MakeSignedData [20:29:57]FM_MakeSignedData [20:29:57]SAM_PROTO_SignData [20:29:57]wFMCommunicate request_size=4 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 0D 01 02 [20:29:57]Write to MH i2c: E2 08 00 ED 07 80 0D 01 02 00 00 00 00 6D [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 03 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [20:29:57]RAPDU: 90 00 [20:29:57]wFMCommunicate OK [20:29:57]wFMCommunicate request_size=255 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C5 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 73 01 00 35 04 06 00 D5 [20:29:57]Write to MH i2c: E2 02 01 EE 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C5 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 73 01 00 35 04 06 00 D5 00 00 C9 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 03 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [20:29:57]RAPDU: 90 00 [20:29:57]wFMCommunicate OK [20:29:57]wFMCommunicate request_size=10 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 0D 02 02 05 C3 F9 2E ED F3 [20:29:57]Write to MH i2c: E2 0D 00 EF 07 80 0D 02 02 05 00 C3 F9 2E ED F3 00 00 44 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 03 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [20:29:57]RAPDU: 90 00 [20:29:57]wFMCommunicate OK [20:29:57]wFMCommunicate request_size=4 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 0D 03 02 [20:29:57]Write to MH i2c: E2 08 00 F0 07 80 0D 03 02 00 00 00 00 72 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 0B 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 0B 00 F0 07 00 5C C4 AB 51 15 57 67 AC 90 00 0E [20:29:57]RAPDU: 5C C4 AB 51 15 57 67 AC 90 00 [20:29:57]wFMCommunicate OK [20:29:57]SAM_PROTO_SignData done [20:29:57]FM_MakeSignedData done [20:29:57]CreateOFDProtocolMessage [20:29:57]wFMCommunicate request_size=4 [20:29:57]MH_SAM_APDU [20:29:57]CAPDU: 80 11 00 00 [20:29:57]Write to MH i2c: E2 08 00 F1 07 80 11 00 00 00 00 00 00 72 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:57]Read from MH i2c: E2 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 17 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: E2 17 00 F1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C2 [20:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:29:57]wFMCommunicate OK [20:29:57]CreateOFDProtocolMessage done [20:29:57]OFDSenderStorePacket 95032 [20:29:57]StoreOFDPacket docnum=95032 [20:29:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 49 0B 07 01 87 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C5 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 73 01 00 35 04 06 00 D5 C3 F9 2E ED F3 5C C4 AB 51 15 57 67 AC [20:29:57]CheckFolder [20:29:57]dirname=/storage/ofd_packets [20:29:57]CheckFolder done [20:29:57]ProducePacketName [20:29:57]name=ofd_packets/00095032 [20:29:57]NVStorageSaveData ofd_packets/00095032 [20:29:57]File name is /storage/ofd_packets/00095032 [20:29:57]Write 301 bytes [20:29:57]NVStorageSaveData done [20:29:57]OFDSenderStorePacket done [20:29:57]KKMCreateOFDPacket done [20:29:57]NVStorageSaveData kkm_last_timestamp [20:29:57]File name is /storage/kkm_last_timestamp [20:29:57]Write 4 bytes [20:29:57]NVStorageSaveData done [20:29:57]ExternCall_PrintAddStr [20:29:57]wPrintStart [20:29:57]Write to MH i2c: 01 00 00 F2 07 F9 [20:29:57]Write i2c OK [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: 01 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: 01 07 00 [20:29:57]MH_I2C_Read... [20:29:57]Read from MH i2c: 01 07 00 F2 07 00 80 00 00 00 FF 0F 8E [20:29:57]RasterBufferAndPrint [20:29:57]line Счет N : (1)195991 [20:29:57]line ИНН: 02508201610067 [20:29:57]line Контрольно-Кассовый Чек [20:29:57]line ПРОДАЖА [20:29:57]line ТРК (МРК, ГНК) : 42 [20:29:57]line Товар: 2710124130 [20:29:57]line Аи-92-К-5 [20:29:57]line 10.000 * 62.90 [20:29:57]line = 629.00 [20:29:57]line НДС 12% НСП 1% [20:29:57]line > о реализуемом товаре [20:29:57]line ИТОГО: 629.00 [20:29:57]line Внесено: 1000.00 [20:29:57]line СДАЧА: 371.00 [20:29:57]line НСП 1% : 5.57 [20:29:57]line НДС 12% : 66.80 [20:29:57]line Наличными: 629.00 [20:29:57]line Безнал.: 0.00 [20:29:57]line Место: АЗС № 6 "Партнер Нефть" [20:29:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:29:57]line СНО: Общий режим [20:29:57]line Чек 207 11.03.2024 20:29 [20:29:57]line Смена: 326 ФФД: 1.0 [20:29:57]line ЗНМ: 0300000009 [20:29:57]line РНМ: 0000000000090555 [20:29:57]line Версия ККМ: 001 [20:29:57]line ФМ: 0000000000874811 [20:29:57]line ФД: 95032 [20:29:57]line ФПД: 235037675941363 [20:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T202957&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95032&fm=235037675941363&tin=02508201610067®Number=0000000000090555&sum=62900 [20:29:58]OFD Sender: Processing packet 95032 [packets to send 30, broken 29] [20:29:58]ProducePacketName [20:29:58]name=ofd_packets/00095032 [20:29:58]OFD Sender: To server: pG, [20:29:58]CommunicateWithHost lk.salyk.kg:30040 [20:29:58]ConnectInit lk.salyk.kg [20:29:58]written 0, free lines is 4095 [20:29:58]Connected sock=10 [20:29: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 31 31 0F 01 00 00 49 0B 07 01 87 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C5 69 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 73 01 00 35 04 06 00 D5 C3 F9 2E ED F3 5C C4 AB 51 15 57 67 AC [20:29: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 31 31 4F 00 00 00 0B 3B 47 00 40 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 38 73 01 00 F4 03 04 00 1D 15 EF 65 B6 04 01 00 00 C0 6C 8B D5 AE 07 6F D3 [20:29:58]CommunicateWithHost err = 0 [20:29:58]CheckOFDResponse [20:29:58]1017 (14) - 77093643461234 [20:29:58]1041 (16) - 0000000000874811 [20:29:58]1040 (4) - 95032 [20:29:58]1012 (4) - 11.03.2024 14:28 [20:29:58]1206 (1) - 0 [20:29:58]OFD Sender: Remove packet 95032 [20:29:58]ProducePacketName [20:29:58]name=ofd_packets/00095032 [20:29:58]NVStorageDeleteData [20:29:58]Write to MH i2c: 01 00 00 1C 08 24 [20:29:58]Write i2c OK [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: 01 [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: 01 07 00 [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: 01 07 00 1C 08 00 80 00 00 00 66 0D 1E [20:29:58]RasterBufferAndPrint [20:29:58]line [20:29:58]line [20:29:58]line [20:29:58]line [20:29:58]line [20:29:58]written 0, free lines is 3434 [20:29:58]process_action close_receipt done [20:29:58]requested_data is exist [20:29:58]produce_requested_data [20:29:58]requested_item fm.sn is exist - process it [20:29:58]wFMCommunicate request_size=4 [20:29:58]MH_SAM_APDU [20:29:58]CAPDU: 80 11 00 00 [20:29:58]Write to MH i2c: E2 08 00 23 08 80 11 00 00 00 00 00 00 A5 [20:29:58]Write i2c OK [20:29:58]MH_I2C_Read... [20:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:58]Read from MH i2c: E2 [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: E2 17 00 [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: E2 17 00 23 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F5 [20:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:29:58]wFMCommunicate OK [20:29:58]requested_item fd.num is exist - process it [20:29:58]SAM_PROTO_GetFieldsCounters [20:29:58]wFMCommunicate request_size=4 [20:29:58]MH_SAM_APDU [20:29:58]CAPDU: 80 13 00 00 [20:29:58]Write to MH i2c: E2 08 00 24 08 80 13 00 00 00 00 00 00 A8 [20:29:58]Write i2c OK [20:29:58]MH_I2C_Read... [20:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:58]Read from MH i2c: E2 [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: E2 62 00 [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: E2 62 00 24 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 38 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [20:29:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 38 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:58]wFMCommunicate OK [20:29:58]SAM_PROTO_GetFieldsCounters done [20:29:58]requested_item shift.num is exist - process it [20:29:58]requested_item shift.opened is exist - process it [20:29:58]req_shift_opened [20:29:58]FM_GetShiftState [20:29:58]SAM_PROTO_GetShiftState [20:29:58]wFMCommunicate request_size=4 [20:29:58]MH_SAM_APDU [20:29:58]CAPDU: 80 13 01 00 [20:29:58]Write to MH i2c: E2 08 00 25 08 80 13 01 00 00 00 00 00 AA [20:29:58]Write i2c OK [20:29:58]MH_I2C_Read... [20:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:58]Read from MH i2c: E2 [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: E2 0E 00 [20:29:58]MH_I2C_Read... [20:29:58]Read from MH i2c: E2 0E 00 25 08 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 46 [20:29:58]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:29:58]wFMCommunicate OK [20:29:58]SAM_PROTO_GetShiftState done [20:29:58]FM_GetShiftState done [20:29:58]req_shift_opened done [20:29:58]requested_item shift.open_date is exist - process it [20:29:58]req_shift_open_date [20:29:58]req_shift_open_date done [20:29:58]produce_requested_data done [20:29:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95032,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:29:58]process_action_free close_receipt [20:29:58]json_value_free [20:29:58]json_value_free done [20:29:58]process_json_proto returns [20:29:58]Send response to host [20:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95032,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:29:58]free response buf [20:29:58]execute_script done [20:29:58]execute_script returns [20:29:58]free content buf [20:29:58]Sock 8.Close socket [20:29:58]Sock 8.Thread stoped [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:40]accept exits with 9 [20:31:40]New connection [20:31:40]New thread 3066813796 created [20:31:40]Thread 3066957156 joined [20:31:40]Waiting for new connection... [20:31:40] Sock 9.Parse request [20:31:40]Sock 9.Check first char [20:31:40]Sock 9.First char is OK [20:31:40]request: POST /json_proto HTTP/1.0 [20:31:40]Method: POST [20:31:40]URL: /json_proto [20:31:40]Method is POST - this is cgi request [20:31:40]url: /json_proto [20:31:40]query_string will be loaded in cgi processing [20:31:40]execute_cgi json_proto POST (null) [20:31:40]execute_cgi path=json_proto method=POST [20:31:40]POST find Content-Length [20:31:40]Host: 172.17.62.67:8080 [20:31:40]Content-Length: 808 [20:31:40]Content-Type: application/json [20:31:40] [20:31:40]POST finish read [20:31:40]Found Content-Length = 808 [20:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:40]execute_script... [20:31: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)195992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:40]POST & json_proto [20:31:40]process_json_proto [20:31:40]json parsed OK: [20:31:40]protocol is kg_v1.0 [20:31:40]action value=close_receipt [20:31:40]process_action close_receipt [20:31:40]cmd_close_receipt [20:31:40]MH_GetDate [20:31:40]Write to MH i2c: F0 00 00 26 08 1D [20:31:40]Write i2c OK [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 05 00 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: F0 05 00 26 08 00 2D 6A EF 65 0D [20:31:40]GetLastDocTimeStamp 1710188997 [20:31:40]current date 1710189101 [20:31:40]FM_GetShiftState [20:31:40]SAM_PROTO_GetShiftState [20:31:40]wFMCommunicate request_size=4 [20:31:40]MH_SAM_APDU [20:31:40]CAPDU: 80 13 01 00 [20:31:40]Write to MH i2c: E2 08 00 27 08 80 13 01 00 00 00 00 00 AC [20:31:40]Write i2c OK [20:31:40]MH_I2C_Read... [20:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:40]Read from MH i2c: E2 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 0E 00 [20:31:40]MH_I2C_Read... [20:31:40]Read from MH i2c: E2 0E 00 27 08 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 48 [20:31:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:31:40]wFMCommunicate OK [20:31:40]SAM_PROTO_GetShiftState done [20:31:40]FM_GetShiftState done [20:31:40]opened in 1710115571 [20:31:40]opened+sec_in_day 1710201971 [20:31:40]quantity*price = 100011 [20:31:40]sum+1 = 100012 [20:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 208 11.03.2024 20:31 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95033 ФПД: 255452680295925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T203141&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95033&fm=255452680295925&tin=02508201610067®Number=0000000000090555&sum=100011 [20:31:41]StoreToDocumentArchive [20:31:41]shift 326 fd 95033 [20:31:41]save to /storage/0326/doc_00095033 [20:31:41]save last doc name /storage/0326/doc_00095033 to /storage/kkm_last_doc_name [20:31:41]save OK [20:31:41]Clear old archive folders... [20:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:41]tlvbuf is 019FEEE0 [20:31:41]SAM_PROTO_ClearQueue [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 09 00 00 [20:31:41]Write to MH i2c: E2 08 00 34 08 80 09 00 00 00 00 00 00 AE [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 34 08 00 90 00 B0 [20:31:41]RAPDU: 90 00 [20:31:41]wFMCommunicate OK [20:31:41]SAM_PROTO_ClearQueue done [20:31:41]KKMCreateOFDPacket [20:31:41]OFDProtocolAddRootSTLVToBuf [20:31:41]FM_MakeSignedData [20:31:41]FM_MakeSignedData [20:31:41]SAM_PROTO_SignData [20:31:41]wFMCommunicate request_size=4 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 0D 01 02 [20:31:41]Write to MH i2c: E2 08 00 35 08 80 0D 01 02 00 00 00 00 B6 [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [20:31:41]RAPDU: 90 00 [20:31:41]wFMCommunicate OK [20:31:41]wFMCommunicate request_size=255 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 2D 6A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 73 01 00 35 04 06 00 E8 [20:31:41]Write to MH i2c: E2 02 01 36 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 2D 6A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 73 01 00 35 04 06 00 E8 00 00 0B [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [20:31:41]RAPDU: 90 00 [20:31:41]wFMCommunicate OK [20:31:41]wFMCommunicate request_size=10 [20:31:41]MH_SAM_APDU [20:31:41]CAPDU: 80 0D 02 02 05 55 36 44 15 F5 [20:31:41]Write to MH i2c: E2 0D 00 37 08 80 0D 02 02 05 00 55 36 44 15 F5 00 00 9C [20:31:41]Write i2c OK [20:31:41]MH_I2C_Read... [20:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:41]Read from MH i2c: E2 [20:31:41]MH_I2C_Read... [20:31:41]Read from MH i2c: E2 03 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [20:31:42]RAPDU: 90 00 [20:31:42]wFMCommunicate OK [20:31:42]wFMCommunicate request_size=4 [20:31:42]MH_SAM_APDU [20:31:42]CAPDU: 80 0D 03 02 [20:31:42]Write to MH i2c: E2 08 00 38 08 80 0D 03 02 00 00 00 00 BB [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:42]Read from MH i2c: E2 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 0B 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 0B 00 38 08 00 75 55 76 58 12 65 F4 83 90 00 42 [20:31:42]RAPDU: 75 55 76 58 12 65 F4 83 90 00 [20:31:42]wFMCommunicate OK [20:31:42]SAM_PROTO_SignData done [20:31:42]FM_MakeSignedData done [20:31:42]CreateOFDProtocolMessage [20:31:42]wFMCommunicate request_size=4 [20:31:42]MH_SAM_APDU [20:31:42]CAPDU: 80 11 00 00 [20:31:42]Write to MH i2c: E2 08 00 39 08 80 11 00 00 00 00 00 00 BB [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:42]Read from MH i2c: E2 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 17 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 17 00 39 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0B [20:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:31:42]wFMCommunicate OK [20:31:42]CreateOFDProtocolMessage done [20:31:42]OFDSenderStorePacket 95033 [20:31:42]StoreOFDPacket docnum=95033 [20:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 50 E8 07 01 4F F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 2D 6A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 73 01 00 35 04 06 00 E8 55 36 44 15 F5 75 55 76 58 12 65 F4 83 [20:31:42]CheckFolder [20:31:42]dirname=/storage/ofd_packets [20:31:42]CheckFolder done [20:31:42]ProducePacketName [20:31:42]name=ofd_packets/00095033 [20:31:42]NVStorageSaveData ofd_packets/00095033 [20:31:42]File name is /storage/ofd_packets/00095033 [20:31:42]Write 301 bytes [20:31:42]NVStorageSaveData done [20:31:42]OFDSenderStorePacket done [20:31:42]KKMCreateOFDPacket done [20:31:42]NVStorageSaveData kkm_last_timestamp [20:31:42]File name is /storage/kkm_last_timestamp [20:31:42]Write 4 bytes [20:31:42]NVStorageSaveData done [20:31:42]ExternCall_PrintAddStr [20:31:42]wPrintStart [20:31:42]Write to MH i2c: 01 00 00 3A 08 42 [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 07 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 07 00 3A 08 00 80 00 00 00 FF 0F D7 [20:31:42]RasterBufferAndPrint [20:31:42]line Счет N : (1)195992 [20:31:42]line ИНН: 02508201610067 [20:31:42]line Контрольно-Кассовый Чек [20:31:42]line ПРОДАЖА [20:31:42]line ТРК (МРК, ГНК) : 12 [20:31:42]line Товар: 2710124130 [20:31:42]line Аи-92-К-5 [20:31:42]line 15.900 * 62.90 [20:31:42]line = 1000.11 [20:31:42]line НДС 12% НСП 1% [20:31:42]line > о реализуемом товаре [20:31:42]line ИТОГО: 1000.11 [20:31:42]line НСП 1% : 8.85 [20:31:42]line НДС 12% : 106.21 [20:31:42]line Наличными: 0.00 [20:31:42]line Безнал.: 1000.11 [20:31:42]line Место: АЗС № 6 "Партнер Нефть" [20:31:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:31:42]line СНО: Общий режим [20:31:42]line Чек 208 11.03.2024 20:31 [20:31:42]line Смена: 326 ФФД: 1.0 [20:31:42]line ЗНМ: 0300000009 [20:31:42]line РНМ: 0000000000090555 [20:31:42]line Версия ККМ: 001 [20:31:42]line Платежная система: О! деньги [20:31:42]line ФМ: 0000000000874811 [20:31:42]line ФД: 95033 [20:31:42]line ФПД: 255452680295925 [20:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T203141&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95033&fm=255452680295925&tin=02508201610067®Number=0000000000090555&sum=100011 [20:31:42]OFD Sender: Processing packet 95033 [packets to send 30, broken 29] [20:31:42]ProducePacketName [20:31:42]name=ofd_packets/00095033 [20:31:42]OFD Sender: To server: pG, [20:31:42]CommunicateWithHost lk.salyk.kg:30040 [20:31:42]ConnectInit lk.salyk.kg [20:31:42]written 0, free lines is 4095 [20:31:42]Connected sock=10 [20:31: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 31 31 0F 01 00 00 50 E8 07 01 4F F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 2D 6A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 39 73 01 00 35 04 06 00 E8 55 36 44 15 F5 75 55 76 58 12 65 F4 83 [20:31: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 31 31 4F 00 00 00 81 88 47 00 08 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 31 31 10 04 04 00 39 73 01 00 F4 03 04 00 86 15 EF 65 B6 04 01 00 00 19 07 D3 54 F9 85 23 1F [20:31:42]CommunicateWithHost err = 0 [20:31:42]CheckOFDResponse [20:31:42]1017 (14) - 77093643461234 [20:31:42]1041 (16) - 0000000000874811 [20:31:42]1040 (4) - 95033 [20:31:42]1012 (4) - 11.03.2024 14:30 [20:31:42]1206 (1) - 0 [20:31:42]OFD Sender: Remove packet 95033 [20:31:42]ProducePacketName [20:31:42]name=ofd_packets/00095033 [20:31:42]NVStorageDeleteData [20:31:42]Write to MH i2c: 01 00 00 64 08 6C [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 07 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: 01 07 00 64 08 00 80 00 00 00 63 0D 63 [20:31:42]RasterBufferAndPrint [20:31:42]line [20:31:42]line [20:31:42]line [20:31:42]line [20:31:42]line [20:31:42]written 0, free lines is 3431 [20:31:42]process_action close_receipt done [20:31:42]requested_data is exist [20:31:42]produce_requested_data [20:31:42]requested_item fm.sn is exist - process it [20:31:42]wFMCommunicate request_size=4 [20:31:42]MH_SAM_APDU [20:31:42]CAPDU: 80 11 00 00 [20:31:42]Write to MH i2c: E2 08 00 6B 08 80 11 00 00 00 00 00 00 ED [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:42]Read from MH i2c: E2 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 17 00 [20:31:42]MH_I2C_Read... [20:31:42]Read from MH i2c: E2 17 00 6B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3D [20:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:31:42]wFMCommunicate OK [20:31:42]requested_item fd.num is exist - process it [20:31:42]SAM_PROTO_GetFieldsCounters [20:31:42]wFMCommunicate request_size=4 [20:31:42]MH_SAM_APDU [20:31:42]CAPDU: 80 13 00 00 [20:31:42]Write to MH i2c: E2 08 00 6C 08 80 13 00 00 00 00 00 00 F0 [20:31:42]Write i2c OK [20:31:42]MH_I2C_Read... [20:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:43]Read from MH i2c: E2 [20:31:43]MH_I2C_Read... [20:31:43]Read from MH i2c: E2 62 00 [20:31:43]MH_I2C_Read... [20:31:43]Read from MH i2c: E2 62 00 6C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 39 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [20:31: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 39 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:43]wFMCommunicate OK [20:31:43]SAM_PROTO_GetFieldsCounters done [20:31:43]requested_item shift.num is exist - process it [20:31:43]requested_item shift.opened is exist - process it [20:31:43]req_shift_opened [20:31:43]FM_GetShiftState [20:31:43]SAM_PROTO_GetShiftState [20:31:43]wFMCommunicate request_size=4 [20:31:43]MH_SAM_APDU [20:31:43]CAPDU: 80 13 01 00 [20:31:43]Write to MH i2c: E2 08 00 6D 08 80 13 01 00 00 00 00 00 F2 [20:31:43]Write i2c OK [20:31:43]MH_I2C_Read... [20:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:43]Read from MH i2c: E2 [20:31:43]MH_I2C_Read... [20:31:43]Read from MH i2c: E2 0E 00 [20:31:43]MH_I2C_Read... [20:31:43]Read from MH i2c: E2 0E 00 6D 08 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 8E [20:31:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:31:43]wFMCommunicate OK [20:31:43]SAM_PROTO_GetShiftState done [20:31:43]FM_GetShiftState done [20:31:43]req_shift_opened done [20:31:43]requested_item shift.open_date is exist - process it [20:31:43]req_shift_open_date [20:31:43]req_shift_open_date done [20:31:43]produce_requested_data done [20:31:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95033,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:31:43]process_action_free close_receipt [20:31:43]json_value_free [20:31:43]json_value_free done [20:31:43]process_json_proto returns [20:31:43]Send response to host [20:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95033,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:31:43]free response buf [20:31:43]execute_script done [20:31:43]execute_script returns [20:31:43]free content buf [20:31:43]Sock 9.Close socket [20:31:43]Sock 9.Thread stoped [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:47]accept exits with 8 [20:38:47]New connection [20:38:47]New thread 3066957156 created [20:38:47]Thread 3066813796 joined [20:38:47]Waiting for new connection... [20:38:47] Sock 8.Parse request [20:38:47]Sock 8.Check first char [20:38:47]Sock 8.First char is OK [20:38:47]request: POST /json_proto HTTP/1.0 [20:38:47]Method: POST [20:38:47]URL: /json_proto [20:38:47]Method is POST - this is cgi request [20:38:47]url: /json_proto [20:38:47]query_string will be loaded in cgi processing [20:38:47]execute_cgi json_proto POST (null) [20:38:47]execute_cgi path=json_proto method=POST [20:38:47]POST find Content-Length [20:38:47]Host: 172.17.62.67:8080 [20:38:47]Content-Length: 677 [20:38:47]Content-Type: application/json [20:38:47] [20:38:47]POST finish read [20:38:47]Found Content-Length = 677 [20:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:47]execute_script... [20:38: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)195993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 1.590, "sum" : 100.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:47]POST & json_proto [20:38:47]process_json_proto [20:38:47]json parsed OK: [20:38:47]protocol is kg_v1.0 [20:38:47]action value=close_receipt [20:38:47]process_action close_receipt [20:38:47]cmd_close_receipt [20:38:47]MH_GetDate [20:38:47]Write to MH i2c: F0 00 00 6E 08 65 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: F0 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: F0 05 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: F0 05 00 6E 08 00 D8 6B EF 65 01 [20:38:47]GetLastDocTimeStamp 1710189101 [20:38:47]current date 1710189528 [20:38:47]FM_GetShiftState [20:38:47]SAM_PROTO_GetShiftState [20:38:47]wFMCommunicate request_size=4 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 13 01 00 [20:38:47]Write to MH i2c: E2 08 00 6F 08 80 13 01 00 00 00 00 00 F4 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 0E 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 0E 00 6F 08 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 90 [20:38:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:38:47]wFMCommunicate OK [20:38:47]SAM_PROTO_GetShiftState done [20:38:47]FM_GetShiftState done [20:38:47]opened in 1710115571 [20:38:47]opened+sec_in_day 1710201971 [20:38:47]quantity*price = 10001 [20:38:47]sum+1 = 10002 [20:38:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 209 11.03.2024 20:38 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95034 ФПД: 62866859129891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T203848&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95034&fm=62866859129891&tin=02508201610067®Number=0000000000090555&sum=10000 [20:38:48]StoreToDocumentArchive [20:38:48]shift 326 fd 95034 [20:38:48]save to /storage/0326/doc_00095034 [20:38:48]save last doc name /storage/0326/doc_00095034 to /storage/kkm_last_doc_name [20:38:48]save OK [20:38:48]Clear old archive folders... [20:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:48]tlvbuf is 01A321A0 [20:38:48]SAM_PROTO_ClearQueue [20:38:48]wFMCommunicate request_size=4 [20:38:48]MH_SAM_APDU [20:38:48]CAPDU: 80 09 00 00 [20:38:48]Write to MH i2c: E2 08 00 7C 08 80 09 00 00 00 00 00 00 F6 [20:38:48]Write i2c OK [20:38:48]MH_I2C_Read... [20:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:48]Read from MH i2c: E2 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: E2 03 00 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: E2 03 00 7C 08 00 90 00 F8 [20:38:48]RAPDU: 90 00 [20:38:48]wFMCommunicate OK [20:38:48]SAM_PROTO_ClearQueue done [20:38:48]KKMCreateOFDPacket [20:38:48]OFDProtocolAddRootSTLVToBuf [20:38:48]FM_MakeSignedData [20:38:48]FM_MakeSignedData [20:38:48]SAM_PROTO_SignData [20:38:48]wFMCommunicate request_size=4 [20:38:48]MH_SAM_APDU [20:38:48]CAPDU: 80 0D 01 02 [20:38:48]Write to MH i2c: E2 08 00 7D 08 80 0D 01 02 00 00 00 00 FE [20:38:48]Write i2c OK [20:38:48]MH_I2C_Read... [20:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:48]Read from MH i2c: E2 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: E2 03 00 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: E2 03 00 7D 08 00 90 00 F9 [20:38:48]RAPDU: 90 00 [20:38:48]wFMCommunicate OK [20:38:48]wFMCommunicate request_size=255 [20:38:48]MH_SAM_APDU [20:38:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D8 6B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 73 01 00 35 04 06 00 39 [20:38:48]Write to MH i2c: E2 02 01 7E 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D8 6B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 73 01 00 35 04 06 00 39 00 00 A8 [20:38:48]Write i2c OK [20:38:48]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 03 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 03 00 7E 08 00 90 00 FA [20:38:49]RAPDU: 90 00 [20:38:49]wFMCommunicate OK [20:38:49]wFMCommunicate request_size=10 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 0D 02 02 05 2D 54 CE 7C 23 [20:38:49]Write to MH i2c: E2 0D 00 7F 08 80 0D 02 02 05 00 2D 54 CE 7C 23 00 00 F9 [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 03 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 03 00 7F 08 00 90 00 FB [20:38:49]RAPDU: 90 00 [20:38:49]wFMCommunicate OK [20:38:49]wFMCommunicate request_size=4 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 0D 03 02 [20:38:49]Write to MH i2c: E2 08 00 80 08 80 0D 03 02 00 00 00 00 03 [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 0B 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 0B 00 80 08 00 16 B3 08 21 D9 A9 E9 0B 90 00 6C [20:38:49]RAPDU: 16 B3 08 21 D9 A9 E9 0B 90 00 [20:38:49]wFMCommunicate OK [20:38:49]SAM_PROTO_SignData done [20:38:49]FM_MakeSignedData done [20:38:49]CreateOFDProtocolMessage [20:38:49]wFMCommunicate request_size=4 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 11 00 00 [20:38:49]Write to MH i2c: E2 08 00 81 08 80 11 00 00 00 00 00 00 03 [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 17 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 17 00 81 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 53 [20:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:38:49]wFMCommunicate OK [20:38:49]CreateOFDProtocolMessage done [20:38:49]OFDSenderStorePacket 95034 [20:38:49]StoreOFDPacket docnum=95034 [20:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BA 70 07 01 11 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D8 6B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 73 01 00 35 04 06 00 39 2D 54 CE 7C 23 16 B3 08 21 D9 A9 E9 0B [20:38:49]CheckFolder [20:38:49]dirname=/storage/ofd_packets [20:38:49]CheckFolder done [20:38:49]ProducePacketName [20:38:49]name=ofd_packets/00095034 [20:38:49]NVStorageSaveData ofd_packets/00095034 [20:38:49]File name is /storage/ofd_packets/00095034 [20:38:49]Write 301 bytes [20:38:49]NVStorageSaveData done [20:38:49]OFDSenderStorePacket done [20:38:49]KKMCreateOFDPacket done [20:38:49]NVStorageSaveData kkm_last_timestamp [20:38:49]File name is /storage/kkm_last_timestamp [20:38:49]Write 4 bytes [20:38:49]NVStorageSaveData done [20:38:49]ExternCall_PrintAddStr [20:38:49]wPrintStart [20:38:49]Write to MH i2c: 01 00 00 82 08 8A [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: 01 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: 01 07 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: 01 07 00 82 08 00 80 00 00 00 FF 0F 1F [20:38:49]RasterBufferAndPrint [20:38:49]line Счет N : (1)195993 [20:38:49]line ИНН: 02508201610067 [20:38:49]line Контрольно-Кассовый Чек [20:38:49]line ПРОДАЖА [20:38:49]line ТРК (МРК, ГНК) : 22 [20:38:49]line Товар: 2710124130 [20:38:49]line Аи-92-К-5 [20:38:49]line 1.590 * 62.90 [20:38:49]line = 100.01 [20:38:49]line НДС 12% НСП 1% [20:38:49]line > о реализуемом товаре [20:38:49]line ОКРУГЛЕНИЕ: -0.01 [20:38:49]line ИТОГО: 100.00 [20:38:49]line Внесено: 100.00 [20:38:49]line СДАЧА: 0.00 [20:38:49]line НСП 1% : 0.88 [20:38:49]line НДС 12% : 10.62 [20:38:49]line Наличными: 100.00 [20:38:49]line Безнал.: 0.00 [20:38:49]line Место: АЗС № 6 "Партнер Нефть" [20:38:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:38:49]line СНО: Общий режим [20:38:49]line Чек 209 11.03.2024 20:38 [20:38:49]line Смена: 326 ФФД: 1.0 [20:38:49]line ЗНМ: 0300000009 [20:38:49]line РНМ: 0000000000090555 [20:38:49]line Версия ККМ: 001 [20:38:49]line ФМ: 0000000000874811 [20:38:49]line ФД: 95034 [20:38:49]line ФПД: 62866859129891 [20:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T203848&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95034&fm=62866859129891&tin=02508201610067®Number=0000000000090555&sum=10000 [20:38:49]OFD Sender: Processing packet 95034 [packets to send 30, broken 29] [20:38:49]ProducePacketName [20:38:49]name=ofd_packets/00095034 [20:38:49]OFD Sender: To server: pG, [20:38:49]CommunicateWithHost lk.salyk.kg:30040 [20:38:49]ConnectInit lk.salyk.kg [20:38:49]written 0, free lines is 4095 [20:38:49]Connected sock=10 [20:38: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 31 31 0F 01 00 00 BA 70 07 01 11 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 06 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 11 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D8 6B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 73 01 00 35 04 06 00 39 2D 54 CE 7C 23 16 B3 08 21 D9 A9 E9 0B [20:38: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 31 31 4F 00 00 00 4B CC 47 00 75 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3A 73 01 00 F4 03 04 00 31 17 EF 65 B6 04 01 00 00 4B B8 72 50 85 9A 23 9E [20:38:49]CommunicateWithHost err = 0 [20:38:49]CheckOFDResponse [20:38:49]1017 (14) - 77093643461234 [20:38:49]1041 (16) - 0000000000874811 [20:38:49]1040 (4) - 95034 [20:38:49]1012 (4) - 11.03.2024 14:37 [20:38:49]1206 (1) - 0 [20:38:49]OFD Sender: Remove packet 95034 [20:38:49]ProducePacketName [20:38:49]name=ofd_packets/00095034 [20:38:49]NVStorageDeleteData [20:38:50]Write to MH i2c: 01 00 00 AD 08 B5 [20:38:50]Write i2c OK [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: 01 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: 01 07 00 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: 01 07 00 AD 08 00 80 00 00 00 4C 0D 95 [20:38:50]RasterBufferAndPrint [20:38:50]line [20:38:50]line [20:38:50]line [20:38:50]line [20:38:50]line [20:38:50]written 0, free lines is 3410 [20:38:50]process_action close_receipt done [20:38:50]requested_data is exist [20:38:50]produce_requested_data [20:38:50]requested_item fm.sn is exist - process it [20:38:50]wFMCommunicate request_size=4 [20:38:50]MH_SAM_APDU [20:38:50]CAPDU: 80 11 00 00 [20:38:50]Write to MH i2c: E2 08 00 B4 08 80 11 00 00 00 00 00 00 36 [20:38:50]Write i2c OK [20:38:50]MH_I2C_Read... [20:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:50]Read from MH i2c: E2 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 17 00 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 17 00 B4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 86 [20:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:38:50]wFMCommunicate OK [20:38:50]requested_item fd.num is exist - process it [20:38:50]SAM_PROTO_GetFieldsCounters [20:38:50]wFMCommunicate request_size=4 [20:38:50]MH_SAM_APDU [20:38:50]CAPDU: 80 13 00 00 [20:38:50]Write to MH i2c: E2 08 00 B5 08 80 13 00 00 00 00 00 00 39 [20:38:50]Write i2c OK [20:38:50]MH_I2C_Read... [20:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:50]Read from MH i2c: E2 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 62 00 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 62 00 B5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [20:38: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:50]wFMCommunicate OK [20:38:50]SAM_PROTO_GetFieldsCounters done [20:38:50]requested_item shift.num is exist - process it [20:38:50]requested_item shift.opened is exist - process it [20:38:50]req_shift_opened [20:38:50]FM_GetShiftState [20:38:50]SAM_PROTO_GetShiftState [20:38:50]wFMCommunicate request_size=4 [20:38:50]MH_SAM_APDU [20:38:50]CAPDU: 80 13 01 00 [20:38:50]Write to MH i2c: E2 08 00 B6 08 80 13 01 00 00 00 00 00 3B [20:38:50]Write i2c OK [20:38:50]MH_I2C_Read... [20:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:50]Read from MH i2c: E2 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 0E 00 [20:38:50]MH_I2C_Read... [20:38:50]Read from MH i2c: E2 0E 00 B6 08 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D7 [20:38:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:38:50]wFMCommunicate OK [20:38:50]SAM_PROTO_GetShiftState done [20:38:50]FM_GetShiftState done [20:38:50]req_shift_opened done [20:38:50]requested_item shift.open_date is exist - process it [20:38:50]req_shift_open_date [20:38:50]req_shift_open_date done [20:38:50]produce_requested_data done [20:38:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95034,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:38:50]process_action_free close_receipt [20:38:50]json_value_free [20:38:50]json_value_free done [20:38:50]process_json_proto returns [20:38:50]Send response to host [20:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95034,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:38:50]free response buf [20:38:50]execute_script done [20:38:50]execute_script returns [20:38:50]free content buf [20:38:50]Sock 8.Close socket [20:38:50]Sock 8.Thread stoped [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:41]accept exits with 9 [20:39:41]New connection [20:39:41]New thread 3066813796 created [20:39:41]Thread 3066957156 joined [20:39:41]Waiting for new connection... [20:39:41] Sock 9.Parse request [20:39:41]Sock 9.Check first char [20:39:41]Sock 9.First char is OK [20:39:41]request: POST /json_proto HTTP/1.0 [20:39:41]Method: POST [20:39:41]URL: /json_proto [20:39:41]Method is POST - this is cgi request [20:39:41]url: /json_proto [20:39:41]query_string will be loaded in cgi processing [20:39:41]execute_cgi json_proto POST (null) [20:39:41]execute_cgi path=json_proto method=POST [20:39:41]POST find Content-Length [20:39:41]Host: 172.17.62.67:8080 [20:39:41]Content-Length: 682 [20:39:41]Content-Type: application/json [20:39:41] [20:39:41]POST finish read [20:39:41]Found Content-Length = 682 [20:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:41]execute_script... [20:39:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:41]POST & json_proto [20:39:41]process_json_proto [20:39:41]json parsed OK: [20:39:41]protocol is kg_v1.0 [20:39:41]action value=close_receipt [20:39:41]process_action close_receipt [20:39:41]cmd_close_receipt [20:39:41]MH_GetDate [20:39:41]Write to MH i2c: F0 00 00 B7 08 AE [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: F0 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: F0 05 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: F0 05 00 B7 08 00 0F 6C EF 65 82 [20:39:41]GetLastDocTimeStamp 1710189528 [20:39:41]current date 1710189583 [20:39:41]FM_GetShiftState [20:39:41]SAM_PROTO_GetShiftState [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 13 01 00 [20:39:41]Write to MH i2c: E2 08 00 B8 08 80 13 01 00 00 00 00 00 3D [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 0E 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 0E 00 B8 08 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D9 [20:39:41]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:39:41]wFMCommunicate OK [20:39:41]SAM_PROTO_GetShiftState done [20:39:41]FM_GetShiftState done [20:39:41]opened in 1710115571 [20:39:41]opened+sec_in_day 1710201971 [20:39:41]quantity*price = 100011 [20:39:41]sum+1 = 100012 [20:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 210 11.03.2024 20:39 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95035 ФПД: 2525100561531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T203943&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95035&fm=2525100561531&tin=02508201610067®Number=0000000000090555&sum=100000 [20:39:42]StoreToDocumentArchive [20:39:42]shift 326 fd 95035 [20:39:42]save to /storage/0326/doc_00095035 [20:39:42]save last doc name /storage/0326/doc_00095035 to /storage/kkm_last_doc_name [20:39:42]save OK [20:39:42]Clear old archive folders... [20:39:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:42]tlvbuf is 01A45070 [20:39:42]SAM_PROTO_ClearQueue [20:39:42]wFMCommunicate request_size=4 [20:39:42]MH_SAM_APDU [20:39:42]CAPDU: 80 09 00 00 [20:39:42]Write to MH i2c: E2 08 00 C5 08 80 09 00 00 00 00 00 00 3F [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:42]Read from MH i2c: E2 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 03 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [20:39:42]RAPDU: 90 00 [20:39:42]wFMCommunicate OK [20:39:42]SAM_PROTO_ClearQueue done [20:39:42]KKMCreateOFDPacket [20:39:42]OFDProtocolAddRootSTLVToBuf [20:39:42]FM_MakeSignedData [20:39:42]FM_MakeSignedData [20:39:42]SAM_PROTO_SignData [20:39:42]wFMCommunicate request_size=4 [20:39:42]MH_SAM_APDU [20:39:42]CAPDU: 80 0D 01 02 [20:39:42]Write to MH i2c: E2 08 00 C6 08 80 0D 01 02 00 00 00 00 47 [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:42]Read from MH i2c: E2 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 03 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 03 00 C6 08 00 90 00 42 [20:39:42]RAPDU: 90 00 [20:39:42]wFMCommunicate OK [20:39:42]wFMCommunicate request_size=255 [20:39:42]MH_SAM_APDU [20:39:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 0F 6C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 73 01 00 35 04 06 00 02 [20:39:42]Write to MH i2c: E2 02 01 C7 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 0F 6C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 73 01 00 35 04 06 00 02 00 00 88 [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 C7 08 00 90 00 43 [20:39:43]RAPDU: 90 00 [20:39:43]wFMCommunicate OK [20:39:43]wFMCommunicate request_size=10 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 0D 02 02 05 4B EB B8 D4 7B [20:39:43]Write to MH i2c: E2 0D 00 C8 08 80 0D 02 02 05 00 4B EB B8 D4 7B 00 00 91 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 C8 08 00 90 00 44 [20:39:43]RAPDU: 90 00 [20:39:43]wFMCommunicate OK [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 0D 03 02 [20:39:43]Write to MH i2c: E2 08 00 C9 08 80 0D 03 02 00 00 00 00 4C [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 0B 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 0B 00 C9 08 00 C6 12 70 4D 35 E6 F4 05 90 00 F6 [20:39:43]RAPDU: C6 12 70 4D 35 E6 F4 05 90 00 [20:39:43]wFMCommunicate OK [20:39:43]SAM_PROTO_SignData done [20:39:43]FM_MakeSignedData done [20:39:43]CreateOFDProtocolMessage [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 11 00 00 [20:39:43]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 17 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [20:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:39:43]wFMCommunicate OK [20:39:43]CreateOFDProtocolMessage done [20:39:43]OFDSenderStorePacket 95035 [20:39:43]StoreOFDPacket docnum=95035 [20:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 13 07 01 77 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 0F 6C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 73 01 00 35 04 06 00 02 4B EB B8 D4 7B C6 12 70 4D 35 E6 F4 05 [20:39:43]CheckFolder [20:39:43]dirname=/storage/ofd_packets [20:39:43]CheckFolder done [20:39:43]ProducePacketName [20:39:43]name=ofd_packets/00095035 [20:39:43]NVStorageSaveData ofd_packets/00095035 [20:39:43]File name is /storage/ofd_packets/00095035 [20:39:43]Write 301 bytes [20:39:43]NVStorageSaveData done [20:39:43]OFDSenderStorePacket done [20:39:43]KKMCreateOFDPacket done [20:39:43]NVStorageSaveData kkm_last_timestamp [20:39:43]File name is /storage/kkm_last_timestamp [20:39:43]Write 4 bytes [20:39:43]NVStorageSaveData done [20:39:43]ExternCall_PrintAddStr [20:39:43]wPrintStart [20:39:43]Write to MH i2c: 01 00 00 CB 08 D3 [20:39:43]OFD Sender: Processing packet 95035 [packets to send 30, broken 29] [20:39:43]ProducePacketName [20:39:43]name=ofd_packets/00095035 [20:39:43]OFD Sender: To server: pG, [20:39:43]CommunicateWithHost lk.salyk.kg:30040 [20:39:43]ConnectInit lk.salyk.kg [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: 01 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: 01 07 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: 01 07 00 CB 08 00 80 00 00 00 FF 0F 68 [20:39:43]RasterBufferAndPrint [20:39:43]line Счет N : (1)195994 [20:39:43]line ИНН: 02508201610067 [20:39:43]line Контрольно-Кассовый Чек [20:39:43]line ПРОДАЖА [20:39:43]line ТРК (МРК, ГНК) : 12 [20:39:43]line Товар: 2710124130 [20:39:43]line Аи-92-К-5 [20:39:43]line 15.900 * 62.90 [20:39:43]line = 1000.11 [20:39:43]line НДС 12% НСП 1% [20:39:43]line > о реализуемом товаре [20:39:43]line ОКРУГЛЕНИЕ: -0.11 [20:39:43]line ИТОГО: 1000.00 [20:39:43]line Внесено: 1000.00 [20:39:43]line СДАЧА: 0.00 [20:39:43]line НСП 1% : 8.85 [20:39:43]line НДС 12% : 106.21 [20:39:43]line Наличными: 1000.00 [20:39:43]line Безнал.: 0.00 [20:39:43]line Место: АЗС № 6 "Партнер Нефть" [20:39:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:39:43]line СНО: Общий режим [20:39:43]line Чек 210 11.03.2024 20:39 [20:39:43]line Смена: 326 ФФД: 1.0 [20:39:43]line ЗНМ: 0300000009 [20:39:43]line РНМ: 0000000000090555 [20:39:43]line Версия ККМ: 001 [20:39:43]line ФМ: 0000000000874811 [20:39:43]line ФД: 95035 [20:39:43]line ФПД: 2525100561531 [20:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T203943&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95035&fm=2525100561531&tin=02508201610067®Number=0000000000090555&sum=100000 [20:39:43]Connected sock=10 [20:39:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 13 07 01 77 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 0F 6C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3B 73 01 00 35 04 06 00 02 4B EB B8 D4 7B C6 12 70 4D 35 E6 F4 05 [20:39:43]written 0, free lines is 4095 [20:39: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 31 31 4F 00 00 00 DB 55 47 00 8B 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 31 31 10 04 04 00 3B 73 01 00 F4 03 04 00 67 17 EF 65 B6 04 01 00 00 08 72 88 2D E8 D2 C7 24 [20:39:43]CommunicateWithHost err = 0 [20:39:43]CheckOFDResponse [20:39:43]1017 (14) - 77093643461234 [20:39:43]1041 (16) - 0000000000874811 [20:39:43]1040 (4) - 95035 [20:39:43]1012 (4) - 11.03.2024 14:38 [20:39:43]1206 (1) - 0 [20:39:43]OFD Sender: Remove packet 95035 [20:39:43]ProducePacketName [20:39:43]name=ofd_packets/00095035 [20:39:43]NVStorageDeleteData [20:39:44]Write to MH i2c: 01 00 00 F6 08 FE [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 F6 08 00 80 00 00 00 53 0D E5 [20:39:44]RasterBufferAndPrint [20:39:44]line [20:39:44]line [20:39:44]line [20:39:44]line [20:39:44]line [20:39:44]written 0, free lines is 3417 [20:39:44]process_action close_receipt done [20:39:44]requested_data is exist [20:39:44]produce_requested_data [20:39:44]requested_item fm.sn is exist - process it [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 11 00 00 [20:39:44]Write to MH i2c: E2 08 00 FD 08 80 11 00 00 00 00 00 00 7F [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:44]Read from MH i2c: E2 17 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 17 00 FD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CF [20:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:39:44]wFMCommunicate OK [20:39:44]requested_item fd.num is exist - process it [20:39:44]SAM_PROTO_GetFieldsCounters [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 13 00 00 [20:39:44]Write to MH i2c: E2 08 00 FE 08 80 13 00 00 00 00 00 00 82 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]OFD Sender: No OFD packet to send [20:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 62 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 62 00 FE 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [20:39: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:44]wFMCommunicate OK [20:39:44]SAM_PROTO_GetFieldsCounters done [20:39:44]requested_item shift.num is exist - process it [20:39:44]requested_item shift.opened is exist - process it [20:39:44]req_shift_opened [20:39:44]FM_GetShiftState [20:39:44]SAM_PROTO_GetShiftState [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 13 01 00 [20:39:44]Write to MH i2c: E2 08 00 FF 08 80 13 01 00 00 00 00 00 84 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:44]Read from MH i2c: E2 0E 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0E 00 FF 08 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 20 [20:39:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:39:44]wFMCommunicate OK [20:39:44]SAM_PROTO_GetShiftState done [20:39:44]FM_GetShiftState done [20:39:44]req_shift_opened done [20:39:44]requested_item shift.open_date is exist - process it [20:39:44]req_shift_open_date [20:39:44]req_shift_open_date done [20:39:44]produce_requested_data done [20:39:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95035,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:39:44]process_action_free close_receipt [20:39:44]json_value_free [20:39:44]json_value_free done [20:39:44]process_json_proto returns [20:39:44]Send response to host [20:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95035,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:39:44]free response buf [20:39:44]execute_script done [20:39:44]execute_script returns [20:39:44]free content buf [20:39:44]Sock 9.Close socket [20:39:44]Sock 9.Thread stoped [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:07]accept exits with 8 [20:41:07]New connection [20:41:07]New thread 3066957156 created [20:41:07]Thread 3066813796 joined [20:41:07]Waiting for new connection... [20:41:07] Sock 8.Parse request [20:41:07]Sock 8.Check first char [20:41:07]Sock 8.First char is OK [20:41:07]request: POST /json_proto HTTP/1.0 [20:41:07]Method: POST [20:41:07]URL: /json_proto [20:41:07]Method is POST - this is cgi request [20:41:07]url: /json_proto [20:41:07]query_string will be loaded in cgi processing [20:41:07]execute_cgi json_proto POST (null) [20:41:07]execute_cgi path=json_proto method=POST [20:41:07]POST find Content-Length [20:41:07]Host: 172.17.62.67:8080 [20:41:07]Content-Length: 819 [20:41:07]Content-Type: application/json [20:41:07] [20:41:07]POST finish read [20:41:07]Found Content-Length = 819 [20:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:07]execute_script... [20:41:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:07]POST & json_proto [20:41:07]process_json_proto [20:41:07]json parsed OK: [20:41:07]protocol is kg_v1.0 [20:41:07]action value=close_receipt [20:41:07]process_action close_receipt [20:41:07]cmd_close_receipt [20:41:07]MH_GetDate [20:41:07]Write to MH i2c: F0 00 00 00 09 F8 [20:41:07]Write i2c OK [20:41:07]MH_I2C_Read... [20:41:07]Read from MH i2c: F0 [20:41:07]MH_I2C_Read... [20:41:07]Read from MH i2c: F0 05 00 [20:41:07]MH_I2C_Read... [20:41:07]Read from MH i2c: F0 05 00 00 09 00 65 6C EF 65 22 [20:41:07]GetLastDocTimeStamp 1710189583 [20:41:07]current date 1710189669 [20:41:07]FM_GetShiftState [20:41:07]SAM_PROTO_GetShiftState [20:41:07]wFMCommunicate request_size=4 [20:41:07]MH_SAM_APDU [20:41:07]CAPDU: 80 13 01 00 [20:41:07]Write to MH i2c: E2 08 00 01 09 80 13 01 00 00 00 00 00 87 [20:41:07]Write i2c OK [20:41:07]MH_I2C_Read... [20:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:07]Read from MH i2c: E2 [20:41:07]MH_I2C_Read... [20:41:07]Read from MH i2c: E2 0E 00 [20:41:07]MH_I2C_Read... [20:41:07]Read from MH i2c: E2 0E 00 01 09 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 23 [20:41:07]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:41:07]wFMCommunicate OK [20:41:07]SAM_PROTO_GetShiftState done [20:41:07]FM_GetShiftState done [20:41:07]opened in 1710115571 [20:41:07]opened+sec_in_day 1710201971 [20:41:07]quantity*price = 100011 [20:41:07]sum+1 = 100012 [20:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 211 11.03.2024 20:41 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95036 ФПД: 275012288146176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T204109&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95036&fm=275012288146176&tin=02508201610067®Number=0000000000090555&sum=100011 [20:41:08]StoreToDocumentArchive [20:41:08]shift 326 fd 95036 [20:41:08]save to /storage/0326/doc_00095036 [20:41:08]save last doc name /storage/0326/doc_00095036 to /storage/kkm_last_doc_name [20:41:08]save OK [20:41:08]Clear old archive folders... [20:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:08]tlvbuf is 01A3CF20 [20:41:08]SAM_PROTO_ClearQueue [20:41:08]wFMCommunicate request_size=4 [20:41:08]MH_SAM_APDU [20:41:08]CAPDU: 80 09 00 00 [20:41:08]Write to MH i2c: E2 08 00 0E 09 80 09 00 00 00 00 00 00 89 [20:41:08]Write i2c OK [20:41:08]MH_I2C_Read... [20:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:08]Read from MH i2c: E2 [20:41:08]MH_I2C_Read... [20:41:08]Read from MH i2c: E2 03 00 [20:41:08]MH_I2C_Read... [20:41:08]Read from MH i2c: E2 03 00 0E 09 00 90 00 8B [20:41:08]RAPDU: 90 00 [20:41:08]wFMCommunicate OK [20:41:08]SAM_PROTO_ClearQueue done [20:41:08]KKMCreateOFDPacket [20:41:08]OFDProtocolAddRootSTLVToBuf [20:41:08]FM_MakeSignedData [20:41:08]FM_MakeSignedData [20:41:08]SAM_PROTO_SignData [20:41:08]wFMCommunicate request_size=4 [20:41:08]MH_SAM_APDU [20:41:08]CAPDU: 80 0D 01 02 [20:41:08]Write to MH i2c: E2 08 00 0F 09 80 0D 01 02 00 00 00 00 91 [20:41:08]Write i2c OK [20:41:08]MH_I2C_Read... [20:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:09]Read from MH i2c: E2 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 03 00 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 03 00 0F 09 00 90 00 8C [20:41:09]RAPDU: 90 00 [20:41:09]wFMCommunicate OK [20:41:09]wFMCommunicate request_size=255 [20:41:09]MH_SAM_APDU [20:41:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 65 6C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 73 01 00 35 04 06 00 FA [20:41:09]Write to MH i2c: E2 02 01 10 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 65 6C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 73 01 00 35 04 06 00 FA 00 00 38 [20:41:09]Write i2c OK [20:41:09]MH_I2C_Read... [20:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:09]Read from MH i2c: E2 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 03 00 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 03 00 10 09 00 90 00 8D [20:41:09]RAPDU: 90 00 [20:41:09]wFMCommunicate OK [20:41:09]wFMCommunicate request_size=10 [20:41:09]MH_SAM_APDU [20:41:09]CAPDU: 80 0D 02 02 05 1F 49 BE 6B 00 [20:41:09]Write to MH i2c: E2 0D 00 11 09 80 0D 02 02 05 00 1F 49 BE 6B 00 00 00 2F [20:41:09]Write i2c OK [20:41:09]MH_I2C_Read... [20:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:09]Read from MH i2c: E2 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 03 00 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 03 00 11 09 00 90 00 8E [20:41:09]RAPDU: 90 00 [20:41:09]wFMCommunicate OK [20:41:09]wFMCommunicate request_size=4 [20:41:09]MH_SAM_APDU [20:41:09]CAPDU: 80 0D 03 02 [20:41:09]Write to MH i2c: E2 08 00 12 09 80 0D 03 02 00 00 00 00 96 [20:41:09]Write i2c OK [20:41:09]MH_I2C_Read... [20:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:09]Read from MH i2c: E2 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 0B 00 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 0B 00 12 09 00 5E C9 1C 67 C7 BC DA EA 90 00 88 [20:41:09]RAPDU: 5E C9 1C 67 C7 BC DA EA 90 00 [20:41:09]wFMCommunicate OK [20:41:09]SAM_PROTO_SignData done [20:41:09]FM_MakeSignedData done [20:41:09]CreateOFDProtocolMessage [20:41:09]wFMCommunicate request_size=4 [20:41:09]MH_SAM_APDU [20:41:09]CAPDU: 80 11 00 00 [20:41:09]Write to MH i2c: E2 08 00 13 09 80 11 00 00 00 00 00 00 96 [20:41:09]Write i2c OK [20:41:09]MH_I2C_Read... [20:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:09]Read from MH i2c: E2 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 17 00 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: E2 17 00 13 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E6 [20:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:41:09]wFMCommunicate OK [20:41:09]CreateOFDProtocolMessage done [20:41:09]OFDSenderStorePacket 95036 [20:41:09]StoreOFDPacket docnum=95036 [20:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C8 0D 07 01 09 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 65 6C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 73 01 00 35 04 06 00 FA 1F 49 BE 6B 00 5E C9 1C 67 C7 BC DA EA [20:41:09]CheckFolder [20:41:09]dirname=/storage/ofd_packets [20:41:09]CheckFolder done [20:41:09]ProducePacketName [20:41:09]name=ofd_packets/00095036 [20:41:09]NVStorageSaveData ofd_packets/00095036 [20:41:09]File name is /storage/ofd_packets/00095036 [20:41:09]Write 301 bytes [20:41:09]NVStorageSaveData done [20:41:09]OFDSenderStorePacket done [20:41:09]KKMCreateOFDPacket done [20:41:09]NVStorageSaveData kkm_last_timestamp [20:41:09]File name is /storage/kkm_last_timestamp [20:41:09]Write 4 bytes [20:41:09]NVStorageSaveData done [20:41:09]ExternCall_PrintAddStr [20:41:09]wPrintStart [20:41:09]Write to MH i2c: 01 00 00 14 09 1D [20:41:09]Write i2c OK [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: 01 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: 01 07 00 [20:41:09]MH_I2C_Read... [20:41:09]Read from MH i2c: 01 07 00 14 09 00 80 00 00 00 FF 0F B2 [20:41:09]RasterBufferAndPrint [20:41:09]line Счет N : (1)195995 [20:41:09]line ИНН: 02508201610067 [20:41:09]line Контрольно-Кассовый Чек [20:41:09]line ПРОДАЖА [20:41:09]line ТРК (МРК, ГНК) : 22 [20:41:09]line Товар: 2710124130 [20:41:09]line Аи-92-К-5 [20:41:09]line 15.900 * 62.90 [20:41:09]line = 1000.11 [20:41:09]line НДС 12% НСП 1% [20:41:09]line > о реализуемом товаре [20:41:09]line ИТОГО: 1000.11 [20:41:09]line НСП 1% : 8.85 [20:41:09]line НДС 12% : 106.21 [20:41:09]line Наличными: 0.00 [20:41:09]line Безнал.: 1000.11 [20:41:09]line Место: АЗС № 6 "Партнер Нефть" [20:41:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:41:09]line СНО: Общий режим [20:41:09]line Чек 211 11.03.2024 20:41 [20:41:09]line Смена: 326 ФФД: 1.0 [20:41:09]line ЗНМ: 0300000009 [20:41:09]line РНМ: 0000000000090555 [20:41:09]line Версия ККМ: 001 [20:41:09]line Платежная система: Бакай Банк [20:41:09]line ФМ: 0000000000874811 [20:41:09]line ФД: 95036 [20:41:09]line ФПД: 275012288146176 [20:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T204109&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95036&fm=275012288146176&tin=02508201610067®Number=0000000000090555&sum=100011 [20:41:09]OFD Sender: Processing packet 95036 [packets to send 30, broken 29] [20:41:09]ProducePacketName [20:41:09]name=ofd_packets/00095036 [20:41:09]OFD Sender: To server: pG, [20:41:09]CommunicateWithHost lk.salyk.kg:30040 [20:41:09]ConnectInit lk.salyk.kg [20:41:09]written 0, free lines is 4095 [20:41:09]Connected sock=10 [20:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C8 0D 07 01 09 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 65 6C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 73 01 00 35 04 06 00 FA 1F 49 BE 6B 00 5E C9 1C 67 C7 BC DA EA [20:41: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 31 31 4F 00 00 00 D2 E8 47 00 F2 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3C 73 01 00 F4 03 04 00 BD 17 EF 65 B6 04 01 00 00 2A 33 6C F4 3D 7A 83 D1 [20:41:10]CommunicateWithHost err = 0 [20:41:10]CheckOFDResponse [20:41:10]1017 (14) - 77093643461234 [20:41:10]1041 (16) - 0000000000874811 [20:41:10]1040 (4) - 95036 [20:41:10]1012 (4) - 11.03.2024 14:39 [20:41:10]1206 (1) - 0 [20:41:10]OFD Sender: Remove packet 95036 [20:41:10]ProducePacketName [20:41:10]name=ofd_packets/00095036 [20:41:10]NVStorageDeleteData [20:41:10]Write to MH i2c: 01 00 00 3E 09 47 [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: 01 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: 01 07 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: 01 07 00 3E 09 00 80 00 00 00 57 0D 32 [20:41:10]RasterBufferAndPrint [20:41:10]line [20:41:10]line [20:41:10]line [20:41:10]line [20:41:10]line [20:41:10]written 0, free lines is 3421 [20:41:10]process_action close_receipt done [20:41:10]requested_data is exist [20:41:10]produce_requested_data [20:41:10]requested_item fm.sn is exist - process it [20:41:10]wFMCommunicate request_size=4 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 11 00 00 [20:41:10]Write to MH i2c: E2 08 00 45 09 80 11 00 00 00 00 00 00 C8 [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 17 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 17 00 45 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 18 [20:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:41:10]wFMCommunicate OK [20:41:10]requested_item fd.num is exist - process it [20:41:10]SAM_PROTO_GetFieldsCounters [20:41:10]wFMCommunicate request_size=4 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 13 00 00 [20:41:10]Write to MH i2c: E2 08 00 46 09 80 13 00 00 00 00 00 00 CB [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 62 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 62 00 46 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [20:41: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:10]wFMCommunicate OK [20:41:10]SAM_PROTO_GetFieldsCounters done [20:41:10]requested_item shift.num is exist - process it [20:41:10]requested_item shift.opened is exist - process it [20:41:10]req_shift_opened [20:41:10]FM_GetShiftState [20:41:10]SAM_PROTO_GetShiftState [20:41:10]wFMCommunicate request_size=4 [20:41:10]MH_SAM_APDU [20:41:10]CAPDU: 80 13 01 00 [20:41:10]Write to MH i2c: E2 08 00 47 09 80 13 01 00 00 00 00 00 CD [20:41:10]Write i2c OK [20:41:10]MH_I2C_Read... [20:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:10]Read from MH i2c: E2 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 0E 00 [20:41:10]MH_I2C_Read... [20:41:10]Read from MH i2c: E2 0E 00 47 09 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 69 [20:41:10]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:41:10]wFMCommunicate OK [20:41:10]SAM_PROTO_GetShiftState done [20:41:10]FM_GetShiftState done [20:41:10]req_shift_opened done [20:41:10]requested_item shift.open_date is exist - process it [20:41:10]req_shift_open_date [20:41:10]req_shift_open_date done [20:41:10]produce_requested_data done [20:41:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95036,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:41:10]process_action_free close_receipt [20:41:10]json_value_free [20:41:10]json_value_free done [20:41:10]process_json_proto returns [20:41:10]Send response to host [20:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95036,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:41:10]free response buf [20:41:10]execute_script done [20:41:10]execute_script returns [20:41:10]free content buf [20:41:10]Sock 8.Close socket [20:41:10]Sock 8.Thread stoped [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:42]accept exits with 9 [20:42:42]New connection [20:42:42]New thread 3066813796 created [20:42:42]Thread 3066957156 joined [20:42:42]Waiting for new connection... [20:42:42] Sock 9.Parse request [20:42:42]Sock 9.Check first char [20:42:42]Sock 9.First char is OK [20:42:42]request: POST /json_proto HTTP/1.0 [20:42:42]Method: POST [20:42:42]URL: /json_proto [20:42:42]Method is POST - this is cgi request [20:42:42]url: /json_proto [20:42:42]query_string will be loaded in cgi processing [20:42:42]execute_cgi json_proto POST (null) [20:42:42]execute_cgi path=json_proto method=POST [20:42:42]POST find Content-Length [20:42:42]Host: 172.17.62.67:8080 [20:42:42]Content-Length: 1186 [20:42:42]Content-Type: application/json [20:42:42] [20:42:42]POST finish read [20:42:42]Found Content-Length = 1186 [20:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195996\u000A11.03.2024 20:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3864868;67\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:42]execute_script... [20:42:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)195996\u000A11.03.2024 20:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3864868;67\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:42]POST & json_proto [20:42:42]process_json_proto [20:42:42]json parsed OK: [20:42:42]protocol is kg_v1.0 [20:42:42]action value=print_text [20:42:42]process_action print_text [20:42:42]cmd_print_text [20:42:42]ExternCall_PrintAddStr [20:42:42]wPrintStart [20:42:42]Write to MH i2c: 01 00 00 48 09 51 [20:42:42]Write i2c OK [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: 01 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: 01 07 00 [20:42:42]MH_I2C_Read... [20:42:42]Read from MH i2c: 01 07 00 48 09 00 80 00 00 00 FF 0F E6 [20:42:42]RasterBufferAndPrint [20:42:42]line *****ТОВАРНЫЙ ЧЕК***** [20:42:42]line АЗС 6 [20:42:42]line Партнер нефть [20:42:42]line 02508201610067 [20:42:42]line Кассир : Карыбаев Б. [20:42:42]line Счет N : (1)195996 [20:42:42]line 11.03.2024 20:36 [20:42:42]line ПРОДАЖА [20:42:42]line ТРК (МРК, ГНК): 12 [20:42:42]line Вид ГСМ : 2710124130 [20:42:42]line Аи-92-К-5 [20:42:42]line 20.000 x 62.90 [20:42:42]line ИТОГ: 1258.00 [20:42:42]line Тип оплаты: Талоны: Партнер нефть [20:42:42]line 3864868;67 [20:42:42]line ______________________ [20:42:42]line (подпись) [20:42:42]written 0, free lines is 4095 [20:42:43]Write to MH i2c: 01 00 00 5C 09 65 [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 07 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: 01 07 00 5C 09 00 80 00 00 00 6B 0E 65 [20:42:43]RasterBufferAndPrint [20:42:43]line [20:42:43]line [20:42:43]line [20:42:43]line [20:42:43]line [20:42:43]written 0, free lines is 3695 [20:42:43]process_action print_text done [20:42:43]requested_data is exist [20:42:43]produce_requested_data [20:42:43]requested_item fm.sn is exist - process it [20:42:43]wFMCommunicate request_size=4 [20:42:43]MH_SAM_APDU [20:42:43]CAPDU: 80 11 00 00 [20:42:43]Write to MH i2c: E2 08 00 63 09 80 11 00 00 00 00 00 00 E6 [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:43]Read from MH i2c: E2 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 17 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 17 00 63 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [20:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:42:43]wFMCommunicate OK [20:42:43]requested_item fd.num is exist - process it [20:42:43]SAM_PROTO_GetFieldsCounters [20:42:43]wFMCommunicate request_size=4 [20:42:43]MH_SAM_APDU [20:42:43]CAPDU: 80 13 00 00 [20:42:43]Write to MH i2c: E2 08 00 64 09 80 13 00 00 00 00 00 00 E9 [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:43]Read from MH i2c: E2 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 62 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 62 00 64 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [20:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:43]wFMCommunicate OK [20:42:43]SAM_PROTO_GetFieldsCounters done [20:42:43]requested_item shift.num is exist - process it [20:42:43]requested_item shift.opened is exist - process it [20:42:43]req_shift_opened [20:42:43]FM_GetShiftState [20:42:43]SAM_PROTO_GetShiftState [20:42:43]wFMCommunicate request_size=4 [20:42:43]MH_SAM_APDU [20:42:43]CAPDU: 80 13 01 00 [20:42:43]Write to MH i2c: E2 08 00 65 09 80 13 01 00 00 00 00 00 EB [20:42:43]Write i2c OK [20:42:43]MH_I2C_Read... [20:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:43]Read from MH i2c: E2 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 0E 00 [20:42:43]MH_I2C_Read... [20:42:43]Read from MH i2c: E2 0E 00 65 09 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 87 [20:42:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:42:43]wFMCommunicate OK [20:42:43]SAM_PROTO_GetShiftState done [20:42:43]FM_GetShiftState done [20:42:43]req_shift_opened done [20:42:43]requested_item shift.open_date is exist - process it [20:42:43]req_shift_open_date [20:42:43]req_shift_open_date done [20:42:43]produce_requested_data done [20:42:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95036,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:42:43]process_action_free print_text [20:42:43]json_value_free [20:42:43]json_value_free done [20:42:43]process_json_proto returns [20:42:43]Send response to host [20:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95036,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:42:43]free response buf [20:42:43]execute_script done [20:42:43]execute_script returns [20:42:43]free content buf [20:42:43]Sock 9.Close socket [20:42:43]Sock 9.Thread stoped [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:08]accept exits with 8 [20:48:08]New connection [20:48:08]New thread 3066957156 created [20:48:08]Thread 3066813796 joined [20:48:08]Waiting for new connection... [20:48:08] Sock 8.Parse request [20:48:08]Sock 8.Check first char [20:48:08]Sock 8.First char is OK [20:48:08]request: POST /json_proto HTTP/1.0 [20:48:08]Method: POST [20:48:08]URL: /json_proto [20:48:08]Method is POST - this is cgi request [20:48:08]url: /json_proto [20:48:08]query_string will be loaded in cgi processing [20:48:08]execute_cgi json_proto POST (null) [20:48:08]execute_cgi path=json_proto method=POST [20:48:08]POST find Content-Length [20:48:08]Host: 172.17.62.67:8080 [20:48:08]Content-Length: 682 [20:48:08]Content-Type: application/json [20:48:08] [20:48:08]POST finish read [20:48:08]Found Content-Length = 682 [20:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:08]execute_script... [20:48: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)195997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:08]POST & json_proto [20:48:08]process_json_proto [20:48:08]json parsed OK: [20:48:08]protocol is kg_v1.0 [20:48:08]action value=close_receipt [20:48:08]process_action close_receipt [20:48:08]cmd_close_receipt [20:48:08]MH_GetDate [20:48:08]Write to MH i2c: F0 00 00 66 09 5E [20:48:08]Write i2c OK [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: F0 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: F0 05 00 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: F0 05 00 66 09 00 09 6E EF 65 2E [20:48:08]GetLastDocTimeStamp 1710189669 [20:48:08]current date 1710190089 [20:48:08]FM_GetShiftState [20:48:08]SAM_PROTO_GetShiftState [20:48:08]wFMCommunicate request_size=4 [20:48:08]MH_SAM_APDU [20:48:08]CAPDU: 80 13 01 00 [20:48:08]Write to MH i2c: E2 08 00 67 09 80 13 01 00 00 00 00 00 ED [20:48:08]Write i2c OK [20:48:08]MH_I2C_Read... [20:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:08]Read from MH i2c: E2 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: E2 0E 00 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: E2 0E 00 67 09 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 89 [20:48:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:48:08]wFMCommunicate OK [20:48:08]SAM_PROTO_GetShiftState done [20:48:08]FM_GetShiftState done [20:48:08]opened in 1710115571 [20:48:08]opened+sec_in_day 1710201971 [20:48:08]quantity*price = 100011 [20:48:08]sum+1 = 100012 [20:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 212 11.03.2024 20:48 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95037 ФПД: 175273103301488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T204810&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95037&fm=175273103301488&tin=02508201610067®Number=0000000000090555&sum=100000 [20:48:09]StoreToDocumentArchive [20:48:09]shift 326 fd 95037 [20:48:09]save to /storage/0326/doc_00095037 [20:48:09]save last doc name /storage/0326/doc_00095037 to /storage/kkm_last_doc_name [20:48:09]save OK [20:48:09]Clear old archive folders... [20:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:09]tlvbuf is 01A25810 [20:48:09]SAM_PROTO_ClearQueue [20:48:09]wFMCommunicate request_size=4 [20:48:09]MH_SAM_APDU [20:48:09]CAPDU: 80 09 00 00 [20:48:09]Write to MH i2c: E2 08 00 74 09 80 09 00 00 00 00 00 00 EF [20:48:09]Write i2c OK [20:48:09]MH_I2C_Read... [20:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:09]Read from MH i2c: E2 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: E2 03 00 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [20:48:09]RAPDU: 90 00 [20:48:09]wFMCommunicate OK [20:48:09]SAM_PROTO_ClearQueue done [20:48:09]KKMCreateOFDPacket [20:48:09]OFDProtocolAddRootSTLVToBuf [20:48:09]FM_MakeSignedData [20:48:09]FM_MakeSignedData [20:48:09]SAM_PROTO_SignData [20:48:09]wFMCommunicate request_size=4 [20:48:09]MH_SAM_APDU [20:48:09]CAPDU: 80 0D 01 02 [20:48:09]Write to MH i2c: E2 08 00 75 09 80 0D 01 02 00 00 00 00 F7 [20:48:09]Write i2c OK [20:48:09]MH_I2C_Read... [20:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:09]Read from MH i2c: E2 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: E2 03 00 [20:48:09]MH_I2C_Read... [20:48:09]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [20:48:09]RAPDU: 90 00 [20:48:09]wFMCommunicate OK [20:48:09]wFMCommunicate request_size=255 [20:48:09]MH_SAM_APDU [20:48:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 0A 6E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 73 01 00 35 04 06 00 9F [20:48:09]Write to MH i2c: E2 02 01 76 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 0A 6E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 73 01 00 35 04 06 00 9F 00 00 D6 [20:48:09]Write i2c OK [20:48:09]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [20:48:10]RAPDU: 90 00 [20:48:10]wFMCommunicate OK [20:48:10]wFMCommunicate request_size=10 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 0D 02 02 05 68 F3 0F 9B 70 [20:48:10]Write to MH i2c: E2 0D 00 77 09 80 0D 02 02 05 00 68 F3 0F 9B 70 00 00 79 [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 03 00 77 09 00 90 00 F4 [20:48:10]RAPDU: 90 00 [20:48:10]wFMCommunicate OK [20:48:10]wFMCommunicate request_size=4 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 0D 03 02 [20:48:10]Write to MH i2c: E2 08 00 78 09 80 0D 03 02 00 00 00 00 FC [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 0B 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 0B 00 78 09 00 6B 98 94 3E D2 C6 A2 95 90 00 A1 [20:48:10]RAPDU: 6B 98 94 3E D2 C6 A2 95 90 00 [20:48:10]wFMCommunicate OK [20:48:10]SAM_PROTO_SignData done [20:48:10]FM_MakeSignedData done [20:48:10]CreateOFDProtocolMessage [20:48:10]wFMCommunicate request_size=4 [20:48:10]MH_SAM_APDU [20:48:10]CAPDU: 80 11 00 00 [20:48:10]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:10]Read from MH i2c: E2 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 17 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4C [20:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:48:10]wFMCommunicate OK [20:48:10]CreateOFDProtocolMessage done [20:48:10]OFDSenderStorePacket 95037 [20:48:10]StoreOFDPacket docnum=95037 [20:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2A 04 07 01 1F A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 0A 6E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 73 01 00 35 04 06 00 9F 68 F3 0F 9B 70 6B 98 94 3E D2 C6 A2 95 [20:48:10]CheckFolder [20:48:10]dirname=/storage/ofd_packets [20:48:10]CheckFolder done [20:48:10]ProducePacketName [20:48:10]name=ofd_packets/00095037 [20:48:10]NVStorageSaveData ofd_packets/00095037 [20:48:10]File name is /storage/ofd_packets/00095037 [20:48:10]Write 301 bytes [20:48:10]NVStorageSaveData done [20:48:10]OFDSenderStorePacket done [20:48:10]KKMCreateOFDPacket done [20:48:10]NVStorageSaveData kkm_last_timestamp [20:48:10]File name is /storage/kkm_last_timestamp [20:48:10]Write 4 bytes [20:48:10]NVStorageSaveData done [20:48:10]ExternCall_PrintAddStr [20:48:10]wPrintStart [20:48:10]Write to MH i2c: 01 00 00 7A 09 83 [20:48:10]Write i2c OK [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: 01 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: 01 07 00 [20:48:10]MH_I2C_Read... [20:48:10]Read from MH i2c: 01 07 00 7A 09 00 80 00 00 00 FF 0F 18 [20:48:10]RasterBufferAndPrint [20:48:10]line Счет N : (1)195997 [20:48:10]line ИНН: 02508201610067 [20:48:10]line Контрольно-Кассовый Чек [20:48:10]line ПРОДАЖА [20:48:10]line ТРК (МРК, ГНК) : 22 [20:48:10]line Товар: 2710124130 [20:48:10]line Аи-92-К-5 [20:48:10]line 15.900 * 62.90 [20:48:10]line = 1000.11 [20:48:10]line НДС 12% НСП 1% [20:48:10]line > о реализуемом товаре [20:48:10]line ОКРУГЛЕНИЕ: -0.11 [20:48:10]line ИТОГО: 1000.00 [20:48:10]line Внесено: 1000.00 [20:48:10]line СДАЧА: 0.00 [20:48:10]line НСП 1% : 8.85 [20:48:10]line НДС 12% : 106.21 [20:48:10]line Наличными: 1000.00 [20:48:10]line Безнал.: 0.00 [20:48:10]line Место: АЗС № 6 "Партнер Нефть" [20:48:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:48:10]line СНО: Общий режим [20:48:10]line Чек 212 11.03.2024 20:48 [20:48:10]line Смена: 326 ФФД: 1.0 [20:48:10]line ЗНМ: 0300000009 [20:48:10]line РНМ: 0000000000090555 [20:48:10]line Версия ККМ: 001 [20:48:10]line ФМ: 0000000000874811 [20:48:10]line ФД: 95037 [20:48:10]line ФПД: 175273103301488 [20:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T204810&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95037&fm=175273103301488&tin=02508201610067®Number=0000000000090555&sum=100000 [20:48:10]OFD Sender: Processing packet 95037 [packets to send 30, broken 29] [20:48:10]ProducePacketName [20:48:10]name=ofd_packets/00095037 [20:48:10]OFD Sender: To server: pG, [20:48:10]CommunicateWithHost lk.salyk.kg:30040 [20:48:10]ConnectInit lk.salyk.kg [20:48:10]written 0, free lines is 4095 [20:48:10]Connected sock=10 [20:48: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 31 31 0F 01 00 00 2A 04 07 01 1F A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 0A 6E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 73 01 00 35 04 06 00 9F 68 F3 0F 9B 70 6B 98 94 3E D2 C6 A2 95 [20:48: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 31 31 4F 00 00 00 8A 92 47 00 23 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3D 73 01 00 F4 03 04 00 62 19 EF 65 B6 04 01 00 00 25 18 F2 69 CD 5C 66 BF [20:48:10]CommunicateWithHost err = 0 [20:48:10]CheckOFDResponse [20:48:10]1017 (14) - 77093643461234 [20:48:10]1041 (16) - 0000000000874811 [20:48:10]1040 (4) - 95037 [20:48:10]1012 (4) - 11.03.2024 14:46 [20:48:10]1206 (1) - 0 [20:48:10]OFD Sender: Remove packet 95037 [20:48:10]ProducePacketName [20:48:10]name=ofd_packets/00095037 [20:48:10]NVStorageDeleteData [20:48:11]Write to MH i2c: 01 00 00 A5 09 AE [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 07 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: 01 07 00 A5 09 00 80 00 00 00 4B 0D 8D [20:48:11]RasterBufferAndPrint [20:48:11]line [20:48:11]line [20:48:11]line [20:48:11]line [20:48:11]line [20:48:11]written 0, free lines is 3407 [20:48:11]process_action close_receipt done [20:48:11]requested_data is exist [20:48:11]produce_requested_data [20:48:11]requested_item fm.sn is exist - process it [20:48:11]wFMCommunicate request_size=4 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 11 00 00 [20:48:11]Write to MH i2c: E2 08 00 AC 09 80 11 00 00 00 00 00 00 2F [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 17 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 17 00 AC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7F [20:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:48:11]wFMCommunicate OK [20:48:11]requested_item fd.num is exist - process it [20:48:11]SAM_PROTO_GetFieldsCounters [20:48:11]wFMCommunicate request_size=4 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 13 00 00 [20:48:11]Write to MH i2c: E2 08 00 AD 09 80 13 00 00 00 00 00 00 32 [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 62 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 62 00 AD 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [20:48:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:11]wFMCommunicate OK [20:48:11]SAM_PROTO_GetFieldsCounters done [20:48:11]requested_item shift.num is exist - process it [20:48:11]requested_item shift.opened is exist - process it [20:48:11]req_shift_opened [20:48:11]FM_GetShiftState [20:48:11]SAM_PROTO_GetShiftState [20:48:11]wFMCommunicate request_size=4 [20:48:11]MH_SAM_APDU [20:48:11]CAPDU: 80 13 01 00 [20:48:11]Write to MH i2c: E2 08 00 AE 09 80 13 01 00 00 00 00 00 34 [20:48:11]Write i2c OK [20:48:11]MH_I2C_Read... [20:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:11]Read from MH i2c: E2 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 0E 00 [20:48:11]MH_I2C_Read... [20:48:11]Read from MH i2c: E2 0E 00 AE 09 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D0 [20:48:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:48:11]wFMCommunicate OK [20:48:11]SAM_PROTO_GetShiftState done [20:48:11]FM_GetShiftState done [20:48:11]req_shift_opened done [20:48:11]requested_item shift.open_date is exist - process it [20:48:11]req_shift_open_date [20:48:11]req_shift_open_date done [20:48:11]produce_requested_data done [20:48:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95037,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:48:11]process_action_free close_receipt [20:48:11]json_value_free [20:48:11]json_value_free done [20:48:11]process_json_proto returns [20:48:11]Send response to host [20:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95037,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:48:11]free response buf [20:48:11]execute_script done [20:48:11]execute_script returns [20:48:11]free content buf [20:48:11]Sock 8.Close socket [20:48:11]Sock 8.Thread stoped [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:28]accept exits with 9 [20:51:28]New connection [20:51:28]New thread 3066813796 created [20:51:28]Thread 3066957156 joined [20:51:28]Waiting for new connection... [20:51:28] Sock 9.Parse request [20:51:28]Sock 9.Check first char [20:51:28]Sock 9.First char is OK [20:51:28]request: POST /json_proto HTTP/1.0 [20:51:28]Method: POST [20:51:28]URL: /json_proto [20:51:28]Method is POST - this is cgi request [20:51:28]url: /json_proto [20:51:28]query_string will be loaded in cgi processing [20:51:28]execute_cgi json_proto POST (null) [20:51:28]execute_cgi path=json_proto method=POST [20:51:28]POST find Content-Length [20:51:28]Host: 172.17.62.67:8080 [20:51:28]Content-Length: 677 [20:51:28]Content-Type: application/json [20:51:28] [20:51:28]POST finish read [20:51:28]Found Content-Length = 677 [20:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:28]execute_script... [20:51: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)195998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:28]POST & json_proto [20:51:28]process_json_proto [20:51:28]json parsed OK: [20:51:28]protocol is kg_v1.0 [20:51:28]action value=close_receipt [20:51:28]process_action close_receipt [20:51:28]cmd_close_receipt [20:51:28]MH_GetDate [20:51:28]Write to MH i2c: F0 00 00 AF 09 A7 [20:51:28]Write i2c OK [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: F0 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: F0 05 00 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: F0 05 00 AF 09 00 D1 6E EF 65 3F [20:51:28]GetLastDocTimeStamp 1710190090 [20:51:28]current date 1710190289 [20:51:28]FM_GetShiftState [20:51:28]SAM_PROTO_GetShiftState [20:51:28]wFMCommunicate request_size=4 [20:51:28]MH_SAM_APDU [20:51:28]CAPDU: 80 13 01 00 [20:51:28]Write to MH i2c: E2 08 00 B0 09 80 13 01 00 00 00 00 00 36 [20:51:28]Write i2c OK [20:51:28]MH_I2C_Read... [20:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:28]Read from MH i2c: E2 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: E2 0E 00 [20:51:28]MH_I2C_Read... [20:51:28]Read from MH i2c: E2 0E 00 B0 09 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D2 [20:51:28]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:51:28]wFMCommunicate OK [20:51:28]SAM_PROTO_GetShiftState done [20:51:28]FM_GetShiftState done [20:51:28]opened in 1710115571 [20:51:28]opened+sec_in_day 1710201971 [20:51:28]quantity*price = 50040 [20:51:28]sum+1 = 50041 [20:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 213 11.03.2024 20:51 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95038 ФПД: 59425881522914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T205129&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95038&fm=59425881522914&tin=02508201610067®Number=0000000000090555&sum=50000 [20:51:29]StoreToDocumentArchive [20:51:29]shift 326 fd 95038 [20:51:29]save to /storage/0326/doc_00095038 [20:51:29]save last doc name /storage/0326/doc_00095038 to /storage/kkm_last_doc_name [20:51:29]save OK [20:51:29]Clear old archive folders... [20:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:29]tlvbuf is 019FF5E0 [20:51:29]SAM_PROTO_ClearQueue [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 09 00 00 [20:51:29]Write to MH i2c: E2 08 00 BD 09 80 09 00 00 00 00 00 00 38 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]SAM_PROTO_ClearQueue done [20:51:29]KKMCreateOFDPacket [20:51:29]OFDProtocolAddRootSTLVToBuf [20:51:29]FM_MakeSignedData [20:51:29]FM_MakeSignedData [20:51:29]SAM_PROTO_SignData [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 01 02 [20:51:29]Write to MH i2c: E2 08 00 BE 09 80 0D 01 02 00 00 00 00 40 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]wFMCommunicate request_size=255 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 D1 6E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 73 01 00 35 04 06 00 36 [20:51:29]Write to MH i2c: E2 02 01 BF 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 D1 6E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 73 01 00 35 04 06 00 36 00 00 51 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]wFMCommunicate request_size=10 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 02 02 05 0C 2A 8F 02 E2 [20:51:29]Write to MH i2c: E2 0D 00 C0 09 80 0D 02 02 05 00 0C 2A 8F 02 E2 00 00 F6 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 03 00 C0 09 00 90 00 3D [20:51:29]RAPDU: 90 00 [20:51:29]wFMCommunicate OK [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 0D 03 02 [20:51:29]Write to MH i2c: E2 08 00 C1 09 80 0D 03 02 00 00 00 00 45 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 0B 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 0B 00 C1 09 00 02 98 F0 72 1A F1 55 6A 90 00 0C [20:51:29]RAPDU: 02 98 F0 72 1A F1 55 6A 90 00 [20:51:29]wFMCommunicate OK [20:51:29]SAM_PROTO_SignData done [20:51:29]FM_MakeSignedData done [20:51:29]CreateOFDProtocolMessage [20:51:29]wFMCommunicate request_size=4 [20:51:29]MH_SAM_APDU [20:51:29]CAPDU: 80 11 00 00 [20:51:29]Write to MH i2c: E2 08 00 C2 09 80 11 00 00 00 00 00 00 45 [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:29]Read from MH i2c: E2 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 17 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: E2 17 00 C2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [20:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:51:29]wFMCommunicate OK [20:51:29]CreateOFDProtocolMessage done [20:51:29]OFDSenderStorePacket 95038 [20:51:29]StoreOFDPacket docnum=95038 [20:51:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 77 A9 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 D1 6E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 73 01 00 35 04 06 00 36 0C 2A 8F 02 E2 02 98 F0 72 1A F1 55 6A [20:51:29]CheckFolder [20:51:29]dirname=/storage/ofd_packets [20:51:29]CheckFolder done [20:51:29]ProducePacketName [20:51:29]name=ofd_packets/00095038 [20:51:29]NVStorageSaveData ofd_packets/00095038 [20:51:29]File name is /storage/ofd_packets/00095038 [20:51:29]Write 301 bytes [20:51:29]NVStorageSaveData done [20:51:29]OFDSenderStorePacket done [20:51:29]KKMCreateOFDPacket done [20:51:29]NVStorageSaveData kkm_last_timestamp [20:51:29]File name is /storage/kkm_last_timestamp [20:51:29]Write 4 bytes [20:51:29]NVStorageSaveData done [20:51:29]ExternCall_PrintAddStr [20:51:29]wPrintStart [20:51:29]Write to MH i2c: 01 00 00 C3 09 CC [20:51:29]Write i2c OK [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 07 00 [20:51:29]MH_I2C_Read... [20:51:29]Read from MH i2c: 01 07 00 C3 09 00 80 00 00 00 FF 0F 61 [20:51:29]RasterBufferAndPrint [20:51:29]line Счет N : (1)195998 [20:51:29]line ИНН: 02508201610067 [20:51:29]line Контрольно-Кассовый Чек [20:51:29]line ПРОДАЖА [20:51:29]line ТРК (МРК, ГНК) : 31 [20:51:29]line Товар: 2710124500 [20:51:29]line Аи-95-К-5 [20:51:29]line 7.200 * 69.50 [20:51:29]line = 500.40 [20:51:29]line НДС 12% НСП 1% [20:51:29]line > о реализуемом товаре [20:51:29]line ОКРУГЛЕНИЕ: -0.40 [20:51:29]line ИТОГО: 500.00 [20:51:29]line Внесено: 500.00 [20:51:29]line СДАЧА: 0.00 [20:51:29]line НСП 1% : 4.43 [20:51:29]line НДС 12% : 53.14 [20:51:29]line Наличными: 500.00 [20:51:29]line Безнал.: 0.00 [20:51:29]line Место: АЗС № 6 "Партнер Нефть" [20:51:29]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [20:51:29]line СНО: Общий режим [20:51:29]line Чек 213 11.03.2024 20:51 [20:51:29]line Смена: 326 ФФД: 1.0 [20:51:29]line ЗНМ: 0300000009 [20:51:29]line РНМ: 0000000000090555 [20:51:29]line Версия ККМ: 001 [20:51:29]line ФМ: 0000000000874811 [20:51:29]line ФД: 95038 [20:51:29]line ФПД: 59425881522914 [20:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T205129&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95038&fm=59425881522914&tin=02508201610067®Number=0000000000090555&sum=50000 [20:51:30]OFD Sender: Processing packet 95038 [packets to send 30, broken 29] [20:51:30]ProducePacketName [20:51:30]name=ofd_packets/00095038 [20:51:30]OFD Sender: To server: pG, [20:51:30]CommunicateWithHost lk.salyk.kg:30040 [20:51:30]ConnectInit lk.salyk.kg [20:51:30]written 0, free lines is 4095 [20:51:30]Connected sock=10 [20:51: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 31 31 0F 01 00 00 77 A9 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 D1 6E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 73 01 00 35 04 06 00 36 0C 2A 8F 02 E2 02 98 F0 72 1A F1 55 6A [20:51: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 31 31 4F 00 00 00 2E 3A 47 00 56 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3E 73 01 00 F4 03 04 00 29 1A EF 65 B6 04 01 00 00 81 1F 0F 67 6D 3A 40 80 [20:51:30]CommunicateWithHost err = 0 [20:51:30]CheckOFDResponse [20:51:30]1017 (14) - 77093643461234 [20:51:30]1041 (16) - 0000000000874811 [20:51:30]1040 (4) - 95038 [20:51:30]1012 (4) - 11.03.2024 14:50 [20:51:30]1206 (1) - 0 [20:51:30]OFD Sender: Remove packet 95038 [20:51:30]ProducePacketName [20:51:30]name=ofd_packets/00095038 [20:51:30]NVStorageDeleteData [20:51:30]Write to MH i2c: 01 00 00 EE 09 F7 [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: 01 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: 01 07 00 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: 01 07 00 EE 09 00 80 00 00 00 4A 0D D5 [20:51:30]RasterBufferAndPrint [20:51:30]line [20:51:30]line [20:51:30]line [20:51:30]line [20:51:30]line [20:51:30]written 0, free lines is 3406 [20:51:30]process_action close_receipt done [20:51:30]requested_data is exist [20:51:30]produce_requested_data [20:51:30]requested_item fm.sn is exist - process it [20:51:30]wFMCommunicate request_size=4 [20:51:30]MH_SAM_APDU [20:51:30]CAPDU: 80 11 00 00 [20:51:30]Write to MH i2c: E2 08 00 F5 09 80 11 00 00 00 00 00 00 78 [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:30]Read from MH i2c: E2 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: E2 17 00 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: E2 17 00 F5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C8 [20:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [20:51:30]wFMCommunicate OK [20:51:30]requested_item fd.num is exist - process it [20:51:30]SAM_PROTO_GetFieldsCounters [20:51:30]wFMCommunicate request_size=4 [20:51:30]MH_SAM_APDU [20:51:30]CAPDU: 80 13 00 00 [20:51:30]Write to MH i2c: E2 08 00 F6 09 80 13 00 00 00 00 00 00 7B [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:30]Read from MH i2c: E2 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: E2 62 00 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: E2 62 00 F6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [20:51: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:30]wFMCommunicate OK [20:51:30]SAM_PROTO_GetFieldsCounters done [20:51:30]requested_item shift.num is exist - process it [20:51:30]requested_item shift.opened is exist - process it [20:51:30]req_shift_opened [20:51:30]FM_GetShiftState [20:51:30]SAM_PROTO_GetShiftState [20:51:30]wFMCommunicate request_size=4 [20:51:30]MH_SAM_APDU [20:51:30]CAPDU: 80 13 01 00 [20:51:30]Write to MH i2c: E2 08 00 F7 09 80 13 01 00 00 00 00 00 7D [20:51:30]Write i2c OK [20:51:30]MH_I2C_Read... [20:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:30]Read from MH i2c: E2 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: E2 0E 00 [20:51:30]MH_I2C_Read... [20:51:30]Read from MH i2c: E2 0E 00 F7 09 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 19 [20:51:30]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [20:51:30]wFMCommunicate OK [20:51:30]SAM_PROTO_GetShiftState done [20:51:30]FM_GetShiftState done [20:51:30]req_shift_opened done [20:51:30]requested_item shift.open_date is exist - process it [20:51:30]req_shift_open_date [20:51:30]req_shift_open_date done [20:51:30]produce_requested_data done [20:51:30]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95038,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [20:51:30]process_action_free close_receipt [20:51:30]json_value_free [20:51:30]json_value_free done [20:51:30]process_json_proto returns [20:51:30]Send response to host [20:51:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95038,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [20:51:30]free response buf [20:51:30]execute_script done [20:51:30]execute_script returns [20:51:30]free content buf [20:51:30]Sock 9.Close socket [20:51:30]Sock 9.Thread stoped [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:37]accept exits with 6 [21:02:37]New connection [21:02:37]New thread 3066957156 created [21:02:37]Thread 3066813796 joined [21:02:37]Waiting for new connection... [21:02:37] Sock 6.Parse request [21:02:37]Sock 6.Check first char [21:02:37]Sock 6.First char is OK [21:02:37]request: POST /json_proto HTTP/1.0 [21:02:37]Method: POST [21:02:37]URL: /json_proto [21:02:37]Method is POST - this is cgi request [21:02:37]url: /json_proto [21:02:37]query_string will be loaded in cgi processing [21:02:37]execute_cgi json_proto POST (null) [21:02:37]execute_cgi path=json_proto method=POST [21:02:37]POST find Content-Length [21:02:37]Host: 172.17.62.67:8080 [21:02:37]Content-Length: 671 [21:02:37]Content-Type: application/json [21:02:37] [21:02:37]POST finish read [21:02:37]Found Content-Length = 671 [21:02:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.960, "sum" : 700.34, "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" ] } } [21:02:37]execute_script... [21:02:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)195999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.960, "sum" : 700.34, "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" ] } } [21:02:37]POST & json_proto [21:02:37]process_json_proto [21:02:37]json parsed OK: [21:02:37]protocol is kg_v1.0 [21:02:37]action value=close_receipt [21:02:37]process_action close_receipt [21:02:37]cmd_close_receipt [21:02:37]MH_GetDate [21:02:37]Write to MH i2c: F0 00 00 F8 09 F0 [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: F0 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: F0 05 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: F0 05 00 F8 09 00 6E 71 EF 65 28 [21:02:37]GetLastDocTimeStamp 1710190289 [21:02:37]current date 1710190958 [21:02:37]FM_GetShiftState [21:02:37]SAM_PROTO_GetShiftState [21:02:37]wFMCommunicate request_size=4 [21:02:37]MH_SAM_APDU [21:02:37]CAPDU: 80 13 01 00 [21:02:37]Write to MH i2c: E2 08 00 F9 09 80 13 01 00 00 00 00 00 7F [21:02:37]Write i2c OK [21:02:37]MH_I2C_Read... [21:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:37]Read from MH i2c: E2 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 0E 00 [21:02:37]MH_I2C_Read... [21:02:37]Read from MH i2c: E2 0E 00 F9 09 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 1B [21:02:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:02:37]wFMCommunicate OK [21:02:37]SAM_PROTO_GetShiftState done [21:02:37]FM_GetShiftState done [21:02:37]opened in 1710115571 [21:02:37]opened+sec_in_day 1710201971 [21:02:37]quantity*price = 70034 [21:02:37]sum+1 = 70035 [21:02:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 214 11.03.2024 21:02 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95039 ФПД: 88876117349156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T210238&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95039&fm=88876117349156&tin=02508201610067®Number=0000000000090555&sum=70000 [21:02:38]StoreToDocumentArchive [21:02:38]shift 326 fd 95039 [21:02:38]save to /storage/0326/doc_00095039 [21:02:38]save last doc name /storage/0326/doc_00095039 to /storage/kkm_last_doc_name [21:02:38]save OK [21:02:38]Clear old archive folders... [21:02:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:02:38]tlvbuf is 01A3D1E0 [21:02:38]SAM_PROTO_ClearQueue [21:02:38]wFMCommunicate request_size=4 [21:02:38]MH_SAM_APDU [21:02:38]CAPDU: 80 09 00 00 [21:02:38]Write to MH i2c: E2 08 00 06 0A 80 09 00 00 00 00 00 00 82 [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:38]Read from MH i2c: E2 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 03 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [21:02:38]RAPDU: 90 00 [21:02:38]wFMCommunicate OK [21:02:38]SAM_PROTO_ClearQueue done [21:02:38]KKMCreateOFDPacket [21:02:38]OFDProtocolAddRootSTLVToBuf [21:02:38]FM_MakeSignedData [21:02:38]FM_MakeSignedData [21:02:38]SAM_PROTO_SignData [21:02:38]wFMCommunicate request_size=4 [21:02:38]MH_SAM_APDU [21:02:38]CAPDU: 80 0D 01 02 [21:02:38]Write to MH i2c: E2 08 00 07 0A 80 0D 01 02 00 00 00 00 8A [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:38]Read from MH i2c: E2 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 03 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [21:02:38]RAPDU: 90 00 [21:02:38]wFMCommunicate OK [21:02:38]wFMCommunicate request_size=255 [21:02:38]MH_SAM_APDU [21:02:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 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 D6 00 00 00 F4 03 04 00 6E 71 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 73 01 00 35 04 06 00 [21:02:38]Write to MH i2c: E2 02 01 08 0A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 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 D6 00 00 00 F4 03 04 00 6E 71 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 73 01 00 35 04 06 00 00 00 78 [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:38]Read from MH i2c: E2 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 03 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [21:02:38]RAPDU: 90 00 [21:02:38]wFMCommunicate OK [21:02:38]wFMCommunicate request_size=11 [21:02:38]MH_SAM_APDU [21:02:38]CAPDU: 80 0D 02 02 06 50 D5 15 67 53 24 [21:02:38]Write to MH i2c: E2 0E 00 09 0A 80 0D 02 02 06 00 50 D5 15 67 53 24 00 00 B1 [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:38]Read from MH i2c: E2 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 03 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [21:02:38]RAPDU: 90 00 [21:02:38]wFMCommunicate OK [21:02:38]wFMCommunicate request_size=4 [21:02:38]MH_SAM_APDU [21:02:38]CAPDU: 80 0D 03 02 [21:02:38]Write to MH i2c: E2 08 00 0A 0A 80 0D 03 02 00 00 00 00 8F [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:38]Read from MH i2c: E2 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 0B 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 0B 00 0A 0A 00 F2 4A 9D CF 4B 26 6B B0 90 00 C4 [21:02:38]RAPDU: F2 4A 9D CF 4B 26 6B B0 90 00 [21:02:38]wFMCommunicate OK [21:02:38]SAM_PROTO_SignData done [21:02:38]FM_MakeSignedData done [21:02:38]CreateOFDProtocolMessage [21:02:38]wFMCommunicate request_size=4 [21:02:38]MH_SAM_APDU [21:02:38]CAPDU: 80 11 00 00 [21:02:38]Write to MH i2c: E2 08 00 0B 0A 80 11 00 00 00 00 00 00 8F [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:38]Read from MH i2c: E2 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 17 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: E2 17 00 0B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [21:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:02:38]wFMCommunicate OK [21:02:38]CreateOFDProtocolMessage done [21:02:38]OFDSenderStorePacket 95039 [21:02:38]StoreOFDPacket docnum=95039 [21:02:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 7B B3 08 01 5E EB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 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 D6 00 00 00 F4 03 04 00 6E 71 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 73 01 00 35 04 06 00 50 D5 15 67 53 24 F2 4A 9D CF 4B 26 6B B0 [21:02:38]CheckFolder [21:02:38]dirname=/storage/ofd_packets [21:02:38]CheckFolder done [21:02:38]ProducePacketName [21:02:38]name=ofd_packets/00095039 [21:02:38]NVStorageSaveData ofd_packets/00095039 [21:02:38]File name is /storage/ofd_packets/00095039 [21:02:38]Write 302 bytes [21:02:38]NVStorageSaveData done [21:02:38]OFDSenderStorePacket done [21:02:38]KKMCreateOFDPacket done [21:02:38]NVStorageSaveData kkm_last_timestamp [21:02:38]File name is /storage/kkm_last_timestamp [21:02:38]Write 4 bytes [21:02:38]NVStorageSaveData done [21:02:38]ExternCall_PrintAddStr [21:02:38]wPrintStart [21:02:38]Write to MH i2c: 01 00 00 0C 0A 16 [21:02:38]Write i2c OK [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 07 00 [21:02:38]MH_I2C_Read... [21:02:38]Read from MH i2c: 01 07 00 0C 0A 00 80 00 00 00 FF 0F AB [21:02:38]RasterBufferAndPrint [21:02:38]line Счет N : (1)195999 [21:02:38]line ИНН: 02508201610067 [21:02:38]line Контрольно-Кассовый Чек [21:02:38]line ПРОДАЖА [21:02:38]line ТРК (МРК, ГНК) : 23 [21:02:38]line Товар: 2710124130 [21:02:38]line SUPER 92-К-5 [21:02:38]line 10.960 * 63.90 [21:02:38]line = 700.34 [21:02:38]line НДС 12% НСП 1% [21:02:38]line > о реализуемом товаре [21:02:38]line ОКРУГЛЕНИЕ: -0.34 [21:02:38]line ИТОГО: 700.00 [21:02:38]line Внесено: 700.00 [21:02:38]line СДАЧА: 0.00 [21:02:38]line НСП 1% : 6.20 [21:02:38]line НДС 12% : 74.37 [21:02:38]line Наличными: 700.00 [21:02:38]line Безнал.: 0.00 [21:02:38]line Место: АЗС № 6 "Партнер Нефть" [21:02:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:02:38]line СНО: Общий режим [21:02:38]line Чек 214 11.03.2024 21:02 [21:02:38]line Смена: 326 ФФД: 1.0 [21:02:38]line ЗНМ: 0300000009 [21:02:38]line РНМ: 0000000000090555 [21:02:38]line Версия ККМ: 001 [21:02:38]line ФМ: 0000000000874811 [21:02:38]line ФД: 95039 [21:02:38]line ФПД: 88876117349156 [21:02:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T210238&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95039&fm=88876117349156&tin=02508201610067®Number=0000000000090555&sum=70000 [21:02:39]OFD Sender: Processing packet 95039 [packets to send 30, broken 29] [21:02:39]ProducePacketName [21:02:39]name=ofd_packets/00095039 [21:02:39]OFD Sender: To server: pG, [21:02:39]CommunicateWithHost lk.salyk.kg:30040 [21:02:39]ConnectInit lk.salyk.kg [21:02:39]written 0, free lines is 4095 [21:02:39]Connected sock=11 [21:02:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 7B B3 08 01 5E EB 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 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 D6 00 00 00 F4 03 04 00 6E 71 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 73 01 00 35 04 06 00 50 D5 15 67 53 24 F2 4A 9D CF 4B 26 6B B0 [21:02: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 31 31 4F 00 00 00 78 A6 47 00 C1 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 3F 73 01 00 F4 03 04 00 C6 1C EF 65 B6 04 01 00 00 29 8F 61 A5 47 F3 BA 19 [21:02:39]CommunicateWithHost err = 0 [21:02:39]CheckOFDResponse [21:02:39]1017 (14) - 77093643461234 [21:02:39]1041 (16) - 0000000000874811 [21:02:39]1040 (4) - 95039 [21:02:39]1012 (4) - 11.03.2024 15:01 [21:02:39]1206 (1) - 0 [21:02:39]OFD Sender: Remove packet 95039 [21:02:39]ProducePacketName [21:02:39]name=ofd_packets/00095039 [21:02:39]NVStorageDeleteData [21:02:39]Write to MH i2c: 01 00 00 37 0A 41 [21:02:39]Write i2c OK [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: 01 [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: 01 07 00 [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: 01 07 00 37 0A 00 80 00 00 00 47 0D 1C [21:02:39]RasterBufferAndPrint [21:02:39]line [21:02:39]line [21:02:39]line [21:02:39]line [21:02:39]line [21:02:39]written 0, free lines is 3405 [21:02:39]process_action close_receipt done [21:02:39]requested_data is exist [21:02:39]produce_requested_data [21:02:39]requested_item fm.sn is exist - process it [21:02:39]wFMCommunicate request_size=4 [21:02:39]MH_SAM_APDU [21:02:39]CAPDU: 80 11 00 00 [21:02:39]Write to MH i2c: E2 08 00 3E 0A 80 11 00 00 00 00 00 00 C2 [21:02:39]Write i2c OK [21:02:39]MH_I2C_Read... [21:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:39]Read from MH i2c: E2 [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: E2 17 00 [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: E2 17 00 3E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [21:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:02:39]wFMCommunicate OK [21:02:39]requested_item fd.num is exist - process it [21:02:39]SAM_PROTO_GetFieldsCounters [21:02:39]wFMCommunicate request_size=4 [21:02:39]MH_SAM_APDU [21:02:39]CAPDU: 80 13 00 00 [21:02:39]Write to MH i2c: E2 08 00 3F 0A 80 13 00 00 00 00 00 00 C5 [21:02:39]Write i2c OK [21:02:39]MH_I2C_Read... [21:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:39]Read from MH i2c: E2 [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: E2 62 00 [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: E2 62 00 3F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [21:02: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 3F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:39]wFMCommunicate OK [21:02:39]SAM_PROTO_GetFieldsCounters done [21:02:39]requested_item shift.num is exist - process it [21:02:39]requested_item shift.opened is exist - process it [21:02:39]req_shift_opened [21:02:39]FM_GetShiftState [21:02:39]SAM_PROTO_GetShiftState [21:02:39]wFMCommunicate request_size=4 [21:02:39]MH_SAM_APDU [21:02:39]CAPDU: 80 13 01 00 [21:02:39]Write to MH i2c: E2 08 00 40 0A 80 13 01 00 00 00 00 00 C7 [21:02:39]Write i2c OK [21:02:39]MH_I2C_Read... [21:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:39]Read from MH i2c: E2 [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: E2 0E 00 [21:02:39]MH_I2C_Read... [21:02:39]Read from MH i2c: E2 0E 00 40 0A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 63 [21:02:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:02:39]wFMCommunicate OK [21:02:39]SAM_PROTO_GetShiftState done [21:02:39]FM_GetShiftState done [21:02:39]req_shift_opened done [21:02:39]requested_item shift.open_date is exist - process it [21:02:39]req_shift_open_date [21:02:39]req_shift_open_date done [21:02:39]produce_requested_data done [21:02:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95039,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:02:39]process_action_free close_receipt [21:02:39]json_value_free [21:02:39]json_value_free done [21:02:39]process_json_proto returns [21:02:39]Send response to host [21:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95039,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:02:39]free response buf [21:02:39]execute_script done [21:02:39]execute_script returns [21:02:39]free content buf [21:02:39]Sock 6.Close socket [21:02:39]Sock 6.Thread stoped [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:52]accept exits with 9 [21:29:52]New connection [21:29:52]New thread 3066813796 created [21:29:52]Thread 3066957156 joined [21:29:52]Waiting for new connection... [21:29:52] Sock 9.Parse request [21:29:52]Sock 9.Check first char [21:29:52]Sock 9.First char is OK [21:29:52]request: POST /json_proto HTTP/1.0 [21:29:52]Method: POST [21:29:52]URL: /json_proto [21:29:52]Method is POST - this is cgi request [21:29:52]url: /json_proto [21:29:52]query_string will be loaded in cgi processing [21:29:52]execute_cgi json_proto POST (null) [21:29:52]execute_cgi path=json_proto method=POST [21:29:52]POST find Content-Length [21:29:52]Host: 172.17.62.67:8080 [21:29:52]Content-Length: 675 [21:29:52]Content-Type: application/json [21:29:52] [21:29:52]POST finish read [21:29:52]Found Content-Length = 675 [21:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 18.780, "sum" : 1200.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:52]execute_script... [21:29: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)196000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 18.780, "sum" : 1200.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:29:52]POST & json_proto [21:29:52]process_json_proto [21:29:52]json parsed OK: [21:29:52]protocol is kg_v1.0 [21:29:52]action value=close_receipt [21:29:52]process_action close_receipt [21:29:52]cmd_close_receipt [21:29:52]MH_GetDate [21:29:52]Write to MH i2c: F0 00 00 41 0A 3A [21:29:52]Write i2c OK [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: F0 [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: F0 05 00 [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: F0 05 00 41 0A 00 D1 77 EF 65 DB [21:29:52]GetLastDocTimeStamp 1710190958 [21:29:52]current date 1710192593 [21:29:52]FM_GetShiftState [21:29:52]SAM_PROTO_GetShiftState [21:29:52]wFMCommunicate request_size=4 [21:29:52]MH_SAM_APDU [21:29:52]CAPDU: 80 13 01 00 [21:29:52]Write to MH i2c: E2 08 00 42 0A 80 13 01 00 00 00 00 00 C9 [21:29:52]Write i2c OK [21:29:52]MH_I2C_Read... [21:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:52]Read from MH i2c: E2 [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: E2 0E 00 [21:29:52]MH_I2C_Read... [21:29:52]Read from MH i2c: E2 0E 00 42 0A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 65 [21:29:52]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:29:52]wFMCommunicate OK [21:29:52]SAM_PROTO_GetShiftState done [21:29:52]FM_GetShiftState done [21:29:52]opened in 1710115571 [21:29:52]opened+sec_in_day 1710201971 [21:29:52]quantity*price = 120004 [21:29:52]sum+1 = 120005 [21:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 215 11.03.2024 21:29 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95040 ФПД: 206937405810656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T212953&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95040&fm=206937405810656&tin=02508201610067®Number=0000000000090555&sum=120000 [21:29:53]StoreToDocumentArchive [21:29:53]shift 326 fd 95040 [21:29:53]save to /storage/0326/doc_00095040 [21:29:53]save last doc name /storage/0326/doc_00095040 to /storage/kkm_last_doc_name [21:29:53]save OK [21:29:53]Clear old archive folders... [21:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:29:53]tlvbuf is 01A39030 [21:29:53]SAM_PROTO_ClearQueue [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 09 00 00 [21:29:53]Write to MH i2c: E2 08 00 4F 0A 80 09 00 00 00 00 00 00 CB [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 4F 0A 00 90 00 CD [21:29:53]RAPDU: 90 00 [21:29:53]wFMCommunicate OK [21:29:53]SAM_PROTO_ClearQueue done [21:29:53]KKMCreateOFDPacket [21:29:53]OFDProtocolAddRootSTLVToBuf [21:29:53]FM_MakeSignedData [21:29:53]FM_MakeSignedData [21:29:53]SAM_PROTO_SignData [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 0D 01 02 [21:29:53]Write to MH i2c: E2 08 00 50 0A 80 0D 01 02 00 00 00 00 D3 [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 50 0A 00 90 00 CE [21:29:53]RAPDU: 90 00 [21:29:53]wFMCommunicate OK [21:29:53]wFMCommunicate request_size=255 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 49 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 C4 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 D1 77 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 73 01 00 35 04 06 00 [21:29:53]Write to MH i2c: E2 02 01 51 0A 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 49 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 C4 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 D1 77 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 73 01 00 35 04 06 00 00 00 7D [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 51 0A 00 90 00 CF [21:29:53]RAPDU: 90 00 [21:29:53]wFMCommunicate OK [21:29:53]wFMCommunicate request_size=11 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 0D 02 02 06 BC 35 5E 90 67 E0 [21:29:53]Write to MH i2c: E2 0E 00 52 0A 80 0D 02 02 06 00 BC 35 5E 90 67 E0 00 00 08 [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [21:29:53]RAPDU: 90 00 [21:29:53]wFMCommunicate OK [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 0D 03 02 [21:29:53]Write to MH i2c: E2 08 00 53 0A 80 0D 03 02 00 00 00 00 D8 [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 0B 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 0B 00 53 0A 00 E6 12 33 CC 36 C5 A4 FF 90 00 6E [21:29:53]RAPDU: E6 12 33 CC 36 C5 A4 FF 90 00 [21:29:53]wFMCommunicate OK [21:29:53]SAM_PROTO_SignData done [21:29:53]FM_MakeSignedData done [21:29:53]CreateOFDProtocolMessage [21:29:53]wFMCommunicate request_size=4 [21:29:53]MH_SAM_APDU [21:29:53]CAPDU: 80 11 00 00 [21:29:53]Write to MH i2c: E2 08 00 54 0A 80 11 00 00 00 00 00 00 D8 [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:53]Read from MH i2c: E2 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 17 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: E2 17 00 54 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 28 [21:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:29:53]wFMCommunicate OK [21:29:53]CreateOFDProtocolMessage done [21:29:53]OFDSenderStorePacket 95040 [21:29:53]StoreOFDPacket docnum=95040 [21:29:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 41 97 08 01 66 55 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 49 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 C4 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 D1 77 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 73 01 00 35 04 06 00 BC 35 5E 90 67 E0 E6 12 33 CC 36 C5 A4 FF [21:29:53]CheckFolder [21:29:53]dirname=/storage/ofd_packets [21:29:53]CheckFolder done [21:29:53]ProducePacketName [21:29:53]name=ofd_packets/00095040 [21:29:53]NVStorageSaveData ofd_packets/00095040 [21:29:53]File name is /storage/ofd_packets/00095040 [21:29:53]Write 302 bytes [21:29:53]NVStorageSaveData done [21:29:53]OFDSenderStorePacket done [21:29:53]KKMCreateOFDPacket done [21:29:53]NVStorageSaveData kkm_last_timestamp [21:29:53]File name is /storage/kkm_last_timestamp [21:29:53]Write 4 bytes [21:29:53]NVStorageSaveData done [21:29:53]ExternCall_PrintAddStr [21:29:53]wPrintStart [21:29:53]Write to MH i2c: 01 00 00 55 0A 5F [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 07 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 07 00 55 0A 00 80 00 00 00 FF 0F F4 [21:29:53]RasterBufferAndPrint [21:29:53]line Счет N : (1)196000 [21:29:53]line ИНН: 02508201610067 [21:29:53]line Контрольно-Кассовый Чек [21:29:53]line ПРОДАЖА [21:29:53]line ТРК (МРК, ГНК) : 13 [21:29:53]line Товар: 2710124130 [21:29:53]line SUPER 92-К-5 [21:29:53]line 18.780 * 63.90 [21:29:53]line = 1200.04 [21:29:53]line НДС 12% НСП 1% [21:29:53]line > о реализуемом товаре [21:29:53]line ОКРУГЛЕНИЕ: -0.04 [21:29:53]line ИТОГО: 1200.00 [21:29:53]line Внесено: 1200.00 [21:29:53]line СДАЧА: 0.00 [21:29:53]line НСП 1% : 10.62 [21:29:53]line НДС 12% : 127.44 [21:29:53]line Наличными: 1200.00 [21:29:53]line Безнал.: 0.00 [21:29:53]line Место: АЗС № 6 "Партнер Нефть" [21:29:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:29:53]line СНО: Общий режим [21:29:53]line Чек 215 11.03.2024 21:29 [21:29:53]line Смена: 326 ФФД: 1.0 [21:29:53]line ЗНМ: 0300000009 [21:29:53]line РНМ: 0000000000090555 [21:29:53]line Версия ККМ: 001 [21:29:53]line ФМ: 0000000000874811 [21:29:53]line ФД: 95040 [21:29:53]line ФПД: 206937405810656 [21:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T212953&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95040&fm=206937405810656&tin=02508201610067®Number=0000000000090555&sum=120000 [21:29:54]OFD Sender: Processing packet 95040 [packets to send 30, broken 29] [21:29:54]ProducePacketName [21:29:54]name=ofd_packets/00095040 [21:29:54]OFD Sender: To server: pG, [21:29:54]CommunicateWithHost lk.salyk.kg:30040 [21:29:54]ConnectInit lk.salyk.kg [21:29:54]written 0, free lines is 4095 [21:29:54]Connected sock=10 [21:29: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 31 31 10 01 00 00 41 97 08 01 66 55 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 49 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 C4 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 D1 77 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 40 73 01 00 35 04 06 00 BC 35 5E 90 67 E0 E6 12 33 CC 36 C5 A4 FF [21:29: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 31 31 4F 00 00 00 8E E2 47 00 35 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 31 31 10 04 04 00 40 73 01 00 F4 03 04 00 2A 23 EF 65 B6 04 01 00 00 1C D9 E1 D2 1F 52 5B 91 [21:29:54]CommunicateWithHost err = 0 [21:29:54]CheckOFDResponse [21:29:54]1017 (14) - 77093643461234 [21:29:54]1041 (16) - 0000000000874811 [21:29:54]1040 (4) - 95040 [21:29:54]1012 (4) - 11.03.2024 15:28 [21:29:54]1206 (1) - 0 [21:29:54]OFD Sender: Remove packet 95040 [21:29:54]ProducePacketName [21:29:54]name=ofd_packets/00095040 [21:29:54]NVStorageDeleteData [21:29:54]Write to MH i2c: 01 00 00 80 0A 8A [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: 01 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: 01 07 00 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: 01 07 00 80 0A 00 80 00 00 00 4D 0D 6B [21:29:54]RasterBufferAndPrint [21:29:54]line [21:29:54]line [21:29:54]line [21:29:54]line [21:29:54]line [21:29:54]written 0, free lines is 3411 [21:29:54]process_action close_receipt done [21:29:54]requested_data is exist [21:29:54]produce_requested_data [21:29:54]requested_item fm.sn is exist - process it [21:29:54]wFMCommunicate request_size=4 [21:29:54]MH_SAM_APDU [21:29:54]CAPDU: 80 11 00 00 [21:29:54]Write to MH i2c: E2 08 00 87 0A 80 11 00 00 00 00 00 00 0B [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:54]Read from MH i2c: E2 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: E2 17 00 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: E2 17 00 87 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5B [21:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:29:54]wFMCommunicate OK [21:29:54]requested_item fd.num is exist - process it [21:29:54]SAM_PROTO_GetFieldsCounters [21:29:54]wFMCommunicate request_size=4 [21:29:54]MH_SAM_APDU [21:29:54]CAPDU: 80 13 00 00 [21:29:54]Write to MH i2c: E2 08 00 88 0A 80 13 00 00 00 00 00 00 0E [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:54]Read from MH i2c: E2 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: E2 62 00 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: E2 62 00 88 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 40 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [21:29: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 40 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:54]wFMCommunicate OK [21:29:54]SAM_PROTO_GetFieldsCounters done [21:29:54]requested_item shift.num is exist - process it [21:29:54]requested_item shift.opened is exist - process it [21:29:54]req_shift_opened [21:29:54]FM_GetShiftState [21:29:54]SAM_PROTO_GetShiftState [21:29:54]wFMCommunicate request_size=4 [21:29:54]MH_SAM_APDU [21:29:54]CAPDU: 80 13 01 00 [21:29:54]Write to MH i2c: E2 08 00 89 0A 80 13 01 00 00 00 00 00 10 [21:29:54]Write i2c OK [21:29:54]MH_I2C_Read... [21:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:54]Read from MH i2c: E2 [21:29:54]MH_I2C_Read... [21:29:54]Read from MH i2c: E2 0E 00 [21:29:55]MH_I2C_Read... [21:29:55]Read from MH i2c: E2 0E 00 89 0A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AC [21:29:55]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:29:55]wFMCommunicate OK [21:29:55]SAM_PROTO_GetShiftState done [21:29:55]FM_GetShiftState done [21:29:55]req_shift_opened done [21:29:55]requested_item shift.open_date is exist - process it [21:29:55]req_shift_open_date [21:29:55]req_shift_open_date done [21:29:55]produce_requested_data done [21:29:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95040,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:29:55]process_action_free close_receipt [21:29:55]json_value_free [21:29:55]json_value_free done [21:29:55]process_json_proto returns [21:29:55]Send response to host [21:29:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95040,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:29:55]free response buf [21:29:55]execute_script done [21:29:55]execute_script returns [21:29:55]free content buf [21:29:55]Sock 9.Close socket [21:29:55]Sock 9.Thread stoped [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:47]accept exits with 8 [21:36:47]New connection [21:36:47]New thread 3066957156 created [21:36:47]Thread 3066813796 joined [21:36:47]Waiting for new connection... [21:36:47] Sock 8.Parse request [21:36:47]Sock 8.Check first char [21:36:47]Sock 8.First char is OK [21:36:47]request: POST /json_proto HTTP/1.0 [21:36:47]Method: POST [21:36:47]URL: /json_proto [21:36:47]Method is POST - this is cgi request [21:36:47]url: /json_proto [21:36:47]query_string will be loaded in cgi processing [21:36:47]execute_cgi json_proto POST (null) [21:36:47]execute_cgi path=json_proto method=POST [21:36:47]POST find Content-Length [21:36:47]Host: 172.17.62.67:8080 [21:36:47]Content-Length: 805 [21:36:47]Content-Type: application/json [21:36:47] [21:36:47]POST finish read [21:36:47]Found Content-Length = 805 [21:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.070, "sum" : 193.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 193.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:47]execute_script... [21:36: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)196001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.070, "sum" : 193.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 193.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:47]POST & json_proto [21:36:47]process_json_proto [21:36:47]json parsed OK: [21:36:47]protocol is kg_v1.0 [21:36:47]action value=close_receipt [21:36:47]process_action close_receipt [21:36:47]cmd_close_receipt [21:36:47]MH_GetDate [21:36:47]Write to MH i2c: F0 00 00 8A 0A 83 [21:36:47]Write i2c OK [21:36:47]MH_I2C_Read... [21:36:47]Read from MH i2c: F0 [21:36:47]MH_I2C_Read... [21:36:47]Read from MH i2c: F0 05 00 [21:36:47]MH_I2C_Read... [21:36:47]Read from MH i2c: F0 05 00 8A 0A 00 71 79 EF 65 C6 [21:36:47]GetLastDocTimeStamp 1710192593 [21:36:47]current date 1710193009 [21:36:47]FM_GetShiftState [21:36:47]SAM_PROTO_GetShiftState [21:36:47]wFMCommunicate request_size=4 [21:36:47]MH_SAM_APDU [21:36:47]CAPDU: 80 13 01 00 [21:36:47]Write to MH i2c: E2 08 00 8B 0A 80 13 01 00 00 00 00 00 12 [21:36:47]Write i2c OK [21:36:47]MH_I2C_Read... [21:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:47]Read from MH i2c: E2 [21:36:47]MH_I2C_Read... [21:36:47]Read from MH i2c: E2 0E 00 [21:36:47]MH_I2C_Read... [21:36:47]Read from MH i2c: E2 0E 00 8B 0A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AE [21:36:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:36:47]wFMCommunicate OK [21:36:47]SAM_PROTO_GetShiftState done [21:36:47]FM_GetShiftState done [21:36:47]opened in 1710115571 [21:36:47]opened+sec_in_day 1710201971 [21:36:47]quantity*price = 19310 [21:36:47]sum+1 = 19311 [21:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 193.10 НСП 1% : 1.71 НДС 12% : 20.51 Наличными: 0.00 Безнал.: 193.10 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 216 11.03.2024 21:36 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95041 ФПД: 267488663802956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T213649&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95041&fm=267488663802956&tin=02508201610067®Number=0000000000090555&sum=19310 [21:36:48]StoreToDocumentArchive [21:36:48]shift 326 fd 95041 [21:36:48]save to /storage/0326/doc_00095041 [21:36:48]save last doc name /storage/0326/doc_00095041 to /storage/kkm_last_doc_name [21:36:48]save OK [21:36:48]Clear old archive folders... [21:36:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:48]tlvbuf is 01A1A470 [21:36:48]SAM_PROTO_ClearQueue [21:36:48]wFMCommunicate request_size=4 [21:36:48]MH_SAM_APDU [21:36:48]CAPDU: 80 09 00 00 [21:36:48]Write to MH i2c: E2 08 00 98 0A 80 09 00 00 00 00 00 00 14 [21:36:48]Write i2c OK [21:36:48]MH_I2C_Read... [21:36:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:48]Read from MH i2c: E2 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: E2 03 00 [21:36:48]MH_I2C_Read... [21:36:48]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [21:36:48]RAPDU: 90 00 [21:36:48]wFMCommunicate OK [21:36:48]SAM_PROTO_ClearQueue done [21:36:48]KKMCreateOFDPacket [21:36:48]OFDProtocolAddRootSTLVToBuf [21:36:48]FM_MakeSignedData [21:36:48]FM_MakeSignedData [21:36:48]SAM_PROTO_SignData [21:36:48]wFMCommunicate request_size=4 [21:36:48]MH_SAM_APDU [21:36:48]CAPDU: 80 0D 01 02 [21:36:48]Write to MH i2c: E2 08 00 99 0A 80 0D 01 02 00 00 00 00 1C [21:36:48]Write i2c OK [21:36:48]MH_I2C_Read... [21:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:49]Read from MH i2c: E2 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 03 00 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [21:36:49]RAPDU: 90 00 [21:36:49]wFMCommunicate OK [21:36:49]wFMCommunicate request_size=255 [21:36:49]MH_SAM_APDU [21:36:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 6E 4B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 71 79 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 73 01 00 35 04 06 00 F3 [21:36:49]Write to MH i2c: E2 02 01 9A 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 6E 4B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 71 79 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 73 01 00 35 04 06 00 F3 00 00 BB [21:36:49]Write i2c OK [21:36:49]MH_I2C_Read... [21:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:49]Read from MH i2c: E2 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 03 00 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [21:36:49]RAPDU: 90 00 [21:36:49]wFMCommunicate OK [21:36:49]wFMCommunicate request_size=10 [21:36:49]MH_SAM_APDU [21:36:49]CAPDU: 80 0D 02 02 05 47 8E C9 94 4C [21:36:49]Write to MH i2c: E2 0D 00 9B 0A 80 0D 02 02 05 00 47 8E C9 94 4C 00 00 A7 [21:36:49]Write i2c OK [21:36:49]MH_I2C_Read... [21:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:49]Read from MH i2c: E2 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 03 00 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 03 00 9B 0A 00 90 00 19 [21:36:49]RAPDU: 90 00 [21:36:49]wFMCommunicate OK [21:36:49]wFMCommunicate request_size=4 [21:36:49]MH_SAM_APDU [21:36:49]CAPDU: 80 0D 03 02 [21:36:49]Write to MH i2c: E2 08 00 9C 0A 80 0D 03 02 00 00 00 00 21 [21:36:49]Write i2c OK [21:36:49]MH_I2C_Read... [21:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:49]Read from MH i2c: E2 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 0B 00 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 0B 00 9C 0A 00 34 09 50 43 3D 85 18 95 90 00 61 [21:36:49]RAPDU: 34 09 50 43 3D 85 18 95 90 00 [21:36:49]wFMCommunicate OK [21:36:49]SAM_PROTO_SignData done [21:36:49]FM_MakeSignedData done [21:36:49]CreateOFDProtocolMessage [21:36:49]wFMCommunicate request_size=4 [21:36:49]MH_SAM_APDU [21:36:49]CAPDU: 80 11 00 00 [21:36:49]Write to MH i2c: E2 08 00 9D 0A 80 11 00 00 00 00 00 00 21 [21:36:49]Write i2c OK [21:36:49]MH_I2C_Read... [21:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:49]Read from MH i2c: E2 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 17 00 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: E2 17 00 9D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 71 [21:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:36:49]wFMCommunicate OK [21:36:49]CreateOFDProtocolMessage done [21:36:49]OFDSenderStorePacket 95041 [21:36:49]StoreOFDPacket docnum=95041 [21:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D0 E3 07 01 AF 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 6E 4B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 71 79 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 73 01 00 35 04 06 00 F3 47 8E C9 94 4C 34 09 50 43 3D 85 18 95 [21:36:49]CheckFolder [21:36:49]dirname=/storage/ofd_packets [21:36:49]CheckFolder done [21:36:49]ProducePacketName [21:36:49]name=ofd_packets/00095041 [21:36:49]NVStorageSaveData ofd_packets/00095041 [21:36:49]File name is /storage/ofd_packets/00095041 [21:36:49]Write 301 bytes [21:36:49]NVStorageSaveData done [21:36:49]OFDSenderStorePacket done [21:36:49]KKMCreateOFDPacket done [21:36:49]NVStorageSaveData kkm_last_timestamp [21:36:49]File name is /storage/kkm_last_timestamp [21:36:49]Write 4 bytes [21:36:49]NVStorageSaveData done [21:36:49]ExternCall_PrintAddStr [21:36:49]wPrintStart [21:36:49]Write to MH i2c: 01 00 00 9E 0A A8 [21:36:49]Write i2c OK [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: 01 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: 01 07 00 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: 01 07 00 9E 0A 00 80 00 00 00 FF 0F 3D [21:36:49]RasterBufferAndPrint [21:36:49]line Счет N : (1)196001 [21:36:49]line ИНН: 02508201610067 [21:36:49]line Контрольно-Кассовый Чек [21:36:49]line ПРОДАЖА [21:36:49]line ТРК (МРК, ГНК) : 32 [21:36:49]line Товар: 2710124130 [21:36:49]line Аи-92-К-5 [21:36:49]line 3.070 * 62.90 [21:36:49]line = 193.10 [21:36:49]line НДС 12% НСП 1% [21:36:49]line > о реализуемом товаре [21:36:49]line ИТОГО: 193.10 [21:36:49]line НСП 1% : 1.71 [21:36:49]line НДС 12% : 20.51 [21:36:49]line Наличными: 0.00 [21:36:49]line Безнал.: 193.10 [21:36:49]line Место: АЗС № 6 "Партнер Нефть" [21:36:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:36:49]line СНО: Общий режим [21:36:49]line Чек 216 11.03.2024 21:36 [21:36:49]line Смена: 326 ФФД: 1.0 [21:36:49]line ЗНМ: 0300000009 [21:36:49]line РНМ: 0000000000090555 [21:36:49]line Версия ККМ: 001 [21:36:49]line Платежная система: О! деньги [21:36:49]line ФМ: 0000000000874811 [21:36:49]line ФД: 95041 [21:36:49]line ФПД: 267488663802956 [21:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T213649&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95041&fm=267488663802956&tin=02508201610067®Number=0000000000090555&sum=19310 [21:36:49]OFD Sender: Processing packet 95041 [packets to send 30, broken 29] [21:36:49]ProducePacketName [21:36:49]name=ofd_packets/00095041 [21:36:49]OFD Sender: To server: pG, [21:36:49]CommunicateWithHost lk.salyk.kg:30040 [21:36:49]ConnectInit lk.salyk.kg [21:36:49]written 0, free lines is 4095 [21:36:49]Connected sock=10 [21:36: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 31 31 0F 01 00 00 D0 E3 07 01 AF 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 6E 4B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 4B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 71 79 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 73 01 00 35 04 06 00 F3 47 8E C9 94 4C 34 09 50 43 3D 85 18 95 [21:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 19 20 47 00 91 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 41 73 01 00 F4 03 04 00 C9 24 EF 65 B6 04 01 00 00 0B 99 D3 C2 00 C1 35 6A [21:36:50]CommunicateWithHost err = 0 [21:36:50]CheckOFDResponse [21:36:50]1017 (14) - 77093643461234 [21:36:50]1041 (16) - 0000000000874811 [21:36:50]1040 (4) - 95041 [21:36:50]1012 (4) - 11.03.2024 15:35 [21:36:50]1206 (1) - 0 [21:36:50]OFD Sender: Remove packet 95041 [21:36:50]ProducePacketName [21:36:50]name=ofd_packets/00095041 [21:36:50]NVStorageDeleteData [21:36:50]Write to MH i2c: 01 00 00 C8 0A D2 [21:36:50]Write i2c OK [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: 01 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: 01 07 00 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: 01 07 00 C8 0A 00 80 00 00 00 57 0D BD [21:36:50]RasterBufferAndPrint [21:36:50]line [21:36:50]line [21:36:50]line [21:36:50]line [21:36:50]line [21:36:50]written 0, free lines is 3421 [21:36:50]process_action close_receipt done [21:36:50]requested_data is exist [21:36:50]produce_requested_data [21:36:50]requested_item fm.sn is exist - process it [21:36:50]wFMCommunicate request_size=4 [21:36:50]MH_SAM_APDU [21:36:50]CAPDU: 80 11 00 00 [21:36:50]Write to MH i2c: E2 08 00 CF 0A 80 11 00 00 00 00 00 00 53 [21:36:50]Write i2c OK [21:36:50]MH_I2C_Read... [21:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:50]Read from MH i2c: E2 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: E2 17 00 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: E2 17 00 CF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [21:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:36:50]wFMCommunicate OK [21:36:50]requested_item fd.num is exist - process it [21:36:50]SAM_PROTO_GetFieldsCounters [21:36:50]wFMCommunicate request_size=4 [21:36:50]MH_SAM_APDU [21:36:50]CAPDU: 80 13 00 00 [21:36:50]Write to MH i2c: E2 08 00 D0 0A 80 13 00 00 00 00 00 00 56 [21:36:50]Write i2c OK [21:36:50]MH_I2C_Read... [21:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:50]Read from MH i2c: E2 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: E2 62 00 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: E2 62 00 D0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 41 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [21:36:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 41 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:50]wFMCommunicate OK [21:36:50]SAM_PROTO_GetFieldsCounters done [21:36:50]requested_item shift.num is exist - process it [21:36:50]requested_item shift.opened is exist - process it [21:36:50]req_shift_opened [21:36:50]FM_GetShiftState [21:36:50]SAM_PROTO_GetShiftState [21:36:50]wFMCommunicate request_size=4 [21:36:50]MH_SAM_APDU [21:36:50]CAPDU: 80 13 01 00 [21:36:50]Write to MH i2c: E2 08 00 D1 0A 80 13 01 00 00 00 00 00 58 [21:36:50]Write i2c OK [21:36:50]MH_I2C_Read... [21:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:50]Read from MH i2c: E2 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: E2 0E 00 [21:36:50]MH_I2C_Read... [21:36:50]Read from MH i2c: E2 0E 00 D1 0A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F4 [21:36:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:36:50]wFMCommunicate OK [21:36:50]SAM_PROTO_GetShiftState done [21:36:50]FM_GetShiftState done [21:36:50]req_shift_opened done [21:36:50]requested_item shift.open_date is exist - process it [21:36:50]req_shift_open_date [21:36:50]req_shift_open_date done [21:36:50]produce_requested_data done [21:36:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95041,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:36:50]process_action_free close_receipt [21:36:50]json_value_free [21:36:50]json_value_free done [21:36:50]process_json_proto returns [21:36:50]Send response to host [21:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95041,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:36:50]free response buf [21:36:50]execute_script done [21:36:50]execute_script returns [21:36:50]free content buf [21:36:50]Sock 8.Close socket [21:36:50]Sock 8.Thread stoped [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]accept exits with 9 [21:43:05]New connection [21:43:05]New thread 3066813796 created [21:43:05]Thread 3066957156 joined [21:43:05]Waiting for new connection... [21:43:05] Sock 9.Parse request [21:43:05]Sock 9.Check first char [21:43:05]Sock 9.First char is OK [21:43:05]request: POST /json_proto HTTP/1.0 [21:43:05]Method: POST [21:43:05]URL: /json_proto [21:43:05]Method is POST - this is cgi request [21:43:05]url: /json_proto [21:43:05]query_string will be loaded in cgi processing [21:43:05]execute_cgi json_proto POST (null) [21:43:05]execute_cgi path=json_proto method=POST [21:43:05]POST find Content-Length [21:43:05]Host: 172.17.62.67:8080 [21:43:05]Content-Length: 677 [21:43:05]Content-Type: application/json [21:43:05] [21:43:05]POST finish read [21:43:05]Found Content-Length = 677 [21:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:05]execute_script... [21:43: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)196002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:05]POST & json_proto [21:43:05]process_json_proto [21:43:05]json parsed OK: [21:43:05]protocol is kg_v1.0 [21:43:05]action value=close_receipt [21:43:05]process_action close_receipt [21:43:05]cmd_close_receipt [21:43:05]MH_GetDate [21:43:05]Write to MH i2c: F0 00 00 D2 0A CB [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 05 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: F0 05 00 D2 0A 00 EB 7A EF 65 89 [21:43:05]GetLastDocTimeStamp 1710193009 [21:43:05]current date 1710193387 [21:43:05]FM_GetShiftState [21:43:05]SAM_PROTO_GetShiftState [21:43:05]wFMCommunicate request_size=4 [21:43:05]MH_SAM_APDU [21:43:05]CAPDU: 80 13 01 00 [21:43:05]Write to MH i2c: E2 08 00 D3 0A 80 13 01 00 00 00 00 00 5A [21:43:05]Write i2c OK [21:43:05]MH_I2C_Read... [21:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:05]Read from MH i2c: E2 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 0E 00 [21:43:05]MH_I2C_Read... [21:43:05]Read from MH i2c: E2 0E 00 D3 0A 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F6 [21:43:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:43:05]wFMCommunicate OK [21:43:05]SAM_PROTO_GetShiftState done [21:43:05]FM_GetShiftState done [21:43:05]opened in 1710115571 [21:43:05]opened+sec_in_day 1710201971 [21:43:05]quantity*price = 40004 [21:43:05]sum+1 = 40005 [21:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 217 11.03.2024 21:43 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95042 ФПД: 2713060361828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T214307&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95042&fm=2713060361828&tin=02508201610067®Number=0000000000090555&sum=40000 [21:43:06]StoreToDocumentArchive [21:43:06]shift 326 fd 95042 [21:43:06]save to /storage/0326/doc_00095042 [21:43:06]save last doc name /storage/0326/doc_00095042 to /storage/kkm_last_doc_name [21:43:06]save OK [21:43:06]Clear old archive folders... [21:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:06]tlvbuf is 01A0C1B0 [21:43:06]SAM_PROTO_ClearQueue [21:43:06]wFMCommunicate request_size=4 [21:43:06]MH_SAM_APDU [21:43:06]CAPDU: 80 09 00 00 [21:43:06]Write to MH i2c: E2 08 00 E0 0A 80 09 00 00 00 00 00 00 5C [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:06]Read from MH i2c: E2 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [21:43:06]RAPDU: 90 00 [21:43:06]wFMCommunicate OK [21:43:06]SAM_PROTO_ClearQueue done [21:43:06]KKMCreateOFDPacket [21:43:06]OFDProtocolAddRootSTLVToBuf [21:43:06]FM_MakeSignedData [21:43:06]FM_MakeSignedData [21:43:06]SAM_PROTO_SignData [21:43:06]wFMCommunicate request_size=4 [21:43:06]MH_SAM_APDU [21:43:06]CAPDU: 80 0D 01 02 [21:43:06]Write to MH i2c: E2 08 00 E1 0A 80 0D 01 02 00 00 00 00 64 [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:06]Read from MH i2c: E2 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [21:43:06]RAPDU: 90 00 [21:43:06]wFMCommunicate OK [21:43:06]wFMCommunicate request_size=255 [21:43:06]MH_SAM_APDU [21:43:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 D9 00 00 00 F4 03 04 00 EB 7A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 73 01 00 35 04 06 00 02 [21:43:06]Write to MH i2c: E2 02 01 E2 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 D9 00 00 00 F4 03 04 00 EB 7A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 73 01 00 35 04 06 00 02 00 00 38 [21:43:06]Write i2c OK [21:43:06]MH_I2C_Read... [21:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:06]Read from MH i2c: E2 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 [21:43:06]MH_I2C_Read... [21:43:06]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [21:43:06]RAPDU: 90 00 [21:43:06]wFMCommunicate OK [21:43:06]wFMCommunicate request_size=10 [21:43:06]MH_SAM_APDU [21:43:06]CAPDU: 80 0D 02 02 05 77 AE FF C6 64 [21:43:06]Write to MH i2c: E2 0D 00 E3 0A 80 0D 02 02 05 00 77 AE FF C6 64 00 00 BF [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [21:43:07]RAPDU: 90 00 [21:43:07]wFMCommunicate OK [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 0D 03 02 [21:43:07]Write to MH i2c: E2 08 00 E4 0A 80 0D 03 02 00 00 00 00 69 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0B 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 0B 00 E4 0A 00 79 13 FB A2 BF 14 E6 C1 90 00 0D [21:43:07]RAPDU: 79 13 FB A2 BF 14 E6 C1 90 00 [21:43:07]wFMCommunicate OK [21:43:07]SAM_PROTO_SignData done [21:43:07]FM_MakeSignedData done [21:43:07]CreateOFDProtocolMessage [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 11 00 00 [21:43:07]Write to MH i2c: E2 08 00 E5 0A 80 11 00 00 00 00 00 00 69 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:07]Read from MH i2c: E2 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: E2 17 00 E5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B9 [21:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:43:07]wFMCommunicate OK [21:43:07]CreateOFDProtocolMessage done [21:43:07]OFDSenderStorePacket 95042 [21:43:07]StoreOFDPacket docnum=95042 [21:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 02 52 07 01 2A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 D9 00 00 00 F4 03 04 00 EB 7A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 73 01 00 35 04 06 00 02 77 AE FF C6 64 79 13 FB A2 BF 14 E6 C1 [21:43:07]CheckFolder [21:43:07]dirname=/storage/ofd_packets [21:43:07]CheckFolder done [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00095042 [21:43:07]NVStorageSaveData ofd_packets/00095042 [21:43:07]File name is /storage/ofd_packets/00095042 [21:43:07]Write 301 bytes [21:43:07]NVStorageSaveData done [21:43:07]OFDSenderStorePacket done [21:43:07]KKMCreateOFDPacket done [21:43:07]NVStorageSaveData kkm_last_timestamp [21:43:07]File name is /storage/kkm_last_timestamp [21:43:07]Write 4 bytes [21:43:07]NVStorageSaveData done [21:43:07]ExternCall_PrintAddStr [21:43:07]wPrintStart [21:43:07]Write to MH i2c: 01 00 00 E6 0A F0 [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 E6 0A 00 80 00 00 00 FF 0F 85 [21:43:07]RasterBufferAndPrint [21:43:07]line Счет N : (1)196002 [21:43:07]line ИНН: 02508201610067 [21:43:07]line Контрольно-Кассовый Чек [21:43:07]line ПРОДАЖА [21:43:07]line ТРК (МРК, ГНК) : 12 [21:43:07]line Товар: 2710124130 [21:43:07]line Аи-92-К-5 [21:43:07]line 6.360 * 62.90 [21:43:07]line = 400.04 [21:43:07]line НДС 12% НСП 1% [21:43:07]line > о реализуемом товаре [21:43:07]line ОКРУГЛЕНИЕ: -0.04 [21:43:07]line ИТОГО: 400.00 [21:43:07]line Внесено: 400.00 [21:43:07]line СДАЧА: 0.00 [21:43:07]line НСП 1% : 3.54 [21:43:07]line НДС 12% : 42.48 [21:43:07]line Наличными: 400.00 [21:43:07]line Безнал.: 0.00 [21:43:07]line Место: АЗС № 6 "Партнер Нефть" [21:43:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:43:07]line СНО: Общий режим [21:43:07]line Чек 217 11.03.2024 21:43 [21:43:07]line Смена: 326 ФФД: 1.0 [21:43:07]line ЗНМ: 0300000009 [21:43:07]line РНМ: 0000000000090555 [21:43:07]line Версия ККМ: 001 [21:43:07]line ФМ: 0000000000874811 [21:43:07]line ФД: 95042 [21:43:07]line ФПД: 2713060361828 [21:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T214307&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95042&fm=2713060361828&tin=02508201610067®Number=0000000000090555&sum=40000 [21:43:07]OFD Sender: Processing packet 95042 [packets to send 30, broken 29] [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00095042 [21:43:07]OFD Sender: To server: pG, [21:43:07]CommunicateWithHost lk.salyk.kg:30040 [21:43:07]ConnectInit lk.salyk.kg [21:43:07]written 0, free lines is 4095 [21:43:07]Connected sock=10 [21:43: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 31 31 0F 01 00 00 02 52 07 01 2A 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 D9 00 00 00 F4 03 04 00 EB 7A EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 42 73 01 00 35 04 06 00 02 77 AE FF C6 64 79 13 FB A2 BF 14 E6 C1 [21:43: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 31 31 4F 00 00 00 05 1B 47 00 7D 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 31 31 10 04 04 00 42 73 01 00 F4 03 04 00 43 26 EF 65 B6 04 01 00 00 D1 FA 11 86 7B D6 DE 43 [21:43:07]CommunicateWithHost err = 0 [21:43:07]CheckOFDResponse [21:43:07]1017 (14) - 77093643461234 [21:43:07]1041 (16) - 0000000000874811 [21:43:07]1040 (4) - 95042 [21:43:07]1012 (4) - 11.03.2024 15:41 [21:43:07]1206 (1) - 0 [21:43:07]OFD Sender: Remove packet 95042 [21:43:07]ProducePacketName [21:43:07]name=ofd_packets/00095042 [21:43:07]NVStorageDeleteData [21:43:07]Write to MH i2c: 01 00 00 11 0B 1C [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 [21:43:07]MH_I2C_Read... [21:43:07]Read from MH i2c: 01 07 00 11 0B 00 80 00 00 00 4E 0D FE [21:43:07]RasterBufferAndPrint [21:43:07]line [21:43:07]line [21:43:07]line [21:43:07]line [21:43:07]line [21:43:07]written 0, free lines is 3412 [21:43:07]process_action close_receipt done [21:43:07]requested_data is exist [21:43:07]produce_requested_data [21:43:07]requested_item fm.sn is exist - process it [21:43:07]wFMCommunicate request_size=4 [21:43:07]MH_SAM_APDU [21:43:07]CAPDU: 80 11 00 00 [21:43:07]Write to MH i2c: E2 08 00 18 0B 80 11 00 00 00 00 00 00 9D [21:43:07]Write i2c OK [21:43:07]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 17 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 17 00 18 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [21:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:43:08]wFMCommunicate OK [21:43:08]requested_item fd.num is exist - process it [21:43:08]SAM_PROTO_GetFieldsCounters [21:43:08]wFMCommunicate request_size=4 [21:43:08]MH_SAM_APDU [21:43:08]CAPDU: 80 13 00 00 [21:43:08]Write to MH i2c: E2 08 00 19 0B 80 13 00 00 00 00 00 00 A0 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 62 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 62 00 19 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 42 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [21: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 42 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:08]wFMCommunicate OK [21:43:08]SAM_PROTO_GetFieldsCounters done [21:43:08]requested_item shift.num is exist - process it [21:43:08]requested_item shift.opened is exist - process it [21:43:08]req_shift_opened [21:43:08]FM_GetShiftState [21:43:08]SAM_PROTO_GetShiftState [21:43:08]wFMCommunicate request_size=4 [21:43:08]MH_SAM_APDU [21:43:08]CAPDU: 80 13 01 00 [21:43:08]Write to MH i2c: E2 08 00 1A 0B 80 13 01 00 00 00 00 00 A2 [21:43:08]Write i2c OK [21:43:08]MH_I2C_Read... [21:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:08]Read from MH i2c: E2 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 0E 00 [21:43:08]MH_I2C_Read... [21:43:08]Read from MH i2c: E2 0E 00 1A 0B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3E [21:43:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:43:08]wFMCommunicate OK [21:43:08]SAM_PROTO_GetShiftState done [21:43:08]FM_GetShiftState done [21:43:08]req_shift_opened done [21:43:08]requested_item shift.open_date is exist - process it [21:43:08]req_shift_open_date [21:43:08]req_shift_open_date done [21:43:08]produce_requested_data done [21:43:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95042,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:43:08]process_action_free close_receipt [21:43:08]json_value_free [21:43:08]json_value_free done [21:43:08]process_json_proto returns [21:43:08]Send response to host [21:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95042,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:43:08]free response buf [21:43:08]execute_script done [21:43:08]execute_script returns [21:43:08]free content buf [21:43:08]Sock 9.Close socket [21:43:08]Sock 9.Thread stoped [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]accept exits with 8 [21:47:43]New connection [21:47:43]New thread 3066957156 created [21:47:43]Thread 3066813796 joined [21:47:43]Waiting for new connection... [21:47:43] Sock 8.Parse request [21:47:43]Sock 8.Check first char [21:47:43]Sock 8.First char is OK [21:47:43]request: POST /json_proto HTTP/1.0 [21:47:43]Method: POST [21:47:43]URL: /json_proto [21:47:43]Method is POST - this is cgi request [21:47:43]url: /json_proto [21:47:43]query_string will be loaded in cgi processing [21:47:43]execute_cgi json_proto POST (null) [21:47:43]execute_cgi path=json_proto method=POST [21:47:43]POST find Content-Length [21:47:43]Host: 172.17.62.67:8080 [21:47:43]Content-Length: 677 [21:47:43]Content-Type: application/json [21:47:43] [21:47:43]POST finish read [21:47:43]Found Content-Length = 677 [21:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:43]execute_script... [21:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:43]POST & json_proto [21:47:43]process_json_proto [21:47:43]json parsed OK: [21:47:43]protocol is kg_v1.0 [21:47:43]action value=close_receipt [21:47:43]process_action close_receipt [21:47:43]cmd_close_receipt [21:47:43]MH_GetDate [21:47:43]Write to MH i2c: F0 00 00 1B 0B 15 [21:47:43]Write i2c OK [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: F0 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: F0 05 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: F0 05 00 1B 0B 00 00 7C EF 65 EA [21:47:43]GetLastDocTimeStamp 1710193387 [21:47:43]current date 1710193664 [21:47:43]FM_GetShiftState [21:47:43]SAM_PROTO_GetShiftState [21:47:43]wFMCommunicate request_size=4 [21:47:43]MH_SAM_APDU [21:47:43]CAPDU: 80 13 01 00 [21:47:43]Write to MH i2c: E2 08 00 1C 0B 80 13 01 00 00 00 00 00 A4 [21:47:43]Write i2c OK [21:47:43]MH_I2C_Read... [21:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:43]Read from MH i2c: E2 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 0E 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 0E 00 1C 0B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 40 [21:47:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:47:43]wFMCommunicate OK [21:47:43]SAM_PROTO_GetShiftState done [21:47:43]FM_GetShiftState done [21:47:43]opened in 1710115571 [21:47:43]opened+sec_in_day 1710201971 [21:47:43]quantity*price = 40004 [21:47:43]sum+1 = 40005 [21:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 218 11.03.2024 21:47 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95043 ФПД: 276344218816864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T214744&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95043&fm=276344218816864&tin=02508201610067®Number=0000000000090555&sum=40000 [21:47:44]StoreToDocumentArchive [21:47:44]shift 326 fd 95043 [21:47:44]save to /storage/0326/doc_00095043 [21:47:44]save last doc name /storage/0326/doc_00095043 to /storage/kkm_last_doc_name [21:47:44]save OK [21:47:44]Clear old archive folders... [21:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:44]tlvbuf is B6F56420 [21:47:44]SAM_PROTO_ClearQueue [21:47:44]wFMCommunicate request_size=4 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 09 00 00 [21:47:44]Write to MH i2c: E2 08 00 29 0B 80 09 00 00 00 00 00 00 A6 [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 03 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 03 00 29 0B 00 90 00 A8 [21:47:44]RAPDU: 90 00 [21:47:44]wFMCommunicate OK [21:47:44]SAM_PROTO_ClearQueue done [21:47:44]KKMCreateOFDPacket [21:47:44]OFDProtocolAddRootSTLVToBuf [21:47:44]FM_MakeSignedData [21:47:44]FM_MakeSignedData [21:47:44]SAM_PROTO_SignData [21:47:44]wFMCommunicate request_size=4 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 0D 01 02 [21:47:44]Write to MH i2c: E2 08 00 2A 0B 80 0D 01 02 00 00 00 00 AE [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 03 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 03 00 2A 0B 00 90 00 A9 [21:47:44]RAPDU: 90 00 [21:47:44]wFMCommunicate OK [21:47:44]wFMCommunicate request_size=255 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 DA 00 00 00 F4 03 04 00 00 7C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 73 01 00 35 04 06 00 FB [21:47:44]Write to MH i2c: E2 02 01 2B 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 DA 00 00 00 F4 03 04 00 00 7C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 73 01 00 35 04 06 00 FB 00 00 94 [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 03 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [21:47:44]RAPDU: 90 00 [21:47:44]wFMCommunicate OK [21:47:44]wFMCommunicate request_size=10 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 0D 02 02 05 55 66 FF 91 60 [21:47:44]Write to MH i2c: E2 0D 00 2C 0B 80 0D 02 02 05 00 55 66 FF 91 60 00 00 66 [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 03 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [21:47:44]RAPDU: 90 00 [21:47:44]wFMCommunicate OK [21:47:44]wFMCommunicate request_size=4 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 0D 03 02 [21:47:44]Write to MH i2c: E2 08 00 2D 0B 80 0D 03 02 00 00 00 00 B3 [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 0B 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 0B 00 2D 0B 00 C2 FD F6 3C 86 72 03 C9 90 00 69 [21:47:44]RAPDU: C2 FD F6 3C 86 72 03 C9 90 00 [21:47:44]wFMCommunicate OK [21:47:44]SAM_PROTO_SignData done [21:47:44]FM_MakeSignedData done [21:47:44]CreateOFDProtocolMessage [21:47:44]wFMCommunicate request_size=4 [21:47:44]MH_SAM_APDU [21:47:44]CAPDU: 80 11 00 00 [21:47:44]Write to MH i2c: E2 08 00 2E 0B 80 11 00 00 00 00 00 00 B3 [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:44]Read from MH i2c: E2 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 17 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: E2 17 00 2E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 03 [21:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:47:44]wFMCommunicate OK [21:47:44]CreateOFDProtocolMessage done [21:47:44]OFDSenderStorePacket 95043 [21:47:44]StoreOFDPacket docnum=95043 [21:47:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 83 86 07 01 51 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 DA 00 00 00 F4 03 04 00 00 7C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 73 01 00 35 04 06 00 FB 55 66 FF 91 60 C2 FD F6 3C 86 72 03 C9 [21:47:44]CheckFolder [21:47:44]dirname=/storage/ofd_packets [21:47:44]CheckFolder done [21:47:44]ProducePacketName [21:47:44]name=ofd_packets/00095043 [21:47:44]NVStorageSaveData ofd_packets/00095043 [21:47:44]File name is /storage/ofd_packets/00095043 [21:47:44]Write 301 bytes [21:47:44]NVStorageSaveData done [21:47:44]OFDSenderStorePacket done [21:47:44]KKMCreateOFDPacket done [21:47:44]NVStorageSaveData kkm_last_timestamp [21:47:44]File name is /storage/kkm_last_timestamp [21:47:44]Write 4 bytes [21:47:44]NVStorageSaveData done [21:47:44]ExternCall_PrintAddStr [21:47:44]wPrintStart [21:47:44]Write to MH i2c: 01 00 00 2F 0B 3A [21:47:44]Write i2c OK [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: 01 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: 01 07 00 [21:47:44]MH_I2C_Read... [21:47:44]Read from MH i2c: 01 07 00 2F 0B 00 80 00 00 00 FF 0F CF [21:47:44]RasterBufferAndPrint [21:47:44]line Счет N : (1)196003 [21:47:44]line ИНН: 02508201610067 [21:47:44]line Контрольно-Кассовый Чек [21:47:44]line ПРОДАЖА [21:47:44]line ТРК (МРК, ГНК) : 22 [21:47:44]line Товар: 2710124130 [21:47:44]line Аи-92-К-5 [21:47:44]line 6.360 * 62.90 [21:47:44]line = 400.04 [21:47:44]line НДС 12% НСП 1% [21:47:44]line > о реализуемом товаре [21:47:44]line ОКРУГЛЕНИЕ: -0.04 [21:47:44]line ИТОГО: 400.00 [21:47:44]line Внесено: 400.00 [21:47:44]line СДАЧА: 0.00 [21:47:44]line НСП 1% : 3.54 [21:47:44]line НДС 12% : 42.48 [21:47:44]line Наличными: 400.00 [21:47:44]line Безнал.: 0.00 [21:47:44]line Место: АЗС № 6 "Партнер Нефть" [21:47:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:47:44]line СНО: Общий режим [21:47:44]line Чек 218 11.03.2024 21:47 [21:47:44]line Смена: 326 ФФД: 1.0 [21:47:44]line ЗНМ: 0300000009 [21:47:44]line РНМ: 0000000000090555 [21:47:44]line Версия ККМ: 001 [21:47:44]line ФМ: 0000000000874811 [21:47:44]line ФД: 95043 [21:47:44]line ФПД: 276344218816864 [21:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T214744&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95043&fm=276344218816864&tin=02508201610067®Number=0000000000090555&sum=40000 [21:47:45]OFD Sender: Processing packet 95043 [packets to send 30, broken 29] [21:47:45]ProducePacketName [21:47:45]name=ofd_packets/00095043 [21:47:45]OFD Sender: To server: pG, [21:47:45]CommunicateWithHost lk.salyk.kg:30040 [21:47:45]ConnectInit lk.salyk.kg [21:47:45]written 0, free lines is 4095 [21:47:45]Connected sock=10 [21:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 83 86 07 01 51 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 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 98 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 DA 00 00 00 F4 03 04 00 00 7C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 73 01 00 35 04 06 00 FB 55 66 FF 91 60 C2 FD F6 3C 86 72 03 C9 [21:47:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E7 56 47 00 D5 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 43 73 01 00 F4 03 04 00 58 27 EF 65 B6 04 01 00 00 78 B3 EC FB 5B 75 7A 30 [21:47:45]CommunicateWithHost err = 0 [21:47:45]CheckOFDResponse [21:47:45]1017 (14) - 77093643461234 [21:47:45]1041 (16) - 0000000000874811 [21:47:45]1040 (4) - 95043 [21:47:45]1012 (4) - 11.03.2024 15:46 [21:47:45]1206 (1) - 0 [21:47:45]OFD Sender: Remove packet 95043 [21:47:45]ProducePacketName [21:47:45]name=ofd_packets/00095043 [21:47:45]NVStorageDeleteData [21:47:45]Write to MH i2c: 01 00 00 5A 0B 65 [21:47:45]Write i2c OK [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: 01 [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: 01 07 00 [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: 01 07 00 5A 0B 00 80 00 00 00 4F 0D 48 [21:47:45]RasterBufferAndPrint [21:47:45]line [21:47:45]line [21:47:45]line [21:47:45]line [21:47:45]line [21:47:45]written 0, free lines is 3413 [21:47:45]process_action close_receipt done [21:47:45]requested_data is exist [21:47:45]produce_requested_data [21:47:45]requested_item fm.sn is exist - process it [21:47:45]wFMCommunicate request_size=4 [21:47:45]MH_SAM_APDU [21:47:45]CAPDU: 80 11 00 00 [21:47:45]Write to MH i2c: E2 08 00 61 0B 80 11 00 00 00 00 00 00 E6 [21:47:45]Write i2c OK [21:47:45]MH_I2C_Read... [21:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:45]Read from MH i2c: E2 [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: E2 17 00 [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: E2 17 00 61 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [21:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:47:45]wFMCommunicate OK [21:47:45]requested_item fd.num is exist - process it [21:47:45]SAM_PROTO_GetFieldsCounters [21:47:45]wFMCommunicate request_size=4 [21:47:45]MH_SAM_APDU [21:47:45]CAPDU: 80 13 00 00 [21:47:45]Write to MH i2c: E2 08 00 62 0B 80 13 00 00 00 00 00 00 E9 [21:47:45]Write i2c OK [21:47:45]MH_I2C_Read... [21:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:45]Read from MH i2c: E2 [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: E2 62 00 [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: E2 62 00 62 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 43 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [21:47: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 43 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:45]wFMCommunicate OK [21:47:45]SAM_PROTO_GetFieldsCounters done [21:47:45]requested_item shift.num is exist - process it [21:47:45]requested_item shift.opened is exist - process it [21:47:45]req_shift_opened [21:47:45]FM_GetShiftState [21:47:45]SAM_PROTO_GetShiftState [21:47:45]wFMCommunicate request_size=4 [21:47:45]MH_SAM_APDU [21:47:45]CAPDU: 80 13 01 00 [21:47:45]Write to MH i2c: E2 08 00 63 0B 80 13 01 00 00 00 00 00 EB [21:47:45]Write i2c OK [21:47:45]MH_I2C_Read... [21:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:45]Read from MH i2c: E2 [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: E2 0E 00 [21:47:45]MH_I2C_Read... [21:47:45]Read from MH i2c: E2 0E 00 63 0B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 87 [21:47:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:47:45]wFMCommunicate OK [21:47:45]SAM_PROTO_GetShiftState done [21:47:45]FM_GetShiftState done [21:47:45]req_shift_opened done [21:47:45]requested_item shift.open_date is exist - process it [21:47:45]req_shift_open_date [21:47:45]req_shift_open_date done [21:47:45]produce_requested_data done [21:47:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95043,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:47:45]process_action_free close_receipt [21:47:45]json_value_free [21:47:45]json_value_free done [21:47:45]process_json_proto returns [21:47:45]Send response to host [21:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95043,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:47:45]free response buf [21:47:45]execute_script done [21:47:45]execute_script returns [21:47:45]free content buf [21:47:45]Sock 8.Close socket [21:47:45]Sock 8.Thread stoped [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:08]accept exits with 9 [21:51:08]New connection [21:51:08]New thread 3066813796 created [21:51:08]Thread 3066957156 joined [21:51:08]Waiting for new connection... [21:51:08] Sock 9.Parse request [21:51:08]Sock 9.Check first char [21:51:08]Sock 9.First char is OK [21:51:08]request: POST /json_proto HTTP/1.0 [21:51:08]Method: POST [21:51:08]URL: /json_proto [21:51:08]Method is POST - this is cgi request [21:51:08]url: /json_proto [21:51:08]query_string will be loaded in cgi processing [21:51:08]execute_cgi json_proto POST (null) [21:51:08]execute_cgi path=json_proto method=POST [21:51:08]POST find Content-Length [21:51:08]Host: 172.17.62.67:8080 [21:51:08]Content-Length: 687 [21:51:08]Content-Type: application/json [21:51:08] [21:51:08]POST finish read [21:51:08]Found Content-Length = 687 [21:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11527", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 48.00, "quantity" : 1.000, "sum" : 48.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 48.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:08]execute_script... [21:51:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11527", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 48.00, "quantity" : 1.000, "sum" : 48.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 48.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:08]POST & json_proto [21:51:08]process_json_proto [21:51:08]json parsed OK: [21:51:08]protocol is kg_v1.0 [21:51:08]action value=close_receipt [21:51:08]process_action close_receipt [21:51:08]cmd_close_receipt [21:51:08]MH_GetDate [21:51:08]Write to MH i2c: F0 00 00 64 0B 5E [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: F0 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: F0 05 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: F0 05 00 64 0B 00 CE 7C EF 65 01 [21:51:08]GetLastDocTimeStamp 1710193664 [21:51:08]current date 1710193870 [21:51:08]FM_GetShiftState [21:51:08]SAM_PROTO_GetShiftState [21:51:08]wFMCommunicate request_size=4 [21:51:08]MH_SAM_APDU [21:51:08]CAPDU: 80 13 01 00 [21:51:08]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [21:51:08]Write i2c OK [21:51:08]MH_I2C_Read... [21:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:08]Read from MH i2c: E2 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 0E 00 [21:51:08]MH_I2C_Read... [21:51:08]Read from MH i2c: E2 0E 00 65 0B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 89 [21:51:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:51:08]wFMCommunicate OK [21:51:08]SAM_PROTO_GetShiftState done [21:51:08]FM_GetShiftState done [21:51:08]opened in 1710115571 [21:51:08]opened+sec_in_day 1710201971 [21:51:08]quantity*price = 4800 [21:51:08]sum+1 = 4801 [21:51:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 48.00 НСП 1% : 0.42 НДС 12% : 5.10 Наличными: 48.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 219 11.03.2024 21:51 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95044 ФПД: 112081975013097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T215110&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95044&fm=112081975013097&tin=02508201610067®Number=0000000000090555&sum=4800 0 [21:51:09]StoreToDocumentArchive [21:51:09]shift 326 fd 95044 [21:51:09]save to /storage/0326/doc_00095044 [21:51:09]save last doc name /storage/0326/doc_00095044 to /storage/kkm_last_doc_name [21:51:09]save OK [21:51:09]Clear old archive folders... [21:51:09]ProcessDocumentItem done err = 0, tmpTLVsize=295 [21:51:09]tlvbuf is 01A13DC0 [21:51:09]SAM_PROTO_ClearQueue [21:51:09]wFMCommunicate request_size=4 [21:51:09]MH_SAM_APDU [21:51:09]CAPDU: 80 09 00 00 [21:51:09]Write to MH i2c: E2 08 00 72 0B 80 09 00 00 00 00 00 00 EF [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:09]Read from MH i2c: E2 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 03 00 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 03 00 72 0B 00 90 00 F1 [21:51:09]RAPDU: 90 00 [21:51:09]wFMCommunicate OK [21:51:09]SAM_PROTO_ClearQueue done [21:51:09]KKMCreateOFDPacket [21:51:09]OFDProtocolAddRootSTLVToBuf [21:51:09]FM_MakeSignedData [21:51:09]FM_MakeSignedData [21:51:09]SAM_PROTO_SignData [21:51:09]wFMCommunicate request_size=4 [21:51:09]MH_SAM_APDU [21:51:09]CAPDU: 80 0D 01 02 [21:51:09]Write to MH i2c: E2 08 00 73 0B 80 0D 01 02 00 00 00 00 F7 [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:09]Read from MH i2c: E2 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 03 00 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 03 00 73 0B 00 90 00 F2 [21:51:09]RAPDU: 90 00 [21:51:09]wFMCommunicate OK [21:51:09]wFMCommunicate request_size=255 [21:51:09]MH_SAM_APDU [21:51:09]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 12 00 00 00 00 13 04 06 00 C0 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 01 00 00 00 00 07 04 06 00 C0 12 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 CE 7C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [21:51:09]Write to MH i2c: E2 02 01 74 0B 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 12 00 00 00 00 13 04 06 00 C0 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 01 00 00 00 00 07 04 06 00 C0 12 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 CE 7C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 87 [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:09]Read from MH i2c: E2 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 03 00 [21:51:09]MH_I2C_Read... [21:51:09]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [21:51:09]RAPDU: 90 00 [21:51:09]wFMCommunicate OK [21:51:09]wFMCommunicate request_size=54 [21:51:09]MH_SAM_APDU [21:51:09]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 73 01 00 35 04 06 00 65 F0 1E 4E 6E E9 [21:51:09]Write to MH i2c: E2 39 00 75 0B 80 0D 02 02 31 00 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 73 01 00 35 04 06 00 65 F0 1E 4E 6E E9 00 00 ED [21:51:09]Write i2c OK [21:51:09]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 03 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [21:51:10]RAPDU: 90 00 [21:51:10]wFMCommunicate OK [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 0D 03 02 [21:51:10]Write to MH i2c: E2 08 00 76 0B 80 0D 03 02 00 00 00 00 FC [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 0B 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 0B 00 76 0B 00 D6 F4 D5 23 BB 3B 43 9D 90 00 95 [21:51:10]RAPDU: D6 F4 D5 23 BB 3B 43 9D 90 00 [21:51:10]wFMCommunicate OK [21:51:10]SAM_PROTO_SignData done [21:51:10]FM_MakeSignedData done [21:51:10]CreateOFDProtocolMessage [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 11 00 00 [21:51:10]Write to MH i2c: E2 08 00 77 0B 80 11 00 00 00 00 00 00 FC [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:10]Read from MH i2c: E2 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 17 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: E2 17 00 77 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4C [21:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:51:10]wFMCommunicate OK [21:51:10]CreateOFDProtocolMessage done [21:51:10]OFDSenderStorePacket 95044 [21:51:10]StoreOFDPacket docnum=95044 [21:51:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 3B 01 00 00 2A FC 33 01 3A 94 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 12 00 00 00 00 13 04 06 00 C0 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 01 00 00 00 00 07 04 06 00 C0 12 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 CE 7C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 73 01 00 35 04 06 00 65 F0 1E 4E 6E E9 D6 F4 D5 23 BB 3B 43 9D [21:51:10]CheckFolder [21:51:10]dirname=/storage/ofd_packets [21:51:10]CheckFolder done [21:51:10]ProducePacketName [21:51:10]name=ofd_packets/00095044 [21:51:10]NVStorageSaveData ofd_packets/00095044 [21:51:10]File name is /storage/ofd_packets/00095044 [21:51:10]Write 345 bytes [21:51:10]NVStorageSaveData done [21:51:10]OFDSenderStorePacket done [21:51:10]KKMCreateOFDPacket done [21:51:10]NVStorageSaveData kkm_last_timestamp [21:51:10]File name is /storage/kkm_last_timestamp [21:51:10]Write 4 bytes [21:51:10]NVStorageSaveData done [21:51:10]ExternCall_PrintAddStr [21:51:10]wPrintStart [21:51:10]Write to MH i2c: 01 00 00 78 0B 83 [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 07 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 07 00 78 0B 00 80 00 00 00 FF 0F 18 [21:51:10]RasterBufferAndPrint [21:51:10]line Счет N : (3)11527 [21:51:10]line ИНН: 02508201610067 [21:51:10]line Контрольно-Кассовый Чек [21:51:10]line ПРОДАЖА [21:51:10]line Товар: 4870002325441 [21:51:10]line Вода ASU пит н.газ лимон ПЭТ 0,5л [21:51:10]line 1.000 * 48.00 [21:51:10]line = 48.00 [21:51:10]line НДС 12% НСП 1% [21:51:10]line > о реализуемом товаре [21:51:10]line ИТОГО: 48.00 [21:51:10]line НСП 1% : 0.42 [21:51:10]line НДС 12% : 5.10 [21:51:10]line Наличными: 48.00 [21:51:10]line Безнал.: 0.00 [21:51:10]line Место: АЗС № 6 "Партнер Нефть" [21:51:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:51:10]line СНО: Общий режим [21:51:10]line Чек 219 11.03.2024 21:51 [21:51:10]line Смена: 326 ФФД: 1.0 [21:51:10]line ЗНМ: 0300000009 [21:51:10]line РНМ: 0000000000090555 [21:51:10]line Версия ККМ: 001 [21:51:10]line ФМ: 0000000000874811 [21:51:10]line ФД: 95044 [21:51:10]line ФПД: 112081975013097 [21:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T215110&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95044&fm=112081975013097&tin=02508201610067®Number=0000000000090555&sum=4800 [21:51:10]OFD Sender: Processing packet 95044 [packets to send 30, broken 29] [21:51:10]ProducePacketName [21:51:10]name=ofd_packets/00095044 [21:51:10]OFD Sender: To server: pG, [21:51:10]CommunicateWithHost lk.salyk.kg:30040 [21:51:10]ConnectInit lk.salyk.kg [21:51:10]line 0 [21:51:10]written 0, free lines is 4095 [21:51:10]Connected sock=10 [21:51: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 31 31 3B 01 00 00 2A FC 33 01 3A 94 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 12 00 00 00 00 13 04 06 00 C0 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 12 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 01 00 00 00 00 07 04 06 00 C0 12 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 CE 7C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 73 01 00 35 04 06 00 65 F0 1E 4E 6E E9 D6 F4 D5 23 BB 3B 43 9D [21:51: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 31 31 4F 00 00 00 98 73 47 00 DD F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 44 73 01 00 F4 03 04 00 26 28 EF 65 B6 04 01 00 00 83 AE B2 1A 90 0E 40 57 [21:51:10]CommunicateWithHost err = 0 [21:51:10]CheckOFDResponse [21:51:10]1017 (14) - 77093643461234 [21:51:10]1041 (16) - 0000000000874811 [21:51:10]1040 (4) - 95044 [21:51:10]1012 (4) - 11.03.2024 15:49 [21:51:10]1206 (1) - 0 [21:51:10]OFD Sender: Remove packet 95044 [21:51:10]ProducePacketName [21:51:10]name=ofd_packets/00095044 [21:51:10]NVStorageDeleteData [21:51:10]Write to MH i2c: 01 00 00 A1 0B AC [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 07 00 [21:51:10]MH_I2C_Read... [21:51:10]Read from MH i2c: 01 07 00 A1 0B 00 80 00 00 00 63 0D A3 [21:51:10]RasterBufferAndPrint [21:51:10]line [21:51:10]line [21:51:10]line [21:51:10]line [21:51:10]line [21:51:10]written 0, free lines is 3432 [21:51:10]process_action close_receipt done [21:51:10]requested_data is exist [21:51:10]produce_requested_data [21:51:10]requested_item fm.sn is exist - process it [21:51:10]wFMCommunicate request_size=4 [21:51:10]MH_SAM_APDU [21:51:10]CAPDU: 80 11 00 00 [21:51:10]Write to MH i2c: E2 08 00 A8 0B 80 11 00 00 00 00 00 00 2D [21:51:10]Write i2c OK [21:51:10]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 17 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 17 00 A8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7D [21:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:51:11]wFMCommunicate OK [21:51:11]requested_item fd.num is exist - process it [21:51:11]SAM_PROTO_GetFieldsCounters [21:51:11]wFMCommunicate request_size=4 [21:51:11]MH_SAM_APDU [21:51:11]CAPDU: 80 13 00 00 [21:51:11]Write to MH i2c: E2 08 00 A9 0B 80 13 00 00 00 00 00 00 30 [21:51:11]Write i2c OK [21:51:11]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 62 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 62 00 A9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 44 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [21:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 44 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:11]wFMCommunicate OK [21:51:11]SAM_PROTO_GetFieldsCounters done [21:51:11]requested_item shift.num is exist - process it [21:51:11]requested_item shift.opened is exist - process it [21:51:11]req_shift_opened [21:51:11]FM_GetShiftState [21:51:11]SAM_PROTO_GetShiftState [21:51:11]wFMCommunicate request_size=4 [21:51:11]MH_SAM_APDU [21:51:11]CAPDU: 80 13 01 00 [21:51:11]Write to MH i2c: E2 08 00 AA 0B 80 13 01 00 00 00 00 00 32 [21:51:11]Write i2c OK [21:51:11]MH_I2C_Read... [21:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:11]Read from MH i2c: E2 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 0E 00 [21:51:11]MH_I2C_Read... [21:51:11]Read from MH i2c: E2 0E 00 AA 0B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CE [21:51:11]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:51:11]wFMCommunicate OK [21:51:11]SAM_PROTO_GetShiftState done [21:51:11]FM_GetShiftState done [21:51:11]req_shift_opened done [21:51:11]requested_item shift.open_date is exist - process it [21:51:11]req_shift_open_date [21:51:11]req_shift_open_date done [21:51:11]produce_requested_data done [21:51:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95044,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:51:11]process_action_free close_receipt [21:51:11]json_value_free [21:51:11]json_value_free done [21:51:11]process_json_proto returns [21:51:11]Send response to host [21:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95044,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:51:11]free response buf [21:51:11]execute_script done [21:51:11]execute_script returns [21:51:11]free content buf [21:51:11]Sock 9.Close socket [21:51:11]Sock 9.Thread stoped [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:29]accept exits with 8 [21:52:29]New connection [21:52:29]New thread 3066957156 created [21:52:29]Thread 3066813796 joined [21:52:29]Waiting for new connection... [21:52:29] Sock 8.Parse request [21:52:29]Sock 8.Check first char [21:52:29]Sock 8.First char is OK [21:52:29]request: POST /json_proto HTTP/1.0 [21:52:29]Method: POST [21:52:29]URL: /json_proto [21:52:29]Method is POST - this is cgi request [21:52:29]url: /json_proto [21:52:29]query_string will be loaded in cgi processing [21:52:29]execute_cgi json_proto POST (null) [21:52:29]execute_cgi path=json_proto method=POST [21:52:29]POST find Content-Length [21:52:29]Host: 172.17.62.67:8080 [21:52:29]Content-Length: 682 [21:52:29]Content-Type: application/json [21:52:29] [21:52:29]POST finish read [21:52:29]Found Content-Length = 682 [21:52:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:29]execute_script... [21:52: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)196004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:29]POST & json_proto [21:52:29]process_json_proto [21:52:29]json parsed OK: [21:52:29]protocol is kg_v1.0 [21:52:29]action value=close_receipt [21:52:29]process_action close_receipt [21:52:29]cmd_close_receipt [21:52:29]MH_GetDate [21:52:29]Write to MH i2c: F0 00 00 AB 0B A5 [21:52:29]Write i2c OK [21:52:29]MH_I2C_Read... [21:52:29]Read from MH i2c: F0 [21:52:29]MH_I2C_Read... [21:52:29]Read from MH i2c: F0 05 00 [21:52:29]MH_I2C_Read... [21:52:29]Read from MH i2c: F0 05 00 AB 0B 00 1F 7D EF 65 9A [21:52:29]GetLastDocTimeStamp 1710193870 [21:52:29]current date 1710193951 [21:52:29]FM_GetShiftState [21:52:29]SAM_PROTO_GetShiftState [21:52:29]wFMCommunicate request_size=4 [21:52:29]MH_SAM_APDU [21:52:29]CAPDU: 80 13 01 00 [21:52:29]Write to MH i2c: E2 08 00 AC 0B 80 13 01 00 00 00 00 00 34 [21:52:29]Write i2c OK [21:52:29]MH_I2C_Read... [21:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:29]Read from MH i2c: E2 [21:52:29]MH_I2C_Read... [21:52:29]Read from MH i2c: E2 0E 00 [21:52:29]MH_I2C_Read... [21:52:29]Read from MH i2c: E2 0E 00 AC 0B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 D0 [21:52:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:52:29]wFMCommunicate OK [21:52:29]SAM_PROTO_GetShiftState done [21:52:29]FM_GetShiftState done [21:52:29]opened in 1710115571 [21:52:29]opened+sec_in_day 1710201971 [21:52:29]quantity*price = 100011 [21:52:29]sum+1 = 100012 [21:52:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 220 11.03.2024 21:52 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95045 ФПД: 7658692763591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T215231&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95045&fm=7658692763591&tin=02508201610067®Number=0000000000090555&sum=100000 [21:52:30]StoreToDocumentArchive [21:52:30]shift 326 fd 95045 [21:52:30]save to /storage/0326/doc_00095045 [21:52:30]save last doc name /storage/0326/doc_00095045 to /storage/kkm_last_doc_name [21:52:30]save OK [21:52:30]Clear old archive folders... [21:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:30]tlvbuf is 01A38DC0 [21:52:30]SAM_PROTO_ClearQueue [21:52:30]wFMCommunicate request_size=4 [21:52:30]MH_SAM_APDU [21:52:30]CAPDU: 80 09 00 00 [21:52:30]Write to MH i2c: E2 08 00 B9 0B 80 09 00 00 00 00 00 00 36 [21:52:30]Write i2c OK [21:52:30]MH_I2C_Read... [21:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:30]Read from MH i2c: E2 [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: E2 03 00 [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [21:52:30]RAPDU: 90 00 [21:52:30]wFMCommunicate OK [21:52:30]SAM_PROTO_ClearQueue done [21:52:30]KKMCreateOFDPacket [21:52:30]OFDProtocolAddRootSTLVToBuf [21:52:30]FM_MakeSignedData [21:52:30]FM_MakeSignedData [21:52:30]SAM_PROTO_SignData [21:52:30]wFMCommunicate request_size=4 [21:52:30]MH_SAM_APDU [21:52:30]CAPDU: 80 0D 01 02 [21:52:30]Write to MH i2c: E2 08 00 BA 0B 80 0D 01 02 00 00 00 00 3E [21:52:30]Write i2c OK [21:52:30]MH_I2C_Read... [21:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:30]Read from MH i2c: E2 [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: E2 03 00 [21:52:30]MH_I2C_Read... [21:52:30]Read from MH i2c: E2 03 00 BA 0B 00 90 00 39 [21:52:30]RAPDU: 90 00 [21:52:30]wFMCommunicate OK [21:52:30]wFMCommunicate request_size=255 [21:52:30]MH_SAM_APDU [21:52:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 1F 7D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 73 01 00 35 04 06 00 06 [21:52:30]Write to MH i2c: E2 02 01 BB 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 1F 7D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 73 01 00 35 04 06 00 06 00 00 B8 [21:52:30]Write i2c OK [21:52:30]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 03 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 03 00 BB 0B 00 90 00 3A [21:52:31]RAPDU: 90 00 [21:52:31]wFMCommunicate OK [21:52:31]wFMCommunicate request_size=10 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 0D 02 02 05 F7 2D A9 5F C7 [21:52:31]Write to MH i2c: E2 0D 00 BC 0B 80 0D 02 02 05 00 F7 2D A9 5F C7 00 00 3E [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 03 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 03 00 BC 0B 00 90 00 3B [21:52:31]RAPDU: 90 00 [21:52:31]wFMCommunicate OK [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 0D 03 02 [21:52:31]Write to MH i2c: E2 08 00 BD 0B 80 0D 03 02 00 00 00 00 43 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 0B 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 0B 00 BD 0B 00 DF A0 42 4C 87 B4 EE 97 90 00 11 [21:52:31]RAPDU: DF A0 42 4C 87 B4 EE 97 90 00 [21:52:31]wFMCommunicate OK [21:52:31]SAM_PROTO_SignData done [21:52:31]FM_MakeSignedData done [21:52:31]CreateOFDProtocolMessage [21:52:31]wFMCommunicate request_size=4 [21:52:31]MH_SAM_APDU [21:52:31]CAPDU: 80 11 00 00 [21:52:31]Write to MH i2c: E2 08 00 BE 0B 80 11 00 00 00 00 00 00 43 [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:31]Read from MH i2c: E2 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 17 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: E2 17 00 BE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 93 [21:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:52:31]wFMCommunicate OK [21:52:31]CreateOFDProtocolMessage done [21:52:31]OFDSenderStorePacket 95045 [21:52:31]StoreOFDPacket docnum=95045 [21:52:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EF B3 07 01 51 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 1F 7D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 73 01 00 35 04 06 00 06 F7 2D A9 5F C7 DF A0 42 4C 87 B4 EE 97 [21:52:31]CheckFolder [21:52:31]dirname=/storage/ofd_packets [21:52:31]CheckFolder done [21:52:31]ProducePacketName [21:52:31]name=ofd_packets/00095045 [21:52:31]NVStorageSaveData ofd_packets/00095045 [21:52:31]File name is /storage/ofd_packets/00095045 [21:52:31]Write 301 bytes [21:52:31]NVStorageSaveData done [21:52:31]OFDSenderStorePacket done [21:52:31]KKMCreateOFDPacket done [21:52:31]NVStorageSaveData kkm_last_timestamp [21:52:31]File name is /storage/kkm_last_timestamp [21:52:31]Write 4 bytes [21:52:31]NVStorageSaveData done [21:52:31]ExternCall_PrintAddStr [21:52:31]wPrintStart [21:52:31]Write to MH i2c: 01 00 00 BF 0B CA [21:52:31]Write i2c OK [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: 01 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: 01 07 00 [21:52:31]MH_I2C_Read... [21:52:31]Read from MH i2c: 01 07 00 BF 0B 00 80 00 00 00 FF 0F 5F [21:52:31]RasterBufferAndPrint [21:52:31]line Счет N : (1)196004 [21:52:31]line ИНН: 02508201610067 [21:52:31]line Контрольно-Кассовый Чек [21:52:31]line ПРОДАЖА [21:52:31]line ТРК (МРК, ГНК) : 32 [21:52:31]line Товар: 2710124130 [21:52:31]line Аи-92-К-5 [21:52:31]line 15.900 * 62.90 [21:52:31]line = 1000.11 [21:52:31]line НДС 12% НСП 1% [21:52:31]line > о реализуемом товаре [21:52:31]line ОКРУГЛЕНИЕ: -0.11 [21:52:31]line ИТОГО: 1000.00 [21:52:31]line Внесено: 1000.00 [21:52:31]line СДАЧА: 0.00 [21:52:31]line НСП 1% : 8.85 [21:52:31]line НДС 12% : 106.21 [21:52:31]line Наличными: 1000.00 [21:52:31]line Безнал.: 0.00 [21:52:31]line Место: АЗС № 6 "Партнер Нефть" [21:52:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:52:31]line СНО: Общий режим [21:52:31]line Чек 220 11.03.2024 21:52 [21:52:31]line Смена: 326 ФФД: 1.0 [21:52:31]line ЗНМ: 0300000009 [21:52:31]line РНМ: 0000000000090555 [21:52:31]line Версия ККМ: 001 [21:52:31]line ФМ: 0000000000874811 [21:52:31]line ФД: 95045 [21:52:31]line ФПД: 7658692763591 [21:52:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T215231&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95045&fm=7658692763591&tin=02508201610067®Number=0000000000090555&sum=100000 [21:52:31]OFD Sender: Processing packet 95045 [packets to send 30, broken 29] [21:52:31]ProducePacketName [21:52:31]name=ofd_packets/00095045 [21:52:31]OFD Sender: To server: pG, [21:52:31]CommunicateWithHost lk.salyk.kg:30040 [21:52:31]ConnectInit lk.salyk.kg [21:52:31]written 0, free lines is 4095 [21:52:31]Connected sock=10 [21:52: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 31 31 0F 01 00 00 EF B3 07 01 51 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 1F 7D EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 73 01 00 35 04 06 00 06 F7 2D A9 5F C7 DF A0 42 4C 87 B4 EE 97 [21:52: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 31 31 4F 00 00 00 FF B7 47 00 B4 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 45 73 01 00 F4 03 04 00 77 28 EF 65 B6 04 01 00 00 33 F5 15 7D B7 3E 4B 99 [21:52:31]CommunicateWithHost err = 0 [21:52:31]CheckOFDResponse [21:52:31]1017 (14) - 77093643461234 [21:52:31]1041 (16) - 0000000000874811 [21:52:31]1040 (4) - 95045 [21:52:31]1012 (4) - 11.03.2024 15:51 [21:52:31]1206 (1) - 0 [21:52:31]OFD Sender: Remove packet 95045 [21:52:31]ProducePacketName [21:52:31]name=ofd_packets/00095045 [21:52:31]NVStorageDeleteData [21:52:31]Write to MH i2c: 01 00 00 EA 0B F5 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: 01 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: 01 07 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: 01 07 00 EA 0B 00 80 00 00 00 50 0D D9 [21:52:32]RasterBufferAndPrint [21:52:32]line [21:52:32]line [21:52:32]line [21:52:32]line [21:52:32]line [21:52:32]written 0, free lines is 3414 [21:52:32]process_action close_receipt done [21:52:32]requested_data is exist [21:52:32]produce_requested_data [21:52:32]requested_item fm.sn is exist - process it [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 11 00 00 [21:52:32]Write to MH i2c: E2 08 00 F1 0B 80 11 00 00 00 00 00 00 76 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 17 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 17 00 F1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [21:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:52:32]wFMCommunicate OK [21:52:32]requested_item fd.num is exist - process it [21:52:32]SAM_PROTO_GetFieldsCounters [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 13 00 00 [21:52:32]Write to MH i2c: E2 08 00 F2 0B 80 13 00 00 00 00 00 00 79 [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 62 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 62 00 F2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 45 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [21:52: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 45 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:32]wFMCommunicate OK [21:52:32]SAM_PROTO_GetFieldsCounters done [21:52:32]requested_item shift.num is exist - process it [21:52:32]requested_item shift.opened is exist - process it [21:52:32]req_shift_opened [21:52:32]FM_GetShiftState [21:52:32]SAM_PROTO_GetShiftState [21:52:32]wFMCommunicate request_size=4 [21:52:32]MH_SAM_APDU [21:52:32]CAPDU: 80 13 01 00 [21:52:32]Write to MH i2c: E2 08 00 F3 0B 80 13 01 00 00 00 00 00 7B [21:52:32]Write i2c OK [21:52:32]MH_I2C_Read... [21:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:32]Read from MH i2c: E2 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 0E 00 [21:52:32]MH_I2C_Read... [21:52:32]Read from MH i2c: E2 0E 00 F3 0B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 17 [21:52:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:52:32]wFMCommunicate OK [21:52:32]SAM_PROTO_GetShiftState done [21:52:32]FM_GetShiftState done [21:52:32]req_shift_opened done [21:52:32]requested_item shift.open_date is exist - process it [21:52:32]req_shift_open_date [21:52:32]req_shift_open_date done [21:52:32]produce_requested_data done [21:52:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95045,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:52:32]process_action_free close_receipt [21:52:32]json_value_free [21:52:32]json_value_free done [21:52:32]process_json_proto returns [21:52:32]Send response to host [21:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95045,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:52:32]free response buf [21:52:32]execute_script done [21:52:32]execute_script returns [21:52:32]free content buf [21:52:32]Sock 8.Close socket [21:52:32]Sock 8.Thread stoped [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:53]accept exits with 9 [21:56:53]New connection [21:56:53]New thread 3066813796 created [21:56:53]Thread 3066957156 joined [21:56:53]Waiting for new connection... [21:56:53] Sock 9.Parse request [21:56:53]Sock 9.Check first char [21:56:53]Sock 9.First char is OK [21:56:53]request: POST /json_proto HTTP/1.0 [21:56:53]Method: POST [21:56:53]URL: /json_proto [21:56:53]Method is POST - this is cgi request [21:56:53]url: /json_proto [21:56:53]query_string will be loaded in cgi processing [21:56:53]execute_cgi json_proto POST (null) [21:56:53]execute_cgi path=json_proto method=POST [21:56:53]POST find Content-Length [21:56:53]Host: 172.17.62.67:8080 [21:56:53]Content-Length: 801 [21:56:53]Content-Type: application/json [21:56:53] [21:56:53]POST finish read [21:56:53]Found Content-Length = 801 [21:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:53]execute_script... [21:56: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)196005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:53]POST & json_proto [21:56:53]process_json_proto [21:56:53]json parsed OK: [21:56:53]protocol is kg_v1.0 [21:56:53]action value=close_receipt [21:56:53]process_action close_receipt [21:56:53]cmd_close_receipt [21:56:53]MH_GetDate [21:56:53]Write to MH i2c: F0 00 00 F4 0B EE [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 05 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 05 00 F4 0B 00 27 7E EF 65 EC [21:56:53]GetLastDocTimeStamp 1710193951 [21:56:53]current date 1710194215 [21:56:53]FM_GetShiftState [21:56:53]SAM_PROTO_GetShiftState [21:56:53]wFMCommunicate request_size=4 [21:56:53]MH_SAM_APDU [21:56:53]CAPDU: 80 13 01 00 [21:56:53]Write to MH i2c: E2 08 00 F5 0B 80 13 01 00 00 00 00 00 7D [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:53]Read from MH i2c: E2 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 0E 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 0E 00 F5 0B 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 19 [21:56:53]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:56:53]wFMCommunicate OK [21:56:53]SAM_PROTO_GetShiftState done [21:56:53]FM_GetShiftState done [21:56:53]opened in 1710115571 [21:56:53]opened+sec_in_day 1710201971 [21:56:53]quantity*price = 100003 [21:56:53]sum+1 = 100005 [21:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.04 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 221 11.03.2024 21:56 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95046 ФПД: 239892094725364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T215655&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95046&fm=239892094725364&tin=02508201610067®Number=0000000000090555&sum=100004 [21:56:54]StoreToDocumentArchive [21:56:54]shift 326 fd 95046 [21:56:54]save to /storage/0326/doc_00095046 [21:56:54]save last doc name /storage/0326/doc_00095046 to /storage/kkm_last_doc_name [21:56:54]save OK [21:56:54]Clear old archive folders... [21:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:56:54]tlvbuf is 01A13830 [21:56:54]SAM_PROTO_ClearQueue [21:56:54]wFMCommunicate request_size=4 [21:56:54]MH_SAM_APDU [21:56:54]CAPDU: 80 09 00 00 [21:56:54]Write to MH i2c: E2 08 00 02 0C 80 09 00 00 00 00 00 00 80 [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:54]Read from MH i2c: E2 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 02 0C 00 90 00 82 [21:56:54]RAPDU: 90 00 [21:56:54]wFMCommunicate OK [21:56:54]SAM_PROTO_ClearQueue done [21:56:54]KKMCreateOFDPacket [21:56:54]OFDProtocolAddRootSTLVToBuf [21:56:54]FM_MakeSignedData [21:56:54]FM_MakeSignedData [21:56:54]SAM_PROTO_SignData [21:56:54]wFMCommunicate request_size=4 [21:56:54]MH_SAM_APDU [21:56:54]CAPDU: 80 0D 01 02 [21:56:54]Write to MH i2c: E2 08 00 03 0C 80 0D 01 02 00 00 00 00 88 [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:54]Read from MH i2c: E2 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [21:56:54]RAPDU: 90 00 [21:56:54]wFMCommunicate OK [21:56:54]wFMCommunicate request_size=255 [21:56:54]MH_SAM_APDU [21:56: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 27 7E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 73 01 00 35 04 06 00 [21:56:54]Write to MH i2c: E2 02 01 04 0C 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 27 7E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 73 01 00 35 04 06 00 00 00 0D [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:54]Read from MH i2c: E2 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [21:56:54]RAPDU: 90 00 [21:56:54]wFMCommunicate OK [21:56:54]wFMCommunicate request_size=11 [21:56:54]MH_SAM_APDU [21:56:54]CAPDU: 80 0D 02 02 06 DA 2E 3B 17 2C F4 [21:56:54]Write to MH i2c: E2 0E 00 05 0C 80 0D 02 02 06 00 DA 2E 3B 17 2C F4 00 00 11 [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:54]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [21:56:55]RAPDU: 90 00 [21:56:55]wFMCommunicate OK [21:56:55]wFMCommunicate request_size=4 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 0D 03 02 [21:56:55]Write to MH i2c: E2 08 00 06 0C 80 0D 03 02 00 00 00 00 8D [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 0B 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 0B 00 06 0C 00 A6 6F BF AE 89 B7 BA F1 90 00 FB [21:56:55]RAPDU: A6 6F BF AE 89 B7 BA F1 90 00 [21:56:55]wFMCommunicate OK [21:56:55]SAM_PROTO_SignData done [21:56:55]FM_MakeSignedData done [21:56:55]CreateOFDProtocolMessage [21:56:55]wFMCommunicate request_size=4 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 11 00 00 [21:56:55]Write to MH i2c: E2 08 00 07 0C 80 11 00 00 00 00 00 00 8D [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 17 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 17 00 07 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DD [21:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:56:55]wFMCommunicate OK [21:56:55]CreateOFDProtocolMessage done [21:56:55]OFDSenderStorePacket 95046 [21:56:55]StoreOFDPacket docnum=95046 [21:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 37 3A 08 01 B7 B9 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 27 7E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 73 01 00 35 04 06 00 DA 2E 3B 17 2C F4 A6 6F BF AE 89 B7 BA F1 [21:56:55]CheckFolder [21:56:55]dirname=/storage/ofd_packets [21:56:55]CheckFolder done [21:56:55]ProducePacketName [21:56:55]name=ofd_packets/00095046 [21:56:55]NVStorageSaveData ofd_packets/00095046 [21:56:55]File name is /storage/ofd_packets/00095046 [21:56:55]Write 302 bytes [21:56:55]NVStorageSaveData done [21:56:55]OFDSenderStorePacket done [21:56:55]KKMCreateOFDPacket done [21:56:55]NVStorageSaveData kkm_last_timestamp [21:56:55]File name is /storage/kkm_last_timestamp [21:56:55]Write 4 bytes [21:56:55]NVStorageSaveData done [21:56:55]ExternCall_PrintAddStr [21:56:55]wPrintStart [21:56:55]Write to MH i2c: 01 00 00 08 0C 14 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 08 0C 00 80 00 00 00 FF 0F A9 [21:56:55]RasterBufferAndPrint [21:56:55]line Счет N : (1)196005 [21:56:55]line ИНН: 02508201610067 [21:56:55]line Контрольно-Кассовый Чек [21:56:55]line ПРОДАЖА [21:56:55]line ТРК (МРК, ГНК) : 13 [21:56:55]line Товар: 2710124130 [21:56:55]line SUPER 92-К-5 [21:56:55]line 15.650 * 63.90 [21:56:55]line = 1000.04 [21:56:55]line НДС 12% НСП 1% [21:56:55]line > о реализуемом товаре [21:56:55]line ИТОГО: 1000.04 [21:56:55]line НСП 1% : 8.85 [21:56:55]line НДС 12% : 106.20 [21:56:55]line Наличными: 0.00 [21:56:55]line Безнал.: 1000.04 [21:56:55]line Место: АЗС № 6 "Партнер Нефть" [21:56:55]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:56:55]line СНО: Общий режим [21:56:55]line Чек 221 11.03.2024 21:56 [21:56:55]line Смена: 326 ФФД: 1.0 [21:56:55]line ЗНМ: 0300000009 [21:56:55]line РНМ: 0000000000090555 [21:56:55]line Версия ККМ: 001 [21:56:55]line Платежная система: О! деньги [21:56:55]line ФМ: 0000000000874811 [21:56:55]line ФД: 95046 [21:56:55]line ФПД: 239892094725364 [21:56:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T215655&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95046&fm=239892094725364&tin=02508201610067®Number=0000000000090555&sum=100004 [21:56:55]OFD Sender: Processing packet 95046 [packets to send 30, broken 29] [21:56:55]ProducePacketName [21:56:55]name=ofd_packets/00095046 [21:56:55]OFD Sender: To server: pG, [21:56:55]CommunicateWithHost lk.salyk.kg:30040 [21:56:55]ConnectInit lk.salyk.kg [21:56:55]written 0, free lines is 4095 [21:56:55]Connected sock=10 [21:56: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 31 31 10 01 00 00 37 3A 08 01 B7 B9 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 27 7E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 73 01 00 35 04 06 00 DA 2E 3B 17 2C F4 A6 6F BF AE 89 B7 BA F1 [21: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 31 31 4F 00 00 00 6F FC 47 00 79 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 46 73 01 00 F4 03 04 00 7F 29 EF 65 B6 04 01 00 00 DD 3D C3 01 54 90 31 62 [21:56:55]CommunicateWithHost err = 0 [21:56:55]CheckOFDResponse [21:56:55]1017 (14) - 77093643461234 [21:56:55]1041 (16) - 0000000000874811 [21:56:55]1040 (4) - 95046 [21:56:55]1012 (4) - 11.03.2024 15:55 [21:56:55]1206 (1) - 0 [21:56:55]OFD Sender: Remove packet 95046 [21:56:55]ProducePacketName [21:56:55]name=ofd_packets/00095046 [21:56:55]NVStorageDeleteData [21:56:55]Write to MH i2c: 01 00 00 32 0C 3E [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 32 0C 00 80 00 00 00 67 0D 39 [21:56:55]RasterBufferAndPrint [21:56:55]line [21:56:55]line [21:56:55]line [21:56:55]line [21:56:55]line [21:56:55]written 0, free lines is 3437 [21:56:55]process_action close_receipt done [21:56:55]requested_data is exist [21:56:55]produce_requested_data [21:56:55]requested_item fm.sn is exist - process it [21:56:55]wFMCommunicate request_size=4 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 11 00 00 [21:56:55]Write to MH i2c: E2 08 00 39 0C 80 11 00 00 00 00 00 00 BF [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 17 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 17 00 39 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0F [21:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:56:55]wFMCommunicate OK [21:56:55]requested_item fd.num is exist - process it [21:56:55]SAM_PROTO_GetFieldsCounters [21:56:55]wFMCommunicate request_size=4 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 13 00 00 [21:56:55]Write to MH i2c: E2 08 00 3A 0C 80 13 00 00 00 00 00 00 C2 [21:56:56]Write i2c OK [21:56:56]MH_I2C_Read... [21:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:56]Read from MH i2c: E2 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: E2 62 00 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: E2 62 00 3A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 46 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [21:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 46 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:56]wFMCommunicate OK [21:56:56]SAM_PROTO_GetFieldsCounters done [21:56:56]requested_item shift.num is exist - process it [21:56:56]requested_item shift.opened is exist - process it [21:56:56]req_shift_opened [21:56:56]FM_GetShiftState [21:56:56]SAM_PROTO_GetShiftState [21:56:56]wFMCommunicate request_size=4 [21:56:56]MH_SAM_APDU [21:56:56]CAPDU: 80 13 01 00 [21:56:56]Write to MH i2c: E2 08 00 3B 0C 80 13 01 00 00 00 00 00 C4 [21:56:56]Write i2c OK [21:56:56]MH_I2C_Read... [21:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:56]Read from MH i2c: E2 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: E2 0E 00 [21:56:56]MH_I2C_Read... [21:56:56]Read from MH i2c: E2 0E 00 3B 0C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 60 [21:56:56]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:56:56]wFMCommunicate OK [21:56:56]SAM_PROTO_GetShiftState done [21:56:56]FM_GetShiftState done [21:56:56]req_shift_opened done [21:56:56]requested_item shift.open_date is exist - process it [21:56:56]req_shift_open_date [21:56:56]req_shift_open_date done [21:56:56]produce_requested_data done [21:56:56]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95046,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:56:56]process_action_free close_receipt [21:56:56]json_value_free [21:56:56]json_value_free done [21:56:56]process_json_proto returns [21:56:56]Send response to host [21:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95046,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:56:56]free response buf [21:56:56]execute_script done [21:56:56]execute_script returns [21:56:56]free content buf [21:56:56]Sock 9.Close socket [21:56:56]Sock 9.Thread stoped [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:43]accept exits with 8 [21:58:43]New connection [21:58:43]New thread 3066957156 created [21:58:43]Thread 3066813796 joined [21:58:43]Waiting for new connection... [21:58:43] Sock 8.Parse request [21:58:43]Sock 8.Check first char [21:58:43]Sock 8.First char is OK [21:58:43]request: POST /json_proto HTTP/1.0 [21:58:43]Method: POST [21:58:43]URL: /json_proto [21:58:43]Method is POST - this is cgi request [21:58:43]url: /json_proto [21:58:43]query_string will be loaded in cgi processing [21:58:43]execute_cgi json_proto POST (null) [21:58:43]execute_cgi path=json_proto method=POST [21:58:43]POST find Content-Length [21:58:43]Host: 172.17.62.67:8080 [21:58:43]Content-Length: 817 [21:58:43]Content-Type: application/json [21:58:43] [21:58:43]POST finish read [21:58:43]Found Content-Length = 817 [21:58:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 14.310, "sum" : 900.10, "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" : 900.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:43]execute_script... [21:58:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 14.310, "sum" : 900.10, "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" : 900.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:43]POST & json_proto [21:58:43]process_json_proto [21:58:43]json parsed OK: [21:58:43]protocol is kg_v1.0 [21:58:43]action value=close_receipt [21:58:43]process_action close_receipt [21:58:43]cmd_close_receipt [21:58:43]MH_GetDate [21:58:43]Write to MH i2c: F0 00 00 3C 0C 37 [21:58:43]Write i2c OK [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: F0 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: F0 05 00 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: F0 05 00 3C 0C 00 95 7E EF 65 A3 [21:58:43]GetLastDocTimeStamp 1710194215 [21:58:43]current date 1710194325 [21:58:43]FM_GetShiftState [21:58:43]SAM_PROTO_GetShiftState [21:58:43]wFMCommunicate request_size=4 [21:58:43]MH_SAM_APDU [21:58:43]CAPDU: 80 13 01 00 [21:58:43]Write to MH i2c: E2 08 00 3D 0C 80 13 01 00 00 00 00 00 C6 [21:58:43]Write i2c OK [21:58:43]MH_I2C_Read... [21:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:43]Read from MH i2c: E2 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 0E 00 [21:58:43]MH_I2C_Read... [21:58:43]Read from MH i2c: E2 0E 00 3D 0C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 62 [21:58:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:58:43]wFMCommunicate OK [21:58:43]SAM_PROTO_GetShiftState done [21:58:43]FM_GetShiftState done [21:58:43]opened in 1710115571 [21:58:43]opened+sec_in_day 1710201971 [21:58:43]quantity*price = 90009 [21:58:43]sum+1 = 90011 [21:58:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.10 НСП 1% : 7.96 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.10 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 222 11.03.2024 21:58 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95047 ФПД: 65339781577822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T215845&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95047&fm=65339781577822&tin=02508201610067®Number=0000000000090555&sum=90010 [21:58:44]StoreToDocumentArchive [21:58:44]shift 326 fd 95047 [21:58:44]save to /storage/0326/doc_00095047 [21:58:44]save last doc name /storage/0326/doc_00095047 to /storage/kkm_last_doc_name [21:58:44]save OK [21:58:44]Clear old archive folders... [21:58:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:44]tlvbuf is 01A38C90 [21:58:44]SAM_PROTO_ClearQueue [21:58:44]wFMCommunicate request_size=4 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 09 00 00 [21:58:44]Write to MH i2c: E2 08 00 4A 0C 80 09 00 00 00 00 00 00 C8 [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [21:58:44]RAPDU: 90 00 [21:58:44]wFMCommunicate OK [21:58:44]SAM_PROTO_ClearQueue done [21:58:44]KKMCreateOFDPacket [21:58:44]OFDProtocolAddRootSTLVToBuf [21:58:44]FM_MakeSignedData [21:58:44]FM_MakeSignedData [21:58:44]SAM_PROTO_SignData [21:58:44]wFMCommunicate request_size=4 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 0D 01 02 [21:58:44]Write to MH i2c: E2 08 00 4B 0C 80 0D 01 02 00 00 00 00 D0 [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 4B 0C 00 90 00 CB [21:58:44]RAPDU: 90 00 [21:58:44]wFMCommunicate OK [21:58:44]wFMCommunicate request_size=255 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 95 7E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 73 01 00 35 04 06 00 3B [21:58:44]Write to MH i2c: E2 02 01 4C 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 95 7E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 73 01 00 35 04 06 00 3B 00 00 A8 [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 03 00 4C 0C 00 90 00 CC [21:58:44]RAPDU: 90 00 [21:58:44]wFMCommunicate OK [21:58:44]wFMCommunicate request_size=10 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 0D 02 02 05 6D 1A 78 7C 5E [21:58:44]Write to MH i2c: E2 0D 00 4D 0C 80 0D 02 02 05 00 6D 1A 78 7C 5E 00 00 B6 [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 4D 0C 00 90 00 CD [21:58:45]RAPDU: 90 00 [21:58:45]wFMCommunicate OK [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 0D 03 02 [21:58:45]Write to MH i2c: E2 08 00 4E 0C 80 0D 03 02 00 00 00 00 D5 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 0B 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 0B 00 4E 0C 00 CF 79 7E 22 48 C8 25 FA 90 00 ED [21:58:45]RAPDU: CF 79 7E 22 48 C8 25 FA 90 00 [21:58:45]wFMCommunicate OK [21:58:45]SAM_PROTO_SignData done [21:58:45]FM_MakeSignedData done [21:58:45]CreateOFDProtocolMessage [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 11 00 00 [21:58:45]Write to MH i2c: E2 08 00 4F 0C 80 11 00 00 00 00 00 00 D5 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 17 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 17 00 4F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 25 [21:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:58:45]wFMCommunicate OK [21:58:45]CreateOFDProtocolMessage done [21:58:45]OFDSenderStorePacket 95047 [21:58:45]StoreOFDPacket docnum=95047 [21:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BE 1B 07 01 0F 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 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 95 7E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 73 01 00 35 04 06 00 3B 6D 1A 78 7C 5E CF 79 7E 22 48 C8 25 FA [21:58:45]CheckFolder [21:58:45]dirname=/storage/ofd_packets [21:58:45]CheckFolder done [21:58:45]ProducePacketName [21:58:45]name=ofd_packets/00095047 [21:58:45]NVStorageSaveData ofd_packets/00095047 [21:58:45]File name is /storage/ofd_packets/00095047 [21:58:45]Write 301 bytes [21:58:45]NVStorageSaveData done [21:58:45]OFDSenderStorePacket done [21:58:45]KKMCreateOFDPacket done [21:58:45]NVStorageSaveData kkm_last_timestamp [21:58:45]File name is /storage/kkm_last_timestamp [21:58:45]Write 4 bytes [21:58:45]NVStorageSaveData done [21:58:45]ExternCall_PrintAddStr [21:58:45]wPrintStart [21:58:45]Write to MH i2c: 01 00 00 50 0C 5C [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 07 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 07 00 50 0C 00 80 00 00 00 FF 0F F1 [21:58:45]RasterBufferAndPrint [21:58:45]line Счет N : (1)196006 [21:58:45]line ИНН: 02508201610067 [21:58:45]line Контрольно-Кассовый Чек [21:58:45]line ПРОДАЖА [21:58:45]line ТРК (МРК, ГНК) : 32 [21:58:45]line Товар: 2710124130 [21:58:45]line Аи-92-К-5 [21:58:45]line 14.310 * 62.90 [21:58:45]line = 900.10 [21:58:45]line НДС 12% НСП 1% [21:58:45]line > о реализуемом товаре [21:58:45]line ИТОГО: 900.10 [21:58:45]line НСП 1% : 7.96 [21:58:45]line НДС 12% : 95.59 [21:58:45]line Наличными: 0.00 [21:58:45]line Безнал.: 900.10 [21:58:45]line Место: АЗС № 6 "Партнер Нефть" [21:58:45]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [21:58:45]line СНО: Общий режим [21:58:45]line Чек 222 11.03.2024 21:58 [21:58:45]line Смена: 326 ФФД: 1.0 [21:58:45]line ЗНМ: 0300000009 [21:58:45]line РНМ: 0000000000090555 [21:58:45]line Версия ККМ: 001 [21:58:45]line Платежная система: Бакай Банк [21:58:45]line ФМ: 0000000000874811 [21:58:45]line ФД: 95047 [21:58:45]line ФПД: 65339781577822 [21:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T215845&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95047&fm=65339781577822&tin=02508201610067®Number=0000000000090555&sum=90010 [21:58:45]OFD Sender: Processing packet 95047 [packets to send 30, broken 29] [21:58:45]ProducePacketName [21:58:45]name=ofd_packets/00095047 [21:58:45]OFD Sender: To server: pG, [21:58:45]CommunicateWithHost lk.salyk.kg:30040 [21:58:45]ConnectInit lk.salyk.kg [21:58:45]written 0, free lines is 4095 [21:58:45]Connected sock=10 [21:58:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BE 1B 07 01 0F 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 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 95 7E EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 73 01 00 35 04 06 00 3B 6D 1A 78 7C 5E CF 79 7E 22 48 C8 25 FA [21:58:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E5 54 47 00 96 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 47 73 01 00 F4 03 04 00 ED 29 EF 65 B6 04 01 00 00 FA 58 C2 A0 D7 9C 15 2F [21:58:45]CommunicateWithHost err = 0 [21:58:45]CheckOFDResponse [21:58:45]1017 (14) - 77093643461234 [21:58:45]1041 (16) - 0000000000874811 [21:58:45]1040 (4) - 95047 [21:58:45]1012 (4) - 11.03.2024 15:57 [21:58:45]1206 (1) - 0 [21:58:45]OFD Sender: Remove packet 95047 [21:58:45]ProducePacketName [21:58:45]name=ofd_packets/00095047 [21:58:45]NVStorageDeleteData [21:58:45]Write to MH i2c: 01 00 00 7A 0C 86 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 07 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 07 00 7A 0C 00 80 00 00 00 67 0D 81 [21:58:45]RasterBufferAndPrint [21:58:45]line [21:58:45]line [21:58:45]line [21:58:45]line [21:58:45]line [21:58:45]written 0, free lines is 3437 [21:58:45]process_action close_receipt done [21:58:45]requested_data is exist [21:58:45]produce_requested_data [21:58:45]requested_item fm.sn is exist - process it [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 11 00 00 [21:58:45]Write to MH i2c: E2 08 00 81 0C 80 11 00 00 00 00 00 00 07 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 17 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 17 00 81 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [21:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [21:58:46]wFMCommunicate OK [21:58:46]requested_item fd.num is exist - process it [21:58:46]SAM_PROTO_GetFieldsCounters [21:58:46]wFMCommunicate request_size=4 [21:58:46]MH_SAM_APDU [21:58:46]CAPDU: 80 13 00 00 [21:58:46]Write to MH i2c: E2 08 00 82 0C 80 13 00 00 00 00 00 00 0A [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 62 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 62 00 82 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [21:58:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 47 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:46]wFMCommunicate OK [21:58:46]SAM_PROTO_GetFieldsCounters done [21:58:46]requested_item shift.num is exist - process it [21:58:46]requested_item shift.opened is exist - process it [21:58:46]req_shift_opened [21:58:46]FM_GetShiftState [21:58:46]SAM_PROTO_GetShiftState [21:58:46]wFMCommunicate request_size=4 [21:58:46]MH_SAM_APDU [21:58:46]CAPDU: 80 13 01 00 [21:58:46]Write to MH i2c: E2 08 00 83 0C 80 13 01 00 00 00 00 00 0C [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:46]Read from MH i2c: E2 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 0E 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: E2 0E 00 83 0C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A8 [21:58:46]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [21:58:46]wFMCommunicate OK [21:58:46]SAM_PROTO_GetShiftState done [21:58:46]FM_GetShiftState done [21:58:46]req_shift_opened done [21:58:46]requested_item shift.open_date is exist - process it [21:58:46]req_shift_open_date [21:58:46]req_shift_open_date done [21:58:46]produce_requested_data done [21:58:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95047,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [21:58:46]process_action_free close_receipt [21:58:46]json_value_free [21:58:46]json_value_free done [21:58:46]process_json_proto returns [21:58:46]Send response to host [21:58:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95047,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [21:58:46]free response buf [21:58:46]execute_script done [21:58:46]execute_script returns [21:58:46]free content buf [21:58:46]Sock 8.Close socket [21:58:46]Sock 8.Thread stoped [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:37]accept exits with 9 [22:00:37]New connection [22:00:37]New thread 3066813796 created [22:00:37]Thread 3066957156 joined [22:00:37]Waiting for new connection... [22:00:37] Sock 9.Parse request [22:00:37]Sock 9.Check first char [22:00:37]Sock 9.First char is OK [22:00:37]request: POST /json_proto HTTP/1.0 [22:00:37]Method: POST [22:00:37]URL: /json_proto [22:00:37]Method is POST - this is cgi request [22:00:37]url: /json_proto [22:00:37]query_string will be loaded in cgi processing [22:00:37]execute_cgi json_proto POST (null) [22:00:37]execute_cgi path=json_proto method=POST [22:00:37]POST find Content-Length [22:00:37]Host: 172.17.62.67:8080 [22:00:37]Content-Length: 677 [22:00:37]Content-Type: application/json [22:00:37] [22:00:37]POST finish read [22:00:37]Found Content-Length = 677 [22:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:37]execute_script... [22:00:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:37]POST & json_proto [22:00:37]process_json_proto [22:00:37]json parsed OK: [22:00:37]protocol is kg_v1.0 [22:00:37]action value=close_receipt [22:00:37]process_action close_receipt [22:00:37]cmd_close_receipt [22:00:37]MH_GetDate [22:00:37]Write to MH i2c: F0 00 00 84 0C 7F [22:00:37]Write i2c OK [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 05 00 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: F0 05 00 84 0C 00 07 7F EF 65 5E [22:00:37]GetLastDocTimeStamp 1710194325 [22:00:37]current date 1710194439 [22:00:37]FM_GetShiftState [22:00:37]SAM_PROTO_GetShiftState [22:00:37]wFMCommunicate request_size=4 [22:00:37]MH_SAM_APDU [22:00:37]CAPDU: 80 13 01 00 [22:00:37]Write to MH i2c: E2 08 00 85 0C 80 13 01 00 00 00 00 00 0E [22:00:37]Write i2c OK [22:00:37]MH_I2C_Read... [22:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:37]Read from MH i2c: E2 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: E2 0E 00 [22:00:37]MH_I2C_Read... [22:00:37]Read from MH i2c: E2 0E 00 85 0C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 AA [22:00:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:00:37]wFMCommunicate OK [22:00:37]SAM_PROTO_GetShiftState done [22:00:37]FM_GetShiftState done [22:00:37]opened in 1710115571 [22:00:37]opened+sec_in_day 1710201971 [22:00:37]quantity*price = 50005 [22:00:37]sum+1 = 50007 [22:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 223 11.03.2024 22:00 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95048 ФПД: 251724194507802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T220039&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95048&fm=251724194507802&tin=02508201610067®Number=0000000000090555&sum=50000 [22:00:38]StoreToDocumentArchive [22:00:38]shift 326 fd 95048 [22:00:38]save to /storage/0326/doc_00095048 [22:00:38]save last doc name /storage/0326/doc_00095048 to /storage/kkm_last_doc_name [22:00:38]save OK [22:00:38]Clear old archive folders... [22:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:38]tlvbuf is 01A14590 [22:00:38]SAM_PROTO_ClearQueue [22:00:38]wFMCommunicate request_size=4 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 09 00 00 [22:00:38]Write to MH i2c: E2 08 00 92 0C 80 09 00 00 00 00 00 00 10 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [22:00:38]RAPDU: 90 00 [22:00:38]wFMCommunicate OK [22:00:38]SAM_PROTO_ClearQueue done [22:00:38]KKMCreateOFDPacket [22:00:38]OFDProtocolAddRootSTLVToBuf [22:00:38]FM_MakeSignedData [22:00:38]FM_MakeSignedData [22:00:38]SAM_PROTO_SignData [22:00:38]wFMCommunicate request_size=4 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 0D 01 02 [22:00:38]Write to MH i2c: E2 08 00 93 0C 80 0D 01 02 00 00 00 00 18 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:38]Read from MH i2c: E2 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 [22:00:38]MH_I2C_Read... [22:00:38]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [22:00:38]RAPDU: 90 00 [22:00:38]wFMCommunicate OK [22:00:38]wFMCommunicate request_size=255 [22:00:38]MH_SAM_APDU [22:00:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 07 7F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 48 73 01 00 35 04 06 00 E4 [22:00:38]Write to MH i2c: E2 02 01 94 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 07 7F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 48 73 01 00 35 04 06 00 E4 00 00 61 [22:00:38]Write i2c OK [22:00:38]MH_I2C_Read... [22:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:39]Read from MH i2c: E2 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 03 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [22:00:39]RAPDU: 90 00 [22:00:39]wFMCommunicate OK [22:00:39]wFMCommunicate request_size=10 [22:00:39]MH_SAM_APDU [22:00:39]CAPDU: 80 0D 02 02 05 F1 1B 31 EC 1A [22:00:39]Write to MH i2c: E2 0D 00 95 0C 80 0D 02 02 05 00 F1 1B 31 EC 1A 00 00 68 [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:39]Read from MH i2c: E2 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 03 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 03 00 95 0C 00 90 00 15 [22:00:39]RAPDU: 90 00 [22:00:39]wFMCommunicate OK [22:00:39]wFMCommunicate request_size=4 [22:00:39]MH_SAM_APDU [22:00:39]CAPDU: 80 0D 03 02 [22:00:39]Write to MH i2c: E2 08 00 96 0C 80 0D 03 02 00 00 00 00 1D [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:39]Read from MH i2c: E2 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 0B 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 0B 00 96 0C 00 1E 48 EA 79 E2 07 0C E4 90 00 C0 [22:00:39]RAPDU: 1E 48 EA 79 E2 07 0C E4 90 00 [22:00:39]wFMCommunicate OK [22:00:39]SAM_PROTO_SignData done [22:00:39]FM_MakeSignedData done [22:00:39]CreateOFDProtocolMessage [22:00:39]wFMCommunicate request_size=4 [22:00:39]MH_SAM_APDU [22:00:39]CAPDU: 80 11 00 00 [22:00:39]Write to MH i2c: E2 08 00 97 0C 80 11 00 00 00 00 00 00 1D [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:39]Read from MH i2c: E2 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 17 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: E2 17 00 97 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6D [22:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:00:39]wFMCommunicate OK [22:00:39]CreateOFDProtocolMessage done [22:00:39]OFDSenderStorePacket 95048 [22:00:39]StoreOFDPacket docnum=95048 [22:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 05 33 07 01 A7 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 07 7F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 48 73 01 00 35 04 06 00 E4 F1 1B 31 EC 1A 1E 48 EA 79 E2 07 0C E4 [22:00:39]CheckFolder [22:00:39]dirname=/storage/ofd_packets [22:00:39]CheckFolder done [22:00:39]ProducePacketName [22:00:39]name=ofd_packets/00095048 [22:00:39]NVStorageSaveData ofd_packets/00095048 [22:00:39]File name is /storage/ofd_packets/00095048 [22:00:39]Write 301 bytes [22:00:39]NVStorageSaveData done [22:00:39]OFDSenderStorePacket done [22:00:39]KKMCreateOFDPacket done [22:00:39]NVStorageSaveData kkm_last_timestamp [22:00:39]File name is /storage/kkm_last_timestamp [22:00:39]Write 4 bytes [22:00:39]NVStorageSaveData done [22:00:39]ExternCall_PrintAddStr [22:00:39]wPrintStart [22:00:39]Write to MH i2c: 01 00 00 98 0C A4 [22:00:39]Write i2c OK [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 07 00 [22:00:39]MH_I2C_Read... [22:00:39]Read from MH i2c: 01 07 00 98 0C 00 80 00 00 00 FF 0F 39 [22:00:39]RasterBufferAndPrint [22:00:39]line Счет N : (1)196007 [22:00:39]line ИНН: 02508201610067 [22:00:39]line Контрольно-Кассовый Чек [22:00:39]line ПРОДАЖА [22:00:39]line ТРК (МРК, ГНК) : 12 [22:00:39]line Товар: 2710124130 [22:00:39]line Аи-92-К-5 [22:00:39]line 7.950 * 62.90 [22:00:39]line = 500.06 [22:00:39]line НДС 12% НСП 1% [22:00:39]line > о реализуемом товаре [22:00:39]line ОКРУГЛЕНИЕ: -0.06 [22:00:39]line ИТОГО: 500.00 [22:00:39]line Внесено: 500.00 [22:00:39]line СДАЧА: 0.00 [22:00:39]line НСП 1% : 4.42 [22:00:39]line НДС 12% : 53.10 [22:00:39]line Наличными: 500.00 [22:00:39]line Безнал.: 0.00 [22:00:39]line Место: АЗС № 6 "Партнер Нефть" [22:00:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:00:39]line СНО: Общий режим [22:00:39]line Чек 223 11.03.2024 22:00 [22:00:39]line Смена: 326 ФФД: 1.0 [22:00:39]line ЗНМ: 0300000009 [22:00:39]line РНМ: 0000000000090555 [22:00:39]line Версия ККМ: 001 [22:00:39]line ФМ: 0000000000874811 [22:00:39]line ФД: 95048 [22:00:39]line ФПД: 251724194507802 [22:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T220039&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95048&fm=251724194507802&tin=02508201610067®Number=0000000000090555&sum=50000 [22:00:39]OFD Sender: Processing packet 95048 [packets to send 30, broken 29] [22:00:39]ProducePacketName [22:00:39]name=ofd_packets/00095048 [22:00:39]OFD Sender: To server: pG, [22:00:39]CommunicateWithHost lk.salyk.kg:30040 [22:00:39]ConnectInit lk.salyk.kg [22:00:39]written 0, free lines is 4095 [22:00:39]Connected sock=10 [22:00:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 05 33 07 01 A7 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 07 7F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 48 73 01 00 35 04 06 00 E4 F1 1B 31 EC 1A 1E 48 EA 79 E2 07 0C E4 [22:00: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 31 31 4F 00 00 00 F2 8F 47 00 1B 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 31 31 10 04 04 00 48 73 01 00 F4 03 04 00 5F 2A EF 65 B6 04 01 00 00 FA D5 BF 61 DB 15 7B D9 [22:00:39]CommunicateWithHost err = 0 [22:00:39]CheckOFDResponse [22:00:39]1017 (14) - 77093643461234 [22:00:39]1041 (16) - 0000000000874811 [22:00:39]1040 (4) - 95048 [22:00:39]1012 (4) - 11.03.2024 15:59 [22:00:39]1206 (1) - 0 [22:00:39]OFD Sender: Remove packet 95048 [22:00:39]ProducePacketName [22:00:39]name=ofd_packets/00095048 [22:00:39]NVStorageDeleteData [22:00:40]Write to MH i2c: 01 00 00 C3 0C CF [22:00:40]Write i2c OK [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: 01 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: 01 07 00 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: 01 07 00 C3 0C 00 80 00 00 00 4F 0D B2 [22:00:40]RasterBufferAndPrint [22:00:40]line [22:00:40]line [22:00:40]line [22:00:40]line [22:00:40]line [22:00:40]written 0, free lines is 3413 [22:00:40]process_action close_receipt done [22:00:40]requested_data is exist [22:00:40]produce_requested_data [22:00:40]requested_item fm.sn is exist - process it [22:00:40]wFMCommunicate request_size=4 [22:00:40]MH_SAM_APDU [22:00:40]CAPDU: 80 11 00 00 [22:00:40]Write to MH i2c: E2 08 00 CA 0C 80 11 00 00 00 00 00 00 50 [22:00:40]Write i2c OK [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: E2 [22:00:40]MH_I2C_Read... [22:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:40]Read from MH i2c: E2 17 00 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: E2 17 00 CA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [22:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:00:40]wFMCommunicate OK [22:00:40]requested_item fd.num is exist - process it [22:00:40]SAM_PROTO_GetFieldsCounters [22:00:40]wFMCommunicate request_size=4 [22:00:40]MH_SAM_APDU [22:00:40]CAPDU: 80 13 00 00 [22:00:40]Write to MH i2c: E2 08 00 CB 0C 80 13 00 00 00 00 00 00 53 [22:00:40]Write i2c OK [22:00:40]MH_I2C_Read... [22:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:40]Read from MH i2c: E2 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: E2 62 00 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: E2 62 00 CB 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 48 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:00: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 48 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:40]wFMCommunicate OK [22:00:40]SAM_PROTO_GetFieldsCounters done [22:00:40]requested_item shift.num is exist - process it [22:00:40]requested_item shift.opened is exist - process it [22:00:40]req_shift_opened [22:00:40]FM_GetShiftState [22:00:40]SAM_PROTO_GetShiftState [22:00:40]wFMCommunicate request_size=4 [22:00:40]MH_SAM_APDU [22:00:40]CAPDU: 80 13 01 00 [22:00:40]Write to MH i2c: E2 08 00 CC 0C 80 13 01 00 00 00 00 00 55 [22:00:40]Write i2c OK [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: E2 [22:00:40]MH_I2C_Read... [22:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:40]OFD Sender: No OFD packet to send [22:00:40]Read from MH i2c: E2 0E 00 [22:00:40]MH_I2C_Read... [22:00:40]Read from MH i2c: E2 0E 00 CC 0C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F1 [22:00:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:00:40]wFMCommunicate OK [22:00:40]SAM_PROTO_GetShiftState done [22:00:40]FM_GetShiftState done [22:00:40]req_shift_opened done [22:00:40]requested_item shift.open_date is exist - process it [22:00:40]req_shift_open_date [22:00:40]req_shift_open_date done [22:00:40]produce_requested_data done [22:00:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95048,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:00:40]process_action_free close_receipt [22:00:40]json_value_free [22:00:40]json_value_free done [22:00:40]process_json_proto returns [22:00:40]Send response to host [22:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95048,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:00:40]free response buf [22:00:40]execute_script done [22:00:40]execute_script returns [22:00:40]free content buf [22:00:40]Sock 9.Close socket [22:00:40]Sock 9.Thread stoped [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:47]accept exits with 8 [22:07:47]New connection [22:07:47]New thread 3066957156 created [22:07:47]Thread 3066813796 joined [22:07:47]Waiting for new connection... [22:07:47] Sock 8.Parse request [22:07:47]Sock 8.Check first char [22:07:47]Sock 8.First char is OK [22:07:47]request: POST /json_proto HTTP/1.0 [22:07:47]Method: POST [22:07:47]URL: /json_proto [22:07:47]Method is POST - this is cgi request [22:07:47]url: /json_proto [22:07:47]query_string will be loaded in cgi processing [22:07:47]execute_cgi json_proto POST (null) [22:07:47]execute_cgi path=json_proto method=POST [22:07:47]POST find Content-Length [22:07:47]Host: 172.17.62.67:8080 [22:07:47]Content-Length: 682 [22:07:47]Content-Type: application/json [22:07:47] [22:07:47]POST finish read [22:07:47]Found Content-Length = 682 [22:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "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" ] } } [22:07:47]execute_script... [22:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "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" ] } } [22:07:47]POST & json_proto [22:07:47]process_json_proto [22:07:47]json parsed OK: [22:07:47]protocol is kg_v1.0 [22:07:47]action value=close_receipt [22:07:47]process_action close_receipt [22:07:47]cmd_close_receipt [22:07:47]MH_GetDate [22:07:47]Write to MH i2c: F0 00 00 CD 0C C8 [22:07:47]Write i2c OK [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: F0 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: F0 05 00 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: F0 05 00 CD 0C 00 B5 80 EF 65 56 [22:07:47]GetLastDocTimeStamp 1710194439 [22:07:47]current date 1710194869 [22:07:47]FM_GetShiftState [22:07:47]SAM_PROTO_GetShiftState [22:07:47]wFMCommunicate request_size=4 [22:07:47]MH_SAM_APDU [22:07:47]CAPDU: 80 13 01 00 [22:07:47]Write to MH i2c: E2 08 00 CE 0C 80 13 01 00 00 00 00 00 57 [22:07:47]Write i2c OK [22:07:47]MH_I2C_Read... [22:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:47]Read from MH i2c: E2 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: E2 0E 00 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: E2 0E 00 CE 0C 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 F3 [22:07:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:07:47]wFMCommunicate OK [22:07:47]SAM_PROTO_GetShiftState done [22:07:47]FM_GetShiftState done [22:07:47]opened in 1710115571 [22:07:47]opened+sec_in_day 1710201971 [22:07:47]quantity*price = 150050 [22:07:47]sum+1 = 150052 [22:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 224 11.03.2024 22:07 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95049 ФПД: 104244405014542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T220749&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95049&fm=104244405014542&tin=02508201610067®Number=0000000000090555&sum=150000 [22:07:48]StoreToDocumentArchive [22:07:48]shift 326 fd 95049 [22:07:48]save to /storage/0326/doc_00095049 [22:07:48]save last doc name /storage/0326/doc_00095049 to /storage/kkm_last_doc_name [22:07:48]save OK [22:07:48]Clear old archive folders... [22:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:48]tlvbuf is 019FF040 [22:07:48]SAM_PROTO_ClearQueue [22:07:48]wFMCommunicate request_size=4 [22:07:48]MH_SAM_APDU [22:07:48]CAPDU: 80 09 00 00 [22:07:48]Write to MH i2c: E2 08 00 DB 0C 80 09 00 00 00 00 00 00 59 [22:07:48]Write i2c OK [22:07:48]MH_I2C_Read... [22:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:48]Read from MH i2c: E2 [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: E2 03 00 [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: E2 03 00 DB 0C 00 90 00 5B [22:07:48]RAPDU: 90 00 [22:07:48]wFMCommunicate OK [22:07:48]SAM_PROTO_ClearQueue done [22:07:48]KKMCreateOFDPacket [22:07:48]OFDProtocolAddRootSTLVToBuf [22:07:48]FM_MakeSignedData [22:07:48]FM_MakeSignedData [22:07:48]SAM_PROTO_SignData [22:07:48]wFMCommunicate request_size=4 [22:07:48]MH_SAM_APDU [22:07:48]CAPDU: 80 0D 01 02 [22:07:48]Write to MH i2c: E2 08 00 DC 0C 80 0D 01 02 00 00 00 00 61 [22:07:48]Write i2c OK [22:07:48]MH_I2C_Read... [22:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:48]Read from MH i2c: E2 [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: E2 03 00 [22:07:48]MH_I2C_Read... [22:07:48]Read from MH i2c: E2 03 00 DC 0C 00 90 00 5C [22:07:48]RAPDU: 90 00 [22:07:48]wFMCommunicate OK [22:07:48]wFMCommunicate request_size=255 [22:07:48]MH_SAM_APDU [22:07:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 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 3F 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 E0 00 00 00 F4 03 04 00 B5 80 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 49 73 01 00 35 04 06 00 5E [22:07:48]Write to MH i2c: E2 02 01 DD 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 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 3F 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 E0 00 00 00 F4 03 04 00 B5 80 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 49 73 01 00 35 04 06 00 5E 00 00 B8 [22:07:48]Write i2c OK [22:07:48]MH_I2C_Read... [22:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:49]Read from MH i2c: E2 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 DD 0C 00 90 00 5D [22:07:49]RAPDU: 90 00 [22:07:49]wFMCommunicate OK [22:07:49]wFMCommunicate request_size=10 [22:07:49]MH_SAM_APDU [22:07:49]CAPDU: 80 0D 02 02 05 CF 4A BB 10 0E [22:07:49]Write to MH i2c: E2 0D 00 DE 0C 80 0D 02 02 05 00 CF 4A BB 10 0E 00 00 60 [22:07:49]Write i2c OK [22:07:49]MH_I2C_Read... [22:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:49]Read from MH i2c: E2 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [22:07:49]RAPDU: 90 00 [22:07:49]wFMCommunicate OK [22:07:49]wFMCommunicate request_size=4 [22:07:49]MH_SAM_APDU [22:07:49]CAPDU: 80 0D 03 02 [22:07:49]Write to MH i2c: E2 08 00 DF 0C 80 0D 03 02 00 00 00 00 66 [22:07:49]Write i2c OK [22:07:49]MH_I2C_Read... [22:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:49]Read from MH i2c: E2 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 0B 00 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 0B 00 DF 0C 00 17 5B E5 12 B9 9D 1B 35 90 00 76 [22:07:49]RAPDU: 17 5B E5 12 B9 9D 1B 35 90 00 [22:07:49]wFMCommunicate OK [22:07:49]SAM_PROTO_SignData done [22:07:49]FM_MakeSignedData done [22:07:49]CreateOFDProtocolMessage [22:07:49]wFMCommunicate request_size=4 [22:07:49]MH_SAM_APDU [22:07:49]CAPDU: 80 11 00 00 [22:07:49]Write to MH i2c: E2 08 00 E0 0C 80 11 00 00 00 00 00 00 66 [22:07:49]Write i2c OK [22:07:49]MH_I2C_Read... [22:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:49]Read from MH i2c: E2 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 17 00 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: E2 17 00 E0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B6 [22:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:07:49]wFMCommunicate OK [22:07:49]CreateOFDProtocolMessage done [22:07:49]OFDSenderStorePacket 95049 [22:07:49]StoreOFDPacket docnum=95049 [22:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 17 5A 07 01 ED FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 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 3F 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 E0 00 00 00 F4 03 04 00 B5 80 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 49 73 01 00 35 04 06 00 5E CF 4A BB 10 0E 17 5B E5 12 B9 9D 1B 35 [22:07:49]CheckFolder [22:07:49]dirname=/storage/ofd_packets [22:07:49]CheckFolder done [22:07:49]ProducePacketName [22:07:49]name=ofd_packets/00095049 [22:07:49]NVStorageSaveData ofd_packets/00095049 [22:07:49]File name is /storage/ofd_packets/00095049 [22:07:49]Write 301 bytes [22:07:49]NVStorageSaveData done [22:07:49]OFDSenderStorePacket done [22:07:49]KKMCreateOFDPacket done [22:07:49]NVStorageSaveData kkm_last_timestamp [22:07:49]File name is /storage/kkm_last_timestamp [22:07:49]Write 4 bytes [22:07:49]NVStorageSaveData done [22:07:49]ExternCall_PrintAddStr [22:07:49]wPrintStart [22:07:49]Write to MH i2c: 01 00 00 E1 0C ED [22:07:49]Write i2c OK [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: 01 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: 01 07 00 [22:07:49]MH_I2C_Read... [22:07:49]Read from MH i2c: 01 07 00 E1 0C 00 80 00 00 00 FF 0F 82 [22:07:49]RasterBufferAndPrint [22:07:49]line Счет N : (1)196008 [22:07:49]line ИНН: 02508201610067 [22:07:49]line Контрольно-Кассовый Чек [22:07:49]line ПРОДАЖА [22:07:49]line ТРК (МРК, ГНК) : 31 [22:07:49]line Товар: 2710124500 [22:07:49]line Аи-95-К-5 [22:07:49]line 21.590 * 69.50 [22:07:49]line = 1500.51 [22:07:49]line НДС 12% НСП 1% [22:07:49]line > о реализуемом товаре [22:07:49]line ОКРУГЛЕНИЕ: -0.51 [22:07:49]line ИТОГО: 1500.00 [22:07:49]line Внесено: 1500.00 [22:07:49]line СДАЧА: 0.00 [22:07:49]line НСП 1% : 13.28 [22:07:49]line НДС 12% : 159.35 [22:07:49]line Наличными: 1500.00 [22:07:49]line Безнал.: 0.00 [22:07:49]line Место: АЗС № 6 "Партнер Нефть" [22:07:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:07:49]line СНО: Общий режим [22:07:49]line Чек 224 11.03.2024 22:07 [22:07:49]line Смена: 326 ФФД: 1.0 [22:07:49]line ЗНМ: 0300000009 [22:07:49]line РНМ: 0000000000090555 [22:07:49]line Версия ККМ: 001 [22:07:49]line ФМ: 0000000000874811 [22:07:49]line ФД: 95049 [22:07:49]line ФПД: 104244405014542 [22:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T220749&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95049&fm=104244405014542&tin=02508201610067®Number=0000000000090555&sum=150000 [22:07:49]OFD Sender: Processing packet 95049 [packets to send 30, broken 29] [22:07:49]ProducePacketName [22:07:49]name=ofd_packets/00095049 [22:07:49]OFD Sender: To server: pG, [22:07:49]CommunicateWithHost lk.salyk.kg:30040 [22:07:49]ConnectInit lk.salyk.kg [22:07:49]written 0, free lines is 4095 [22:07:49]Connected sock=10 [22:07:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 17 5A 07 01 ED FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 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 3F 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 E0 00 00 00 F4 03 04 00 B5 80 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 49 73 01 00 35 04 06 00 5E CF 4A BB 10 0E 17 5B E5 12 B9 9D 1B 35 [22:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A5 7D 47 00 CD 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 31 31 10 04 04 00 49 73 01 00 F4 03 04 00 0D 2C EF 65 B6 04 01 00 00 D5 94 35 A1 2B 79 96 5D [22:07:49]CommunicateWithHost err = 0 [22:07:49]CheckOFDResponse [22:07:49]1017 (14) - 77093643461234 [22:07:49]1041 (16) - 0000000000874811 [22:07:49]1040 (4) - 95049 [22:07:49]1012 (4) - 11.03.2024 16:06 [22:07:49]1206 (1) - 0 [22:07:49]OFD Sender: Remove packet 95049 [22:07:49]ProducePacketName [22:07:49]name=ofd_packets/00095049 [22:07:49]NVStorageDeleteData [22:07:50]Write to MH i2c: 01 00 00 0C 0D 19 [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 07 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: 01 07 00 0C 0D 00 80 00 00 00 53 0D 00 [22:07:50]RasterBufferAndPrint [22:07:50]line [22:07:50]line [22:07:50]line [22:07:50]line [22:07:50]line [22:07:50]written 0, free lines is 3417 [22:07:50]process_action close_receipt done [22:07:50]requested_data is exist [22:07:50]produce_requested_data [22:07:50]requested_item fm.sn is exist - process it [22:07:50]wFMCommunicate request_size=4 [22:07:50]MH_SAM_APDU [22:07:50]CAPDU: 80 11 00 00 [22:07:50]Write to MH i2c: E2 08 00 13 0D 80 11 00 00 00 00 00 00 9A [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:50]Read from MH i2c: E2 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 17 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 17 00 13 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EA [22:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:07:50]wFMCommunicate OK [22:07:50]requested_item fd.num is exist - process it [22:07:50]SAM_PROTO_GetFieldsCounters [22:07:50]wFMCommunicate request_size=4 [22:07:50]MH_SAM_APDU [22:07:50]CAPDU: 80 13 00 00 [22:07:50]Write to MH i2c: E2 08 00 14 0D 80 13 00 00 00 00 00 00 9D [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:50]Read from MH i2c: E2 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 62 00 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 62 00 14 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 49 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [22:07: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 49 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:50]wFMCommunicate OK [22:07:50]SAM_PROTO_GetFieldsCounters done [22:07:50]requested_item shift.num is exist - process it [22:07:50]requested_item shift.opened is exist - process it [22:07:50]req_shift_opened [22:07:50]FM_GetShiftState [22:07:50]SAM_PROTO_GetShiftState [22:07:50]wFMCommunicate request_size=4 [22:07:50]MH_SAM_APDU [22:07:50]CAPDU: 80 13 01 00 [22:07:50]Write to MH i2c: E2 08 00 15 0D 80 13 01 00 00 00 00 00 9F [22:07:50]Write i2c OK [22:07:50]MH_I2C_Read... [22:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:50]Read from MH i2c: E2 [22:07:50]MH_I2C_Read... [22:07:50]Read from MH i2c: E2 0E 00 [22:07:50]MH_I2C_Read... [22:07:50]OFD Sender: No OFD packet to send [22:07:50]Read from MH i2c: E2 0E 00 15 0D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3B [22:07:50]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:07:50]wFMCommunicate OK [22:07:50]SAM_PROTO_GetShiftState done [22:07:50]FM_GetShiftState done [22:07:50]req_shift_opened done [22:07:50]requested_item shift.open_date is exist - process it [22:07:50]req_shift_open_date [22:07:50]req_shift_open_date done [22:07:50]produce_requested_data done [22:07:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95049,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:07:50]process_action_free close_receipt [22:07:50]json_value_free [22:07:50]json_value_free done [22:07:50]process_json_proto returns [22:07:50]Send response to host [22:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95049,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:07:50]free response buf [22:07:50]execute_script done [22:07:50]execute_script returns [22:07:50]free content buf [22:07:50]Sock 8.Close socket [22:07:50]Sock 8.Thread stoped [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:36]accept exits with 9 [22:10:36]New connection [22:10:36]New thread 3066813796 created [22:10:36]Thread 3066957156 joined [22:10:36]Waiting for new connection... [22:10:36] Sock 9.Parse request [22:10:36]Sock 9.Check first char [22:10:36]Sock 9.First char is OK [22:10:36]request: POST /json_proto HTTP/1.0 [22:10:36]Method: POST [22:10:36]URL: /json_proto [22:10:36]Method is POST - this is cgi request [22:10:36]url: /json_proto [22:10:36]query_string will be loaded in cgi processing [22:10:36]execute_cgi json_proto POST (null) [22:10:36]execute_cgi path=json_proto method=POST [22:10:36]POST find Content-Length [22:10:36]Host: 172.17.62.67:8080 [22:10:36]Content-Length: 677 [22:10:36]Content-Type: application/json [22:10:36] [22:10:36]POST finish read [22:10:36]Found Content-Length = 677 [22:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.160, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:36]execute_script... [22:10: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)196009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.160, "sum" : 450.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:36]POST & json_proto [22:10:36]process_json_proto [22:10:36]json parsed OK: [22:10:36]protocol is kg_v1.0 [22:10:36]action value=close_receipt [22:10:36]process_action close_receipt [22:10:36]cmd_close_receipt [22:10:36]MH_GetDate [22:10:36]Write to MH i2c: F0 00 00 16 0D 12 [22:10:36]Write i2c OK [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: F0 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: F0 05 00 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: F0 05 00 16 0D 00 5E 81 EF 65 4A [22:10:36]GetLastDocTimeStamp 1710194869 [22:10:36]current date 1710195038 [22:10:36]FM_GetShiftState [22:10:36]SAM_PROTO_GetShiftState [22:10:36]wFMCommunicate request_size=4 [22:10:36]MH_SAM_APDU [22:10:36]CAPDU: 80 13 01 00 [22:10:36]Write to MH i2c: E2 08 00 17 0D 80 13 01 00 00 00 00 00 A1 [22:10:36]Write i2c OK [22:10:36]MH_I2C_Read... [22:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:36]Read from MH i2c: E2 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 0E 00 [22:10:36]MH_I2C_Read... [22:10:36]Read from MH i2c: E2 0E 00 17 0D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3D [22:10:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:10:36]wFMCommunicate OK [22:10:36]SAM_PROTO_GetShiftState done [22:10:36]FM_GetShiftState done [22:10:36]opened in 1710115571 [22:10:36]opened+sec_in_day 1710201971 [22:10:36]quantity*price = 45036 [22:10:36]sum+1 = 45037 [22:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 225 11.03.2024 22:10 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95050 ФПД: 145687844519312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T221038&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95050&fm=145687844519312&tin=02508201610067®Number=0000000000090555&sum=45000 [22:10:37]StoreToDocumentArchive [22:10:37]shift 326 fd 95050 [22:10:37]save to /storage/0326/doc_00095050 [22:10:37]save last doc name /storage/0326/doc_00095050 to /storage/kkm_last_doc_name [22:10:37]save OK [22:10:37]Clear old archive folders... [22:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:10:37]tlvbuf is 01A2EC00 [22:10:37]SAM_PROTO_ClearQueue [22:10:37]wFMCommunicate request_size=4 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 09 00 00 [22:10:37]Write to MH i2c: E2 08 00 24 0D 80 09 00 00 00 00 00 00 A3 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 24 0D 00 90 00 A5 [22:10:37]RAPDU: 90 00 [22:10:37]wFMCommunicate OK [22:10:37]SAM_PROTO_ClearQueue done [22:10:37]KKMCreateOFDPacket [22:10:37]OFDProtocolAddRootSTLVToBuf [22:10:37]FM_MakeSignedData [22:10:37]FM_MakeSignedData [22:10:37]SAM_PROTO_SignData [22:10:37]wFMCommunicate request_size=4 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 0D 01 02 [22:10:37]Write to MH i2c: E2 08 00 25 0D 80 0D 01 02 00 00 00 00 AB [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 25 0D 00 90 00 A6 [22:10:37]RAPDU: 90 00 [22:10:37]wFMCommunicate OK [22:10:37]wFMCommunicate request_size=255 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5E 81 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 73 01 00 35 04 06 00 84 [22:10:37]Write to MH i2c: E2 02 01 26 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5E 81 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 73 01 00 35 04 06 00 84 00 00 E4 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 26 0D 00 90 00 A7 [22:10:37]RAPDU: 90 00 [22:10:37]wFMCommunicate OK [22:10:37]wFMCommunicate request_size=10 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 0D 02 02 05 80 98 38 7D 90 [22:10:37]Write to MH i2c: E2 0D 00 27 0D 80 0D 02 02 05 00 80 98 38 7D 90 00 00 15 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 03 00 27 0D 00 90 00 A8 [22:10:37]RAPDU: 90 00 [22:10:37]wFMCommunicate OK [22:10:37]wFMCommunicate request_size=4 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 0D 03 02 [22:10:37]Write to MH i2c: E2 08 00 28 0D 80 0D 03 02 00 00 00 00 B0 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 0B 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 0B 00 28 0D 00 B0 3D B2 2D EA 43 B3 D5 90 00 32 [22:10:37]RAPDU: B0 3D B2 2D EA 43 B3 D5 90 00 [22:10:37]wFMCommunicate OK [22:10:37]SAM_PROTO_SignData done [22:10:37]FM_MakeSignedData done [22:10:37]CreateOFDProtocolMessage [22:10:37]wFMCommunicate request_size=4 [22:10:37]MH_SAM_APDU [22:10:37]CAPDU: 80 11 00 00 [22:10:37]Write to MH i2c: E2 08 00 29 0D 80 11 00 00 00 00 00 00 B0 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:37]Read from MH i2c: E2 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 17 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: E2 17 00 29 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [22:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:10:37]wFMCommunicate OK [22:10:37]CreateOFDProtocolMessage done [22:10:37]OFDSenderStorePacket 95050 [22:10:37]StoreOFDPacket docnum=95050 [22:10:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F9 1D 07 01 2B 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5E 81 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 73 01 00 35 04 06 00 84 80 98 38 7D 90 B0 3D B2 2D EA 43 B3 D5 [22:10:37]CheckFolder [22:10:37]dirname=/storage/ofd_packets [22:10:37]CheckFolder done [22:10:37]ProducePacketName [22:10:37]name=ofd_packets/00095050 [22:10:37]NVStorageSaveData ofd_packets/00095050 [22:10:37]File name is /storage/ofd_packets/00095050 [22:10:37]Write 301 bytes [22:10:37]NVStorageSaveData done [22:10:37]OFDSenderStorePacket done [22:10:37]KKMCreateOFDPacket done [22:10:37]NVStorageSaveData kkm_last_timestamp [22:10:37]File name is /storage/kkm_last_timestamp [22:10:37]Write 4 bytes [22:10:37]NVStorageSaveData done [22:10:37]OFD Sender: Processing packet 95050 [packets to send 30, broken 29] [22:10:37]ProducePacketName [22:10:37]name=ofd_packets/00095050 [22:10:37]OFD Sender: To server: pG, [22:10:37]CommunicateWithHost lk.salyk.kg:30040 [22:10:37]ConnectInit lk.salyk.kg [22:10:37]ExternCall_PrintAddStr [22:10:37]wPrintStart [22:10:37]Write to MH i2c: 01 00 00 2A 0D 37 [22:10:37]Write i2c OK [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: 01 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: 01 07 00 [22:10:37]MH_I2C_Read... [22:10:37]Read from MH i2c: 01 07 00 2A 0D 00 80 00 00 00 FF 0F CC [22:10:37]RasterBufferAndPrint [22:10:37]line Счет N : (1)196009 [22:10:37]line ИНН: 02508201610067 [22:10:37]line Контрольно-Кассовый Чек [22:10:37]line ПРОДАЖА [22:10:37]line ТРК (МРК, ГНК) : 12 [22:10:37]line Товар: 2710124130 [22:10:37]line Аи-92-К-5 [22:10:37]line 7.160 * 62.90 [22:10:37]line = 450.36 [22:10:37]line НДС 12% НСП 1% [22:10:37]line > о реализуемом товаре [22:10:37]line ОКРУГЛЕНИЕ: -0.36 [22:10:37]line ИТОГО: 450.00 [22:10:37]line Внесено: 450.00 [22:10:37]line СДАЧА: 0.00 [22:10:37]line НСП 1% : 3.98 [22:10:37]line НДС 12% : 47.83 [22:10:37]line Наличными: 450.00 [22:10:37]line Безнал.: 0.00 [22:10:37]line Место: АЗС № 6 "Партнер Нефть" [22:10:37]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:10:37]line СНО: Общий режим [22:10:37]line Чек 225 11.03.2024 22:10 [22:10:37]line Смена: 326 ФФД: 1.0 [22:10:37]line ЗНМ: 0300000009 [22:10:37]line РНМ: 0000000000090555 [22:10:38]line Версия ККМ: 001 [22:10:38]line ФМ: 0000000000874811 [22:10:38]line ФД: 95050 [22:10:38]line ФПД: 145687844519312 [22:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T221038&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95050&fm=145687844519312&tin=02508201610067®Number=0000000000090555&sum=45000 [22:10:38]Connected sock=11 [22:10: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 31 31 0F 01 00 00 F9 1D 07 01 2B 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5E 81 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4A 73 01 00 35 04 06 00 84 80 98 38 7D 90 B0 3D B2 2D EA 43 B3 D5 [22:10:38]written 0, free lines is 4095 [22:10: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 31 31 4F 00 00 00 27 1D 47 00 9E 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 31 31 10 04 04 00 4A 73 01 00 F4 03 04 00 B6 2C EF 65 B6 04 01 00 00 BC 71 0F B4 F7 53 F4 A8 [22:10:38]CommunicateWithHost err = 0 [22:10:38]CheckOFDResponse [22:10:38]1017 (14) - 77093643461234 [22:10:38]1041 (16) - 0000000000874811 [22:10:38]1040 (4) - 95050 [22:10:38]1012 (4) - 11.03.2024 16:09 [22:10:38]1206 (1) - 0 [22:10:38]OFD Sender: Remove packet 95050 [22:10:38]ProducePacketName [22:10:38]name=ofd_packets/00095050 [22:10:38]NVStorageDeleteData [22:10:38]Write to MH i2c: 01 00 00 55 0D 62 [22:10:38]Write i2c OK [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: 01 [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: 01 07 00 [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: 01 07 00 55 0D 00 80 00 00 00 58 0D 4E [22:10:38]RasterBufferAndPrint [22:10:38]line [22:10:38]line [22:10:38]line [22:10:38]line [22:10:38]line [22:10:38]written 0, free lines is 3423 [22:10:38]process_action close_receipt done [22:10:38]requested_data is exist [22:10:38]produce_requested_data [22:10:38]requested_item fm.sn is exist - process it [22:10:38]wFMCommunicate request_size=4 [22:10:38]MH_SAM_APDU [22:10:38]CAPDU: 80 11 00 00 [22:10:38]Write to MH i2c: E2 08 00 5C 0D 80 11 00 00 00 00 00 00 E3 [22:10:38]Write i2c OK [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: E2 [22:10:38]MH_I2C_Read... [22:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:38]Read from MH i2c: E2 17 00 [22:10:38]MH_I2C_Read... [22:10:38]Read from MH i2c: E2 17 00 5C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 33 [22:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:10:38]wFMCommunicate OK [22:10:38]requested_item fd.num is exist - process it [22:10:38]SAM_PROTO_GetFieldsCounters [22:10:38]wFMCommunicate request_size=4 [22:10:38]MH_SAM_APDU [22:10:38]CAPDU: 80 13 00 00 [22:10:38]Write to MH i2c: E2 08 00 5D 0D 80 13 00 00 00 00 00 00 E6 [22:10:38]Write i2c OK [22:10:38]MH_I2C_Read... [22:10:38]OFD Sender: No OFD packet to send [22:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:39]Read from MH i2c: E2 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 62 00 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 62 00 5D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [22: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:39]wFMCommunicate OK [22:10:39]SAM_PROTO_GetFieldsCounters done [22:10:39]requested_item shift.num is exist - process it [22:10:39]requested_item shift.opened is exist - process it [22:10:39]req_shift_opened [22:10:39]FM_GetShiftState [22:10:39]SAM_PROTO_GetShiftState [22:10:39]wFMCommunicate request_size=4 [22:10:39]MH_SAM_APDU [22:10:39]CAPDU: 80 13 01 00 [22:10:39]Write to MH i2c: E2 08 00 5E 0D 80 13 01 00 00 00 00 00 E8 [22:10:39]Write i2c OK [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 [22:10:39]MH_I2C_Read... [22:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:39]Read from MH i2c: E2 0E 00 [22:10:39]MH_I2C_Read... [22:10:39]Read from MH i2c: E2 0E 00 5E 0D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 84 [22:10:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:10:39]wFMCommunicate OK [22:10:39]SAM_PROTO_GetShiftState done [22:10:39]FM_GetShiftState done [22:10:39]req_shift_opened done [22:10:39]requested_item shift.open_date is exist - process it [22:10:39]req_shift_open_date [22:10:39]req_shift_open_date done [22:10:39]produce_requested_data done [22:10:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95050,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:10:39]process_action_free close_receipt [22:10:39]json_value_free [22:10:39]json_value_free done [22:10:39]process_json_proto returns [22:10:39]Send response to host [22:10:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95050,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:10:39]free response buf [22:10:39]execute_script done [22:10:39]execute_script returns [22:10:39]free content buf [22:10:39]Sock 9.Close socket [22:10:39]Sock 9.Thread stoped [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:45]accept exits with 8 [22:11:45]New connection [22:11:45]New thread 3066957156 created [22:11:45]Thread 3066813796 joined [22:11:45]Waiting for new connection... [22:11:45] Sock 8.Parse request [22:11:45]Sock 8.Check first char [22:11:45]Sock 8.First char is OK [22:11:45]request: POST /json_proto HTTP/1.0 [22:11:45]Method: POST [22:11:45]URL: /json_proto [22:11:45]Method is POST - this is cgi request [22:11:45]url: /json_proto [22:11:45]query_string will be loaded in cgi processing [22:11:45]execute_cgi json_proto POST (null) [22:11:45]execute_cgi path=json_proto method=POST [22:11:45]POST find Content-Length [22:11:45]Host: 172.17.62.67:8080 [22:11:45]Content-Length: 819 [22:11:45]Content-Type: application/json [22:11:45] [22:11:45]POST finish read [22:11:45]Found Content-Length = 819 [22:11:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:45]execute_script... [22:11: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)196010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.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" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:45]POST & json_proto [22:11:45]process_json_proto [22:11:45]json parsed OK: [22:11:45]protocol is kg_v1.0 [22:11:45]action value=close_receipt [22:11:45]process_action close_receipt [22:11:45]cmd_close_receipt [22:11:45]MH_GetDate [22:11:45]Write to MH i2c: F0 00 00 5F 0D 5B [22:11:45]Write i2c OK [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: F0 [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: F0 05 00 [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: F0 05 00 5F 0D 00 A3 81 EF 65 D8 [22:11:45]GetLastDocTimeStamp 1710195038 [22:11:45]current date 1710195107 [22:11:45]FM_GetShiftState [22:11:45]SAM_PROTO_GetShiftState [22:11:45]wFMCommunicate request_size=4 [22:11:45]MH_SAM_APDU [22:11:45]CAPDU: 80 13 01 00 [22:11:45]Write to MH i2c: E2 08 00 60 0D 80 13 01 00 00 00 00 00 EA [22:11:45]Write i2c OK [22:11:45]MH_I2C_Read... [22:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:45]Read from MH i2c: E2 [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: E2 0E 00 [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: E2 0E 00 60 0D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 86 [22:11:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:11:45]wFMCommunicate OK [22:11:45]SAM_PROTO_GetShiftState done [22:11:45]FM_GetShiftState done [22:11:45]opened in 1710115571 [22:11:45]opened+sec_in_day 1710201971 [22:11:45]quantity*price = 100011 [22:11:45]sum+1 = 100012 [22:11:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 226 11.03.2024 22:11 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95051 ФПД: 45526455704608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T221147&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95051&fm=45526455704608&tin=02508201610067®Number=0000000000090555&sum=100011 [22:11:46]StoreToDocumentArchive [22:11:46]shift 326 fd 95051 [22:11:46]save to /storage/0326/doc_00095051 [22:11:46]save last doc name /storage/0326/doc_00095051 to /storage/kkm_last_doc_name [22:11:46]save OK [22:11:46]Clear old archive folders... [22:11:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:46]tlvbuf is 01A14500 [22:11:46]SAM_PROTO_ClearQueue [22:11:46]wFMCommunicate request_size=4 [22:11:46]MH_SAM_APDU [22:11:46]CAPDU: 80 09 00 00 [22:11:46]Write to MH i2c: E2 08 00 6D 0D 80 09 00 00 00 00 00 00 EC [22:11:46]Write i2c OK [22:11:46]MH_I2C_Read... [22:11:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:46]Read from MH i2c: E2 [22:11:46]MH_I2C_Read... [22:11:46]Read from MH i2c: E2 03 00 [22:11:46]MH_I2C_Read... [22:11:46]Read from MH i2c: E2 03 00 6D 0D 00 90 00 EE [22:11:46]RAPDU: 90 00 [22:11:46]wFMCommunicate OK [22:11:46]SAM_PROTO_ClearQueue done [22:11:46]KKMCreateOFDPacket [22:11:46]OFDProtocolAddRootSTLVToBuf [22:11:46]FM_MakeSignedData [22:11:46]FM_MakeSignedData [22:11:46]SAM_PROTO_SignData [22:11:46]wFMCommunicate request_size=4 [22:11:46]MH_SAM_APDU [22:11:46]CAPDU: 80 0D 01 02 [22:11:46]Write to MH i2c: E2 08 00 6E 0D 80 0D 01 02 00 00 00 00 F4 [22:11:46]Write i2c OK [22:11:46]MH_I2C_Read... [22:11:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:46]Read from MH i2c: E2 [22:11:46]MH_I2C_Read... [22:11:46]Read from MH i2c: E2 03 00 [22:11:46]MH_I2C_Read... [22:11:46]Read from MH i2c: E2 03 00 6E 0D 00 90 00 EF [22:11:46]RAPDU: 90 00 [22:11:46]wFMCommunicate OK [22:11:46]wFMCommunicate request_size=255 [22:11:46]MH_SAM_APDU [22:11:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 A3 81 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 73 01 00 35 04 06 00 29 [22:11:46]Write to MH i2c: E2 02 01 6F 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 A3 81 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 73 01 00 35 04 06 00 29 00 00 3B [22:11:46]Write i2c OK [22:11:46]MH_I2C_Read... [22:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:47]Read from MH i2c: E2 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 03 00 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 03 00 6F 0D 00 90 00 F0 [22:11:47]RAPDU: 90 00 [22:11:47]wFMCommunicate OK [22:11:47]wFMCommunicate request_size=10 [22:11:47]MH_SAM_APDU [22:11:47]CAPDU: 80 0D 02 02 05 67 F4 38 5C 20 [22:11:47]Write to MH i2c: E2 0D 00 70 0D 80 0D 02 02 05 00 67 F4 38 5C 20 00 00 10 [22:11:47]Write i2c OK [22:11:47]MH_I2C_Read... [22:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:47]Read from MH i2c: E2 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 03 00 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 03 00 70 0D 00 90 00 F1 [22:11:47]RAPDU: 90 00 [22:11:47]wFMCommunicate OK [22:11:47]wFMCommunicate request_size=4 [22:11:47]MH_SAM_APDU [22:11:47]CAPDU: 80 0D 03 02 [22:11:47]Write to MH i2c: E2 08 00 71 0D 80 0D 03 02 00 00 00 00 F9 [22:11:47]Write i2c OK [22:11:47]MH_I2C_Read... [22:11:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:47]Read from MH i2c: E2 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 0B 00 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 0B 00 71 0D 00 38 FF 69 8F 0F A6 8E 29 90 00 95 [22:11:47]RAPDU: 38 FF 69 8F 0F A6 8E 29 90 00 [22:11:47]wFMCommunicate OK [22:11:47]SAM_PROTO_SignData done [22:11:47]FM_MakeSignedData done [22:11:47]CreateOFDProtocolMessage [22:11:47]wFMCommunicate request_size=4 [22:11:47]MH_SAM_APDU [22:11:47]CAPDU: 80 11 00 00 [22:11:47]Write to MH i2c: E2 08 00 72 0D 80 11 00 00 00 00 00 00 F9 [22:11:47]Write i2c OK [22:11:47]MH_I2C_Read... [22:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:47]Read from MH i2c: E2 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 17 00 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 17 00 72 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 49 [22:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:11:47]wFMCommunicate OK [22:11:47]CreateOFDProtocolMessage done [22:11:47]OFDSenderStorePacket 95051 [22:11:47]StoreOFDPacket docnum=95051 [22:11:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 9C D2 07 01 7E 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 A3 81 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 73 01 00 35 04 06 00 29 67 F4 38 5C 20 38 FF 69 8F 0F A6 8E 29 [22:11:47]CheckFolder [22:11:47]dirname=/storage/ofd_packets [22:11:47]CheckFolder done [22:11:47]ProducePacketName [22:11:47]name=ofd_packets/00095051 [22:11:47]NVStorageSaveData ofd_packets/00095051 [22:11:47]File name is /storage/ofd_packets/00095051 [22:11:47]Write 301 bytes [22:11:47]NVStorageSaveData done [22:11:47]OFDSenderStorePacket done [22:11:47]KKMCreateOFDPacket done [22:11:47]NVStorageSaveData kkm_last_timestamp [22:11:47]File name is /storage/kkm_last_timestamp [22:11:47]Write 4 bytes [22:11:47]NVStorageSaveData done [22:11:47]ExternCall_PrintAddStr [22:11:47]wPrintStart [22:11:47]Write to MH i2c: 01 00 00 73 0D 80 [22:11:47]Write i2c OK [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: 01 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: 01 07 00 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: 01 07 00 73 0D 00 80 00 00 00 FF 0F 15 [22:11:47]RasterBufferAndPrint [22:11:47]line Счет N : (1)196010 [22:11:47]line ИНН: 02508201610067 [22:11:47]line Контрольно-Кассовый Чек [22:11:47]line ПРОДАЖА [22:11:47]line ТРК (МРК, ГНК) : 42 [22:11:47]line Товар: 2710124130 [22:11:47]line Аи-92-К-5 [22:11:47]line 15.900 * 62.90 [22:11:47]line = 1000.11 [22:11:47]line НДС 12% НСП 1% [22:11:47]line > о реализуемом товаре [22:11:47]line ИТОГО: 1000.11 [22:11:47]line НСП 1% : 8.85 [22:11:47]line НДС 12% : 106.21 [22:11:47]line Наличными: 0.00 [22:11:47]line Безнал.: 1000.11 [22:11:47]line Место: АЗС № 6 "Партнер Нефть" [22:11:47]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:11:47]line СНО: Общий режим [22:11:47]line Чек 226 11.03.2024 22:11 [22:11:47]line Смена: 326 ФФД: 1.0 [22:11:47]line ЗНМ: 0300000009 [22:11:47]line РНМ: 0000000000090555 [22:11:47]line Версия ККМ: 001 [22:11:47]line Платежная система: Бакай Банк [22:11:47]line ФМ: 0000000000874811 [22:11:47]line ФД: 95051 [22:11:47]line ФПД: 45526455704608 [22:11:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T221147&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95051&fm=45526455704608&tin=02508201610067®Number=0000000000090555&sum=100011 [22:11:47]OFD Sender: Processing packet 95051 [packets to send 30, broken 29] [22:11:47]ProducePacketName [22:11:47]name=ofd_packets/00095051 [22:11:47]OFD Sender: To server: pG, [22:11:47]CommunicateWithHost lk.salyk.kg:30040 [22:11:47]ConnectInit lk.salyk.kg [22:11:47]written 0, free lines is 4095 [22:11:47]Connected sock=10 [22:11: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 31 31 0F 01 00 00 9C D2 07 01 7E 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 A3 81 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4B 73 01 00 35 04 06 00 29 67 F4 38 5C 20 38 FF 69 8F 0F A6 8E 29 [22:11: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 31 31 4F 00 00 00 DD 0C 47 00 70 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 31 31 10 04 04 00 4B 73 01 00 F4 03 04 00 FB 2C EF 65 B6 04 01 00 00 53 5E 24 B5 F0 55 A3 F3 [22:11:47]CommunicateWithHost err = 0 [22:11:47]CheckOFDResponse [22:11:47]1017 (14) - 77093643461234 [22:11:47]1041 (16) - 0000000000874811 [22:11:47]1040 (4) - 95051 [22:11:47]1012 (4) - 11.03.2024 16:10 [22:11:47]1206 (1) - 0 [22:11:47]OFD Sender: Remove packet 95051 [22:11:47]ProducePacketName [22:11:47]name=ofd_packets/00095051 [22:11:47]NVStorageDeleteData [22:11:48]Write to MH i2c: 01 00 00 9D 0D AA [22:11:48]Write i2c OK [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: 01 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: 01 07 00 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: 01 07 00 9D 0D 00 80 00 00 00 6A 0D A8 [22:11:48]RasterBufferAndPrint [22:11:48]line [22:11:48]line [22:11:48]line [22:11:48]line [22:11:48]line [22:11:48]written 0, free lines is 3440 [22:11:48]process_action close_receipt done [22:11:48]requested_data is exist [22:11:48]produce_requested_data [22:11:48]requested_item fm.sn is exist - process it [22:11:48]wFMCommunicate request_size=4 [22:11:48]MH_SAM_APDU [22:11:48]CAPDU: 80 11 00 00 [22:11:48]Write to MH i2c: E2 08 00 A4 0D 80 11 00 00 00 00 00 00 2B [22:11:48]Write i2c OK [22:11:48]MH_I2C_Read... [22:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:48]Read from MH i2c: E2 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: E2 17 00 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: E2 17 00 A4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7B [22:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:11:48]wFMCommunicate OK [22:11:48]requested_item fd.num is exist - process it [22:11:48]SAM_PROTO_GetFieldsCounters [22:11:48]wFMCommunicate request_size=4 [22:11:48]MH_SAM_APDU [22:11:48]CAPDU: 80 13 00 00 [22:11:48]Write to MH i2c: E2 08 00 A5 0D 80 13 00 00 00 00 00 00 2E [22:11:48]Write i2c OK [22:11:48]MH_I2C_Read... [22:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:48]Read from MH i2c: E2 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: E2 62 00 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: E2 62 00 A5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [22:11: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:48]wFMCommunicate OK [22:11:48]SAM_PROTO_GetFieldsCounters done [22:11:48]requested_item shift.num is exist - process it [22:11:48]requested_item shift.opened is exist - process it [22:11:48]req_shift_opened [22:11:48]FM_GetShiftState [22:11:48]SAM_PROTO_GetShiftState [22:11:48]wFMCommunicate request_size=4 [22:11:48]MH_SAM_APDU [22:11:48]CAPDU: 80 13 01 00 [22:11:48]Write to MH i2c: E2 08 00 A6 0D 80 13 01 00 00 00 00 00 30 [22:11:48]Write i2c OK [22:11:48]MH_I2C_Read... [22:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:48]Read from MH i2c: E2 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: E2 0E 00 [22:11:48]MH_I2C_Read... [22:11:48]Read from MH i2c: E2 0E 00 A6 0D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CC [22:11:48]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:11:48]wFMCommunicate OK [22:11:48]SAM_PROTO_GetShiftState done [22:11:48]FM_GetShiftState done [22:11:48]req_shift_opened done [22:11:48]requested_item shift.open_date is exist - process it [22:11:48]req_shift_open_date [22:11:48]req_shift_open_date done [22:11:48]produce_requested_data done [22:11:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95051,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:11:48]process_action_free close_receipt [22:11:48]json_value_free [22:11:48]json_value_free done [22:11:48]process_json_proto returns [22:11:48]Send response to host [22:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95051,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:11:48]free response buf [22:11:48]execute_script done [22:11:48]execute_script returns [22:11:48]free content buf [22:11:48]Sock 8.Close socket [22:11:48]Sock 8.Thread stoped [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:10]accept exits with 9 [22:20:10]New connection [22:20:10]New thread 3066813796 created [22:20:10]Thread 3066957156 joined [22:20:10]Waiting for new connection... [22:20:10] Sock 9.Parse request [22:20:10]Sock 9.Check first char [22:20:10]Sock 9.First char is OK [22:20:10]request: POST /json_proto HTTP/1.0 [22:20:10]Method: POST [22:20:10]URL: /json_proto [22:20:10]Method is POST - this is cgi request [22:20:10]url: /json_proto [22:20:10]query_string will be loaded in cgi processing [22:20:10]execute_cgi json_proto POST (null) [22:20:10]execute_cgi path=json_proto method=POST [22:20:10]POST find Content-Length [22:20:10]Host: 172.17.62.67:8080 [22:20:10]Content-Length: 677 [22:20:10]Content-Type: application/json [22:20:10] [22:20:10]POST finish read [22:20:10]Found Content-Length = 677 [22:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:10]execute_script... [22:20: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)196011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:10]POST & json_proto [22:20:10]process_json_proto [22:20:10]json parsed OK: [22:20:10]protocol is kg_v1.0 [22:20:10]action value=close_receipt [22:20:10]process_action close_receipt [22:20:10]cmd_close_receipt [22:20:10]MH_GetDate [22:20:10]Write to MH i2c: F0 00 00 A7 0D A3 [22:20:10]Write i2c OK [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: F0 [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: F0 05 00 [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: F0 05 00 A7 0D 00 9C 83 EF 65 1B [22:20:10]GetLastDocTimeStamp 1710195107 [22:20:10]current date 1710195612 [22:20:10]FM_GetShiftState [22:20:10]SAM_PROTO_GetShiftState [22:20:10]wFMCommunicate request_size=4 [22:20:10]MH_SAM_APDU [22:20:10]CAPDU: 80 13 01 00 [22:20:10]Write to MH i2c: E2 08 00 A8 0D 80 13 01 00 00 00 00 00 32 [22:20:10]Write i2c OK [22:20:10]MH_I2C_Read... [22:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:10]Read from MH i2c: E2 [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: E2 0E 00 [22:20:10]MH_I2C_Read... [22:20:10]Read from MH i2c: E2 0E 00 A8 0D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 CE [22:20:10]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:20:10]wFMCommunicate OK [22:20:10]SAM_PROTO_GetShiftState done [22:20:10]FM_GetShiftState done [22:20:10]opened in 1710115571 [22:20:10]opened+sec_in_day 1710201971 [22:20:10]quantity*price = 50040 [22:20:10]sum+1 = 50041 [22:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 227 11.03.2024 22:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95052 ФПД: 24907387872952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T222012&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95052&fm=24907387872952&tin=02508201610067®Number=0000000000090555&sum=50000 [22:20:11]StoreToDocumentArchive [22:20:11]shift 326 fd 95052 [22:20:11]save to /storage/0326/doc_00095052 [22:20:11]save last doc name /storage/0326/doc_00095052 to /storage/kkm_last_doc_name [22:20:11]save OK [22:20:11]Clear old archive folders... [22:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:11]tlvbuf is 01A288E0 [22:20:11]SAM_PROTO_ClearQueue [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 09 00 00 [22:20:11]Write to MH i2c: E2 08 00 B5 0D 80 09 00 00 00 00 00 00 34 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 B5 0D 00 90 00 36 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]SAM_PROTO_ClearQueue done [22:20:11]KKMCreateOFDPacket [22:20:11]OFDProtocolAddRootSTLVToBuf [22:20:11]FM_MakeSignedData [22:20:11]FM_MakeSignedData [22:20:11]SAM_PROTO_SignData [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 01 02 [22:20:11]Write to MH i2c: E2 08 00 B6 0D 80 0D 01 02 00 00 00 00 3C [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 B6 0D 00 90 00 37 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]wFMCommunicate request_size=255 [22:20:11]MH_SAM_APDU [22:20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 9C 83 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 73 01 00 35 04 06 00 16 [22:20:11]Write to MH i2c: E2 02 01 B7 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 9C 83 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 73 01 00 35 04 06 00 16 00 00 29 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 B7 0D 00 90 00 38 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]wFMCommunicate request_size=10 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 02 02 05 A7 34 01 A6 B8 [22:20:11]Write to MH i2c: E2 0D 00 B8 0D 80 0D 02 02 05 00 A7 34 01 A6 B8 00 00 83 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 B8 0D 00 90 00 39 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 03 02 [22:20:11]Write to MH i2c: E2 08 00 B9 0D 80 0D 03 02 00 00 00 00 41 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 0B 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 0B 00 B9 0D 00 4C 3E 9B 1F A8 18 9B B2 90 00 93 [22:20:11]RAPDU: 4C 3E 9B 1F A8 18 9B B2 90 00 [22:20:11]wFMCommunicate OK [22:20:11]SAM_PROTO_SignData done [22:20:11]FM_MakeSignedData done [22:20:11]CreateOFDProtocolMessage [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 11 00 00 [22:20:11]Write to MH i2c: E2 08 00 BA 0D 80 11 00 00 00 00 00 00 41 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:12]Read from MH i2c: E2 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 17 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 17 00 BA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 91 [22:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:20:12]wFMCommunicate OK [22:20:12]CreateOFDProtocolMessage done [22:20:12]OFDSenderStorePacket 95052 [22:20:12]StoreOFDPacket docnum=95052 [22:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 73 26 07 01 BF AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 9C 83 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 73 01 00 35 04 06 00 16 A7 34 01 A6 B8 4C 3E 9B 1F A8 18 9B B2 [22:20:12]CheckFolder [22:20:12]dirname=/storage/ofd_packets [22:20:12]CheckFolder done [22:20:12]ProducePacketName [22:20:12]name=ofd_packets/00095052 [22:20:12]NVStorageSaveData ofd_packets/00095052 [22:20:12]File name is /storage/ofd_packets/00095052 [22:20:12]Write 301 bytes [22:20:12]NVStorageSaveData done [22:20:12]OFDSenderStorePacket done [22:20:12]KKMCreateOFDPacket done [22:20:12]NVStorageSaveData kkm_last_timestamp [22:20:12]File name is /storage/kkm_last_timestamp [22:20:12]Write 4 bytes [22:20:12]NVStorageSaveData done [22:20:12]ExternCall_PrintAddStr [22:20:12]wPrintStart [22:20:12]Write to MH i2c: 01 00 00 BB 0D C8 [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 07 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 07 00 BB 0D 00 80 00 00 00 FF 0F 5D [22:20:12]RasterBufferAndPrint [22:20:12]line Счет N : (1)196011 [22:20:12]line ИНН: 02508201610067 [22:20:12]line Контрольно-Кассовый Чек [22:20:12]line ПРОДАЖА [22:20:12]line ТРК (МРК, ГНК) : 31 [22:20:12]line Товар: 2710124500 [22:20:12]line Аи-95-К-5 [22:20:12]line 7.200 * 69.50 [22:20:12]line = 500.40 [22:20:12]line НДС 12% НСП 1% [22:20:12]line > о реализуемом товаре [22:20:12]line ОКРУГЛЕНИЕ: -0.40 [22:20:12]line ИТОГО: 500.00 [22:20:12]line Внесено: 500.00 [22:20:12]line СДАЧА: 0.00 [22:20:12]line НСП 1% : 4.43 [22:20:12]line НДС 12% : 53.14 [22:20:12]line Наличными: 500.00 [22:20:12]line Безнал.: 0.00 [22:20:12]line Место: АЗС № 6 "Партнер Нефть" [22:20:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:20:12]line СНО: Общий режим [22:20:12]line Чек 227 11.03.2024 22:20 [22:20:12]line Смена: 326 ФФД: 1.0 [22:20:12]line ЗНМ: 0300000009 [22:20:12]line РНМ: 0000000000090555 [22:20:12]line Версия ККМ: 001 [22:20:12]line ФМ: 0000000000874811 [22:20:12]line ФД: 95052 [22:20:12]line ФПД: 24907387872952 [22:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T222012&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95052&fm=24907387872952&tin=02508201610067®Number=0000000000090555&sum=50000 [22:20:12]OFD Sender: Processing packet 95052 [packets to send 30, broken 29] [22:20:12]ProducePacketName [22:20:12]name=ofd_packets/00095052 [22:20:12]OFD Sender: To server: pG, [22:20:12]CommunicateWithHost lk.salyk.kg:30040 [22:20:12]ConnectInit lk.salyk.kg [22:20:12]written 0, free lines is 4095 [22:20:12]Connected sock=10 [22:20: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 31 31 0F 01 00 00 73 26 07 01 BF AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 9C 83 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 73 01 00 35 04 06 00 16 A7 34 01 A6 B8 4C 3E 9B 1F A8 18 9B B2 [22:20: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 31 31 4F 00 00 00 52 40 47 00 C4 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4C 73 01 00 F4 03 04 00 F4 2E EF 65 B6 04 01 00 00 61 8A 69 88 47 CF 13 E0 [22:20:12]CommunicateWithHost err = 0 [22:20:12]CheckOFDResponse [22:20:12]1017 (14) - 77093643461234 [22:20:12]1041 (16) - 0000000000874811 [22:20:12]1040 (4) - 95052 [22:20:12]1012 (4) - 11.03.2024 16:19 [22:20:12]1206 (1) - 0 [22:20:12]OFD Sender: Remove packet 95052 [22:20:12]ProducePacketName [22:20:12]name=ofd_packets/00095052 [22:20:12]NVStorageDeleteData [22:20:12]Write to MH i2c: 01 00 00 E6 0D F3 [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 07 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 07 00 E6 0D 00 80 00 00 00 55 0D DC [22:20:12]RasterBufferAndPrint [22:20:12]line [22:20:12]line [22:20:12]line [22:20:12]line [22:20:12]line [22:20:12]written 0, free lines is 3419 [22:20:12]process_action close_receipt done [22:20:12]requested_data is exist [22:20:12]produce_requested_data [22:20:12]requested_item fm.sn is exist - process it [22:20:12]wFMCommunicate request_size=4 [22:20:12]MH_SAM_APDU [22:20:12]CAPDU: 80 11 00 00 [22:20:12]Write to MH i2c: E2 08 00 ED 0D 80 11 00 00 00 00 00 00 74 [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:12]Read from MH i2c: E2 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 17 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 17 00 ED 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C4 [22:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:20:12]wFMCommunicate OK [22:20:12]requested_item fd.num is exist - process it [22:20:12]SAM_PROTO_GetFieldsCounters [22:20:12]wFMCommunicate request_size=4 [22:20:12]MH_SAM_APDU [22:20:12]CAPDU: 80 13 00 00 [22:20:12]Write to MH i2c: E2 08 00 EE 0D 80 13 00 00 00 00 00 00 77 [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:13]Read from MH i2c: E2 [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: E2 62 00 [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: E2 62 00 EE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [22:20: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:13]wFMCommunicate OK [22:20:13]SAM_PROTO_GetFieldsCounters done [22:20:13]requested_item shift.num is exist - process it [22:20:13]requested_item shift.opened is exist - process it [22:20:13]req_shift_opened [22:20:13]FM_GetShiftState [22:20:13]SAM_PROTO_GetShiftState [22:20:13]wFMCommunicate request_size=4 [22:20:13]MH_SAM_APDU [22:20:13]CAPDU: 80 13 01 00 [22:20:13]Write to MH i2c: E2 08 00 EF 0D 80 13 01 00 00 00 00 00 79 [22:20:13]Write i2c OK [22:20:13]MH_I2C_Read... [22:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:13]Read from MH i2c: E2 [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: E2 0E 00 [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: E2 0E 00 EF 0D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 15 [22:20:13]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:20:13]wFMCommunicate OK [22:20:13]SAM_PROTO_GetShiftState done [22:20:13]FM_GetShiftState done [22:20:13]req_shift_opened done [22:20:13]requested_item shift.open_date is exist - process it [22:20:13]req_shift_open_date [22:20:13]req_shift_open_date done [22:20:13]produce_requested_data done [22:20:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95052,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:20:13]process_action_free close_receipt [22:20:13]json_value_free [22:20:13]json_value_free done [22:20:13]process_json_proto returns [22:20:13]Send response to host [22:20:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95052,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:20:13]free response buf [22:20:13]execute_script done [22:20:13]execute_script returns [22:20:13]free content buf [22:20:13]Sock 9.Close socket [22:20:13]Sock 9.Thread stoped [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:27:59]accept exits with 8 [22:27:59]New connection [22:27:59]New thread 3066957156 created [22:27:59]Thread 3066813796 joined [22:27:59]Waiting for new connection... [22:27:59] Sock 8.Parse request [22:27:59]Sock 8.Check first char [22:27:59]Sock 8.First char is OK [22:27:59]request: POST /json_proto HTTP/1.0 [22:27:59]Method: POST [22:27:59]URL: /json_proto [22:27:59]Method is POST - this is cgi request [22:27:59]url: /json_proto [22:27:59]query_string will be loaded in cgi processing [22:27:59]execute_cgi json_proto POST (null) [22:27:59]execute_cgi path=json_proto method=POST [22:27:59]POST find Content-Length [22:27:59]Host: 172.17.62.67:8080 [22:27:59]Content-Length: 808 [22:27:59]Content-Type: application/json [22:27:59] [22:27:59]POST finish read [22:27:59]Found Content-Length = 808 [22:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11528", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:59]execute_script... [22:27:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11528", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:59]POST & json_proto [22:27:59]process_json_proto [22:27:59]json parsed OK: [22:27:59]protocol is kg_v1.0 [22:27:59]action value=close_receipt [22:27:59]process_action close_receipt [22:27:59]cmd_close_receipt [22:27:59]MH_GetDate [22:27:59]Write to MH i2c: F0 00 00 F0 0D EC [22:27:59]Write i2c OK [22:27:59]MH_I2C_Read... [22:27:59]Read from MH i2c: F0 [22:27:59]MH_I2C_Read... [22:27:59]Read from MH i2c: F0 05 00 [22:27:59]MH_I2C_Read... [22:27:59]Read from MH i2c: F0 05 00 F0 0D 00 71 85 EF 65 3B [22:27:59]GetLastDocTimeStamp 1710195612 [22:27:59]current date 1710196081 [22:27:59]FM_GetShiftState [22:27:59]SAM_PROTO_GetShiftState [22:27:59]wFMCommunicate request_size=4 [22:27:59]MH_SAM_APDU [22:27:59]CAPDU: 80 13 01 00 [22:27:59]Write to MH i2c: E2 08 00 F1 0D 80 13 01 00 00 00 00 00 7B [22:27:59]Write i2c OK [22:27:59]MH_I2C_Read... [22:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:59]Read from MH i2c: E2 [22:27:59]MH_I2C_Read... [22:27:59]Read from MH i2c: E2 0E 00 [22:27:59]MH_I2C_Read... [22:27:59]Read from MH i2c: E2 0E 00 F1 0D 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 17 [22:27:59]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:27:59]wFMCommunicate OK [22:27:59]SAM_PROTO_GetShiftState done [22:27:59]FM_GetShiftState done [22:27:59]opened in 1710115571 [22:27:59]opened+sec_in_day 1710201971 [22:27:59]quantity*price = 7000 [22:27:59]sum+1 = 7001 [22:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 228 11.03.2024 22:28 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95053 ФПД: 262039508422484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T222801&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95053&fm=262039508422484&tin=02508201610067®Number=0000000000090555&sum=7000 0 [22:28:00]StoreToDocumentArchive [22:28:00]shift 326 fd 95053 [22:28:00]save to /storage/0326/doc_00095053 [22:28:00]save last doc name /storage/0326/doc_00095053 to /storage/kkm_last_doc_name [22:28:00]save OK [22:28:00]Clear old archive folders... [22:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=271 [22:28:00]tlvbuf is 01A21B70 [22:28:00]SAM_PROTO_ClearQueue [22:28:00]wFMCommunicate request_size=4 [22:28:00]MH_SAM_APDU [22:28:00]CAPDU: 80 09 00 00 [22:28:00]Write to MH i2c: E2 08 00 FE 0D 80 09 00 00 00 00 00 00 7D [22:28:00]Write i2c OK [22:28:00]MH_I2C_Read... [22:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:00]Read from MH i2c: E2 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 03 00 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 03 00 FE 0D 00 90 00 7F [22:28:00]RAPDU: 90 00 [22:28:00]wFMCommunicate OK [22:28:00]SAM_PROTO_ClearQueue done [22:28:00]KKMCreateOFDPacket [22:28:00]OFDProtocolAddRootSTLVToBuf [22:28:00]FM_MakeSignedData [22:28:00]FM_MakeSignedData [22:28:00]SAM_PROTO_SignData [22:28:00]wFMCommunicate request_size=4 [22:28:00]MH_SAM_APDU [22:28:00]CAPDU: 80 0D 01 02 [22:28:00]Write to MH i2c: E2 08 00 FF 0D 80 0D 01 02 00 00 00 00 85 [22:28:00]Write i2c OK [22:28:00]MH_I2C_Read... [22:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:00]Read from MH i2c: E2 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 03 00 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [22:28:00]RAPDU: 90 00 [22:28:00]wFMCommunicate OK [22:28:00]wFMCommunicate request_size=255 [22:28:00]MH_SAM_APDU [22:28:00]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 71 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [22:28:00]Write to MH i2c: E2 02 01 00 0E 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 71 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 7B [22:28:00]Write i2c OK [22:28:00]MH_I2C_Read... [22:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:00]Read from MH i2c: E2 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 03 00 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 03 00 00 0E 00 90 00 82 [22:28:00]RAPDU: 90 00 [22:28:00]wFMCommunicate OK [22:28:00]wFMCommunicate request_size=30 [22:28:00]MH_SAM_APDU [22:28:00]CAPDU: 80 0D 02 02 19 30 38 37 34 38 31 31 10 04 04 00 4D 73 01 00 35 04 06 00 EE 52 D3 D1 0F 54 [22:28:00]Write to MH i2c: E2 21 00 01 0E 80 0D 02 02 19 00 30 38 37 34 38 31 31 10 04 04 00 4D 73 01 00 35 04 06 00 EE 52 D3 D1 0F 54 00 00 87 [22:28:00]Write i2c OK [22:28:00]MH_I2C_Read... [22:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:00]Read from MH i2c: E2 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 03 00 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 03 00 01 0E 00 90 00 83 [22:28:00]RAPDU: 90 00 [22:28:00]wFMCommunicate OK [22:28:00]wFMCommunicate request_size=4 [22:28:00]MH_SAM_APDU [22:28:00]CAPDU: 80 0D 03 02 [22:28:00]Write to MH i2c: E2 08 00 02 0E 80 0D 03 02 00 00 00 00 8B [22:28:00]Write i2c OK [22:28:00]MH_I2C_Read... [22:28:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:00]Read from MH i2c: E2 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 0B 00 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 0B 00 02 0E 00 7F 12 4A D6 F2 0F AD 56 90 00 41 [22:28:00]RAPDU: 7F 12 4A D6 F2 0F AD 56 90 00 [22:28:00]wFMCommunicate OK [22:28:00]SAM_PROTO_SignData done [22:28:00]FM_MakeSignedData done [22:28:00]CreateOFDProtocolMessage [22:28:00]wFMCommunicate request_size=4 [22:28:00]MH_SAM_APDU [22:28:00]CAPDU: 80 11 00 00 [22:28:00]Write to MH i2c: E2 08 00 03 0E 80 11 00 00 00 00 00 00 8B [22:28:00]Write i2c OK [22:28:00]MH_I2C_Read... [22:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:00]Read from MH i2c: E2 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 17 00 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: E2 17 00 03 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DB [22:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:28:00]wFMCommunicate OK [22:28:00]CreateOFDProtocolMessage done [22:28:00]OFDSenderStorePacket 95053 [22:28:00]StoreOFDPacket docnum=95053 [22:28:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 23 01 00 00 94 CA 1B 01 B4 EB 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 71 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4D 73 01 00 35 04 06 00 EE 52 D3 D1 0F 54 7F 12 4A D6 F2 0F AD 56 [22:28:00]CheckFolder [22:28:00]dirname=/storage/ofd_packets [22:28:00]CheckFolder done [22:28:00]ProducePacketName [22:28:00]name=ofd_packets/00095053 [22:28:00]NVStorageSaveData ofd_packets/00095053 [22:28:00]File name is /storage/ofd_packets/00095053 [22:28:00]Write 321 bytes [22:28:00]NVStorageSaveData done [22:28:00]OFDSenderStorePacket done [22:28:00]KKMCreateOFDPacket done [22:28:00]NVStorageSaveData kkm_last_timestamp [22:28:00]File name is /storage/kkm_last_timestamp [22:28:00]Write 4 bytes [22:28:00]NVStorageSaveData done [22:28:00]ExternCall_PrintAddStr [22:28:00]wPrintStart [22:28:00]Write to MH i2c: 01 00 00 04 0E 12 [22:28:00]Write i2c OK [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: 01 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: 01 07 00 [22:28:00]MH_I2C_Read... [22:28:00]Read from MH i2c: 01 07 00 04 0E 00 80 00 00 00 FF 0F A7 [22:28:00]RasterBufferAndPrint [22:28:00]line Счет N : (3)11528 [22:28:00]line ИНН: 02508201610067 [22:28:00]line Контрольно-Кассовый Чек [22:28:00]line ПРОДАЖА [22:28:00]line Товар: 4700000160211 [22:28:00]line Вода Легенда 0,5л [22:28:00]line 2.000 * 35.00 [22:28:00]line = 70.00 [22:28:00]line НДС 12% НСП 1% [22:28:00]line > о реализуемом товаре [22:28:00]line ИТОГО: 70.00 [22:28:00]line НСП 1% : 0.62 [22:28:00]line НДС 12% : 7.43 [22:28:00]line Наличными: 0.00 [22:28:00]line Безнал.: 70.00 [22:28:00]line Место: АЗС № 6 "Партнер Нефть" [22:28:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:28:00]line СНО: Общий режим [22:28:00]line Чек 228 11.03.2024 22:28 [22:28:00]line Смена: 326 ФФД: 1.0 [22:28:00]line ЗНМ: 0300000009 [22:28:00]line РНМ: 0000000000090555 [22:28:00]line Версия ККМ: 001 [22:28:00]line Платежная система: Бакай Банк [22:28:00]line ФМ: 0000000000874811 [22:28:00]line ФД: 95053 [22:28:00]line ФПД: 262039508422484 [22:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T222801&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95053&fm=262039508422484&tin=02508201610067®Number=0000000000090555&sum=7000 [22:28:01]line 0 [22:28:01]OFD Sender: Processing packet 95053 [packets to send 30, broken 29] [22:28:01]ProducePacketName [22:28:01]name=ofd_packets/00095053 [22:28:01]OFD Sender: To server: pG, [22:28:01]CommunicateWithHost lk.salyk.kg:30040 [22:28:01]ConnectInit lk.salyk.kg [22:28:01]written 0, free lines is 4095 [22:28:01]Connected sock=10 [22:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 23 01 00 00 94 CA 1B 01 B4 EB 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 71 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4D 73 01 00 35 04 06 00 EE 52 D3 D1 0F 54 7F 12 4A D6 F2 0F AD 56 [22:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 61 CB 47 00 F8 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 31 31 10 04 04 00 4D 73 01 00 F4 03 04 00 C9 30 EF 65 B6 04 01 00 00 E1 03 79 57 32 C6 C8 3F [22:28:01]CommunicateWithHost err = 0 [22:28:01]CheckOFDResponse [22:28:01]1017 (14) - 77093643461234 [22:28:01]1041 (16) - 0000000000874811 [22:28:01]1040 (4) - 95053 [22:28:01]1012 (4) - 11.03.2024 16:26 [22:28:01]1206 (1) - 0 [22:28:01]OFD Sender: Remove packet 95053 [22:28:01]ProducePacketName [22:28:01]name=ofd_packets/00095053 [22:28:01]NVStorageDeleteData [22:28:01]Write to MH i2c: 01 00 00 2E 0E 3C [22:28:01]Write i2c OK [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: 01 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: 01 07 00 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: 01 07 00 2E 0E 00 80 00 00 00 60 0D 30 [22:28:01]RasterBufferAndPrint [22:28:01]line [22:28:01]line [22:28:01]line [22:28:01]line [22:28:01]line [22:28:01]written 0, free lines is 3430 [22:28:01]process_action close_receipt done [22:28:01]requested_data is exist [22:28:01]produce_requested_data [22:28:01]requested_item fm.sn is exist - process it [22:28:01]wFMCommunicate request_size=4 [22:28:01]MH_SAM_APDU [22:28:01]CAPDU: 80 11 00 00 [22:28:01]Write to MH i2c: E2 08 00 35 0E 80 11 00 00 00 00 00 00 BD [22:28:01]Write i2c OK [22:28:01]MH_I2C_Read... [22:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:01]Read from MH i2c: E2 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: E2 17 00 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: E2 17 00 35 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0D [22:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:28:01]wFMCommunicate OK [22:28:01]requested_item fd.num is exist - process it [22:28:01]SAM_PROTO_GetFieldsCounters [22:28:01]wFMCommunicate request_size=4 [22:28:01]MH_SAM_APDU [22:28:01]CAPDU: 80 13 00 00 [22:28:01]Write to MH i2c: E2 08 00 36 0E 80 13 00 00 00 00 00 00 C0 [22:28:01]Write i2c OK [22:28:01]MH_I2C_Read... [22:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:01]Read from MH i2c: E2 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: E2 62 00 [22:28:01]MH_I2C_Read... [22:28:01]Read from MH i2c: E2 62 00 36 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [22:28: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:01]wFMCommunicate OK [22:28:01]SAM_PROTO_GetFieldsCounters done [22:28:01]requested_item shift.num is exist - process it [22:28:01]requested_item shift.opened is exist - process it [22:28:01]req_shift_opened [22:28:01]FM_GetShiftState [22:28:01]SAM_PROTO_GetShiftState [22:28:01]wFMCommunicate request_size=4 [22:28:01]MH_SAM_APDU [22:28:01]CAPDU: 80 13 01 00 [22:28:01]Write to MH i2c: E2 08 00 37 0E 80 13 01 00 00 00 00 00 C2 [22:28:01]Write i2c OK [22:28:01]MH_I2C_Read... [22:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:02]Read from MH i2c: E2 [22:28:02]MH_I2C_Read... [22:28:02]Read from MH i2c: E2 0E 00 [22:28:02]MH_I2C_Read... [22:28:02]Read from MH i2c: E2 0E 00 37 0E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 5E [22:28:02]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:28:02]wFMCommunicate OK [22:28:02]SAM_PROTO_GetShiftState done [22:28:02]FM_GetShiftState done [22:28:02]req_shift_opened done [22:28:02]requested_item shift.open_date is exist - process it [22:28:02]req_shift_open_date [22:28:02]req_shift_open_date done [22:28:02]produce_requested_data done [22:28:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95053,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:28:02]process_action_free close_receipt [22:28:02]json_value_free [22:28:02]json_value_free done [22:28:02]process_json_proto returns [22:28:02]Send response to host [22:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95053,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:28:02]free response buf [22:28:02]execute_script done [22:28:02]execute_script returns [22:28:02]free content buf [22:28:02]Sock 8.Close socket [22:28:02]Sock 8.Thread stoped [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:29]accept exits with 9 [22:28:29]New connection [22:28:29]New thread 3066813796 created [22:28:29]Thread 3066957156 joined [22:28:29]Waiting for new connection... [22:28:29] Sock 9.Parse request [22:28:29]Sock 9.Check first char [22:28:29]Sock 9.First char is OK [22:28:29]request: POST /json_proto HTTP/1.0 [22:28:29]Method: POST [22:28:29]URL: /json_proto [22:28:29]Method is POST - this is cgi request [22:28:29]url: /json_proto [22:28:29]query_string will be loaded in cgi processing [22:28:29]execute_cgi json_proto POST (null) [22:28:29]execute_cgi path=json_proto method=POST [22:28:29]POST find Content-Length [22:28:29]Host: 172.17.62.67:8080 [22:28:29]Content-Length: 812 [22:28:29]Content-Type: application/json [22:28:29] [22:28:29]POST finish read [22:28:29]Found Content-Length = 812 [22:28:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "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.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:29]execute_script... [22:28: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)196012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "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.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:29]POST & json_proto [22:28:29]process_json_proto [22:28:29]json parsed OK: [22:28:29]protocol is kg_v1.0 [22:28:29]action value=close_receipt [22:28:29]process_action close_receipt [22:28:29]cmd_close_receipt [22:28:29]MH_GetDate [22:28:29]Write to MH i2c: F0 00 00 38 0E 35 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: F0 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: F0 05 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: F0 05 00 38 0E 00 8F 85 EF 65 A2 [22:28:29]GetLastDocTimeStamp 1710196081 [22:28:29]current date 1710196111 [22:28:29]FM_GetShiftState [22:28:29]SAM_PROTO_GetShiftState [22:28:29]wFMCommunicate request_size=4 [22:28:29]MH_SAM_APDU [22:28:29]CAPDU: 80 13 01 00 [22:28:29]Write to MH i2c: E2 08 00 39 0E 80 13 01 00 00 00 00 00 C4 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:29]Read from MH i2c: E2 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 0E 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 0E 00 39 0E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 60 [22:28:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:28:29]wFMCommunicate OK [22:28:29]SAM_PROTO_GetShiftState done [22:28:29]FM_GetShiftState done [22:28:29]opened in 1710115571 [22:28:29]opened+sec_in_day 1710201971 [22:28:29]quantity*price = 200007 [22:28:29]sum+1 = 200008 [22:28:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.07 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 229 11.03.2024 22:28 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95054 ФПД: 247187035847939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T222831&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95054&fm=247187035847939&tin=02508201610067®Number=0000000000090555&sum=200007 [22:28:30]StoreToDocumentArchive [22:28:30]shift 326 fd 95054 [22:28:30]save to /storage/0326/doc_00095054 [22:28:30]save last doc name /storage/0326/doc_00095054 to /storage/kkm_last_doc_name [22:28:30]save OK [22:28:30]Clear old archive folders... [22:28:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:28:30]tlvbuf is 01A14750 [22:28:30]SAM_PROTO_ClearQueue [22:28:30]wFMCommunicate request_size=4 [22:28:30]MH_SAM_APDU [22:28:30]CAPDU: 80 09 00 00 [22:28:30]Write to MH i2c: E2 08 00 46 0E 80 09 00 00 00 00 00 00 C6 [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:30]Read from MH i2c: E2 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 46 0E 00 90 00 C8 [22:28:30]RAPDU: 90 00 [22:28:30]wFMCommunicate OK [22:28:30]SAM_PROTO_ClearQueue done [22:28:30]KKMCreateOFDPacket [22:28:30]OFDProtocolAddRootSTLVToBuf [22:28:30]FM_MakeSignedData [22:28:30]FM_MakeSignedData [22:28:30]SAM_PROTO_SignData [22:28:30]wFMCommunicate request_size=4 [22:28:30]MH_SAM_APDU [22:28:30]CAPDU: 80 0D 01 02 [22:28:30]Write to MH i2c: E2 08 00 47 0E 80 0D 01 02 00 00 00 00 CE [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:30]Read from MH i2c: E2 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [22:28:30]RAPDU: 90 00 [22:28:30]wFMCommunicate OK [22:28:30]wFMCommunicate request_size=255 [22:28:30]MH_SAM_APDU [22:28: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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8F 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 73 01 00 35 04 06 00 [22:28:30]Write to MH i2c: E2 02 01 48 0E 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8F 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 73 01 00 35 04 06 00 00 00 D2 [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:30]Read from MH i2c: E2 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 48 0E 00 90 00 CA [22:28:30]RAPDU: 90 00 [22:28:30]wFMCommunicate OK [22:28:30]wFMCommunicate request_size=11 [22:28:30]MH_SAM_APDU [22:28:30]CAPDU: 80 0D 02 02 06 E0 D0 B7 76 FD 03 [22:28:30]Write to MH i2c: E2 0E 00 49 0E 80 0D 02 02 06 00 E0 D0 B7 76 FD 03 00 00 BA [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:30]Read from MH i2c: E2 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [22:28:30]RAPDU: 90 00 [22:28:30]wFMCommunicate OK [22:28:30]wFMCommunicate request_size=4 [22:28:30]MH_SAM_APDU [22:28:30]CAPDU: 80 0D 03 02 [22:28:30]Write to MH i2c: E2 08 00 4A 0E 80 0D 03 02 00 00 00 00 D3 [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:30]Read from MH i2c: E2 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 0B 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 0B 00 4A 0E 00 C4 C0 A6 7D B2 AE 33 16 90 00 24 [22:28:30]RAPDU: C4 C0 A6 7D B2 AE 33 16 90 00 [22:28:30]wFMCommunicate OK [22:28:30]SAM_PROTO_SignData done [22:28:30]FM_MakeSignedData done [22:28:30]CreateOFDProtocolMessage [22:28:30]wFMCommunicate request_size=4 [22:28:30]MH_SAM_APDU [22:28:30]CAPDU: 80 11 00 00 [22:28:30]Write to MH i2c: E2 08 00 4B 0E 80 11 00 00 00 00 00 00 D3 [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:30]Read from MH i2c: E2 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 17 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: E2 17 00 4B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 23 [22:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:28:30]wFMCommunicate OK [22:28:30]CreateOFDProtocolMessage done [22:28:30]OFDSenderStorePacket 95054 [22:28:30]StoreOFDPacket docnum=95054 [22:28:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 0A C4 08 01 6E 1D 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8F 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 73 01 00 35 04 06 00 E0 D0 B7 76 FD 03 C4 C0 A6 7D B2 AE 33 16 [22:28:30]CheckFolder [22:28:30]dirname=/storage/ofd_packets [22:28:30]CheckFolder done [22:28:30]ProducePacketName [22:28:30]name=ofd_packets/00095054 [22:28:30]NVStorageSaveData ofd_packets/00095054 [22:28:30]File name is /storage/ofd_packets/00095054 [22:28:30]Write 302 bytes [22:28:30]NVStorageSaveData done [22:28:30]OFDSenderStorePacket done [22:28:30]KKMCreateOFDPacket done [22:28:30]NVStorageSaveData kkm_last_timestamp [22:28:30]File name is /storage/kkm_last_timestamp [22:28:30]Write 4 bytes [22:28:30]NVStorageSaveData done [22:28:30]ExternCall_PrintAddStr [22:28:30]wPrintStart [22:28:30]Write to MH i2c: 01 00 00 4C 0E 5A [22:28:30]Write i2c OK [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 07 00 [22:28:30]MH_I2C_Read... [22:28:30]Read from MH i2c: 01 07 00 4C 0E 00 80 00 00 00 FF 0F EF [22:28:30]RasterBufferAndPrint [22:28:30]line Счет N : (1)196012 [22:28:30]line ИНН: 02508201610067 [22:28:30]line Контрольно-Кассовый Чек [22:28:30]line ПРОДАЖА [22:28:30]line ТРК (МРК, ГНК) : 13 [22:28:30]line Товар: 2710124130 [22:28:30]line SUPER 92-К-5 [22:28:30]line 31.300 * 63.90 [22:28:30]line = 2000.07 [22:28:30]line НДС 12% НСП 1% [22:28:30]line > о реализуемом товаре [22:28:30]line ИТОГО: 2000.07 [22:28:30]line НСП 1% : 17.70 [22:28:30]line НДС 12% : 212.40 [22:28:30]line Наличными: 0.00 [22:28:30]line Безнал.: 2000.07 [22:28:30]line Место: АЗС № 6 "Партнер Нефть" [22:28:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:28:30]line СНО: Общий режим [22:28:30]line Чек 229 11.03.2024 22:28 [22:28:30]line Смена: 326 ФФД: 1.0 [22:28:30]line ЗНМ: 0300000009 [22:28:30]line РНМ: 0000000000090555 [22:28:30]line Версия ККМ: 001 [22:28:30]line Платежная система: Бакай Банк [22:28:30]line ФМ: 0000000000874811 [22:28:30]line ФД: 95054 [22:28:30]line ФПД: 247187035847939 [22:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T222831&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95054&fm=247187035847939&tin=02508201610067®Number=0000000000090555&sum=200007 [22:28:31]OFD Sender: Processing packet 95054 [packets to send 30, broken 29] [22:28:31]ProducePacketName [22:28:31]name=ofd_packets/00095054 [22:28:31]OFD Sender: To server: pG, [22:28:31]CommunicateWithHost lk.salyk.kg:30040 [22:28:31]ConnectInit lk.salyk.kg [22:28:31]written 0, free lines is 4095 [22:28:31]Connected sock=10 [22:28: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 31 31 10 01 00 00 0A C4 08 01 6E 1D 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8F 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 73 01 00 35 04 06 00 E0 D0 B7 76 FD 03 C4 C0 A6 7D B2 AE 33 16 [22:28: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 31 31 4F 00 00 00 1C 94 47 00 1B 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4E 73 01 00 F4 03 04 00 E7 30 EF 65 B6 04 01 00 00 99 85 C4 67 91 12 C7 DB [22:28:31]CommunicateWithHost err = 0 [22:28:31]CheckOFDResponse [22:28:31]1017 (14) - 77093643461234 [22:28:31]1041 (16) - 0000000000874811 [22:28:31]1040 (4) - 95054 [22:28:31]1012 (4) - 11.03.2024 16:27 [22:28:31]1206 (1) - 0 [22:28:31]OFD Sender: Remove packet 95054 [22:28:31]ProducePacketName [22:28:31]name=ofd_packets/00095054 [22:28:31]NVStorageDeleteData [22:28:31]Write to MH i2c: 01 00 00 76 0E 84 [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: 01 07 00 76 0E 00 80 00 00 00 6E 0D 86 [22:28:31]RasterBufferAndPrint [22:28:31]line [22:28:31]line [22:28:31]line [22:28:31]line [22:28:31]line [22:28:31]written 0, free lines is 3444 [22:28:31]process_action close_receipt done [22:28:31]requested_data is exist [22:28:31]produce_requested_data [22:28:31]requested_item fm.sn is exist - process it [22:28:31]wFMCommunicate request_size=4 [22:28:31]MH_SAM_APDU [22:28:31]CAPDU: 80 11 00 00 [22:28:31]Write to MH i2c: E2 08 00 7D 0E 80 11 00 00 00 00 00 00 05 [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 [22:28:31]MH_I2C_Read... [22:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:31]Read from MH i2c: E2 17 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 17 00 7D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 55 [22:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:28:31]wFMCommunicate OK [22:28:31]requested_item fd.num is exist - process it [22:28:31]SAM_PROTO_GetFieldsCounters [22:28:31]wFMCommunicate request_size=4 [22:28:31]MH_SAM_APDU [22:28:31]CAPDU: 80 13 00 00 [22:28:31]Write to MH i2c: E2 08 00 7E 0E 80 13 00 00 00 00 00 00 08 [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:31]Read from MH i2c: E2 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 62 00 [22:28:31]MH_I2C_Read... [22:28:31]Read from MH i2c: E2 62 00 7E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [22:28: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4E 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:31]wFMCommunicate OK [22:28:31]SAM_PROTO_GetFieldsCounters done [22:28:31]requested_item shift.num is exist - process it [22:28:31]requested_item shift.opened is exist - process it [22:28:31]req_shift_opened [22:28:31]FM_GetShiftState [22:28:31]SAM_PROTO_GetShiftState [22:28:31]wFMCommunicate request_size=4 [22:28:31]MH_SAM_APDU [22:28:31]CAPDU: 80 13 01 00 [22:28:31]Write to MH i2c: E2 08 00 7F 0E 80 13 01 00 00 00 00 00 0A [22:28:31]Write i2c OK [22:28:31]MH_I2C_Read... [22:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:32]Read from MH i2c: E2 [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: E2 0E 00 [22:28:32]MH_I2C_Read... [22:28:32]Read from MH i2c: E2 0E 00 7F 0E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A6 [22:28:32]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:28:32]wFMCommunicate OK [22:28:32]SAM_PROTO_GetShiftState done [22:28:32]FM_GetShiftState done [22:28:32]req_shift_opened done [22:28:32]requested_item shift.open_date is exist - process it [22:28:32]req_shift_open_date [22:28:32]req_shift_open_date done [22:28:32]produce_requested_data done [22:28:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95054,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:28:32]process_action_free close_receipt [22:28:32]json_value_free [22:28:32]json_value_free done [22:28:32]process_json_proto returns [22:28:32]Send response to host [22:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95054,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:28:32]free response buf [22:28:32]execute_script done [22:28:32]execute_script returns [22:28:32]free content buf [22:28:32]Sock 9.Close socket [22:28:32]Sock 9.Thread stoped [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:15]accept exits with 8 [22:29:15]New connection [22:29:15]New thread 3066957156 created [22:29:15]Thread 3066813796 joined [22:29:15]Waiting for new connection... [22:29:15] Sock 8.Parse request [22:29:15]Sock 8.Check first char [22:29:15]Sock 8.First char is OK [22:29:15]request: POST /json_proto HTTP/1.0 [22:29:15]Method: POST [22:29:15]URL: /json_proto [22:29:15]Method is POST - this is cgi request [22:29:15]url: /json_proto [22:29:15]query_string will be loaded in cgi processing [22:29:15]execute_cgi json_proto POST (null) [22:29:15]execute_cgi path=json_proto method=POST [22:29:15]POST find Content-Length [22:29:15]Host: 172.17.62.67:8080 [22:29:15]Content-Length: 677 [22:29:15]Content-Type: application/json [22:29:15] [22:29:15]POST finish read [22:29:15]Found Content-Length = 677 [22:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:15]execute_script... [22:29:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:15]POST & json_proto [22:29:15]process_json_proto [22:29:15]json parsed OK: [22:29:15]protocol is kg_v1.0 [22:29:15]action value=close_receipt [22:29:15]process_action close_receipt [22:29:15]cmd_close_receipt [22:29:15]MH_GetDate [22:29:15]Write to MH i2c: F0 00 00 80 0E 7D [22:29:15]Write i2c OK [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: F0 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: F0 05 00 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: F0 05 00 80 0E 00 BD 85 EF 65 18 [22:29:15]GetLastDocTimeStamp 1710196111 [22:29:15]current date 1710196157 [22:29:15]FM_GetShiftState [22:29:15]SAM_PROTO_GetShiftState [22:29:15]wFMCommunicate request_size=4 [22:29:15]MH_SAM_APDU [22:29:15]CAPDU: 80 13 01 00 [22:29:15]Write to MH i2c: E2 08 00 81 0E 80 13 01 00 00 00 00 00 0C [22:29:15]Write i2c OK [22:29:15]MH_I2C_Read... [22:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:15]Read from MH i2c: E2 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: E2 0E 00 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: E2 0E 00 81 0E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A8 [22:29:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:29:15]wFMCommunicate OK [22:29:15]SAM_PROTO_GetShiftState done [22:29:15]FM_GetShiftState done [22:29:15]opened in 1710115571 [22:29:15]opened+sec_in_day 1710201971 [22:29:15]quantity*price = 50005 [22:29:15]sum+1 = 50007 [22:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 230 11.03.2024 22:29 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95055 ФПД: 235018011545238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T222917&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95055&fm=235018011545238&tin=02508201610067®Number=0000000000090555&sum=50000 [22:29:16]StoreToDocumentArchive [22:29:16]shift 326 fd 95055 [22:29:16]save to /storage/0326/doc_00095055 [22:29:16]save last doc name /storage/0326/doc_00095055 to /storage/kkm_last_doc_name [22:29:16]save OK [22:29:16]Clear old archive folders... [22:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:16]tlvbuf is 01A51B90 [22:29:16]SAM_PROTO_ClearQueue [22:29:16]wFMCommunicate request_size=4 [22:29:16]MH_SAM_APDU [22:29:16]CAPDU: 80 09 00 00 [22:29:16]Write to MH i2c: E2 08 00 8E 0E 80 09 00 00 00 00 00 00 0E [22:29:16]Write i2c OK [22:29:16]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 8E 0E 00 90 00 10 [22:29:17]RAPDU: 90 00 [22:29:17]wFMCommunicate OK [22:29:17]SAM_PROTO_ClearQueue done [22:29:17]KKMCreateOFDPacket [22:29:17]OFDProtocolAddRootSTLVToBuf [22:29:17]FM_MakeSignedData [22:29:17]FM_MakeSignedData [22:29:17]SAM_PROTO_SignData [22:29:17]wFMCommunicate request_size=4 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 0D 01 02 [22:29:17]Write to MH i2c: E2 08 00 8F 0E 80 0D 01 02 00 00 00 00 16 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 8F 0E 00 90 00 11 [22:29:17]RAPDU: 90 00 [22:29:17]wFMCommunicate OK [22:29:17]wFMCommunicate request_size=255 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 BD 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 73 01 00 35 04 06 00 D5 [22:29:17]Write to MH i2c: E2 02 01 90 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 BD 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 73 01 00 35 04 06 00 D5 00 00 1A [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]OFD Sender: No OFD packet to send [22:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 90 0E 00 90 00 12 [22:29:17]RAPDU: 90 00 [22:29:17]wFMCommunicate OK [22:29:17]wFMCommunicate request_size=10 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 0D 02 02 05 BF 65 18 0E 96 [22:29:17]Write to MH i2c: E2 0D 00 91 0E 80 0D 02 02 05 00 BF 65 18 0E 96 00 00 03 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 91 0E 00 90 00 13 [22:29:17]RAPDU: 90 00 [22:29:17]wFMCommunicate OK [22:29:17]wFMCommunicate request_size=4 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 0D 03 02 [22:29:17]Write to MH i2c: E2 08 00 92 0E 80 0D 03 02 00 00 00 00 1B [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 0B 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 0B 00 92 0E 00 44 16 01 0D D7 78 F9 28 90 00 F4 [22:29:17]RAPDU: 44 16 01 0D D7 78 F9 28 90 00 [22:29:17]wFMCommunicate OK [22:29:17]SAM_PROTO_SignData done [22:29:17]FM_MakeSignedData done [22:29:17]CreateOFDProtocolMessage [22:29:17]wFMCommunicate request_size=4 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 11 00 00 [22:29:17]Write to MH i2c: E2 08 00 93 0E 80 11 00 00 00 00 00 00 1B [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 17 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 17 00 93 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6B [22:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:29:17]wFMCommunicate OK [22:29:17]CreateOFDProtocolMessage done [22:29:17]OFDSenderStorePacket 95055 [22:29:17]StoreOFDPacket docnum=95055 [22:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3D 51 07 01 F7 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 BD 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 73 01 00 35 04 06 00 D5 BF 65 18 0E 96 44 16 01 0D D7 78 F9 28 [22:29:17]CheckFolder [22:29:17]dirname=/storage/ofd_packets [22:29:17]CheckFolder done [22:29:17]ProducePacketName [22:29:17]name=ofd_packets/00095055 [22:29:17]NVStorageSaveData ofd_packets/00095055 [22:29:17]File name is /storage/ofd_packets/00095055 [22:29:17]Write 301 bytes [22:29:17]NVStorageSaveData done [22:29:17]OFDSenderStorePacket done [22:29:17]KKMCreateOFDPacket done [22:29:17]NVStorageSaveData kkm_last_timestamp [22:29:17]File name is /storage/kkm_last_timestamp [22:29:17]Write 4 bytes [22:29:17]NVStorageSaveData done [22:29:17]ExternCall_PrintAddStr [22:29:17]wPrintStart [22:29:17]Write to MH i2c: 01 00 00 94 0E A2 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: 01 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: 01 07 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: 01 07 00 94 0E 00 80 00 00 00 FF 0F 37 [22:29:17]RasterBufferAndPrint [22:29:17]line Счет N : (1)196013 [22:29:17]line ИНН: 02508201610067 [22:29:17]line Контрольно-Кассовый Чек [22:29:17]line ПРОДАЖА [22:29:17]line ТРК (МРК, ГНК) : 22 [22:29:17]line Товар: 2710124130 [22:29:17]line Аи-92-К-5 [22:29:17]line 7.950 * 62.90 [22:29:17]line = 500.06 [22:29:17]line НДС 12% НСП 1% [22:29:17]line > о реализуемом товаре [22:29:17]line ОКРУГЛЕНИЕ: -0.06 [22:29:17]line ИТОГО: 500.00 [22:29:17]line Внесено: 500.00 [22:29:17]line СДАЧА: 0.00 [22:29:17]line НСП 1% : 4.42 [22:29:17]line НДС 12% : 53.10 [22:29:17]line Наличными: 500.00 [22:29:17]line Безнал.: 0.00 [22:29:17]line Место: АЗС № 6 "Партнер Нефть" [22:29:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:29:17]line СНО: Общий режим [22:29:17]line Чек 230 11.03.2024 22:29 [22:29:17]line Смена: 326 ФФД: 1.0 [22:29:17]line ЗНМ: 0300000009 [22:29:17]line РНМ: 0000000000090555 [22:29:17]line Версия ККМ: 001 [22:29:17]line ФМ: 0000000000874811 [22:29:17]line ФД: 95055 [22:29:17]line ФПД: 235018011545238 [22:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T222917&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95055&fm=235018011545238&tin=02508201610067®Number=0000000000090555&sum=50000 [22:29:17]OFD Sender: Processing packet 95055 [packets to send 30, broken 29] [22:29:17]ProducePacketName [22:29:17]name=ofd_packets/00095055 [22:29:17]OFD Sender: To server: pG, [22:29:17]CommunicateWithHost lk.salyk.kg:30040 [22:29:17]ConnectInit lk.salyk.kg [22:29:17]written 0, free lines is 4095 [22:29:17]Connected sock=10 [22:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3D 51 07 01 F7 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 BD 85 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 73 01 00 35 04 06 00 D5 BF 65 18 0E 96 44 16 01 0D D7 78 F9 28 [22:29: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 31 31 4F 00 00 00 4B B4 47 00 FE 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 31 31 10 04 04 00 4F 73 01 00 F4 03 04 00 15 31 EF 65 B6 04 01 00 00 3B 68 AF B1 EC 05 B2 96 [22:29:18]CommunicateWithHost err = 0 [22:29:18]CheckOFDResponse [22:29:18]1017 (14) - 77093643461234 [22:29:18]1041 (16) - 0000000000874811 [22:29:18]1040 (4) - 95055 [22:29:18]1012 (4) - 11.03.2024 16:28 [22:29:18]1206 (1) - 0 [22:29:18]OFD Sender: Remove packet 95055 [22:29:18]ProducePacketName [22:29:18]name=ofd_packets/00095055 [22:29:18]NVStorageDeleteData [22:29:18]Write to MH i2c: 01 00 00 BF 0E CD [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: 01 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: 01 07 00 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: 01 07 00 BF 0E 00 80 00 00 00 52 0D B3 [22:29:18]RasterBufferAndPrint [22:29:18]line [22:29:18]line [22:29:18]line [22:29:18]line [22:29:18]line [22:29:18]written 0, free lines is 3416 [22:29:18]process_action close_receipt done [22:29:18]requested_data is exist [22:29:18]produce_requested_data [22:29:18]requested_item fm.sn is exist - process it [22:29:18]wFMCommunicate request_size=4 [22:29:18]MH_SAM_APDU [22:29:18]CAPDU: 80 11 00 00 [22:29:18]Write to MH i2c: E2 08 00 C6 0E 80 11 00 00 00 00 00 00 4E [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: E2 [22:29:18]MH_I2C_Read... [22:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:18]Read from MH i2c: E2 17 00 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: E2 17 00 C6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9E [22:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:29:18]wFMCommunicate OK [22:29:18]requested_item fd.num is exist - process it [22:29:18]SAM_PROTO_GetFieldsCounters [22:29:18]wFMCommunicate request_size=4 [22:29:18]MH_SAM_APDU [22:29:18]CAPDU: 80 13 00 00 [22:29:18]Write to MH i2c: E2 08 00 C7 0E 80 13 00 00 00 00 00 00 51 [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:18]Read from MH i2c: E2 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: E2 62 00 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: E2 62 00 C7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [22:29: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:18]wFMCommunicate OK [22:29:18]SAM_PROTO_GetFieldsCounters done [22:29:18]requested_item shift.num is exist - process it [22:29:18]requested_item shift.opened is exist - process it [22:29:18]req_shift_opened [22:29:18]FM_GetShiftState [22:29:18]SAM_PROTO_GetShiftState [22:29:18]wFMCommunicate request_size=4 [22:29:18]MH_SAM_APDU [22:29:18]CAPDU: 80 13 01 00 [22:29:18]Write to MH i2c: E2 08 00 C8 0E 80 13 01 00 00 00 00 00 53 [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:18]Read from MH i2c: E2 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: E2 0E 00 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: E2 0E 00 C8 0E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 EF [22:29:18]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:29:18]wFMCommunicate OK [22:29:18]SAM_PROTO_GetShiftState done [22:29:18]FM_GetShiftState done [22:29:18]req_shift_opened done [22:29:18]requested_item shift.open_date is exist - process it [22:29:18]req_shift_open_date [22:29:18]req_shift_open_date done [22:29:18]produce_requested_data done [22:29:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95055,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:29:18]process_action_free close_receipt [22:29:18]json_value_free [22:29:18]json_value_free done [22:29:18]process_json_proto returns [22:29:18]Send response to host [22:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95055,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:29:18]free response buf [22:29:18]execute_script done [22:29:18]execute_script returns [22:29:18]free content buf [22:29:18]Sock 8.Close socket [22:29:18]Sock 8.Thread stoped [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:36]accept exits with 9 [22:42:36]New connection [22:42:36]New thread 3066813796 created [22:42:36]Thread 3066957156 joined [22:42:36]Waiting for new connection... [22:42:36] Sock 9.Parse request [22:42:36]Sock 9.Check first char [22:42:36]Sock 9.First char is OK [22:42:36]request: POST /json_proto HTTP/1.0 [22:42:36]Method: POST [22:42:36]URL: /json_proto [22:42:36]Method is POST - this is cgi request [22:42:36]url: /json_proto [22:42:36]query_string will be loaded in cgi processing [22:42:36]execute_cgi json_proto POST (null) [22:42:36]execute_cgi path=json_proto method=POST [22:42:36]POST find Content-Length [22:42:36]Host: 172.17.62.67:8080 [22:42:36]Content-Length: 1192 [22:42:36]Content-Type: application/json [22:42:36] [22:42:36]POST finish read [22:42:36]Found Content-Length = 1192 [22:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)196014\u000A11.03.2024 22:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 256.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 18150.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:36]execute_script... [22:42:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)196014\u000A11.03.2024 22:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 256.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 18150.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:36]POST & json_proto [22:42:36]process_json_proto [22:42:36]json parsed OK: [22:42:36]protocol is kg_v1.0 [22:42:36]action value=print_text [22:42:36]process_action print_text [22:42:36]cmd_print_text [22:42:36]ExternCall_PrintAddStr [22:42:36]wPrintStart [22:42:36]Write to MH i2c: 01 00 00 C9 0E D7 [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: 01 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: 01 07 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: 01 07 00 C9 0E 00 80 00 00 00 FF 0F 6C [22:42:36]RasterBufferAndPrint [22:42:36]line *****ТОВАРНЫЙ ЧЕК***** [22:42:36]line АЗС 6 [22:42:36]line Партнер нефть [22:42:36]line 02508201610067 [22:42:36]line Кассир : Карыбаев Б. [22:42:36]line Счет N : (1)196014 [22:42:36]line 11.03.2024 22:36 [22:42:36]line ПРОДАЖА [22:42:36]line ТРК (МРК, ГНК): 51 [22:42:36]line Вид ГСМ : 2710194210 [22:42:36]line ДТ-К-5 [22:42:36]line 256.000 x 70.90 [22:42:36]line ИТОГ: 18150.40 [22:42:36]line Тип оплаты: Талоны: Топливная Карта [22:42:36]line 74820 [22:42:36]line ______________________ [22:42:36]line (подпись) [22:42:36]written 0, free lines is 4095 [22:42:36]Write to MH i2c: 01 00 00 DD 0E EB [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: 01 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: 01 07 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: 01 07 00 DD 0E 00 80 00 00 00 63 0E E3 [22:42:36]RasterBufferAndPrint [22:42:36]line [22:42:36]line [22:42:36]line [22:42:36]line [22:42:36]line [22:42:36]written 0, free lines is 3687 [22:42:36]process_action print_text done [22:42:36]requested_data is exist [22:42:36]produce_requested_data [22:42:36]requested_item fm.sn is exist - process it [22:42:36]wFMCommunicate request_size=4 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 11 00 00 [22:42:36]Write to MH i2c: E2 08 00 E4 0E 80 11 00 00 00 00 00 00 6C [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:36]Read from MH i2c: E2 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 17 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 17 00 E4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BC [22:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:42:36]wFMCommunicate OK [22:42:36]requested_item fd.num is exist - process it [22:42:36]SAM_PROTO_GetFieldsCounters [22:42:36]wFMCommunicate request_size=4 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 13 00 00 [22:42:36]Write to MH i2c: E2 08 00 E5 0E 80 13 00 00 00 00 00 00 6F [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:36]Read from MH i2c: E2 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 62 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 62 00 E5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [22:42:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:36]wFMCommunicate OK [22:42:36]SAM_PROTO_GetFieldsCounters done [22:42:36]requested_item shift.num is exist - process it [22:42:36]requested_item shift.opened is exist - process it [22:42:36]req_shift_opened [22:42:36]FM_GetShiftState [22:42:36]SAM_PROTO_GetShiftState [22:42:36]wFMCommunicate request_size=4 [22:42:36]MH_SAM_APDU [22:42:36]CAPDU: 80 13 01 00 [22:42:36]Write to MH i2c: E2 08 00 E6 0E 80 13 01 00 00 00 00 00 71 [22:42:36]Write i2c OK [22:42:36]MH_I2C_Read... [22:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:36]Read from MH i2c: E2 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 0E 00 [22:42:36]MH_I2C_Read... [22:42:36]Read from MH i2c: E2 0E 00 E6 0E 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 0D [22:42:36]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:42:36]wFMCommunicate OK [22:42:36]SAM_PROTO_GetShiftState done [22:42:36]FM_GetShiftState done [22:42:36]req_shift_opened done [22:42:36]requested_item shift.open_date is exist - process it [22:42:36]req_shift_open_date [22:42:36]req_shift_open_date done [22:42:36]produce_requested_data done [22:42:36]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95055,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:42:36]process_action_free print_text [22:42:36]json_value_free [22:42:36]json_value_free done [22:42:36]process_json_proto returns [22:42:36]Send response to host [22:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95055,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:42:36]free response buf [22:42:36]execute_script done [22:42:36]execute_script returns [22:42:36]free content buf [22:42:36]Sock 9.Close socket [22:42:36]Sock 9.Thread stoped [22:42:39]OFD Sender: No OFD packet to send [22:42:43]accept exits with 8 [22:42:43]New connection [22:42:43]New thread 3066957156 created [22:42:43]Thread 3066813796 joined [22:42:43]Waiting for new connection... [22:42:43] Sock 8.Parse request [22:42:43]Sock 8.Check first char [22:42:43]Sock 8.First char is OK [22:42:43]request: POST /json_proto HTTP/1.0 [22:42:43]Method: POST [22:42:43]URL: /json_proto [22:42:43]Method is POST - this is cgi request [22:42:43]url: /json_proto [22:42:43]query_string will be loaded in cgi processing [22:42:43]execute_cgi json_proto POST (null) [22:42:43]execute_cgi path=json_proto method=POST [22:42:43]POST find Content-Length [22:42:43]Host: 172.17.62.67:8080 [22:42:43]Content-Length: 1192 [22:42:43]Content-Type: application/json [22:42:43] [22:42:43]POST finish read [22:42:43]Found Content-Length = 1192 [22:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)196015\u000A11.03.2024 22:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 244.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 17299.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:43]execute_script... [22:42:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)196015\u000A11.03.2024 22:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 244.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 17299.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:43]POST & json_proto [22:42:43]process_json_proto [22:42:43]json parsed OK: [22:42:43]protocol is kg_v1.0 [22:42:43]action value=print_text [22:42:43]process_action print_text [22:42:43]cmd_print_text [22:42:43]ExternCall_PrintAddStr [22:42:43]wPrintStart [22:42:43]Write to MH i2c: 01 00 00 E7 0E F5 [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 07 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 07 00 E7 0E 00 80 00 00 00 FF 0F 8A [22:42:43]RasterBufferAndPrint [22:42:43]line *****ТОВАРНЫЙ ЧЕК***** [22:42:43]line АЗС 6 [22:42:43]line Партнер нефть [22:42:43]line 02508201610067 [22:42:43]line Кассир : Карыбаев Б. [22:42:43]line Счет N : (1)196015 [22:42:43]line 11.03.2024 22:36 [22:42:43]line ПРОДАЖА [22:42:43]line ТРК (МРК, ГНК): 61 [22:42:43]line Вид ГСМ : 2710194210 [22:42:43]line ДТ-К-5 [22:42:43]line 244.000 x 70.90 [22:42:43]line ИТОГ: 17299.60 [22:42:43]line Тип оплаты: Талоны: Топливная Карта [22:42:43]line 74820 [22:42:43]line ______________________ [22:42:43]line (подпись) [22:42:43]written 0, free lines is 4095 [22:42:44]Write to MH i2c: 01 00 00 FB 0E 09 [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: 01 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: 01 07 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: 01 07 00 FB 0E 00 80 00 00 00 64 0E 02 [22:42:44]RasterBufferAndPrint [22:42:44]line [22:42:44]line [22:42:44]line [22:42:44]line [22:42:44]line [22:42:44]written 0, free lines is 3688 [22:42:44]process_action print_text done [22:42:44]requested_data is exist [22:42:44]produce_requested_data [22:42:44]requested_item fm.sn is exist - process it [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 11 00 00 [22:42:44]Write to MH i2c: E2 08 00 02 0F 80 11 00 00 00 00 00 00 8B [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 17 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 17 00 02 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DB [22:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:42:44]wFMCommunicate OK [22:42:44]requested_item fd.num is exist - process it [22:42:44]SAM_PROTO_GetFieldsCounters [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 13 00 00 [22:42:44]Write to MH i2c: E2 08 00 03 0F 80 13 00 00 00 00 00 00 8E [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 62 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 62 00 03 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [22:42: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4F 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:44]wFMCommunicate OK [22:42:44]SAM_PROTO_GetFieldsCounters done [22:42:44]requested_item shift.num is exist - process it [22:42:44]requested_item shift.opened is exist - process it [22:42:44]req_shift_opened [22:42:44]FM_GetShiftState [22:42:44]SAM_PROTO_GetShiftState [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 13 01 00 [22:42:44]Write to MH i2c: E2 08 00 04 0F 80 13 01 00 00 00 00 00 90 [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 0E 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 0E 00 04 0F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2C [22:42:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:42:44]wFMCommunicate OK [22:42:44]SAM_PROTO_GetShiftState done [22:42:44]FM_GetShiftState done [22:42:44]req_shift_opened done [22:42:44]requested_item shift.open_date is exist - process it [22:42:44]req_shift_open_date [22:42:44]req_shift_open_date done [22:42:44]produce_requested_data done [22:42:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95055,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:42:44]process_action_free print_text [22:42:44]json_value_free [22:42:44]json_value_free done [22:42:44]process_json_proto returns [22:42:44]Send response to host [22:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95055,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:42:44]free response buf [22:42:44]execute_script done [22:42:44]execute_script returns [22:42:44]free content buf [22:42:44]Sock 8.Close socket [22:42:44]Sock 8.Thread stoped [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:06]accept exits with 9 [22:47:06]New connection [22:47:06]New thread 3066813796 created [22:47:06]Thread 3066957156 joined [22:47:06]Waiting for new connection... [22:47:06] Sock 9.Parse request [22:47:06]Sock 9.Check first char [22:47:06]Sock 9.First char is OK [22:47:06]request: POST /json_proto HTTP/1.0 [22:47:06]Method: POST [22:47:06]URL: /json_proto [22:47:06]Method is POST - this is cgi request [22:47:06]url: /json_proto [22:47:06]query_string will be loaded in cgi processing [22:47:06]execute_cgi json_proto POST (null) [22:47:06]execute_cgi path=json_proto method=POST [22:47:06]POST find Content-Length [22:47:06]Host: 172.17.62.67:8080 [22:47:06]Content-Length: 677 [22:47:06]Content-Type: application/json [22:47:06] [22:47:06]POST finish read [22:47:06]Found Content-Length = 677 [22:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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" ] } } [22:47:06]execute_script... [22:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "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" ] } } [22:47:06]POST & json_proto [22:47:06]process_json_proto [22:47:06]json parsed OK: [22:47:06]protocol is kg_v1.0 [22:47:06]action value=close_receipt [22:47:06]process_action close_receipt [22:47:06]cmd_close_receipt [22:47:06]MH_GetDate [22:47:06]Write to MH i2c: F0 00 00 05 0F 03 [22:47:06]Write i2c OK [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: F0 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: F0 05 00 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: F0 05 00 05 0F 00 EB 89 EF 65 D0 [22:47:06]GetLastDocTimeStamp 1710196157 [22:47:06]current date 1710197227 [22:47:06]FM_GetShiftState [22:47:06]SAM_PROTO_GetShiftState [22:47:06]wFMCommunicate request_size=4 [22:47:06]MH_SAM_APDU [22:47:06]CAPDU: 80 13 01 00 [22:47:06]Write to MH i2c: E2 08 00 06 0F 80 13 01 00 00 00 00 00 92 [22:47:06]Write i2c OK [22:47:06]MH_I2C_Read... [22:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:06]Read from MH i2c: E2 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: E2 0E 00 [22:47:06]MH_I2C_Read... [22:47:06]Read from MH i2c: E2 0E 00 06 0F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2E [22:47:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:47:06]wFMCommunicate OK [22:47:06]SAM_PROTO_GetShiftState done [22:47:06]FM_GetShiftState done [22:47:06]opened in 1710115571 [22:47:06]opened+sec_in_day 1710201971 [22:47:06]quantity*price = 20002 [22:47:06]sum+1 = 20003 [22:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 231 11.03.2024 22:47 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95056 ФПД: 166160084546106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T224707&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95056&fm=166160084546106&tin=02508201610067®Number=0000000000090555&sum=20000 [22:47:07]StoreToDocumentArchive [22:47:07]shift 326 fd 95056 [22:47:07]save to /storage/0326/doc_00095056 [22:47:07]save last doc name /storage/0326/doc_00095056 to /storage/kkm_last_doc_name [22:47:07]save OK [22:47:07]Clear old archive folders... [22:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:07]tlvbuf is 01A51F10 [22:47:07]SAM_PROTO_ClearQueue [22:47:07]wFMCommunicate request_size=4 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 09 00 00 [22:47:07]Write to MH i2c: E2 08 00 13 0F 80 09 00 00 00 00 00 00 94 [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [22:47:07]RAPDU: 90 00 [22:47:07]wFMCommunicate OK [22:47:07]SAM_PROTO_ClearQueue done [22:47:07]KKMCreateOFDPacket [22:47:07]OFDProtocolAddRootSTLVToBuf [22:47:07]FM_MakeSignedData [22:47:07]FM_MakeSignedData [22:47:07]SAM_PROTO_SignData [22:47:07]wFMCommunicate request_size=4 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 0D 01 02 [22:47:07]Write to MH i2c: E2 08 00 14 0F 80 0D 01 02 00 00 00 00 9C [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [22:47:07]RAPDU: 90 00 [22:47:07]wFMCommunicate OK [22:47:07]wFMCommunicate request_size=255 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 EB 89 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 73 01 00 35 04 06 00 97 [22:47:07]Write to MH i2c: E2 02 01 15 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 EB 89 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 73 01 00 35 04 06 00 97 00 00 66 [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [22:47:07]RAPDU: 90 00 [22:47:07]wFMCommunicate OK [22:47:07]wFMCommunicate request_size=10 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 0D 02 02 05 1F 28 D0 B2 3A [22:47:07]Write to MH i2c: E2 0D 00 16 0F 80 0D 02 02 05 00 1F 28 D0 B2 3A 00 00 AC [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 03 00 16 0F 00 90 00 99 [22:47:07]RAPDU: 90 00 [22:47:07]wFMCommunicate OK [22:47:07]wFMCommunicate request_size=4 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 0D 03 02 [22:47:07]Write to MH i2c: E2 08 00 17 0F 80 0D 03 02 00 00 00 00 A1 [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 0B 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 0B 00 17 0F 00 A7 D1 4E E8 5A 46 52 7D 90 00 BF [22:47:07]RAPDU: A7 D1 4E E8 5A 46 52 7D 90 00 [22:47:07]wFMCommunicate OK [22:47:07]SAM_PROTO_SignData done [22:47:07]FM_MakeSignedData done [22:47:07]CreateOFDProtocolMessage [22:47:07]wFMCommunicate request_size=4 [22:47:07]MH_SAM_APDU [22:47:07]CAPDU: 80 11 00 00 [22:47:07]Write to MH i2c: E2 08 00 18 0F 80 11 00 00 00 00 00 00 A1 [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:07]Read from MH i2c: E2 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 17 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: E2 17 00 18 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F1 [22:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:47:07]wFMCommunicate OK [22:47:07]CreateOFDProtocolMessage done [22:47:07]OFDSenderStorePacket 95056 [22:47:07]StoreOFDPacket docnum=95056 [22:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B5 70 07 01 93 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 EB 89 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 73 01 00 35 04 06 00 97 1F 28 D0 B2 3A A7 D1 4E E8 5A 46 52 7D [22:47:07]CheckFolder [22:47:07]dirname=/storage/ofd_packets [22:47:07]CheckFolder done [22:47:07]ProducePacketName [22:47:07]name=ofd_packets/00095056 [22:47:07]NVStorageSaveData ofd_packets/00095056 [22:47:07]File name is /storage/ofd_packets/00095056 [22:47:07]Write 301 bytes [22:47:07]NVStorageSaveData done [22:47:07]OFDSenderStorePacket done [22:47:07]KKMCreateOFDPacket done [22:47:07]NVStorageSaveData kkm_last_timestamp [22:47:07]File name is /storage/kkm_last_timestamp [22:47:07]Write 4 bytes [22:47:07]NVStorageSaveData done [22:47:07]ExternCall_PrintAddStr [22:47:07]wPrintStart [22:47:07]Write to MH i2c: 01 00 00 19 0F 28 [22:47:07]Write i2c OK [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: 01 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: 01 07 00 [22:47:07]MH_I2C_Read... [22:47:07]Read from MH i2c: 01 07 00 19 0F 00 80 00 00 00 FF 0F BD [22:47:07]RasterBufferAndPrint [22:47:07]line Счет N : (1)196017 [22:47:07]line ИНН: 02508201610067 [22:47:07]line Контрольно-Кассовый Чек [22:47:07]line ПРОДАЖА [22:47:07]line ТРК (МРК, ГНК) : 22 [22:47:07]line Товар: 2710124130 [22:47:07]line Аи-92-К-5 [22:47:07]line 3.180 * 62.90 [22:47:07]line = 200.02 [22:47:07]line НДС 12% НСП 1% [22:47:07]line > о реализуемом товаре [22:47:07]line ОКРУГЛЕНИЕ: -0.02 [22:47:07]line ИТОГО: 200.00 [22:47:07]line Внесено: 200.00 [22:47:07]line СДАЧА: 0.00 [22:47:07]line НСП 1% : 1.77 [22:47:07]line НДС 12% : 21.24 [22:47:07]line Наличными: 200.00 [22:47:07]line Безнал.: 0.00 [22:47:07]line Место: АЗС № 6 "Партнер Нефть" [22:47:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:47:07]line СНО: Общий режим [22:47:07]line Чек 231 11.03.2024 22:47 [22:47:07]line Смена: 326 ФФД: 1.0 [22:47:07]line ЗНМ: 0300000009 [22:47:07]line РНМ: 0000000000090555 [22:47:07]line Версия ККМ: 001 [22:47:07]line ФМ: 0000000000874811 [22:47:07]line ФД: 95056 [22:47:07]line ФПД: 166160084546106 [22:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T224707&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95056&fm=166160084546106&tin=02508201610067®Number=0000000000090555&sum=20000 [22:47:08]OFD Sender: Processing packet 95056 [packets to send 30, broken 29] [22:47:08]ProducePacketName [22:47:08]name=ofd_packets/00095056 [22:47:08]OFD Sender: To server: pG, [22:47:08]CommunicateWithHost lk.salyk.kg:30040 [22:47:08]ConnectInit lk.salyk.kg [22:47:08]written 0, free lines is 4095 [22:47:08]Connected sock=10 [22:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B5 70 07 01 93 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 EB 89 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 73 01 00 35 04 06 00 97 1F 28 D0 B2 3A A7 D1 4E E8 5A 46 52 7D [22:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B2 A6 47 00 25 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 31 31 10 04 04 00 50 73 01 00 F4 03 04 00 43 35 EF 65 B6 04 01 00 00 46 45 80 05 C0 5C 44 34 [22:47:08]CommunicateWithHost err = 0 [22:47:08]CheckOFDResponse [22:47:08]1017 (14) - 77093643461234 [22:47:08]1041 (16) - 0000000000874811 [22:47:08]1040 (4) - 95056 [22:47:08]1012 (4) - 11.03.2024 16:45 [22:47:08]1206 (1) - 0 [22:47:08]OFD Sender: Remove packet 95056 [22:47:08]ProducePacketName [22:47:08]name=ofd_packets/00095056 [22:47:08]NVStorageDeleteData [22:47:08]Write to MH i2c: 01 00 00 44 0F 53 [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: 01 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: 01 07 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: 01 07 00 44 0F 00 80 00 00 00 50 0D 37 [22:47:08]RasterBufferAndPrint [22:47:08]line [22:47:08]line [22:47:08]line [22:47:08]line [22:47:08]line [22:47:08]written 0, free lines is 3414 [22:47:08]process_action close_receipt done [22:47:08]requested_data is exist [22:47:08]produce_requested_data [22:47:08]requested_item fm.sn is exist - process it [22:47:08]wFMCommunicate request_size=4 [22:47:08]MH_SAM_APDU [22:47:08]CAPDU: 80 11 00 00 [22:47:08]Write to MH i2c: E2 08 00 4B 0F 80 11 00 00 00 00 00 00 D4 [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:08]Read from MH i2c: E2 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 17 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 17 00 4B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [22:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:47:08]wFMCommunicate OK [22:47:08]requested_item fd.num is exist - process it [22:47:08]SAM_PROTO_GetFieldsCounters [22:47:08]wFMCommunicate request_size=4 [22:47:08]MH_SAM_APDU [22:47:08]CAPDU: 80 13 00 00 [22:47:08]Write to MH i2c: E2 08 00 4C 0F 80 13 00 00 00 00 00 00 D7 [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:08]Read from MH i2c: E2 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 62 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 62 00 4C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 50 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [22:47: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 50 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:08]wFMCommunicate OK [22:47:08]SAM_PROTO_GetFieldsCounters done [22:47:08]requested_item shift.num is exist - process it [22:47:08]requested_item shift.opened is exist - process it [22:47:08]req_shift_opened [22:47:08]FM_GetShiftState [22:47:08]SAM_PROTO_GetShiftState [22:47:08]wFMCommunicate request_size=4 [22:47:08]MH_SAM_APDU [22:47:08]CAPDU: 80 13 01 00 [22:47:08]Write to MH i2c: E2 08 00 4D 0F 80 13 01 00 00 00 00 00 D9 [22:47:08]Write i2c OK [22:47:08]MH_I2C_Read... [22:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:08]Read from MH i2c: E2 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 0E 00 [22:47:08]MH_I2C_Read... [22:47:08]Read from MH i2c: E2 0E 00 4D 0F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 75 [22:47:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:47:08]wFMCommunicate OK [22:47:08]SAM_PROTO_GetShiftState done [22:47:08]FM_GetShiftState done [22:47:08]req_shift_opened done [22:47:08]requested_item shift.open_date is exist - process it [22:47:08]req_shift_open_date [22:47:08]req_shift_open_date done [22:47:08]produce_requested_data done [22:47:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95056,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:47:08]process_action_free close_receipt [22:47:08]json_value_free [22:47:08]json_value_free done [22:47:08]process_json_proto returns [22:47:08]Send response to host [22:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95056,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:47:08]free response buf [22:47:08]execute_script done [22:47:08]execute_script returns [22:47:08]free content buf [22:47:08]Sock 9.Close socket [22:47:08]Sock 9.Thread stoped [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:16]accept exits with 8 [22:51:16]New connection [22:51:16]New thread 3066957156 created [22:51:16]Thread 3066813796 joined [22:51:16]Waiting for new connection... [22:51:16] Sock 8.Parse request [22:51:16]Sock 8.Check first char [22:51:16]Sock 8.First char is OK [22:51:16]request: POST /json_proto HTTP/1.0 [22:51:16]Method: POST [22:51:16]URL: /json_proto [22:51:16]Method is POST - this is cgi request [22:51:16]url: /json_proto [22:51:16]query_string will be loaded in cgi processing [22:51:16]execute_cgi json_proto POST (null) [22:51:16]execute_cgi path=json_proto method=POST [22:51:16]POST find Content-Length [22:51:16]Host: 172.17.62.67:8080 [22:51:16]Content-Length: 1192 [22:51:16]Content-Type: application/json [22:51:16] [22:51:16]POST finish read [22:51:16]Found Content-Length = 1192 [22:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)196016\u000A11.03.2024 22:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 247.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 17512.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:16]execute_script... [22:51:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)196016\u000A11.03.2024 22:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 247.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 17512.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:16]POST & json_proto [22:51:16]process_json_proto [22:51:16]json parsed OK: [22:51:16]protocol is kg_v1.0 [22:51:16]action value=print_text [22:51:16]process_action print_text [22:51:16]cmd_print_text [22:51:16]ExternCall_PrintAddStr [22:51:16]wPrintStart [22:51:16]Write to MH i2c: 01 00 00 4E 0F 5D [22:51:16]Write i2c OK [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: 01 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: 01 07 00 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: 01 07 00 4E 0F 00 80 00 00 00 FF 0F F2 [22:51:16]RasterBufferAndPrint [22:51:16]line *****ТОВАРНЫЙ ЧЕК***** [22:51:16]line АЗС 6 [22:51:16]line Партнер нефть [22:51:16]line 02508201610067 [22:51:16]line Кассир : Карыбаев Б. [22:51:16]line Счет N : (1)196016 [22:51:16]line 11.03.2024 22:45 [22:51:16]line ПРОДАЖА [22:51:16]line ТРК (МРК, ГНК): 51 [22:51:16]line Вид ГСМ : 2710194210 [22:51:16]line ДТ-К-5 [22:51:16]line 247.000 x 70.90 [22:51:16]line ИТОГ: 17512.30 [22:51:16]line Тип оплаты: Талоны: Топливная Карта [22:51:16]line 74820 [22:51:16]line ______________________ [22:51:16]line (подпись) [22:51:16]written 0, free lines is 4095 [22:51:16]Write to MH i2c: 01 00 00 62 0F 71 [22:51:16]Write i2c OK [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: 01 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: 01 07 00 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: 01 07 00 62 0F 00 80 00 00 00 62 0E 68 [22:51:16]RasterBufferAndPrint [22:51:16]line [22:51:16]line [22:51:16]line [22:51:16]line [22:51:16]line [22:51:16]written 0, free lines is 3686 [22:51:16]process_action print_text done [22:51:16]requested_data is exist [22:51:16]produce_requested_data [22:51:16]requested_item fm.sn is exist - process it [22:51:16]wFMCommunicate request_size=4 [22:51:16]MH_SAM_APDU [22:51:16]CAPDU: 80 11 00 00 [22:51:16]Write to MH i2c: E2 08 00 69 0F 80 11 00 00 00 00 00 00 F2 [22:51:16]Write i2c OK [22:51:16]MH_I2C_Read... [22:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:16]Read from MH i2c: E2 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: E2 17 00 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: E2 17 00 69 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 42 [22:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:51:16]wFMCommunicate OK [22:51:16]requested_item fd.num is exist - process it [22:51:16]SAM_PROTO_GetFieldsCounters [22:51:16]wFMCommunicate request_size=4 [22:51:16]MH_SAM_APDU [22:51:16]CAPDU: 80 13 00 00 [22:51:16]Write to MH i2c: E2 08 00 6A 0F 80 13 00 00 00 00 00 00 F5 [22:51:16]Write i2c OK [22:51:16]MH_I2C_Read... [22:51:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:16]Read from MH i2c: E2 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: E2 62 00 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: E2 62 00 6A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 50 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [22:51: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 50 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:16]wFMCommunicate OK [22:51:16]SAM_PROTO_GetFieldsCounters done [22:51:16]requested_item shift.num is exist - process it [22:51:16]requested_item shift.opened is exist - process it [22:51:16]req_shift_opened [22:51:16]FM_GetShiftState [22:51:16]SAM_PROTO_GetShiftState [22:51:16]wFMCommunicate request_size=4 [22:51:16]MH_SAM_APDU [22:51:16]CAPDU: 80 13 01 00 [22:51:16]Write to MH i2c: E2 08 00 6B 0F 80 13 01 00 00 00 00 00 F7 [22:51:16]Write i2c OK [22:51:16]MH_I2C_Read... [22:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:16]Read from MH i2c: E2 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: E2 0E 00 [22:51:16]MH_I2C_Read... [22:51:16]Read from MH i2c: E2 0E 00 6B 0F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 93 [22:51:16]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:51:16]wFMCommunicate OK [22:51:16]SAM_PROTO_GetShiftState done [22:51:16]FM_GetShiftState done [22:51:16]req_shift_opened done [22:51:16]requested_item shift.open_date is exist - process it [22:51:16]req_shift_open_date [22:51:16]req_shift_open_date done [22:51:16]produce_requested_data done [22:51:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95056,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:51:16]process_action_free print_text [22:51:16]json_value_free [22:51:16]json_value_free done [22:51:16]process_json_proto returns [22:51:16]Send response to host [22:51:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95056,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:51:16]free response buf [22:51:16]execute_script done [22:51:16]execute_script returns [22:51:16]free content buf [22:51:16]Sock 8.Close socket [22:51:16]Sock 8.Thread stoped [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:51]accept exits with 9 [22:52:51]New connection [22:52:51]New thread 3066813796 created [22:52:51]Thread 3066957156 joined [22:52:51]Waiting for new connection... [22:52:51] Sock 9.Parse request [22:52:51]Sock 9.Check first char [22:52:51]Sock 9.First char is OK [22:52:51]request: POST /json_proto HTTP/1.0 [22:52:51]Method: POST [22:52:51]URL: /json_proto [22:52:51]Method is POST - this is cgi request [22:52:51]url: /json_proto [22:52:51]query_string will be loaded in cgi processing [22:52:51]execute_cgi json_proto POST (null) [22:52:51]execute_cgi path=json_proto method=POST [22:52:51]POST find Content-Length [22:52:51]Host: 172.17.62.67:8080 [22:52:51]Content-Length: 682 [22:52:51]Content-Type: application/json [22:52:51] [22:52:51]POST finish read [22:52:51]Found Content-Length = 682 [22:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:51]execute_script... [22:52: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)196018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:51]POST & json_proto [22:52:51]process_json_proto [22:52:51]json parsed OK: [22:52:51]protocol is kg_v1.0 [22:52:51]action value=close_receipt [22:52:51]process_action close_receipt [22:52:51]cmd_close_receipt [22:52:51]MH_GetDate [22:52:51]Write to MH i2c: F0 00 00 6C 0F 6A [22:52:51]Write i2c OK [22:52:51]MH_I2C_Read... [22:52:51]Read from MH i2c: F0 [22:52:51]MH_I2C_Read... [22:52:51]Read from MH i2c: F0 05 00 [22:52:51]MH_I2C_Read... [22:52:51]Read from MH i2c: F0 05 00 6C 0F 00 45 8B EF 65 93 [22:52:51]GetLastDocTimeStamp 1710197227 [22:52:51]current date 1710197573 [22:52:51]FM_GetShiftState [22:52:51]SAM_PROTO_GetShiftState [22:52:51]wFMCommunicate request_size=4 [22:52:51]MH_SAM_APDU [22:52:51]CAPDU: 80 13 01 00 [22:52:51]Write to MH i2c: E2 08 00 6D 0F 80 13 01 00 00 00 00 00 F9 [22:52:51]Write i2c OK [22:52:51]MH_I2C_Read... [22:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:51]Read from MH i2c: E2 [22:52:51]MH_I2C_Read... [22:52:51]Read from MH i2c: E2 0E 00 [22:52:51]MH_I2C_Read... [22:52:51]Read from MH i2c: E2 0E 00 6D 0F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 95 [22:52:51]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:52:51]wFMCommunicate OK [22:52:51]SAM_PROTO_GetShiftState done [22:52:51]FM_GetShiftState done [22:52:51]opened in 1710115571 [22:52:51]opened+sec_in_day 1710201971 [22:52:51]quantity*price = 100011 [22:52:51]sum+1 = 100012 [22:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 232 11.03.2024 22:52 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95057 ФПД: 90814774406955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225253&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95057&fm=90814774406955&tin=02508201610067®Number=0000000000090555&sum=100000 [22:52:52]StoreToDocumentArchive [22:52:52]shift 326 fd 95057 [22:52:52]save to /storage/0326/doc_00095057 [22:52:52]save last doc name /storage/0326/doc_00095057 to /storage/kkm_last_doc_name [22:52:52]save OK [22:52:52]Clear old archive folders... [22:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:52:52]tlvbuf is 01A4FA60 [22:52:52]SAM_PROTO_ClearQueue [22:52:52]wFMCommunicate request_size=4 [22:52:52]MH_SAM_APDU [22:52:52]CAPDU: 80 09 00 00 [22:52:52]Write to MH i2c: E2 08 00 7A 0F 80 09 00 00 00 00 00 00 FB [22:52:52]Write i2c OK [22:52:52]MH_I2C_Read... [22:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:52]Read from MH i2c: E2 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 03 00 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 03 00 7A 0F 00 90 00 FD [22:52:52]RAPDU: 90 00 [22:52:52]wFMCommunicate OK [22:52:52]SAM_PROTO_ClearQueue done [22:52:52]KKMCreateOFDPacket [22:52:52]OFDProtocolAddRootSTLVToBuf [22:52:52]FM_MakeSignedData [22:52:52]FM_MakeSignedData [22:52:52]SAM_PROTO_SignData [22:52:52]wFMCommunicate request_size=4 [22:52:52]MH_SAM_APDU [22:52:52]CAPDU: 80 0D 01 02 [22:52:52]Write to MH i2c: E2 08 00 7B 0F 80 0D 01 02 00 00 00 00 03 [22:52:52]Write i2c OK [22:52:52]MH_I2C_Read... [22:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:52]Read from MH i2c: E2 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 03 00 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 03 00 7B 0F 00 90 00 FE [22:52:52]RAPDU: 90 00 [22:52:52]wFMCommunicate OK [22:52:52]wFMCommunicate request_size=255 [22:52:52]MH_SAM_APDU [22:52:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 45 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 73 01 00 35 04 06 00 52 [22:52:52]Write to MH i2c: E2 02 01 7C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 45 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 73 01 00 35 04 06 00 52 00 00 15 [22:52:52]Write i2c OK [22:52:52]MH_I2C_Read... [22:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:52]Read from MH i2c: E2 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 03 00 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 03 00 7C 0F 00 90 00 FF [22:52:52]RAPDU: 90 00 [22:52:52]wFMCommunicate OK [22:52:52]wFMCommunicate request_size=10 [22:52:52]MH_SAM_APDU [22:52:52]CAPDU: 80 0D 02 02 05 98 76 5E 6F 2B [22:52:52]Write to MH i2c: E2 0D 00 7D 0F 80 0D 02 02 05 00 98 76 5E 6F 2B 00 00 16 [22:52:52]Write i2c OK [22:52:52]MH_I2C_Read... [22:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:52]Read from MH i2c: E2 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 03 00 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 03 00 7D 0F 00 90 00 00 [22:52:52]RAPDU: 90 00 [22:52:52]wFMCommunicate OK [22:52:52]wFMCommunicate request_size=4 [22:52:52]MH_SAM_APDU [22:52:52]CAPDU: 80 0D 03 02 [22:52:52]Write to MH i2c: E2 08 00 7E 0F 80 0D 03 02 00 00 00 00 08 [22:52:52]Write i2c OK [22:52:52]MH_I2C_Read... [22:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:52]Read from MH i2c: E2 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 0B 00 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 0B 00 7E 0F 00 B9 2C 09 F7 F8 ED D4 82 90 00 29 [22:52:52]RAPDU: B9 2C 09 F7 F8 ED D4 82 90 00 [22:52:52]wFMCommunicate OK [22:52:52]SAM_PROTO_SignData done [22:52:52]FM_MakeSignedData done [22:52:52]CreateOFDProtocolMessage [22:52:52]wFMCommunicate request_size=4 [22:52:52]MH_SAM_APDU [22:52:52]CAPDU: 80 11 00 00 [22:52:52]Write to MH i2c: E2 08 00 7F 0F 80 11 00 00 00 00 00 00 08 [22:52:52]Write i2c OK [22:52:52]MH_I2C_Read... [22:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:52]Read from MH i2c: E2 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 17 00 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: E2 17 00 7F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 58 [22:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:52:52]wFMCommunicate OK [22:52:52]CreateOFDProtocolMessage done [22:52:52]OFDSenderStorePacket 95057 [22:52:52]StoreOFDPacket docnum=95057 [22:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 1A 07 01 56 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 45 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 73 01 00 35 04 06 00 52 98 76 5E 6F 2B B9 2C 09 F7 F8 ED D4 82 [22:52:52]CheckFolder [22:52:52]dirname=/storage/ofd_packets [22:52:52]CheckFolder done [22:52:52]ProducePacketName [22:52:52]name=ofd_packets/00095057 [22:52:52]NVStorageSaveData ofd_packets/00095057 [22:52:52]File name is /storage/ofd_packets/00095057 [22:52:52]Write 301 bytes [22:52:52]NVStorageSaveData done [22:52:52]OFDSenderStorePacket done [22:52:52]KKMCreateOFDPacket done [22:52:52]NVStorageSaveData kkm_last_timestamp [22:52:52]File name is /storage/kkm_last_timestamp [22:52:52]Write 4 bytes [22:52:52]NVStorageSaveData done [22:52:52]OFD Sender: Processing packet 95057 [packets to send 30, broken 29] [22:52:52]ProducePacketName [22:52:52]name=ofd_packets/00095057 [22:52:52]OFD Sender: To server: pG, [22:52:52]CommunicateWithHost lk.salyk.kg:30040 [22:52:52]ConnectInit lk.salyk.kg [22:52:52]ExternCall_PrintAddStr [22:52:52]wPrintStart [22:52:52]Write to MH i2c: 01 00 00 80 0F 8F [22:52:52]Write i2c OK [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: 01 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: 01 07 00 [22:52:52]MH_I2C_Read... [22:52:52]Read from MH i2c: 01 07 00 80 0F 00 80 00 00 00 FF 0F 24 [22:52:52]RasterBufferAndPrint [22:52:52]line Счет N : (1)196018 [22:52:52]line ИНН: 02508201610067 [22:52:52]line Контрольно-Кассовый Чек [22:52:52]line ПРОДАЖА [22:52:52]line ТРК (МРК, ГНК) : 32 [22:52:52]line Товар: 2710124130 [22:52:52]line Аи-92-К-5 [22:52:52]line 15.900 * 62.90 [22:52:52]line = 1000.11 [22:52:52]line НДС 12% НСП 1% [22:52:52]line > о реализуемом товаре [22:52:52]line ОКРУГЛЕНИЕ: -0.11 [22:52:52]line ИТОГО: 1000.00 [22:52:52]line Внесено: 1000.00 [22:52:52]line СДАЧА: 0.00 [22:52:52]line НСП 1% : 8.85 [22:52:52]line НДС 12% : 106.21 [22:52:52]line Наличными: 1000.00 [22:52:52]line Безнал.: 0.00 [22:52:52]line Место: АЗС № 6 "Партнер Нефть" [22:52:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:52:52]line СНО: Общий режим [22:52:52]line Чек 232 11.03.2024 22:52 [22:52:52]line Смена: 326 ФФД: 1.0 [22:52:52]line ЗНМ: 0300000009 [22:52:52]line РНМ: 0000000000090555 [22:52:53]line Версия ККМ: 001 [22:52:53]line ФМ: 0000000000874811 [22:52:53]line ФД: 95057 [22:52:53]line ФПД: 90814774406955 [22:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225253&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95057&fm=90814774406955&tin=02508201610067®Number=0000000000090555&sum=100000 [22:52:53]Connected sock=11 [22:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 1A 07 01 56 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 45 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 73 01 00 35 04 06 00 52 98 76 5E 6F 2B B9 2C 09 F7 F8 ED D4 82 [22:52:53]written 0, free lines is 4095 [22:52:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 62 BF 47 00 8A 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 73 01 00 F4 03 04 00 9D 36 EF 65 B6 04 01 00 00 B8 EA 4D 20 52 48 AE F8 [22:52:53]CommunicateWithHost err = 0 [22:52:53]CheckOFDResponse [22:52:53]1017 (14) - 77093643461234 [22:52:53]1041 (16) - 0000000000874811 [22:52:53]1040 (4) - 95057 [22:52:53]1012 (4) - 11.03.2024 16:51 [22:52:53]1206 (1) - 0 [22:52:53]OFD Sender: Remove packet 95057 [22:52:53]ProducePacketName [22:52:53]name=ofd_packets/00095057 [22:52:53]NVStorageDeleteData [22:52:53]Write to MH i2c: 01 00 00 AB 0F BA [22:52:53]Write i2c OK [22:52:53]MH_I2C_Read... [22:52:53]Read from MH i2c: 01 [22:52:53]MH_I2C_Read... [22:52:53]Read from MH i2c: 01 07 00 [22:52:53]MH_I2C_Read... [22:52:53]Read from MH i2c: 01 07 00 AB 0F 00 80 00 00 00 52 0D A0 [22:52:53]RasterBufferAndPrint [22:52:53]line [22:52:53]line [22:52:53]line [22:52:53]line [22:52:53]line [22:52:53]written 0, free lines is 3414 [22:52:53]process_action close_receipt done [22:52:53]requested_data is exist [22:52:53]produce_requested_data [22:52:53]requested_item fm.sn is exist - process it [22:52:53]wFMCommunicate request_size=4 [22:52:53]MH_SAM_APDU [22:52:53]CAPDU: 80 11 00 00 [22:52:53]Write to MH i2c: E2 08 00 B2 0F 80 11 00 00 00 00 00 00 3B [22:52:53]Write i2c OK [22:52:53]MH_I2C_Read... [22:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:53]Read from MH i2c: E2 [22:52:53]MH_I2C_Read... [22:52:53]Read from MH i2c: E2 17 00 [22:52:53]MH_I2C_Read... [22:52:53]Read from MH i2c: E2 17 00 B2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8B [22:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:52:53]wFMCommunicate OK [22:52:53]requested_item fd.num is exist - process it [22:52:53]SAM_PROTO_GetFieldsCounters [22:52:53]wFMCommunicate request_size=4 [22:52:53]MH_SAM_APDU [22:52:53]CAPDU: 80 13 00 00 [22:52:53]Write to MH i2c: E2 08 00 B3 0F 80 13 00 00 00 00 00 00 3E [22:52:53]Write i2c OK [22:52:53]MH_I2C_Read... [22:52:53]OFD Sender: No OFD packet to send [22:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:53]Read from MH i2c: E2 [22:52:53]MH_I2C_Read... [22:52:53]Read from MH i2c: E2 62 00 [22:52:53]MH_I2C_Read... [22:52:53]Read from MH i2c: E2 62 00 B3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 51 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [22:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 51 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:53]wFMCommunicate OK [22:52:53]SAM_PROTO_GetFieldsCounters done [22:52:53]requested_item shift.num is exist - process it [22:52:53]requested_item shift.opened is exist - process it [22:52:53]req_shift_opened [22:52:53]FM_GetShiftState [22:52:53]SAM_PROTO_GetShiftState [22:52:53]wFMCommunicate request_size=4 [22:52:53]MH_SAM_APDU [22:52:53]CAPDU: 80 13 01 00 [22:52:53]Write to MH i2c: E2 08 00 B4 0F 80 13 01 00 00 00 00 00 40 [22:52:53]Write i2c OK [22:52:53]MH_I2C_Read... [22:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:54]Read from MH i2c: E2 [22:52:54]MH_I2C_Read... [22:52:54]Read from MH i2c: E2 0E 00 [22:52:54]MH_I2C_Read... [22:52:54]Read from MH i2c: E2 0E 00 B4 0F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DC [22:52:54]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:52:54]wFMCommunicate OK [22:52:54]SAM_PROTO_GetShiftState done [22:52:54]FM_GetShiftState done [22:52:54]req_shift_opened done [22:52:54]requested_item shift.open_date is exist - process it [22:52:54]req_shift_open_date [22:52:54]req_shift_open_date done [22:52:54]produce_requested_data done [22:52:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95057,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:52:54]process_action_free close_receipt [22:52:54]json_value_free [22:52:54]json_value_free done [22:52:54]process_json_proto returns [22:52:54]Send response to host [22:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95057,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:52:54]free response buf [22:52:54]execute_script done [22:52:54]execute_script returns [22:52:54]free content buf [22:52:54]Sock 9.Close socket [22:52:54]Sock 9.Thread stoped [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:22]accept exits with 8 [22:55:22]New connection [22:55:22]New thread 3066957156 created [22:55:22]Thread 3066813796 joined [22:55:22]Waiting for new connection... [22:55:22] Sock 8.Parse request [22:55:22]Sock 8.Check first char [22:55:22]Sock 8.First char is OK [22:55:22]request: POST /json_proto HTTP/1.0 [22:55:22]Method: POST [22:55:22]URL: /json_proto [22:55:22]Method is POST - this is cgi request [22:55:22]url: /json_proto [22:55:22]query_string will be loaded in cgi processing [22:55:22]execute_cgi json_proto POST (null) [22:55:22]execute_cgi path=json_proto method=POST [22:55:22]POST find Content-Length [22:55:22]Host: 172.17.62.67:8080 [22:55:22]Content-Length: 738 [22:55:22]Content-Type: application/json [22:55:22] [22:55:22]POST finish read [22:55:22]Found Content-Length = 738 [22:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95057, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:22]execute_script... [22:55:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95057, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:22]POST & json_proto [22:55:22]process_json_proto [22:55:22]json parsed OK: [22:55:22]protocol is kg_v1.0 [22:55:22]action value=close_receipt [22:55:22]process_action close_receipt [22:55:22]cmd_close_receipt [22:55:22]MH_GetDate [22:55:22]Write to MH i2c: F0 00 00 B5 0F B3 [22:55:22]Write i2c OK [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: F0 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: F0 05 00 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: F0 05 00 B5 0F 00 DC 8B EF 65 73 [22:55:22]GetLastDocTimeStamp 1710197573 [22:55:22]current date 1710197724 [22:55:22]FM_GetShiftState [22:55:22]SAM_PROTO_GetShiftState [22:55:22]wFMCommunicate request_size=4 [22:55:22]MH_SAM_APDU [22:55:22]CAPDU: 80 13 01 00 [22:55:22]Write to MH i2c: E2 08 00 B6 0F 80 13 01 00 00 00 00 00 42 [22:55:22]Write i2c OK [22:55:22]MH_I2C_Read... [22:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:22]Read from MH i2c: E2 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: E2 0E 00 [22:55:22]MH_I2C_Read... [22:55:22]Read from MH i2c: E2 0E 00 B6 0F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DE [22:55:22]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:55:22]wFMCommunicate OK [22:55:22]SAM_PROTO_GetShiftState done [22:55:22]FM_GetShiftState done [22:55:22]opened in 1710115571 [22:55:22]opened+sec_in_day 1710201971 [22:55:22]quantity*price = 100011 [22:55:22]sum+1 = 100012 [22:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 233 11.03.2024 22:55 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95057 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95058 ФПД: 48704936283913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225524&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95058&fm=48704936283913&tin=02508201610067®Number=0000000000090555&sum=100000 [22:55:23]StoreToDocumentArchive [22:55:23]shift 326 fd 95058 [22:55:23]save to /storage/0326/doc_00095058 [22:55:23]save last doc name /storage/0326/doc_00095058 to /storage/kkm_last_doc_name [22:55:23]save OK [22:55:23]Clear old archive folders... [22:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:55:23]tlvbuf is 01A213A0 [22:55:23]SAM_PROTO_ClearQueue [22:55:23]wFMCommunicate request_size=4 [22:55:23]MH_SAM_APDU [22:55:23]CAPDU: 80 09 00 00 [22:55:23]Write to MH i2c: E2 08 00 C5 0F 80 09 00 00 00 00 00 00 46 [22:55:23]Write i2c OK [22:55:23]MH_I2C_Read... [22:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:23]Read from MH i2c: E2 [22:55:23]MH_I2C_Read... [22:55:23]Read from MH i2c: E2 03 00 [22:55:23]MH_I2C_Read... [22:55:23]Read from MH i2c: E2 03 00 C5 0F 00 90 00 48 [22:55:23]RAPDU: 90 00 [22:55:23]wFMCommunicate OK [22:55:23]SAM_PROTO_ClearQueue done [22:55:23]KKMCreateOFDPacket [22:55:23]OFDProtocolAddRootSTLVToBuf [22:55:23]FM_MakeSignedData [22:55:23]FM_MakeSignedData [22:55:23]SAM_PROTO_SignData [22:55:23]wFMCommunicate request_size=4 [22:55:23]MH_SAM_APDU [22:55:23]CAPDU: 80 0D 01 02 [22:55:23]Write to MH i2c: E2 08 00 C6 0F 80 0D 01 02 00 00 00 00 4E [22:55:23]Write i2c OK [22:55:23]MH_I2C_Read... [22:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:23]Read from MH i2c: E2 [22:55:23]MH_I2C_Read... [22:55:23]Read from MH i2c: E2 03 00 [22:55:23]MH_I2C_Read... [22:55:23]Read from MH i2c: E2 03 00 C6 0F 00 90 00 49 [22:55:23]RAPDU: 90 00 [22:55:23]wFMCommunicate OK [22:55:23]wFMCommunicate request_size=255 [22:55:23]MH_SAM_APDU [22:55:23]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 DC 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 51 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [22:55:23]Write to MH i2c: E2 02 01 C7 0F 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 DC 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 51 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 08 [22:55:23]Write i2c OK [22:55:23]MH_I2C_Read... [22:55:24]OFD Sender: No OFD packet to send [22:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 03 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 03 00 C7 0F 00 90 00 4A [22:55:24]RAPDU: 90 00 [22:55:24]wFMCommunicate OK [22:55:24]wFMCommunicate request_size=38 [22:55:24]MH_SAM_APDU [22:55:24]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 73 01 00 35 04 06 00 2C 4C 00 6D 0F 09 [22:55:24]Write to MH i2c: E2 29 00 C8 0F 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 73 01 00 35 04 06 00 2C 4C 00 6D 0F 09 00 00 9A [22:55:24]Write i2c OK [22:55:24]MH_I2C_Read... [22:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 03 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 03 00 C8 0F 00 90 00 4B [22:55:24]RAPDU: 90 00 [22:55:24]wFMCommunicate OK [22:55:24]wFMCommunicate request_size=4 [22:55:24]MH_SAM_APDU [22:55:24]CAPDU: 80 0D 03 02 [22:55:24]Write to MH i2c: E2 08 00 C9 0F 80 0D 03 02 00 00 00 00 53 [22:55:24]Write i2c OK [22:55:24]MH_I2C_Read... [22:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 0B 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 0B 00 C9 0F 00 9E A3 1B 64 AF 15 AE C5 90 00 4B [22:55:24]RAPDU: 9E A3 1B 64 AF 15 AE C5 90 00 [22:55:24]wFMCommunicate OK [22:55:24]SAM_PROTO_SignData done [22:55:24]FM_MakeSignedData done [22:55:24]CreateOFDProtocolMessage [22:55:24]wFMCommunicate request_size=4 [22:55:24]MH_SAM_APDU [22:55:24]CAPDU: 80 11 00 00 [22:55:24]Write to MH i2c: E2 08 00 CA 0F 80 11 00 00 00 00 00 00 53 [22:55:24]Write i2c OK [22:55:24]MH_I2C_Read... [22:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:24]Read from MH i2c: E2 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 17 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: E2 17 00 CA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [22:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:55:24]wFMCommunicate OK [22:55:24]CreateOFDProtocolMessage done [22:55:24]OFDSenderStorePacket 95058 [22:55:24]StoreOFDPacket docnum=95058 [22:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 12 5A 23 01 E6 8C 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 DC 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 51 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 73 01 00 35 04 06 00 2C 4C 00 6D 0F 09 9E A3 1B 64 AF 15 AE C5 [22:55:24]CheckFolder [22:55:24]dirname=/storage/ofd_packets [22:55:24]CheckFolder done [22:55:24]ProducePacketName [22:55:24]name=ofd_packets/00095058 [22:55:24]NVStorageSaveData ofd_packets/00095058 [22:55:24]File name is /storage/ofd_packets/00095058 [22:55:24]Write 329 bytes [22:55:24]NVStorageSaveData done [22:55:24]OFDSenderStorePacket done [22:55:24]KKMCreateOFDPacket done [22:55:24]NVStorageSaveData kkm_last_timestamp [22:55:24]File name is /storage/kkm_last_timestamp [22:55:24]Write 4 bytes [22:55:24]NVStorageSaveData done [22:55:24]ExternCall_PrintAddStr [22:55:24]wPrintStart [22:55:24]Write to MH i2c: 01 00 00 CB 0F DA [22:55:24]Write i2c OK [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: 01 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: 01 07 00 [22:55:24]MH_I2C_Read... [22:55:24]Read from MH i2c: 01 07 00 CB 0F 00 80 00 00 00 FF 0F 6F [22:55:24]RasterBufferAndPrint [22:55:24]line Счет N : (1)196018 [22:55:24]line ИНН: 02508201610067 [22:55:24]line Контрольно-Кассовый Чек [22:55:24]line ВОЗВРАТ ПРОДАЖИ [22:55:24]line ТРК (МРК, ГНК) : 32 [22:55:24]line Товар: 2710124130 [22:55:24]line Аи-92-К-5 [22:55:24]line 15.900 * 62.90 [22:55:24]line = 1000.11 [22:55:24]line НДС 12% НСП 1% [22:55:24]line > о реализуемом товаре [22:55:24]line ОКРУГЛЕНИЕ: -0.11 [22:55:24]line ИТОГО: 1000.00 [22:55:24]line НСП 1% : 8.85 [22:55:24]line НДС 12% : 106.21 [22:55:24]line Наличными: 1000.00 [22:55:24]line Безнал.: 0.00 [22:55:24]line Место: АЗС № 6 "Партнер Нефть" [22:55:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:55:24]line СНО: Общий режим [22:55:24]line Чек 233 11.03.2024 22:55 [22:55:24]line Смена: 326 ФФД: 1.0 [22:55:24]line ЗНМ: 0300000009 [22:55:24]line РНМ: 0000000000090555 [22:55:24]line Версия ККМ: 001 [22:55:24]line ФД осн.: 95057 [22:55:24]line ФМ осн.: 0000000000874811 [22:55:24]line ФМ: 0000000000874811 [22:55:24]line ФД: 95058 [22:55:24]line ФПД: 48704936283913 [22:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225524&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95058&fm=48704936283913&tin=02508201610067®Number=0000000000090555&sum=100000 [22:55:24]OFD Sender: Processing packet 95058 [packets to send 30, broken 29] [22:55:24]ProducePacketName [22:55:24]name=ofd_packets/00095058 [22:55:24]OFD Sender: To server: pG, [22:55:24]CommunicateWithHost lk.salyk.kg:30040 [22:55:24]ConnectInit lk.salyk.kg [22:55:24]written 0, free lines is 4095 [22:55:24]Connected sock=10 [22:55: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 31 31 2B 01 00 00 12 5A 23 01 E6 8C 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 DC 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 51 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 73 01 00 35 04 06 00 2C 4C 00 6D 0F 09 9E A3 1B 64 AF 15 AE C5 [22:55: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 31 31 4F 00 00 00 32 98 47 00 DC 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 73 01 00 F4 03 04 00 34 37 EF 65 B6 04 01 00 00 0D CF 3F 19 0C 4B 59 93 [22:55:24]CommunicateWithHost err = 0 [22:55:24]CheckOFDResponse [22:55:24]1017 (14) - 77093643461234 [22:55:24]1041 (16) - 0000000000874811 [22:55:24]1040 (4) - 95058 [22:55:24]1012 (4) - 11.03.2024 16:54 [22:55:24]1206 (1) - 0 [22:55:24]OFD Sender: Remove packet 95058 [22:55:24]ProducePacketName [22:55:24]name=ofd_packets/00095058 [22:55:24]NVStorageDeleteData [22:55:25]Write to MH i2c: 01 00 00 F6 0F 05 [22:55:25]Write i2c OK [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: 01 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: 01 07 00 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: 01 07 00 F6 0F 00 80 00 00 00 6C 0D 05 [22:55:25]RasterBufferAndPrint [22:55:25]line [22:55:25]line [22:55:25]line [22:55:25]line [22:55:25]line [22:55:25]written 0, free lines is 3442 [22:55:25]process_action close_receipt done [22:55:25]requested_data is exist [22:55:25]produce_requested_data [22:55:25]requested_item fm.sn is exist - process it [22:55:25]wFMCommunicate request_size=4 [22:55:25]MH_SAM_APDU [22:55:25]CAPDU: 80 11 00 00 [22:55:25]Write to MH i2c: E2 08 00 FD 0F 80 11 00 00 00 00 00 00 86 [22:55:25]Write i2c OK [22:55:25]MH_I2C_Read... [22:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:25]Read from MH i2c: E2 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: E2 17 00 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: E2 17 00 FD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [22:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:55:25]wFMCommunicate OK [22:55:25]requested_item fd.num is exist - process it [22:55:25]SAM_PROTO_GetFieldsCounters [22:55:25]wFMCommunicate request_size=4 [22:55:25]MH_SAM_APDU [22:55:25]CAPDU: 80 13 00 00 [22:55:25]Write to MH i2c: E2 08 00 FE 0F 80 13 00 00 00 00 00 00 89 [22:55:25]Write i2c OK [22:55:25]MH_I2C_Read... [22:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:25]Read from MH i2c: E2 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: E2 62 00 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: E2 62 00 FE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 52 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [22:55:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 52 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:25]wFMCommunicate OK [22:55:25]SAM_PROTO_GetFieldsCounters done [22:55:25]requested_item shift.num is exist - process it [22:55:25]requested_item shift.opened is exist - process it [22:55:25]req_shift_opened [22:55:25]FM_GetShiftState [22:55:25]SAM_PROTO_GetShiftState [22:55:25]wFMCommunicate request_size=4 [22:55:25]MH_SAM_APDU [22:55:25]CAPDU: 80 13 01 00 [22:55:25]Write to MH i2c: E2 08 00 FF 0F 80 13 01 00 00 00 00 00 8B [22:55:25]Write i2c OK [22:55:25]MH_I2C_Read... [22:55:25]OFD Sender: No OFD packet to send [22:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:25]Read from MH i2c: E2 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: E2 0E 00 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: E2 0E 00 FF 0F 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 27 [22:55:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:55:25]wFMCommunicate OK [22:55:25]SAM_PROTO_GetShiftState done [22:55:25]FM_GetShiftState done [22:55:25]req_shift_opened done [22:55:25]requested_item shift.open_date is exist - process it [22:55:25]req_shift_open_date [22:55:25]req_shift_open_date done [22:55:25]produce_requested_data done [22:55:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95058,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:55:25]process_action_free close_receipt [22:55:25]json_value_free [22:55:25]json_value_free done [22:55:25]process_json_proto returns [22:55:25]Send response to host [22:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95058,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:55:25]free response buf [22:55:25]execute_script done [22:55:25]execute_script returns [22:55:25]free content buf [22:55:25]Sock 8.Close socket [22:55:25]Sock 8.Thread stoped [22:55:25]accept exits with 9 [22:55:25]New connection [22:55:25]New thread 3066813796 created [22:55:25]Thread 3066957156 joined [22:55:25]Waiting for new connection... [22:55:25] Sock 9.Parse request [22:55:25]Sock 9.Check first char [22:55:25]Sock 9.First char is OK [22:55:25]request: POST /json_proto HTTP/1.0 [22:55:25]Method: POST [22:55:25]URL: /json_proto [22:55:25]Method is POST - this is cgi request [22:55:25]url: /json_proto [22:55:25]query_string will be loaded in cgi processing [22:55:25]execute_cgi json_proto POST (null) [22:55:25]execute_cgi path=json_proto method=POST [22:55:25]POST find Content-Length [22:55:25]Host: 172.17.62.67:8080 [22:55:25]Content-Length: 675 [22:55:25]Content-Type: application/json [22:55:25] [22:55:25]POST finish read [22:55:25]Found Content-Length = 675 [22:55:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 0.200, "sum" : 12.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 12.00, "payments": [ { "type": 0, "sum" : 12.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:25]execute_script... [22:55: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)196018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 0.200, "sum" : 12.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 12.00, "payments": [ { "type": 0, "sum" : 12.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:25]POST & json_proto [22:55:25]process_json_proto [22:55:25]json parsed OK: [22:55:25]protocol is kg_v1.0 [22:55:25]action value=close_receipt [22:55:25]process_action close_receipt [22:55:25]cmd_close_receipt [22:55:25]MH_GetDate [22:55:25]Write to MH i2c: F0 00 00 00 10 FF [22:55:25]Write i2c OK [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: F0 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: F0 05 00 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: F0 05 00 00 10 00 DF 8B EF 65 C2 [22:55:25]GetLastDocTimeStamp 1710197724 [22:55:25]current date 1710197727 [22:55:25]FM_GetShiftState [22:55:25]SAM_PROTO_GetShiftState [22:55:25]wFMCommunicate request_size=4 [22:55:25]MH_SAM_APDU [22:55:25]CAPDU: 80 13 01 00 [22:55:25]Write to MH i2c: E2 08 00 01 10 80 13 01 00 00 00 00 00 8E [22:55:25]Write i2c OK [22:55:25]MH_I2C_Read... [22:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:25]Read from MH i2c: E2 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: E2 0E 00 [22:55:25]MH_I2C_Read... [22:55:25]Read from MH i2c: E2 0E 00 01 10 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 2A [22:55:25]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:55:25]wFMCommunicate OK [22:55:25]SAM_PROTO_GetShiftState done [22:55:25]FM_GetShiftState done [22:55:25]opened in 1710115571 [22:55:25]opened+sec_in_day 1710201971 [22:55:25]quantity*price = 1258 [22:55:25]sum+1 = 1259 [22:55:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 12.00 Внесено: 1000.00 СДАЧА: 988.00 НСП 1% : 0.11 НДС 12% : 1.34 Наличными: 12.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 234 11.03.2024 22:55 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95059 ФПД: 98673733291033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225527&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95059&fm=98673733291033&tin=02508201610067®Number=0000000000090555&sum=1200 [22:55:27]StoreToDocumentArchive [22:55:27]shift 326 fd 95059 [22:55:27]save to /storage/0326/doc_00095059 [22:55:27]save last doc name /storage/0326/doc_00095059 to /storage/kkm_last_doc_name [22:55:27]save OK [22:55:27]Clear old archive folders... [22:55:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:55:27]tlvbuf is 01A83F10 [22:55:27]SAM_PROTO_ClearQueue [22:55:27]wFMCommunicate request_size=4 [22:55:27]MH_SAM_APDU [22:55:27]CAPDU: 80 09 00 00 [22:55:27]Write to MH i2c: E2 08 00 0E 10 80 09 00 00 00 00 00 00 90 [22:55:27]Write i2c OK [22:55:27]MH_I2C_Read... [22:55:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:27]Read from MH i2c: E2 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 03 00 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 03 00 0E 10 00 90 00 92 [22:55:27]RAPDU: 90 00 [22:55:27]wFMCommunicate OK [22:55:27]SAM_PROTO_ClearQueue done [22:55:27]KKMCreateOFDPacket [22:55:27]OFDProtocolAddRootSTLVToBuf [22:55:27]FM_MakeSignedData [22:55:27]FM_MakeSignedData [22:55:27]SAM_PROTO_SignData [22:55:27]wFMCommunicate request_size=4 [22:55:27]MH_SAM_APDU [22:55:27]CAPDU: 80 0D 01 02 [22:55:27]Write to MH i2c: E2 08 00 0F 10 80 0D 01 02 00 00 00 00 98 [22:55:27]Write i2c OK [22:55:27]MH_I2C_Read... [22:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:27]Read from MH i2c: E2 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 03 00 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 03 00 0F 10 00 90 00 93 [22:55:27]RAPDU: 90 00 [22:55:27]wFMCommunicate OK [22:55:27]wFMCommunicate request_size=255 [22:55:27]MH_SAM_APDU [22:55:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 00 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EA 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 04 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 00 00 00 00 00 07 04 06 00 B0 04 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DF 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 73 01 00 35 04 06 00 59 [22:55:27]Write to MH i2c: E2 02 01 10 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 00 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EA 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 04 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 00 00 00 00 00 07 04 06 00 B0 04 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DF 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 73 01 00 35 04 06 00 59 00 00 06 [22:55:27]Write i2c OK [22:55:27]MH_I2C_Read... [22:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:27]Read from MH i2c: E2 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 03 00 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 03 00 10 10 00 90 00 94 [22:55:27]RAPDU: 90 00 [22:55:27]wFMCommunicate OK [22:55:27]wFMCommunicate request_size=10 [22:55:27]MH_SAM_APDU [22:55:27]CAPDU: 80 0D 02 02 05 BE 44 D2 4C 19 [22:55:27]Write to MH i2c: E2 0D 00 11 10 80 0D 02 02 05 00 BE 44 D2 4C 19 00 00 DE [22:55:27]Write i2c OK [22:55:27]MH_I2C_Read... [22:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:27]Read from MH i2c: E2 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 03 00 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 03 00 11 10 00 90 00 95 [22:55:27]RAPDU: 90 00 [22:55:27]wFMCommunicate OK [22:55:27]wFMCommunicate request_size=4 [22:55:27]MH_SAM_APDU [22:55:27]CAPDU: 80 0D 03 02 [22:55:27]Write to MH i2c: E2 08 00 12 10 80 0D 03 02 00 00 00 00 9D [22:55:27]Write i2c OK [22:55:27]MH_I2C_Read... [22:55:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:27]Read from MH i2c: E2 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 0B 00 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 0B 00 12 10 00 E1 67 0B FA E4 26 1A 1B 90 00 2A [22:55:27]RAPDU: E1 67 0B FA E4 26 1A 1B 90 00 [22:55:27]wFMCommunicate OK [22:55:27]SAM_PROTO_SignData done [22:55:27]FM_MakeSignedData done [22:55:27]CreateOFDProtocolMessage [22:55:27]wFMCommunicate request_size=4 [22:55:27]MH_SAM_APDU [22:55:27]CAPDU: 80 11 00 00 [22:55:27]Write to MH i2c: E2 08 00 13 10 80 11 00 00 00 00 00 00 9D [22:55:27]Write i2c OK [22:55:27]MH_I2C_Read... [22:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:27]Read from MH i2c: E2 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 17 00 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: E2 17 00 13 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 ED [22:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:55:27]wFMCommunicate OK [22:55:27]CreateOFDProtocolMessage done [22:55:27]OFDSenderStorePacket 95059 [22:55:27]StoreOFDPacket docnum=95059 [22:55:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F9 36 07 01 68 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 00 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EA 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 04 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 00 00 00 00 00 07 04 06 00 B0 04 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DF 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 73 01 00 35 04 06 00 59 BE 44 D2 4C 19 E1 67 0B FA E4 26 1A 1B [22:55:27]CheckFolder [22:55:27]dirname=/storage/ofd_packets [22:55:27]CheckFolder done [22:55:27]ProducePacketName [22:55:27]name=ofd_packets/00095059 [22:55:27]NVStorageSaveData ofd_packets/00095059 [22:55:27]File name is /storage/ofd_packets/00095059 [22:55:27]Write 301 bytes [22:55:27]NVStorageSaveData done [22:55:27]OFDSenderStorePacket done [22:55:27]KKMCreateOFDPacket done [22:55:27]NVStorageSaveData kkm_last_timestamp [22:55:27]File name is /storage/kkm_last_timestamp [22:55:27]Write 4 bytes [22:55:27]NVStorageSaveData done [22:55:27]ExternCall_PrintAddStr [22:55:27]wPrintStart [22:55:27]Write to MH i2c: 01 00 00 14 10 24 [22:55:27]Write i2c OK [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: 01 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: 01 07 00 [22:55:27]MH_I2C_Read... [22:55:27]Read from MH i2c: 01 07 00 14 10 00 80 00 00 00 FF 0F B9 [22:55:27]RasterBufferAndPrint [22:55:27]line Счет N : (1)196018 [22:55:27]line ИНН: 02508201610067 [22:55:27]line Контрольно-Кассовый Чек [22:55:27]line ПРОДАЖА [22:55:27]line ТРК (МРК, ГНК) : 32 [22:55:27]line Товар: 2710124130 [22:55:27]line Аи-92-К-5 [22:55:27]line 0.200 * 62.90 [22:55:27]line = 12.58 [22:55:27]line НДС 12% НСП 1% [22:55:27]line > о реализуемом товаре [22:55:27]line ОКРУГЛЕНИЕ: -0.58 [22:55:27]line ИТОГО: 12.00 [22:55:27]line Внесено: 1000.00 [22:55:27]line СДАЧА: 988.00 [22:55:27]line НСП 1% : 0.11 [22:55:27]line НДС 12% : 1.34 [22:55:27]line Наличными: 12.00 [22:55:27]line Безнал.: 0.00 [22:55:27]line Место: АЗС № 6 "Партнер Нефть" [22:55:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:55:27]line СНО: Общий режим [22:55:27]line Чек 234 11.03.2024 22:55 [22:55:27]line Смена: 326 ФФД: 1.0 [22:55:27]line ЗНМ: 0300000009 [22:55:27]line РНМ: 0000000000090555 [22:55:27]line Версия ККМ: 001 [22:55:27]line ФМ: 0000000000874811 [22:55:27]line ФД: 95059 [22:55:27]line ФПД: 98673733291033 [22:55:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225527&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95059&fm=98673733291033&tin=02508201610067®Number=0000000000090555&sum=1200 [22:55:28]OFD Sender: Processing packet 95059 [packets to send 30, broken 29] [22:55:28]ProducePacketName [22:55:28]name=ofd_packets/00095059 [22:55:28]written 0, free lines is 4095 [22:55:28]OFD Sender: To server: pG, [22:55:28]CommunicateWithHost lk.salyk.kg:30040 [22:55:28]ConnectInit lk.salyk.kg [22:55:28]Connected sock=10 [22:55: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 31 31 0F 01 00 00 F9 36 07 01 68 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 00 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 EA 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 04 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 00 00 00 00 00 07 04 06 00 B0 04 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 DF 8B EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 73 01 00 35 04 06 00 59 BE 44 D2 4C 19 E1 67 0B FA E4 26 1A 1B [22:55: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 31 31 4F 00 00 00 47 4B 47 00 5C 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 73 01 00 F4 03 04 00 38 37 EF 65 B6 04 01 00 00 52 A0 7A B2 D5 57 4D 6E [22:55:28]CommunicateWithHost err = 0 [22:55:28]CheckOFDResponse [22:55:28]1017 (14) - 77093643461234 [22:55:28]1041 (16) - 0000000000874811 [22:55:28]1040 (4) - 95059 [22:55:28]1012 (4) - 11.03.2024 16:54 [22:55:28]1206 (1) - 0 [22:55:28]OFD Sender: Remove packet 95059 [22:55:28]ProducePacketName [22:55:28]name=ofd_packets/00095059 [22:55:28]NVStorageDeleteData [22:55:28]Write to MH i2c: 01 00 00 3F 10 4F [22:55:28]Write i2c OK [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: 01 [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: 01 07 00 [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: 01 07 00 3F 10 00 80 00 00 00 54 0D 37 [22:55:28]RasterBufferAndPrint [22:55:28]line [22:55:28]line [22:55:28]line [22:55:28]line [22:55:28]line [22:55:28]written 0, free lines is 3426 [22:55:28]process_action close_receipt done [22:55:28]requested_data is exist [22:55:28]produce_requested_data [22:55:28]requested_item fm.sn is exist - process it [22:55:28]wFMCommunicate request_size=4 [22:55:28]MH_SAM_APDU [22:55:28]CAPDU: 80 11 00 00 [22:55:28]Write to MH i2c: E2 08 00 46 10 80 11 00 00 00 00 00 00 D0 [22:55:28]Write i2c OK [22:55:28]MH_I2C_Read... [22:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:28]Read from MH i2c: E2 [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: E2 17 00 [22:55:28]MH_I2C_Read... [22:55:28]Read from MH i2c: E2 17 00 46 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 20 [22:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:55:28]wFMCommunicate OK [22:55:28]requested_item fd.num is exist - process it [22:55:28]SAM_PROTO_GetFieldsCounters [22:55:28]wFMCommunicate request_size=4 [22:55:28]MH_SAM_APDU [22:55:28]CAPDU: 80 13 00 00 [22:55:28]Write to MH i2c: E2 08 00 47 10 80 13 00 00 00 00 00 00 D3 [22:55:28]Write i2c OK [22:55:28]MH_I2C_Read... [22:55:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:29]Read from MH i2c: E2 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 62 00 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 62 00 47 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 53 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [22:55: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 53 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:29]wFMCommunicate OK [22:55:29]SAM_PROTO_GetFieldsCounters done [22:55:29]requested_item shift.num is exist - process it [22:55:29]requested_item shift.opened is exist - process it [22:55:29]req_shift_opened [22:55:29]FM_GetShiftState [22:55:29]SAM_PROTO_GetShiftState [22:55:29]wFMCommunicate request_size=4 [22:55:29]MH_SAM_APDU [22:55:29]CAPDU: 80 13 01 00 [22:55:29]Write to MH i2c: E2 08 00 48 10 80 13 01 00 00 00 00 00 D5 [22:55:29]Write i2c OK [22:55:29]MH_I2C_Read... [22:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:29]OFD Sender: No OFD packet to send [22:55:29]Read from MH i2c: E2 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 0E 00 [22:55:29]MH_I2C_Read... [22:55:29]Read from MH i2c: E2 0E 00 48 10 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 71 [22:55:29]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:55:29]wFMCommunicate OK [22:55:29]SAM_PROTO_GetShiftState done [22:55:29]FM_GetShiftState done [22:55:29]req_shift_opened done [22:55:29]requested_item shift.open_date is exist - process it [22:55:29]req_shift_open_date [22:55:29]req_shift_open_date done [22:55:29]produce_requested_data done [22:55:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95059,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:55:29]process_action_free close_receipt [22:55:29]json_value_free [22:55:29]json_value_free done [22:55:29]process_json_proto returns [22:55:29]Send response to host [22:55:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95059,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:55:29]free response buf [22:55:29]execute_script done [22:55:29]execute_script returns [22:55:29]free content buf [22:55:29]Sock 9.Close socket [22:55:29]Sock 9.Thread stoped [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:13]accept exits with 8 [22:56:13]New connection [22:56:13]New thread 3066957156 created [22:56:13]Thread 3066813796 joined [22:56:13]Waiting for new connection... [22:56:13] Sock 8.Parse request [22:56:13]Sock 8.Check first char [22:56:13]Sock 8.First char is OK [22:56:13]request: POST /json_proto HTTP/1.0 [22:56:13]Method: POST [22:56:13]URL: /json_proto [22:56:13]Method is POST - this is cgi request [22:56:13]url: /json_proto [22:56:13]query_string will be loaded in cgi processing [22:56:13]execute_cgi json_proto POST (null) [22:56:13]execute_cgi path=json_proto method=POST [22:56:13]POST find Content-Length [22:56:13]Host: 172.17.62.67:8080 [22:56:13]Content-Length: 682 [22:56:13]Content-Type: application/json [22:56:13] [22:56:13]POST finish read [22:56:13]Found Content-Length = 682 [22:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:13]execute_script... [22:56: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)196019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:13]POST & json_proto [22:56:13]process_json_proto [22:56:13]json parsed OK: [22:56:13]protocol is kg_v1.0 [22:56:13]action value=close_receipt [22:56:13]process_action close_receipt [22:56:13]cmd_close_receipt [22:56:13]MH_GetDate [22:56:13]Write to MH i2c: F0 00 00 49 10 48 [22:56:13]Write i2c OK [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: F0 [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: F0 05 00 [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: F0 05 00 49 10 00 0F 8C EF 65 3C [22:56:13]GetLastDocTimeStamp 1710197727 [22:56:13]current date 1710197775 [22:56:13]FM_GetShiftState [22:56:13]SAM_PROTO_GetShiftState [22:56:13]wFMCommunicate request_size=4 [22:56:13]MH_SAM_APDU [22:56:13]CAPDU: 80 13 01 00 [22:56:13]Write to MH i2c: E2 08 00 4A 10 80 13 01 00 00 00 00 00 D7 [22:56:13]Write i2c OK [22:56:13]MH_I2C_Read... [22:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:13]Read from MH i2c: E2 [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: E2 0E 00 [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: E2 0E 00 4A 10 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 73 [22:56:13]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:56:13]wFMCommunicate OK [22:56:13]SAM_PROTO_GetShiftState done [22:56:13]FM_GetShiftState done [22:56:13]opened in 1710115571 [22:56:13]opened+sec_in_day 1710201971 [22:56:13]quantity*price = 100011 [22:56:13]sum+1 = 100012 [22:56:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 235 11.03.2024 22:56 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95060 ФПД: 10095645598831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225615&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95060&fm=10095645598831&tin=02508201610067®Number=0000000000090555&sum=100000 [22:56:15]StoreToDocumentArchive [22:56:15]shift 326 fd 95060 [22:56:15]save to /storage/0326/doc_00095060 [22:56:15]save last doc name /storage/0326/doc_00095060 to /storage/kkm_last_doc_name [22:56:15]save OK [22:56:15]Clear old archive folders... [22:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:15]tlvbuf is 01A529A0 [22:56:15]SAM_PROTO_ClearQueue [22:56:15]wFMCommunicate request_size=4 [22:56:15]MH_SAM_APDU [22:56:15]CAPDU: 80 09 00 00 [22:56:15]Write to MH i2c: E2 08 00 57 10 80 09 00 00 00 00 00 00 D9 [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:15]Read from MH i2c: E2 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 03 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 03 00 57 10 00 90 00 DB [22:56:15]RAPDU: 90 00 [22:56:15]wFMCommunicate OK [22:56:15]SAM_PROTO_ClearQueue done [22:56:15]KKMCreateOFDPacket [22:56:15]OFDProtocolAddRootSTLVToBuf [22:56:15]FM_MakeSignedData [22:56:15]FM_MakeSignedData [22:56:15]SAM_PROTO_SignData [22:56:15]wFMCommunicate request_size=4 [22:56:15]MH_SAM_APDU [22:56:15]CAPDU: 80 0D 01 02 [22:56:15]Write to MH i2c: E2 08 00 58 10 80 0D 01 02 00 00 00 00 E1 [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:15]Read from MH i2c: E2 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 03 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 03 00 58 10 00 90 00 DC [22:56:15]RAPDU: 90 00 [22:56:15]wFMCommunicate OK [22:56:15]wFMCommunicate request_size=255 [22:56:15]MH_SAM_APDU [22:56:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 0F 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 73 01 00 35 04 06 00 09 [22:56:15]Write to MH i2c: E2 02 01 59 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 0F 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 73 01 00 35 04 06 00 09 00 00 7B [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:15]Read from MH i2c: E2 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 03 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 03 00 59 10 00 90 00 DD [22:56:15]RAPDU: 90 00 [22:56:15]wFMCommunicate OK [22:56:15]wFMCommunicate request_size=10 [22:56:15]MH_SAM_APDU [22:56:15]CAPDU: 80 0D 02 02 05 2E 93 5E A4 6F [22:56:15]Write to MH i2c: E2 0D 00 5A 10 80 0D 02 02 05 00 2E 93 5E A4 6F 00 00 20 [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:15]Read from MH i2c: E2 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 03 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 03 00 5A 10 00 90 00 DE [22:56:15]RAPDU: 90 00 [22:56:15]wFMCommunicate OK [22:56:15]wFMCommunicate request_size=4 [22:56:15]MH_SAM_APDU [22:56:15]CAPDU: 80 0D 03 02 [22:56:15]Write to MH i2c: E2 08 00 5B 10 80 0D 03 02 00 00 00 00 E6 [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:15]Read from MH i2c: E2 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 0B 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 0B 00 5B 10 00 AE D0 B3 4D B2 D3 01 D5 90 00 C0 [22:56:15]RAPDU: AE D0 B3 4D B2 D3 01 D5 90 00 [22:56:15]wFMCommunicate OK [22:56:15]SAM_PROTO_SignData done [22:56:15]FM_MakeSignedData done [22:56:15]CreateOFDProtocolMessage [22:56:15]wFMCommunicate request_size=4 [22:56:15]MH_SAM_APDU [22:56:15]CAPDU: 80 11 00 00 [22:56:15]Write to MH i2c: E2 08 00 5C 10 80 11 00 00 00 00 00 00 E6 [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:15]Read from MH i2c: E2 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 17 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: E2 17 00 5C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 36 [22:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:56:15]wFMCommunicate OK [22:56:15]CreateOFDProtocolMessage done [22:56:15]OFDSenderStorePacket 95060 [22:56:15]StoreOFDPacket docnum=95060 [22:56:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 D8 1B 07 01 DE 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 0F 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 73 01 00 35 04 06 00 09 2E 93 5E A4 6F AE D0 B3 4D B2 D3 01 D5 [22:56:15]CheckFolder [22:56:15]dirname=/storage/ofd_packets [22:56:15]CheckFolder done [22:56:15]ProducePacketName [22:56:15]name=ofd_packets/00095060 [22:56:15]NVStorageSaveData ofd_packets/00095060 [22:56:15]File name is /storage/ofd_packets/00095060 [22:56:15]Write 301 bytes [22:56:15]NVStorageSaveData done [22:56:15]OFDSenderStorePacket done [22:56:15]KKMCreateOFDPacket done [22:56:15]NVStorageSaveData kkm_last_timestamp [22:56:15]File name is /storage/kkm_last_timestamp [22:56:15]Write 4 bytes [22:56:15]NVStorageSaveData done [22:56:15]ExternCall_PrintAddStr [22:56:15]wPrintStart [22:56:15]Write to MH i2c: 01 00 00 5D 10 6D [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 07 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 07 00 5D 10 00 80 00 00 00 FF 0F 02 [22:56:15]RasterBufferAndPrint [22:56:15]line Счет N : (1)196019 [22:56:15]line ИНН: 02508201610067 [22:56:15]line Контрольно-Кассовый Чек [22:56:15]line ПРОДАЖА [22:56:15]line ТРК (МРК, ГНК) : 32 [22:56:15]line Товар: 2710124130 [22:56:15]line Аи-92-К-5 [22:56:15]line 15.900 * 62.90 [22:56:15]line = 1000.11 [22:56:15]line НДС 12% НСП 1% [22:56:15]line > о реализуемом товаре [22:56:15]line ОКРУГЛЕНИЕ: -0.11 [22:56:15]line ИТОГО: 1000.00 [22:56:15]line Внесено: 1000.00 [22:56:15]line СДАЧА: 0.00 [22:56:15]line НСП 1% : 8.85 [22:56:15]line НДС 12% : 106.21 [22:56:15]line Наличными: 1000.00 [22:56:15]line Безнал.: 0.00 [22:56:15]line Место: АЗС № 6 "Партнер Нефть" [22:56:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:56:15]line СНО: Общий режим [22:56:15]line Чек 235 11.03.2024 22:56 [22:56:15]line Смена: 326 ФФД: 1.0 [22:56:15]line ЗНМ: 0300000009 [22:56:15]line РНМ: 0000000000090555 [22:56:15]line Версия ККМ: 001 [22:56:15]line ФМ: 0000000000874811 [22:56:15]line ФД: 95060 [22:56:15]line ФПД: 10095645598831 [22:56:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225615&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95060&fm=10095645598831&tin=02508201610067®Number=0000000000090555&sum=100000 [22:56:15]OFD Sender: Processing packet 95060 [packets to send 30, broken 29] [22:56:15]ProducePacketName [22:56:15]name=ofd_packets/00095060 [22:56:15]OFD Sender: To server: pG, [22:56:15]CommunicateWithHost lk.salyk.kg:30040 [22:56:15]ConnectInit lk.salyk.kg [22:56:15]written 0, free lines is 4095 [22:56:16]Connected sock=10 [22:56: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 31 31 0F 01 00 00 D8 1B 07 01 DE 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 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 0F 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 73 01 00 35 04 06 00 09 2E 93 5E A4 6F AE D0 B3 4D B2 D3 01 D5 [22:56: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 31 31 4F 00 00 00 DD FA 47 00 02 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 73 01 00 F4 03 04 00 67 37 EF 65 B6 04 01 00 00 74 5E A3 E0 8B 25 91 52 [22:56:16]CommunicateWithHost err = 0 [22:56:16]CheckOFDResponse [22:56:16]1017 (14) - 77093643461234 [22:56:16]1041 (16) - 0000000000874811 [22:56:16]1040 (4) - 95060 [22:56:16]1012 (4) - 11.03.2024 16:55 [22:56:16]1206 (1) - 0 [22:56:16]OFD Sender: Remove packet 95060 [22:56:16]ProducePacketName [22:56:16]name=ofd_packets/00095060 [22:56:16]NVStorageDeleteData [22:56:16]Write to MH i2c: 01 00 00 88 10 98 [22:56:16]Write i2c OK [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: 01 [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: 01 07 00 [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: 01 07 00 88 10 00 80 00 00 00 50 0D 7C [22:56:16]RasterBufferAndPrint [22:56:16]line [22:56:16]line [22:56:16]line [22:56:16]line [22:56:16]line [22:56:16]written 0, free lines is 3414 [22:56:16]process_action close_receipt done [22:56:16]requested_data is exist [22:56:16]produce_requested_data [22:56:16]requested_item fm.sn is exist - process it [22:56:16]wFMCommunicate request_size=4 [22:56:16]MH_SAM_APDU [22:56:16]CAPDU: 80 11 00 00 [22:56:16]Write to MH i2c: E2 08 00 8F 10 80 11 00 00 00 00 00 00 19 [22:56:16]Write i2c OK [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: E2 [22:56:16]MH_I2C_Read... [22:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:16]Read from MH i2c: E2 17 00 [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: E2 17 00 8F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [22:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:56:16]wFMCommunicate OK [22:56:16]requested_item fd.num is exist - process it [22:56:16]SAM_PROTO_GetFieldsCounters [22:56:16]wFMCommunicate request_size=4 [22:56:16]MH_SAM_APDU [22:56:16]CAPDU: 80 13 00 00 [22:56:16]Write to MH i2c: E2 08 00 90 10 80 13 00 00 00 00 00 00 1C [22:56:16]Write i2c OK [22:56:16]MH_I2C_Read... [22:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:16]Read from MH i2c: E2 [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: E2 62 00 [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: E2 62 00 90 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 54 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [22: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 54 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:16]wFMCommunicate OK [22:56:16]SAM_PROTO_GetFieldsCounters done [22:56:16]requested_item shift.num is exist - process it [22:56:16]requested_item shift.opened is exist - process it [22:56:16]req_shift_opened [22:56:16]FM_GetShiftState [22:56:16]SAM_PROTO_GetShiftState [22:56:16]wFMCommunicate request_size=4 [22:56:16]MH_SAM_APDU [22:56:16]CAPDU: 80 13 01 00 [22:56:16]Write to MH i2c: E2 08 00 91 10 80 13 01 00 00 00 00 00 1E [22:56:16]Write i2c OK [22:56:16]MH_I2C_Read... [22:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:16]OFD Sender: No OFD packet to send [22:56:16]Read from MH i2c: E2 [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: E2 0E 00 [22:56:16]MH_I2C_Read... [22:56:16]Read from MH i2c: E2 0E 00 91 10 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BA [22:56:16]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:56:16]wFMCommunicate OK [22:56:16]SAM_PROTO_GetShiftState done [22:56:16]FM_GetShiftState done [22:56:16]req_shift_opened done [22:56:16]requested_item shift.open_date is exist - process it [22:56:16]req_shift_open_date [22:56:16]req_shift_open_date done [22:56:16]produce_requested_data done [22:56:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95060,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:56:16]process_action_free close_receipt [22:56:16]json_value_free [22:56:16]json_value_free done [22:56:16]process_json_proto returns [22:56:16]Send response to host [22:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95060,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:56:16]free response buf [22:56:16]execute_script done [22:56:16]execute_script returns [22:56:16]free content buf [22:56:16]Sock 8.Close socket [22:56:16]Sock 8.Thread stoped [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:34]accept exits with 9 [22:56:34]New connection [22:56:34]New thread 3066813796 created [22:56:34]Thread 3066957156 joined [22:56:34]Waiting for new connection... [22:56:34] Sock 9.Parse request [22:56:34]Sock 9.Check first char [22:56:34]Sock 9.First char is OK [22:56:34]request: POST /json_proto HTTP/1.0 [22:56:34]Method: POST [22:56:34]URL: /json_proto [22:56:34]Method is POST - this is cgi request [22:56:34]url: /json_proto [22:56:34]query_string will be loaded in cgi processing [22:56:34]execute_cgi json_proto POST (null) [22:56:34]execute_cgi path=json_proto method=POST [22:56:34]POST find Content-Length [22:56:34]Host: 172.17.62.67:8080 [22:56:34]Content-Length: 738 [22:56:34]Content-Type: application/json [22:56:34] [22:56:34]POST finish read [22:56:34]Found Content-Length = 738 [22:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95060, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:34]execute_script... [22:56:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95060, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:34]POST & json_proto [22:56:34]process_json_proto [22:56:34]json parsed OK: [22:56:34]protocol is kg_v1.0 [22:56:34]action value=close_receipt [22:56:34]process_action close_receipt [22:56:34]cmd_close_receipt [22:56:34]MH_GetDate [22:56:34]Write to MH i2c: F0 00 00 92 10 91 [22:56:34]Write i2c OK [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: F0 [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: F0 05 00 [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: F0 05 00 92 10 00 24 8C EF 65 9A [22:56:34]GetLastDocTimeStamp 1710197775 [22:56:34]current date 1710197796 [22:56:34]FM_GetShiftState [22:56:34]SAM_PROTO_GetShiftState [22:56:34]wFMCommunicate request_size=4 [22:56:34]MH_SAM_APDU [22:56:34]CAPDU: 80 13 01 00 [22:56:34]Write to MH i2c: E2 08 00 93 10 80 13 01 00 00 00 00 00 20 [22:56:34]Write i2c OK [22:56:34]MH_I2C_Read... [22:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:34]Read from MH i2c: E2 [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: E2 0E 00 [22:56:34]MH_I2C_Read... [22:56:34]Read from MH i2c: E2 0E 00 93 10 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 BC [22:56:34]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:56:34]wFMCommunicate OK [22:56:34]SAM_PROTO_GetShiftState done [22:56:34]FM_GetShiftState done [22:56:34]opened in 1710115571 [22:56:34]opened+sec_in_day 1710201971 [22:56:34]quantity*price = 100011 [22:56:34]sum+1 = 100012 [22:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 236 11.03.2024 22:56 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95060 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95061 ФПД: 71853958997639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225636&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95061&fm=71853958997639&tin=02508201610067®Number=0000000000090555&sum=100000 [22:56:35]StoreToDocumentArchive [22:56:35]shift 326 fd 95061 [22:56:35]save to /storage/0326/doc_00095061 [22:56:35]save last doc name /storage/0326/doc_00095061 to /storage/kkm_last_doc_name [22:56:35]save OK [22:56:35]Clear old archive folders... [22:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:56:35]tlvbuf is 01A52860 [22:56:35]SAM_PROTO_ClearQueue [22:56:35]wFMCommunicate request_size=4 [22:56:35]MH_SAM_APDU [22:56:35]CAPDU: 80 09 00 00 [22:56:35]Write to MH i2c: E2 08 00 A2 10 80 09 00 00 00 00 00 00 24 [22:56:35]Write i2c OK [22:56:35]MH_I2C_Read... [22:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:36]Read from MH i2c: E2 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 03 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [22:56:36]RAPDU: 90 00 [22:56:36]wFMCommunicate OK [22:56:36]SAM_PROTO_ClearQueue done [22:56:36]KKMCreateOFDPacket [22:56:36]OFDProtocolAddRootSTLVToBuf [22:56:36]FM_MakeSignedData [22:56:36]FM_MakeSignedData [22:56:36]SAM_PROTO_SignData [22:56:36]wFMCommunicate request_size=4 [22:56:36]MH_SAM_APDU [22:56:36]CAPDU: 80 0D 01 02 [22:56:36]Write to MH i2c: E2 08 00 A3 10 80 0D 01 02 00 00 00 00 2C [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:36]Read from MH i2c: E2 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 03 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 03 00 A3 10 00 90 00 27 [22:56:36]RAPDU: 90 00 [22:56:36]wFMCommunicate OK [22:56:36]wFMCommunicate request_size=255 [22:56:36]MH_SAM_APDU [22:56:36]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 24 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 54 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [22:56:36]Write to MH i2c: E2 02 01 A4 10 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 24 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 54 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 35 [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:36]Read from MH i2c: E2 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 03 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 03 00 A4 10 00 90 00 28 [22:56:36]RAPDU: 90 00 [22:56:36]wFMCommunicate OK [22:56:36]wFMCommunicate request_size=38 [22:56:36]MH_SAM_APDU [22:56:36]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 73 01 00 35 04 06 00 41 59 CD B3 A6 87 [22:56:36]Write to MH i2c: E2 29 00 A5 10 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 73 01 00 35 04 06 00 41 59 CD B3 A6 87 00 00 C5 [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:36]Read from MH i2c: E2 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 03 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 03 00 A5 10 00 90 00 29 [22:56:36]RAPDU: 90 00 [22:56:36]wFMCommunicate OK [22:56:36]wFMCommunicate request_size=4 [22:56:36]MH_SAM_APDU [22:56:36]CAPDU: 80 0D 03 02 [22:56:36]Write to MH i2c: E2 08 00 A6 10 80 0D 03 02 00 00 00 00 31 [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:36]Read from MH i2c: E2 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 0B 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 0B 00 A6 10 00 11 89 B9 80 BC 55 F0 CC 90 00 D2 [22:56:36]RAPDU: 11 89 B9 80 BC 55 F0 CC 90 00 [22:56:36]wFMCommunicate OK [22:56:36]SAM_PROTO_SignData done [22:56:36]FM_MakeSignedData done [22:56:36]CreateOFDProtocolMessage [22:56:36]wFMCommunicate request_size=4 [22:56:36]MH_SAM_APDU [22:56:36]CAPDU: 80 11 00 00 [22:56:36]Write to MH i2c: E2 08 00 A7 10 80 11 00 00 00 00 00 00 31 [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:36]Read from MH i2c: E2 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 17 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: E2 17 00 A7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 81 [22:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:56:36]wFMCommunicate OK [22:56:36]CreateOFDProtocolMessage done [22:56:36]OFDSenderStorePacket 95061 [22:56:36]StoreOFDPacket docnum=95061 [22:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 B0 9D 23 01 02 6E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 24 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 54 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 73 01 00 35 04 06 00 41 59 CD B3 A6 87 11 89 B9 80 BC 55 F0 CC [22:56:36]CheckFolder [22:56:36]dirname=/storage/ofd_packets [22:56:36]CheckFolder done [22:56:36]ProducePacketName [22:56:36]name=ofd_packets/00095061 [22:56:36]NVStorageSaveData ofd_packets/00095061 [22:56:36]File name is /storage/ofd_packets/00095061 [22:56:36]Write 329 bytes [22:56:36]NVStorageSaveData done [22:56:36]OFDSenderStorePacket done [22:56:36]KKMCreateOFDPacket done [22:56:36]NVStorageSaveData kkm_last_timestamp [22:56:36]File name is /storage/kkm_last_timestamp [22:56:36]Write 4 bytes [22:56:36]NVStorageSaveData done [22:56:36]ExternCall_PrintAddStr [22:56:36]wPrintStart [22:56:36]Write to MH i2c: 01 00 00 A8 10 B8 [22:56:36]Write i2c OK [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 07 00 [22:56:36]MH_I2C_Read... [22:56:36]Read from MH i2c: 01 07 00 A8 10 00 80 00 00 00 FF 0F 4D [22:56:36]RasterBufferAndPrint [22:56:36]line Счет N : (1)196019 [22:56:36]line ИНН: 02508201610067 [22:56:36]line Контрольно-Кассовый Чек [22:56:36]line ВОЗВРАТ ПРОДАЖИ [22:56:36]line ТРК (МРК, ГНК) : 32 [22:56:36]line Товар: 2710124130 [22:56:36]line Аи-92-К-5 [22:56:36]line 15.900 * 62.90 [22:56:36]line = 1000.11 [22:56:36]line НДС 12% НСП 1% [22:56:36]line > о реализуемом товаре [22:56:36]line ОКРУГЛЕНИЕ: -0.11 [22:56:36]line ИТОГО: 1000.00 [22:56:36]line НСП 1% : 8.85 [22:56:36]line НДС 12% : 106.21 [22:56:36]line Наличными: 1000.00 [22:56:36]line Безнал.: 0.00 [22:56:36]line Место: АЗС № 6 "Партнер Нефть" [22:56:36]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:56:36]line СНО: Общий режим [22:56:36]line Чек 236 11.03.2024 22:56 [22:56:36]line Смена: 326 ФФД: 1.0 [22:56:36]line ЗНМ: 0300000009 [22:56:36]line РНМ: 0000000000090555 [22:56:36]line Версия ККМ: 001 [22:56:36]line ФД осн.: 95060 [22:56:36]line ФМ осн.: 0000000000874811 [22:56:36]line ФМ: 0000000000874811 [22:56:36]line ФД: 95061 [22:56:36]line ФПД: 71853958997639 [22:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225636&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95061&fm=71853958997639&tin=02508201610067®Number=0000000000090555&sum=100000 [22:56:36]written 0, free lines is 4095 [22:56:36]OFD Sender: Processing packet 95061 [packets to send 30, broken 29] [22:56:36]ProducePacketName [22:56:36]name=ofd_packets/00095061 [22:56:36]OFD Sender: To server: pG, [22:56:36]CommunicateWithHost lk.salyk.kg:30040 [22:56:36]ConnectInit lk.salyk.kg [22:56:36]Connected sock=10 [22:56:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 B0 9D 23 01 02 6E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 24 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 54 73 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 73 01 00 35 04 06 00 41 59 CD B3 A6 87 11 89 B9 80 BC 55 F0 CC [22:56:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 9A 22 47 00 DE FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 73 01 00 F4 03 04 00 7C 37 EF 65 B6 04 01 00 00 52 F5 06 B8 B6 99 BF EB [22:56:36]CommunicateWithHost err = 0 [22:56:36]CheckOFDResponse [22:56:36]1017 (14) - 77093643461234 [22:56:36]1041 (16) - 0000000000874811 [22:56:36]1040 (4) - 95061 [22:56:36]1012 (4) - 11.03.2024 16:55 [22:56:36]1206 (1) - 0 [22:56:36]OFD Sender: Remove packet 95061 [22:56:36]ProducePacketName [22:56:36]name=ofd_packets/00095061 [22:56:36]NVStorageDeleteData [22:56:37]Write to MH i2c: 01 00 00 D3 10 E3 [22:56:37]Write i2c OK [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: 01 [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: 01 07 00 [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: 01 07 00 D3 10 00 80 00 00 00 6E 0D E5 [22:56:37]RasterBufferAndPrint [22:56:37]line [22:56:37]line [22:56:37]line [22:56:37]line [22:56:37]line [22:56:37]written 0, free lines is 3444 [22:56:37]process_action close_receipt done [22:56:37]requested_data is exist [22:56:37]produce_requested_data [22:56:37]requested_item fm.sn is exist - process it [22:56:37]wFMCommunicate request_size=4 [22:56:37]MH_SAM_APDU [22:56:37]CAPDU: 80 11 00 00 [22:56:37]Write to MH i2c: E2 08 00 DA 10 80 11 00 00 00 00 00 00 64 [22:56:37]Write i2c OK [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: E2 [22:56:37]MH_I2C_Read... [22:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:37]Read from MH i2c: E2 17 00 [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: E2 17 00 DA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B4 [22:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:56:37]wFMCommunicate OK [22:56:37]requested_item fd.num is exist - process it [22:56:37]SAM_PROTO_GetFieldsCounters [22:56:37]wFMCommunicate request_size=4 [22:56:37]MH_SAM_APDU [22:56:37]CAPDU: 80 13 00 00 [22:56:37]Write to MH i2c: E2 08 00 DB 10 80 13 00 00 00 00 00 00 67 [22:56:37]Write i2c OK [22:56:37]MH_I2C_Read... [22:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:37]Read from MH i2c: E2 [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: E2 62 00 [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: E2 62 00 DB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 55 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [22:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 55 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:37]wFMCommunicate OK [22:56:37]SAM_PROTO_GetFieldsCounters done [22:56:37]requested_item shift.num is exist - process it [22:56:37]requested_item shift.opened is exist - process it [22:56:37]req_shift_opened [22:56:37]FM_GetShiftState [22:56:37]SAM_PROTO_GetShiftState [22:56:37]wFMCommunicate request_size=4 [22:56:37]MH_SAM_APDU [22:56:37]CAPDU: 80 13 01 00 [22:56:37]Write to MH i2c: E2 08 00 DC 10 80 13 01 00 00 00 00 00 69 [22:56:37]Write i2c OK [22:56:37]MH_I2C_Read... [22:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:37]Read from MH i2c: E2 [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: E2 0E 00 [22:56:37]MH_I2C_Read... [22:56:37]Read from MH i2c: E2 0E 00 DC 10 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 05 [22:56:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:56:37]wFMCommunicate OK [22:56:37]SAM_PROTO_GetShiftState done [22:56:37]FM_GetShiftState done [22:56:37]req_shift_opened done [22:56:37]requested_item shift.open_date is exist - process it [22:56:37]req_shift_open_date [22:56:37]req_shift_open_date done [22:56:37]produce_requested_data done [22:56:37]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95061,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:56:37]process_action_free close_receipt [22:56:37]json_value_free [22:56:37]json_value_free done [22:56:37]process_json_proto returns [22:56:37]Send response to host [22:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95061,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:56:37]free response buf [22:56:37]execute_script done [22:56:37]execute_script returns [22:56:37]free content buf [22:56:37]Sock 9.Close socket [22:56:37]Sock 9.Thread stoped [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:43]accept exits with 8 [22:56:43]New connection [22:56:43]New thread 3066957156 created [22:56:43]Thread 3066813796 joined [22:56:43]Waiting for new connection... [22:56:43] Sock 8.Parse request [22:56:43]Sock 8.Check first char [22:56:43]Sock 8.First char is OK [22:56:43]request: POST /json_proto HTTP/1.0 [22:56:43]Method: POST [22:56:43]URL: /json_proto [22:56:43]Method is POST - this is cgi request [22:56:43]url: /json_proto [22:56:43]query_string will be loaded in cgi processing [22:56:43]execute_cgi json_proto POST (null) [22:56:43]execute_cgi path=json_proto method=POST [22:56:43]POST find Content-Length [22:56:43]Host: 172.17.62.67:8080 [22:56:43]Content-Length: 682 [22:56:43]Content-Type: application/json [22:56:43] [22:56:43]POST finish read [22:56:43]Found Content-Length = 682 [22:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:43]execute_script... [22:56:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:43]POST & json_proto [22:56:43]process_json_proto [22:56:43]json parsed OK: [22:56:43]protocol is kg_v1.0 [22:56:43]action value=close_receipt [22:56:43]process_action close_receipt [22:56:43]cmd_close_receipt [22:56:43]MH_GetDate [22:56:43]Write to MH i2c: F0 00 00 DD 10 DC [22:56:43]Write i2c OK [22:56:43]MH_I2C_Read... [22:56:43]Read from MH i2c: F0 [22:56:43]MH_I2C_Read... [22:56:43]Read from MH i2c: F0 05 00 [22:56:43]MH_I2C_Read... [22:56:43]Read from MH i2c: F0 05 00 DD 10 00 2D 8C EF 65 EE [22:56:43]GetLastDocTimeStamp 1710197796 [22:56:43]current date 1710197805 [22:56:43]FM_GetShiftState [22:56:43]SAM_PROTO_GetShiftState [22:56:43]wFMCommunicate request_size=4 [22:56:43]MH_SAM_APDU [22:56:43]CAPDU: 80 13 01 00 [22:56:43]Write to MH i2c: E2 08 00 DE 10 80 13 01 00 00 00 00 00 6B [22:56:43]Write i2c OK [22:56:43]MH_I2C_Read... [22:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:43]Read from MH i2c: E2 [22:56:43]MH_I2C_Read... [22:56:43]Read from MH i2c: E2 0E 00 [22:56:43]MH_I2C_Read... [22:56:43]Read from MH i2c: E2 0E 00 DE 10 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 07 [22:56:43]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:56:43]wFMCommunicate OK [22:56:43]SAM_PROTO_GetShiftState done [22:56:43]FM_GetShiftState done [22:56:43]opened in 1710115571 [22:56:43]opened+sec_in_day 1710201971 [22:56:43]quantity*price = 100011 [22:56:43]sum+1 = 100012 [22:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 237 11.03.2024 22:56 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95062 ФПД: 99671990373796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225645&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95062&fm=99671990373796&tin=02508201610067®Number=0000000000090555&sum=100000 [22:56:44]StoreToDocumentArchive [22:56:44]shift 326 fd 95062 [22:56:44]save to /storage/0326/doc_00095062 [22:56:44]save last doc name /storage/0326/doc_00095062 to /storage/kkm_last_doc_name [22:56:44]save OK [22:56:44]Clear old archive folders... [22:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:44]tlvbuf is 01A4EE40 [22:56:44]SAM_PROTO_ClearQueue [22:56:44]wFMCommunicate request_size=4 [22:56:44]MH_SAM_APDU [22:56:44]CAPDU: 80 09 00 00 [22:56:44]Write to MH i2c: E2 08 00 EB 10 80 09 00 00 00 00 00 00 6D [22:56:44]Write i2c OK [22:56:44]MH_I2C_Read... [22:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:44]Read from MH i2c: E2 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 03 00 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 03 00 EB 10 00 90 00 6F [22:56:44]RAPDU: 90 00 [22:56:44]wFMCommunicate OK [22:56:44]SAM_PROTO_ClearQueue done [22:56:44]KKMCreateOFDPacket [22:56:44]OFDProtocolAddRootSTLVToBuf [22:56:44]FM_MakeSignedData [22:56:44]FM_MakeSignedData [22:56:44]SAM_PROTO_SignData [22:56:44]wFMCommunicate request_size=4 [22:56:44]MH_SAM_APDU [22:56:44]CAPDU: 80 0D 01 02 [22:56:44]Write to MH i2c: E2 08 00 EC 10 80 0D 01 02 00 00 00 00 75 [22:56:44]Write i2c OK [22:56:44]MH_I2C_Read... [22:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:44]Read from MH i2c: E2 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 03 00 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 03 00 EC 10 00 90 00 70 [22:56:44]RAPDU: 90 00 [22:56:44]wFMCommunicate OK [22:56:44]wFMCommunicate request_size=255 [22:56:44]MH_SAM_APDU [22:56:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 2D 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 73 01 00 35 04 06 00 5A [22:56:44]Write to MH i2c: E2 02 01 ED 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 2D 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 73 01 00 35 04 06 00 5A 00 00 82 [22:56:44]Write i2c OK [22:56:44]MH_I2C_Read... [22:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:44]Read from MH i2c: E2 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 03 00 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 03 00 ED 10 00 90 00 71 [22:56:44]RAPDU: 90 00 [22:56:44]wFMCommunicate OK [22:56:44]wFMCommunicate request_size=10 [22:56:44]MH_SAM_APDU [22:56:44]CAPDU: 80 0D 02 02 05 A6 B1 94 8D A4 [22:56:44]Write to MH i2c: E2 0D 00 EE 10 80 0D 02 02 05 00 A6 B1 94 8D A4 00 00 9E [22:56:44]Write i2c OK [22:56:44]MH_I2C_Read... [22:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:44]Read from MH i2c: E2 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 03 00 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 03 00 EE 10 00 90 00 72 [22:56:44]RAPDU: 90 00 [22:56:44]wFMCommunicate OK [22:56:44]wFMCommunicate request_size=4 [22:56:44]MH_SAM_APDU [22:56:44]CAPDU: 80 0D 03 02 [22:56:44]Write to MH i2c: E2 08 00 EF 10 80 0D 03 02 00 00 00 00 7A [22:56:44]Write i2c OK [22:56:44]MH_I2C_Read... [22:56:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:44]Read from MH i2c: E2 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 0B 00 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 0B 00 EF 10 00 EF 3E A8 E6 87 77 12 6D 90 00 B3 [22:56:44]RAPDU: EF 3E A8 E6 87 77 12 6D 90 00 [22:56:44]wFMCommunicate OK [22:56:44]SAM_PROTO_SignData done [22:56:44]FM_MakeSignedData done [22:56:44]CreateOFDProtocolMessage [22:56:44]wFMCommunicate request_size=4 [22:56:44]MH_SAM_APDU [22:56:44]CAPDU: 80 11 00 00 [22:56:44]Write to MH i2c: E2 08 00 F0 10 80 11 00 00 00 00 00 00 7A [22:56:44]Write i2c OK [22:56:44]MH_I2C_Read... [22:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:44]Read from MH i2c: E2 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 17 00 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: E2 17 00 F0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CA [22:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:56:44]wFMCommunicate OK [22:56:44]CreateOFDProtocolMessage done [22:56:44]OFDSenderStorePacket 95062 [22:56:44]StoreOFDPacket docnum=95062 [22:56:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BF 1C 07 01 09 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 2D 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 73 01 00 35 04 06 00 5A A6 B1 94 8D A4 EF 3E A8 E6 87 77 12 6D [22:56:44]CheckFolder [22:56:44]dirname=/storage/ofd_packets [22:56:44]CheckFolder done [22:56:44]ProducePacketName [22:56:44]name=ofd_packets/00095062 [22:56:44]NVStorageSaveData ofd_packets/00095062 [22:56:44]File name is /storage/ofd_packets/00095062 [22:56:44]Write 301 bytes [22:56:44]NVStorageSaveData done [22:56:44]OFDSenderStorePacket done [22:56:44]KKMCreateOFDPacket done [22:56:44]NVStorageSaveData kkm_last_timestamp [22:56:44]File name is /storage/kkm_last_timestamp [22:56:44]Write 4 bytes [22:56:44]NVStorageSaveData done [22:56:44]ExternCall_PrintAddStr [22:56:44]wPrintStart [22:56:44]Write to MH i2c: 01 00 00 F1 10 01 [22:56:44]Write i2c OK [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: 01 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: 01 07 00 [22:56:44]MH_I2C_Read... [22:56:44]Read from MH i2c: 01 07 00 F1 10 00 80 00 00 00 FF 0F 96 [22:56:44]RasterBufferAndPrint [22:56:44]line Счет N : (1)196020 [22:56:44]line ИНН: 02508201610067 [22:56:44]line Контрольно-Кассовый Чек [22:56:44]line ПРОДАЖА [22:56:44]line ТРК (МРК, ГНК) : 32 [22:56:44]line Товар: 2710124130 [22:56:44]line Аи-92-К-5 [22:56:44]line 15.900 * 62.90 [22:56:44]line = 1000.11 [22:56:44]line НДС 12% НСП 1% [22:56:44]line > о реализуемом товаре [22:56:44]line ОКРУГЛЕНИЕ: -0.11 [22:56:44]line ИТОГО: 1000.00 [22:56:44]line Внесено: 1000.00 [22:56:44]line СДАЧА: 0.00 [22:56:44]line НСП 1% : 8.85 [22:56:44]line НДС 12% : 106.21 [22:56:44]line Наличными: 1000.00 [22:56:44]line Безнал.: 0.00 [22:56:44]line Место: АЗС № 6 "Партнер Нефть" [22:56:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [22:56:44]line СНО: Общий режим [22:56:44]line Чек 237 11.03.2024 22:56 [22:56:44]line Смена: 326 ФФД: 1.0 [22:56:44]line ЗНМ: 0300000009 [22:56:44]line РНМ: 0000000000090555 [22:56:44]line Версия ККМ: 001 [22:56:44]line ФМ: 0000000000874811 [22:56:44]line ФД: 95062 [22:56:44]line ФПД: 99671990373796 [22:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T225645&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95062&fm=99671990373796&tin=02508201610067®Number=0000000000090555&sum=100000 [22:56:44]written 0, free lines is 4095 [22:56:44]OFD Sender: Processing packet 95062 [packets to send 30, broken 29] [22:56:44]ProducePacketName [22:56:44]name=ofd_packets/00095062 [22:56:44]OFD Sender: To server: pG, [22:56:44]CommunicateWithHost lk.salyk.kg:30040 [22:56:44]ConnectInit lk.salyk.kg [22:56:44]Connected sock=10 [22:56:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BF 1C 07 01 09 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 2D 8C EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 73 01 00 35 04 06 00 5A A6 B1 94 8D A4 EF 3E A8 E6 87 77 12 6D [22:56:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 33 1B 47 00 48 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 73 01 00 F4 03 04 00 84 37 EF 65 B6 04 01 00 00 EA 5C E3 BF 2C 50 6F 48 [22:56:45]CommunicateWithHost err = 0 [22:56:45]CheckOFDResponse [22:56:45]1017 (14) - 77093643461234 [22:56:45]1041 (16) - 0000000000874811 [22:56:45]1040 (4) - 95062 [22:56:45]1012 (4) - 11.03.2024 16:55 [22:56:45]1206 (1) - 0 [22:56:45]OFD Sender: Remove packet 95062 [22:56:45]ProducePacketName [22:56:45]name=ofd_packets/00095062 [22:56:45]NVStorageDeleteData [22:56:45]Write to MH i2c: 01 00 00 1C 11 2D [22:56:45]Write i2c OK [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: 01 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: 01 07 00 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: 01 07 00 1C 11 00 80 00 00 00 57 0D 18 [22:56:45]RasterBufferAndPrint [22:56:45]line [22:56:45]line [22:56:45]line [22:56:45]line [22:56:45]line [22:56:45]written 0, free lines is 3425 [22:56:45]process_action close_receipt done [22:56:45]requested_data is exist [22:56:45]produce_requested_data [22:56:45]requested_item fm.sn is exist - process it [22:56:45]wFMCommunicate request_size=4 [22:56:45]MH_SAM_APDU [22:56:45]CAPDU: 80 11 00 00 [22:56:45]Write to MH i2c: E2 08 00 23 11 80 11 00 00 00 00 00 00 AE [22:56:45]Write i2c OK [22:56:45]MH_I2C_Read... [22:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:45]Read from MH i2c: E2 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: E2 17 00 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: E2 17 00 23 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FE [22:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [22:56:45]wFMCommunicate OK [22:56:45]requested_item fd.num is exist - process it [22:56:45]SAM_PROTO_GetFieldsCounters [22:56:45]wFMCommunicate request_size=4 [22:56:45]MH_SAM_APDU [22:56:45]CAPDU: 80 13 00 00 [22:56:45]Write to MH i2c: E2 08 00 24 11 80 13 00 00 00 00 00 00 B1 [22:56:45]Write i2c OK [22:56:45]MH_I2C_Read... [22:56:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:45]Read from MH i2c: E2 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: E2 62 00 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: E2 62 00 24 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 56 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [22:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 56 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:45]wFMCommunicate OK [22:56:45]SAM_PROTO_GetFieldsCounters done [22:56:45]requested_item shift.num is exist - process it [22:56:45]requested_item shift.opened is exist - process it [22:56:45]req_shift_opened [22:56:45]FM_GetShiftState [22:56:45]SAM_PROTO_GetShiftState [22:56:45]wFMCommunicate request_size=4 [22:56:45]MH_SAM_APDU [22:56:45]CAPDU: 80 13 01 00 [22:56:45]Write to MH i2c: E2 08 00 25 11 80 13 01 00 00 00 00 00 B3 [22:56:45]Write i2c OK [22:56:45]MH_I2C_Read... [22:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:45]Read from MH i2c: E2 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: E2 0E 00 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: E2 0E 00 25 11 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4F [22:56:45]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [22:56:45]wFMCommunicate OK [22:56:45]SAM_PROTO_GetShiftState done [22:56:45]FM_GetShiftState done [22:56:45]req_shift_opened done [22:56:45]requested_item shift.open_date is exist - process it [22:56:45]req_shift_open_date [22:56:45]req_shift_open_date done [22:56:45]produce_requested_data done [22:56:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95062,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [22:56:45]process_action_free close_receipt [22:56:45]json_value_free [22:56:45]json_value_free done [22:56:45]process_json_proto returns [22:56:45]Send response to host [22:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95062,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [22:56:45]free response buf [22:56:45]execute_script done [22:56:45]execute_script returns [22:56:45]free content buf [22:56:45]Sock 8.Close socket [22:56:45]Sock 8.Thread stoped [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:05]accept exits with 9 [23:12:05]New connection [23:12:05]New thread 3066813796 created [23:12:05]Thread 3066957156 joined [23:12:05]Waiting for new connection... [23:12:05] Sock 9.Parse request [23:12:05]Sock 9.Check first char [23:12:05]Sock 9.First char is OK [23:12:05]request: POST /json_proto HTTP/1.0 [23:12:05]Method: POST [23:12:05]URL: /json_proto [23:12:05]Method is POST - this is cgi request [23:12:05]url: /json_proto [23:12:05]query_string will be loaded in cgi processing [23:12:05]execute_cgi json_proto POST (null) [23:12:05]execute_cgi path=json_proto method=POST [23:12:05]POST find Content-Length [23:12:05]Host: 172.17.62.67:8080 [23:12:05]Content-Length: 682 [23:12:05]Content-Type: application/json [23:12:05] [23:12:05]POST finish read [23:12:05]Found Content-Length = 682 [23:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 47.700, "sum" : 3000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:05]execute_script... [23:12: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)196021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 47.700, "sum" : 3000.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:05]POST & json_proto [23:12:05]process_json_proto [23:12:05]json parsed OK: [23:12:05]protocol is kg_v1.0 [23:12:05]action value=close_receipt [23:12:05]process_action close_receipt [23:12:05]cmd_close_receipt [23:12:05]MH_GetDate [23:12:05]Write to MH i2c: F0 00 00 26 11 26 [23:12:05]Write i2c OK [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: F0 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: F0 05 00 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: F0 05 00 26 11 00 C7 8F EF 65 D5 [23:12:05]GetLastDocTimeStamp 1710197805 [23:12:05]current date 1710198727 [23:12:05]FM_GetShiftState [23:12:05]SAM_PROTO_GetShiftState [23:12:05]wFMCommunicate request_size=4 [23:12:05]MH_SAM_APDU [23:12:05]CAPDU: 80 13 01 00 [23:12:05]Write to MH i2c: E2 08 00 27 11 80 13 01 00 00 00 00 00 B5 [23:12:05]Write i2c OK [23:12:05]MH_I2C_Read... [23:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:05]Read from MH i2c: E2 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: E2 0E 00 [23:12:05]MH_I2C_Read... [23:12:05]Read from MH i2c: E2 0E 00 27 11 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 51 [23:12:05]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:12:05]wFMCommunicate OK [23:12:05]SAM_PROTO_GetShiftState done [23:12:05]FM_GetShiftState done [23:12:05]opened in 1710115571 [23:12:05]opened+sec_in_day 1710201971 [23:12:05]quantity*price = 300033 [23:12:05]sum+1 = 300034 [23:12:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 238 11.03.2024 23:12 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95063 ФПД: 70683185885491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T231207&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95063&fm=70683185885491&tin=02508201610067®Number=0000000000090555&sum=300000 [23:12:06]StoreToDocumentArchive [23:12:06]shift 326 fd 95063 [23:12:06]save to /storage/0326/doc_00095063 [23:12:06]save last doc name /storage/0326/doc_00095063 to /storage/kkm_last_doc_name [23:12:06]save OK [23:12:06]Clear old archive folders... [23:12:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:06]tlvbuf is 01A065F0 [23:12:06]SAM_PROTO_ClearQueue [23:12:06]wFMCommunicate request_size=4 [23:12:06]MH_SAM_APDU [23:12:06]CAPDU: 80 09 00 00 [23:12:06]Write to MH i2c: E2 08 00 34 11 80 09 00 00 00 00 00 00 B7 [23:12:06]Write i2c OK [23:12:06]MH_I2C_Read... [23:12:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:06]Read from MH i2c: E2 [23:12:06]MH_I2C_Read... [23:12:06]Read from MH i2c: E2 03 00 [23:12:06]MH_I2C_Read... [23:12:06]Read from MH i2c: E2 03 00 34 11 00 90 00 B9 [23:12:06]RAPDU: 90 00 [23:12:06]wFMCommunicate OK [23:12:06]SAM_PROTO_ClearQueue done [23:12:06]KKMCreateOFDPacket [23:12:06]OFDProtocolAddRootSTLVToBuf [23:12:06]FM_MakeSignedData [23:12:06]FM_MakeSignedData [23:12:06]SAM_PROTO_SignData [23:12:06]wFMCommunicate request_size=4 [23:12:06]MH_SAM_APDU [23:12:06]CAPDU: 80 0D 01 02 [23:12:06]Write to MH i2c: E2 08 00 35 11 80 0D 01 02 00 00 00 00 BF [23:12:06]Write i2c OK [23:12:06]MH_I2C_Read... [23:12:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:06]Read from MH i2c: E2 [23:12:06]MH_I2C_Read... [23:12:06]Read from MH i2c: E2 03 00 [23:12:06]MH_I2C_Read... [23:12:06]Read from MH i2c: E2 03 00 35 11 00 90 00 BA [23:12:06]RAPDU: 90 00 [23:12:06]wFMCommunicate OK [23:12:06]wFMCommunicate request_size=255 [23:12:06]MH_SAM_APDU [23:12:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 BA 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 C7 8F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 73 01 00 35 04 06 00 40 [23:12:06]Write to MH i2c: E2 02 01 36 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 BA 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 C7 8F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 73 01 00 35 04 06 00 40 00 00 49 [23:12:06]Write i2c OK [23:12:06]MH_I2C_Read... [23:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:07]Read from MH i2c: E2 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 03 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 03 00 36 11 00 90 00 BB [23:12:07]RAPDU: 90 00 [23:12:07]wFMCommunicate OK [23:12:07]wFMCommunicate request_size=10 [23:12:07]MH_SAM_APDU [23:12:07]CAPDU: 80 0D 02 02 05 49 36 2F B1 33 [23:12:07]Write to MH i2c: E2 0D 00 37 11 80 0D 02 02 05 00 49 36 2F B1 33 00 00 5E [23:12:07]Write i2c OK [23:12:07]MH_I2C_Read... [23:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:07]Read from MH i2c: E2 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 03 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 03 00 37 11 00 90 00 BC [23:12:07]RAPDU: 90 00 [23:12:07]wFMCommunicate OK [23:12:07]wFMCommunicate request_size=4 [23:12:07]MH_SAM_APDU [23:12:07]CAPDU: 80 0D 03 02 [23:12:07]Write to MH i2c: E2 08 00 38 11 80 0D 03 02 00 00 00 00 C4 [23:12:07]Write i2c OK [23:12:07]MH_I2C_Read... [23:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:07]Read from MH i2c: E2 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 0B 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 0B 00 38 11 00 CB 4E F2 41 C4 AB 3B 4A 90 00 05 [23:12:07]RAPDU: CB 4E F2 41 C4 AB 3B 4A 90 00 [23:12:07]wFMCommunicate OK [23:12:07]SAM_PROTO_SignData done [23:12:07]FM_MakeSignedData done [23:12:07]CreateOFDProtocolMessage [23:12:07]wFMCommunicate request_size=4 [23:12:07]MH_SAM_APDU [23:12:07]CAPDU: 80 11 00 00 [23:12:07]Write to MH i2c: E2 08 00 39 11 80 11 00 00 00 00 00 00 C4 [23:12:07]Write i2c OK [23:12:07]MH_I2C_Read... [23:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:07]Read from MH i2c: E2 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 17 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: E2 17 00 39 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 14 [23:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:12:07]wFMCommunicate OK [23:12:07]CreateOFDProtocolMessage done [23:12:07]OFDSenderStorePacket 95063 [23:12:07]StoreOFDPacket docnum=95063 [23:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2C 70 07 01 54 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 BA 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 C7 8F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 73 01 00 35 04 06 00 40 49 36 2F B1 33 CB 4E F2 41 C4 AB 3B 4A [23:12:07]CheckFolder [23:12:07]dirname=/storage/ofd_packets [23:12:07]CheckFolder done [23:12:07]ProducePacketName [23:12:07]name=ofd_packets/00095063 [23:12:07]NVStorageSaveData ofd_packets/00095063 [23:12:07]File name is /storage/ofd_packets/00095063 [23:12:07]Write 301 bytes [23:12:07]NVStorageSaveData done [23:12:07]OFDSenderStorePacket done [23:12:07]KKMCreateOFDPacket done [23:12:07]NVStorageSaveData kkm_last_timestamp [23:12:07]File name is /storage/kkm_last_timestamp [23:12:07]Write 4 bytes [23:12:07]NVStorageSaveData done [23:12:07]ExternCall_PrintAddStr [23:12:07]wPrintStart [23:12:07]Write to MH i2c: 01 00 00 3A 11 4B [23:12:07]Write i2c OK [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: 01 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: 01 07 00 [23:12:07]MH_I2C_Read... [23:12:07]Read from MH i2c: 01 07 00 3A 11 00 80 00 00 00 FF 0F E0 [23:12:07]RasterBufferAndPrint [23:12:07]line Счет N : (1)196021 [23:12:07]line ИНН: 02508201610067 [23:12:07]line Контрольно-Кассовый Чек [23:12:07]line ПРОДАЖА [23:12:07]line ТРК (МРК, ГНК) : 22 [23:12:07]line Товар: 2710124130 [23:12:07]line Аи-92-К-5 [23:12:07]line 47.700 * 62.90 [23:12:07]line = 3000.33 [23:12:07]line НДС 12% НСП 1% [23:12:07]line > о реализуемом товаре [23:12:07]line ОКРУГЛЕНИЕ: -0.33 [23:12:07]line ИТОГО: 3000.00 [23:12:07]line Внесено: 3000.00 [23:12:07]line СДАЧА: 0.00 [23:12:07]line НСП 1% : 26.55 [23:12:07]line НДС 12% : 318.62 [23:12:07]line Наличными: 3000.00 [23:12:07]line Безнал.: 0.00 [23:12:07]line Место: АЗС № 6 "Партнер Нефть" [23:12:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:12:07]line СНО: Общий режим [23:12:07]line Чек 238 11.03.2024 23:12 [23:12:07]line Смена: 326 ФФД: 1.0 [23:12:07]line ЗНМ: 0300000009 [23:12:07]line РНМ: 0000000000090555 [23:12:07]line Версия ККМ: 001 [23:12:07]line ФМ: 0000000000874811 [23:12:07]line ФД: 95063 [23:12:07]line ФПД: 70683185885491 [23:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T231207&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95063&fm=70683185885491&tin=02508201610067®Number=0000000000090555&sum=300000 [23:12:07]OFD Sender: Processing packet 95063 [packets to send 30, broken 29] [23:12:07]ProducePacketName [23:12:07]name=ofd_packets/00095063 [23:12:07]OFD Sender: To server: pG, [23:12:07]CommunicateWithHost lk.salyk.kg:30040 [23:12:07]ConnectInit lk.salyk.kg [23:12:07]written 0, free lines is 4095 [23:12:07]Connected sock=10 [23:12: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 31 31 0F 01 00 00 2C 70 07 01 54 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 BA 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 C7 8F EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 73 01 00 35 04 06 00 40 49 36 2F B1 33 CB 4E F2 41 C4 AB 3B 4A [23:12: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 31 31 4F 00 00 00 25 D9 47 00 A6 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 73 01 00 F4 03 04 00 1F 3B EF 65 B6 04 01 00 00 20 FC 21 3E 29 13 68 46 [23:12:07]CommunicateWithHost err = 0 [23:12:07]CheckOFDResponse [23:12:07]1017 (14) - 77093643461234 [23:12:07]1041 (16) - 0000000000874811 [23:12:07]1040 (4) - 95063 [23:12:07]1012 (4) - 11.03.2024 17:10 [23:12:07]1206 (1) - 0 [23:12:07]OFD Sender: Remove packet 95063 [23:12:07]ProducePacketName [23:12:07]name=ofd_packets/00095063 [23:12:07]NVStorageDeleteData [23:12:08]Write to MH i2c: 01 00 00 65 11 76 [23:12:08]Write i2c OK [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: 01 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: 01 07 00 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: 01 07 00 65 11 00 80 00 00 00 4D 0D 57 [23:12:08]RasterBufferAndPrint [23:12:08]line [23:12:08]line [23:12:08]line [23:12:08]line [23:12:08]line [23:12:08]written 0, free lines is 3409 [23:12:08]process_action close_receipt done [23:12:08]requested_data is exist [23:12:08]produce_requested_data [23:12:08]requested_item fm.sn is exist - process it [23:12:08]wFMCommunicate request_size=4 [23:12:08]MH_SAM_APDU [23:12:08]CAPDU: 80 11 00 00 [23:12:08]Write to MH i2c: E2 08 00 6C 11 80 11 00 00 00 00 00 00 F7 [23:12:08]Write i2c OK [23:12:08]MH_I2C_Read... [23:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:08]Read from MH i2c: E2 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: E2 17 00 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: E2 17 00 6C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 47 [23:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:12:08]wFMCommunicate OK [23:12:08]requested_item fd.num is exist - process it [23:12:08]SAM_PROTO_GetFieldsCounters [23:12:08]wFMCommunicate request_size=4 [23:12:08]MH_SAM_APDU [23:12:08]CAPDU: 80 13 00 00 [23:12:08]Write to MH i2c: E2 08 00 6D 11 80 13 00 00 00 00 00 00 FA [23:12:08]Write i2c OK [23:12:08]MH_I2C_Read... [23:12:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:08]Read from MH i2c: E2 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: E2 62 00 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: E2 62 00 6D 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 57 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [23:12: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 57 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:08]wFMCommunicate OK [23:12:08]SAM_PROTO_GetFieldsCounters done [23:12:08]requested_item shift.num is exist - process it [23:12:08]requested_item shift.opened is exist - process it [23:12:08]req_shift_opened [23:12:08]FM_GetShiftState [23:12:08]SAM_PROTO_GetShiftState [23:12:08]wFMCommunicate request_size=4 [23:12:08]MH_SAM_APDU [23:12:08]CAPDU: 80 13 01 00 [23:12:08]Write to MH i2c: E2 08 00 6E 11 80 13 01 00 00 00 00 00 FC [23:12:08]Write i2c OK [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: E2 [23:12:08]MH_I2C_Read... [23:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:08]Read from MH i2c: E2 0E 00 [23:12:08]MH_I2C_Read... [23:12:08]Read from MH i2c: E2 0E 00 6E 11 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 98 [23:12:08]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:12:08]wFMCommunicate OK [23:12:08]SAM_PROTO_GetShiftState done [23:12:08]FM_GetShiftState done [23:12:08]req_shift_opened done [23:12:08]requested_item shift.open_date is exist - process it [23:12:08]req_shift_open_date [23:12:08]req_shift_open_date done [23:12:08]produce_requested_data done [23:12:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95063,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:12:08]process_action_free close_receipt [23:12:08]json_value_free [23:12:08]json_value_free done [23:12:08]process_json_proto returns [23:12:08]Send response to host [23:12:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95063,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:12:08]free response buf [23:12:08]execute_script done [23:12:08]execute_script returns [23:12:08]free content buf [23:12:08]Sock 9.Close socket [23:12:08]Sock 9.Thread stoped [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]accept exits with 8 [23:18:13]New connection [23:18:13]New thread 3066957156 created [23:18:13]Thread 3066813796 joined [23:18:13]Waiting for new connection... [23:18:13] Sock 8.Parse request [23:18:13]Sock 8.Check first char [23:18:13]Sock 8.First char is OK [23:18:13]request: POST /json_proto HTTP/1.0 [23:18:13]Method: POST [23:18:13]URL: /json_proto [23:18:13]Method is POST - this is cgi request [23:18:13]url: /json_proto [23:18:13]query_string will be loaded in cgi processing [23:18:13]execute_cgi json_proto POST (null) [23:18:13]execute_cgi path=json_proto method=POST [23:18:13]POST find Content-Length [23:18:13]Host: 172.17.62.67:8080 [23:18:13]Content-Length: 1193 [23:18:13]Content-Type: application/json [23:18:13] [23:18:13]POST finish read [23:18:13]Found Content-Length = 1193 [23:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)196022\u000A11.03.2024 23:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:13]execute_script... [23:18:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)196022\u000A11.03.2024 23:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:13]POST & json_proto [23:18:13]process_json_proto [23:18:13]json parsed OK: [23:18:13]protocol is kg_v1.0 [23:18:13]action value=print_text [23:18:13]process_action print_text [23:18:13]cmd_print_text [23:18:13]ExternCall_PrintAddStr [23:18:13]wPrintStart [23:18:13]Write to MH i2c: 01 00 00 6F 11 80 [23:18:13]Write i2c OK [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: 01 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: 01 07 00 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: 01 07 00 6F 11 00 80 00 00 00 FF 0F 15 [23:18:13]RasterBufferAndPrint [23:18:13]line *****ТОВАРНЫЙ ЧЕК***** [23:18:13]line АЗС 6 [23:18:13]line Партнер нефть [23:18:13]line 02508201610067 [23:18:13]line Кассир : Карыбаев Б. [23:18:13]line Счет N : (1)196022 [23:18:13]line 11.03.2024 23:12 [23:18:13]line ПРОДАЖА [23:18:13]line ТРК (МРК, ГНК): 31 [23:18:13]line Вид ГСМ : 2710124500 [23:18:13]line Аи-95-К-5 [23:18:13]line 40.000 x 69.50 [23:18:13]line ИТОГ: 2780.00 [23:18:13]line Тип оплаты: Талоны: Топливная Карта [23:18:13]line 24040 [23:18:13]line ______________________ [23:18:13]line (подпись) [23:18:13]written 0, free lines is 4095 [23:18:13]Write to MH i2c: 01 00 00 83 11 94 [23:18:13]Write i2c OK [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: 01 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: 01 07 00 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: 01 07 00 83 11 00 80 00 00 00 64 0E 8D [23:18:13]RasterBufferAndPrint [23:18:13]line [23:18:13]line [23:18:13]line [23:18:13]line [23:18:13]line [23:18:13]written 0, free lines is 3688 [23:18:13]process_action print_text done [23:18:13]requested_data is exist [23:18:13]produce_requested_data [23:18:13]requested_item fm.sn is exist - process it [23:18:13]wFMCommunicate request_size=4 [23:18:13]MH_SAM_APDU [23:18:13]CAPDU: 80 11 00 00 [23:18:13]Write to MH i2c: E2 08 00 8A 11 80 11 00 00 00 00 00 00 15 [23:18:13]Write i2c OK [23:18:13]MH_I2C_Read... [23:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:13]Read from MH i2c: E2 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: E2 17 00 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: E2 17 00 8A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 65 [23:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:18:13]wFMCommunicate OK [23:18:13]requested_item fd.num is exist - process it [23:18:13]SAM_PROTO_GetFieldsCounters [23:18:13]wFMCommunicate request_size=4 [23:18:13]MH_SAM_APDU [23:18:13]CAPDU: 80 13 00 00 [23:18:13]Write to MH i2c: E2 08 00 8B 11 80 13 00 00 00 00 00 00 18 [23:18:13]Write i2c OK [23:18:13]MH_I2C_Read... [23:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:13]Read from MH i2c: E2 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: E2 62 00 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: E2 62 00 8B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 57 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [23:18: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 57 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:13]wFMCommunicate OK [23:18:13]SAM_PROTO_GetFieldsCounters done [23:18:13]requested_item shift.num is exist - process it [23:18:13]requested_item shift.opened is exist - process it [23:18:13]req_shift_opened [23:18:13]FM_GetShiftState [23:18:13]SAM_PROTO_GetShiftState [23:18:13]wFMCommunicate request_size=4 [23:18:13]MH_SAM_APDU [23:18:13]CAPDU: 80 13 01 00 [23:18:13]Write to MH i2c: E2 08 00 8C 11 80 13 01 00 00 00 00 00 1A [23:18:13]Write i2c OK [23:18:13]MH_I2C_Read... [23:18:13]OFD Sender: No OFD packet to send [23:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:13]Read from MH i2c: E2 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: E2 0E 00 [23:18:13]MH_I2C_Read... [23:18:13]Read from MH i2c: E2 0E 00 8C 11 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B6 [23:18:13]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:18:13]wFMCommunicate OK [23:18:13]SAM_PROTO_GetShiftState done [23:18:13]FM_GetShiftState done [23:18:13]req_shift_opened done [23:18:13]requested_item shift.open_date is exist - process it [23:18:13]req_shift_open_date [23:18:13]req_shift_open_date done [23:18:13]produce_requested_data done [23:18:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95063,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:18:13]process_action_free print_text [23:18:13]json_value_free [23:18:13]json_value_free done [23:18:13]process_json_proto returns [23:18:13]Send response to host [23:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95063,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:18:13]free response buf [23:18:13]execute_script done [23:18:13]execute_script returns [23:18:13]free content buf [23:18:13]Sock 8.Close socket [23:18:13]Sock 8.Thread stoped [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:44]accept exits with 9 [23:20:44]New connection [23:20:44]New thread 3066813796 created [23:20:44]Thread 3066957156 joined [23:20:44]Waiting for new connection... [23:20:44] Sock 9.Parse request [23:20:44]Sock 9.Check first char [23:20:44]Sock 9.First char is OK [23:20:44]request: POST /json_proto HTTP/1.0 [23:20:44]Method: POST [23:20:44]URL: /json_proto [23:20:44]Method is POST - this is cgi request [23:20:44]url: /json_proto [23:20:44]query_string will be loaded in cgi processing [23:20:44]execute_cgi json_proto POST (null) [23:20:44]execute_cgi path=json_proto method=POST [23:20:44]POST find Content-Length [23:20:44]Host: 172.17.62.67:8080 [23:20:44]Content-Length: 677 [23:20:44]Content-Type: application/json [23:20:44] [23:20:44]POST finish read [23:20:44]Found Content-Length = 677 [23:20:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [23:20:44]execute_script... [23:20: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)196023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [23:20:44]POST & json_proto [23:20:44]process_json_proto [23:20:44]json parsed OK: [23:20:44]protocol is kg_v1.0 [23:20:44]action value=close_receipt [23:20:44]process_action close_receipt [23:20:44]cmd_close_receipt [23:20:44]MH_GetDate [23:20:44]Write to MH i2c: F0 00 00 8D 11 8D [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: F0 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: F0 05 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: F0 05 00 8D 11 00 CE 91 EF 65 45 [23:20:44]GetLastDocTimeStamp 1710198727 [23:20:44]current date 1710199246 [23:20:44]FM_GetShiftState [23:20:44]SAM_PROTO_GetShiftState [23:20:44]wFMCommunicate request_size=4 [23:20:44]MH_SAM_APDU [23:20:44]CAPDU: 80 13 01 00 [23:20:44]Write to MH i2c: E2 08 00 8E 11 80 13 01 00 00 00 00 00 1C [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:44]Read from MH i2c: E2 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 0E 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 0E 00 8E 11 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B8 [23:20:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:20:44]wFMCommunicate OK [23:20:44]SAM_PROTO_GetShiftState done [23:20:44]FM_GetShiftState done [23:20:44]opened in 1710115571 [23:20:44]opened+sec_in_day 1710201971 [23:20:44]quantity*price = 50005 [23:20:44]sum+1 = 50007 [23:20:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 239 11.03.2024 23:20 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95064 ФПД: 30879458210390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T232046&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95064&fm=30879458210390&tin=02508201610067®Number=0000000000090555&sum=50000 [23:20:45]StoreToDocumentArchive [23:20:45]shift 326 fd 95064 [23:20:45]save to /storage/0326/doc_00095064 [23:20:45]save last doc name /storage/0326/doc_00095064 to /storage/kkm_last_doc_name [23:20:45]save OK [23:20:45]Clear old archive folders... [23:20:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:45]tlvbuf is 01A6D690 [23:20:45]SAM_PROTO_ClearQueue [23:20:45]wFMCommunicate request_size=4 [23:20:45]MH_SAM_APDU [23:20:45]CAPDU: 80 09 00 00 [23:20:45]Write to MH i2c: E2 08 00 9B 11 80 09 00 00 00 00 00 00 1E [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:45]Read from MH i2c: E2 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [23:20:45]RAPDU: 90 00 [23:20:45]wFMCommunicate OK [23:20:45]SAM_PROTO_ClearQueue done [23:20:45]KKMCreateOFDPacket [23:20:45]OFDProtocolAddRootSTLVToBuf [23:20:45]FM_MakeSignedData [23:20:45]FM_MakeSignedData [23:20:45]SAM_PROTO_SignData [23:20:45]wFMCommunicate request_size=4 [23:20:45]MH_SAM_APDU [23:20:45]CAPDU: 80 0D 01 02 [23:20:45]Write to MH i2c: E2 08 00 9C 11 80 0D 01 02 00 00 00 00 26 [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 03 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [23:20:46]RAPDU: 90 00 [23:20:46]wFMCommunicate OK [23:20:46]wFMCommunicate request_size=255 [23:20:46]MH_SAM_APDU [23:20:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 CE 91 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 58 73 01 00 35 04 06 00 1C [23:20:46]Write to MH i2c: E2 02 01 9D 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 CE 91 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 58 73 01 00 35 04 06 00 1C 00 00 A0 [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 03 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 03 00 9D 11 00 90 00 22 [23:20:46]RAPDU: 90 00 [23:20:46]wFMCommunicate OK [23:20:46]wFMCommunicate request_size=10 [23:20:46]MH_SAM_APDU [23:20:46]CAPDU: 80 0D 02 02 05 15 AF 23 32 56 [23:20:46]Write to MH i2c: E2 0D 00 9E 11 80 0D 02 02 05 00 15 AF 23 32 56 00 00 A2 [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 03 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [23:20:46]RAPDU: 90 00 [23:20:46]wFMCommunicate OK [23:20:46]wFMCommunicate request_size=4 [23:20:46]MH_SAM_APDU [23:20:46]CAPDU: 80 0D 03 02 [23:20:46]Write to MH i2c: E2 08 00 9F 11 80 0D 03 02 00 00 00 00 2B [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 0B 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 0B 00 9F 11 00 02 32 C7 CD 22 02 0C 35 90 00 59 [23:20:46]RAPDU: 02 32 C7 CD 22 02 0C 35 90 00 [23:20:46]wFMCommunicate OK [23:20:46]SAM_PROTO_SignData done [23:20:46]FM_MakeSignedData done [23:20:46]CreateOFDProtocolMessage [23:20:46]wFMCommunicate request_size=4 [23:20:46]MH_SAM_APDU [23:20:46]CAPDU: 80 11 00 00 [23:20:46]Write to MH i2c: E2 08 00 A0 11 80 11 00 00 00 00 00 00 2B [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 17 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 17 00 A0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7B [23:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:20:46]wFMCommunicate OK [23:20:46]CreateOFDProtocolMessage done [23:20:46]OFDSenderStorePacket 95064 [23:20:46]StoreOFDPacket docnum=95064 [23:20:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CA E1 07 01 05 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 CE 91 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 58 73 01 00 35 04 06 00 1C 15 AF 23 32 56 02 32 C7 CD 22 02 0C 35 [23:20:46]CheckFolder [23:20:46]dirname=/storage/ofd_packets [23:20:46]CheckFolder done [23:20:46]ProducePacketName [23:20:46]name=ofd_packets/00095064 [23:20:46]NVStorageSaveData ofd_packets/00095064 [23:20:46]File name is /storage/ofd_packets/00095064 [23:20:46]Write 301 bytes [23:20:46]NVStorageSaveData done [23:20:46]OFDSenderStorePacket done [23:20:46]KKMCreateOFDPacket done [23:20:46]NVStorageSaveData kkm_last_timestamp [23:20:46]File name is /storage/kkm_last_timestamp [23:20:46]Write 4 bytes [23:20:46]NVStorageSaveData done [23:20:46]ExternCall_PrintAddStr [23:20:46]wPrintStart [23:20:46]Write to MH i2c: 01 00 00 A1 11 B2 [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 07 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 07 00 A1 11 00 80 00 00 00 FF 0F 47 [23:20:46]RasterBufferAndPrint [23:20:46]line Счет N : (1)196023 [23:20:46]line ИНН: 02508201610067 [23:20:46]line Контрольно-Кассовый Чек [23:20:46]line ПРОДАЖА [23:20:46]line ТРК (МРК, ГНК) : 22 [23:20:46]line Товар: 2710124130 [23:20:46]line Аи-92-К-5 [23:20:46]line 7.950 * 62.90 [23:20:46]line = 500.06 [23:20:46]line НДС 12% НСП 1% [23:20:46]line > о реализуемом товаре [23:20:46]line ОКРУГЛЕНИЕ: -0.06 [23:20:46]line ИТОГО: 500.00 [23:20:46]line Внесено: 500.00 [23:20:46]line СДАЧА: 0.00 [23:20:46]line НСП 1% : 4.42 [23:20:46]line НДС 12% : 53.10 [23:20:46]line Наличными: 500.00 [23:20:46]line Безнал.: 0.00 [23:20:46]line Место: АЗС № 6 "Партнер Нефть" [23:20:46]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:20:46]line СНО: Общий режим [23:20:46]line Чек 239 11.03.2024 23:20 [23:20:46]line Смена: 326 ФФД: 1.0 [23:20:46]line ЗНМ: 0300000009 [23:20:46]line РНМ: 0000000000090555 [23:20:46]line Версия ККМ: 001 [23:20:46]line ФМ: 0000000000874811 [23:20:46]line ФД: 95064 [23:20:46]line ФПД: 30879458210390 [23:20:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T232046&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95064&fm=30879458210390&tin=02508201610067®Number=0000000000090555&sum=50000 [23:20:46]OFD Sender: Processing packet 95064 [packets to send 30, broken 29] [23:20:46]ProducePacketName [23:20:46]name=ofd_packets/00095064 [23:20:46]OFD Sender: To server: pG, [23:20:46]CommunicateWithHost lk.salyk.kg:30040 [23:20:46]ConnectInit lk.salyk.kg [23:20:46]written 0, free lines is 4095 [23:20:46]Connected sock=10 [23:20: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 31 31 0F 01 00 00 CA E1 07 01 05 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 CE 91 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 58 73 01 00 35 04 06 00 1C 15 AF 23 32 56 02 32 C7 CD 22 02 0C 35 [23:20: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 31 31 4F 00 00 00 6A 03 47 00 85 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 31 31 10 04 04 00 58 73 01 00 F4 03 04 00 26 3D EF 65 B6 04 01 00 00 1E 5D 90 6F 68 56 16 29 [23:20:47]CommunicateWithHost err = 0 [23:20:47]CheckOFDResponse [23:20:47]1017 (14) - 77093643461234 [23:20:47]1041 (16) - 0000000000874811 [23:20:47]1040 (4) - 95064 [23:20:47]1012 (4) - 11.03.2024 17:19 [23:20:47]1206 (1) - 0 [23:20:47]OFD Sender: Remove packet 95064 [23:20:47]ProducePacketName [23:20:47]name=ofd_packets/00095064 [23:20:47]NVStorageDeleteData [23:20:47]Write to MH i2c: 01 00 00 CC 11 DD [23:20:47]Write i2c OK [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: 01 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: 01 07 00 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: 01 07 00 CC 11 00 80 00 00 00 49 0D BA [23:20:47]RasterBufferAndPrint [23:20:47]line [23:20:47]line [23:20:47]line [23:20:47]line [23:20:47]line [23:20:47]written 0, free lines is 3407 [23:20:47]process_action close_receipt done [23:20:47]requested_data is exist [23:20:47]produce_requested_data [23:20:47]requested_item fm.sn is exist - process it [23:20:47]wFMCommunicate request_size=4 [23:20:47]MH_SAM_APDU [23:20:47]CAPDU: 80 11 00 00 [23:20:47]Write to MH i2c: E2 08 00 D3 11 80 11 00 00 00 00 00 00 5E [23:20:47]Write i2c OK [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: E2 [23:20:47]MH_I2C_Read... [23:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:47]Read from MH i2c: E2 17 00 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: E2 17 00 D3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AE [23:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:20:47]wFMCommunicate OK [23:20:47]requested_item fd.num is exist - process it [23:20:47]SAM_PROTO_GetFieldsCounters [23:20:47]wFMCommunicate request_size=4 [23:20:47]MH_SAM_APDU [23:20:47]CAPDU: 80 13 00 00 [23:20:47]Write to MH i2c: E2 08 00 D4 11 80 13 00 00 00 00 00 00 61 [23:20:47]Write i2c OK [23:20:47]MH_I2C_Read... [23:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:47]Read from MH i2c: E2 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: E2 62 00 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: E2 62 00 D4 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 58 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [23:20:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 58 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:47]wFMCommunicate OK [23:20:47]SAM_PROTO_GetFieldsCounters done [23:20:47]requested_item shift.num is exist - process it [23:20:47]requested_item shift.opened is exist - process it [23:20:47]req_shift_opened [23:20:47]FM_GetShiftState [23:20:47]SAM_PROTO_GetShiftState [23:20:47]wFMCommunicate request_size=4 [23:20:47]MH_SAM_APDU [23:20:47]CAPDU: 80 13 01 00 [23:20:47]Write to MH i2c: E2 08 00 D5 11 80 13 01 00 00 00 00 00 63 [23:20:47]Write i2c OK [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: E2 [23:20:47]MH_I2C_Read... [23:20:47]OFD Sender: No OFD packet to send [23:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:47]Read from MH i2c: E2 0E 00 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: E2 0E 00 D5 11 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 FF [23:20:47]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:20:47]wFMCommunicate OK [23:20:47]SAM_PROTO_GetShiftState done [23:20:47]FM_GetShiftState done [23:20:47]req_shift_opened done [23:20:47]requested_item shift.open_date is exist - process it [23:20:47]req_shift_open_date [23:20:47]req_shift_open_date done [23:20:47]produce_requested_data done [23:20:47]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95064,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:20:47]process_action_free close_receipt [23:20:47]json_value_free [23:20:47]json_value_free done [23:20:47]process_json_proto returns [23:20:47]Send response to host [23:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95064,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:20:47]free response buf [23:20:47]execute_script done [23:20:47]execute_script returns [23:20:47]free content buf [23:20:47]Sock 9.Close socket [23:20:47]Sock 9.Thread stoped [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:51]accept exits with 8 [23:21:51]New connection [23:21:51]New thread 3066957156 created [23:21:51]Thread 3066813796 joined [23:21:51]Waiting for new connection... [23:21:51] Sock 8.Parse request [23:21:51]Sock 8.Check first char [23:21:51]Sock 8.First char is OK [23:21:51]request: POST /json_proto HTTP/1.0 [23:21:51]Method: POST [23:21:51]URL: /json_proto [23:21:51]Method is POST - this is cgi request [23:21:51]url: /json_proto [23:21:51]query_string will be loaded in cgi processing [23:21:51]execute_cgi json_proto POST (null) [23:21:51]execute_cgi path=json_proto method=POST [23:21:51]POST find Content-Length [23:21:51]Host: 172.17.62.67:8080 [23:21:51]Content-Length: 682 [23:21:51]Content-Type: application/json [23:21:51] [23:21:51]POST finish read [23:21:51]Found Content-Length = 682 [23:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:51]execute_script... [23:21:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:51]POST & json_proto [23:21:51]process_json_proto [23:21:51]json parsed OK: [23:21:51]protocol is kg_v1.0 [23:21:51]action value=close_receipt [23:21:51]process_action close_receipt [23:21:51]cmd_close_receipt [23:21:51]MH_GetDate [23:21:51]Write to MH i2c: F0 00 00 D6 11 D6 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: F0 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: F0 05 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: F0 05 00 D6 11 00 11 92 EF 65 D2 [23:21:51]GetLastDocTimeStamp 1710199246 [23:21:51]current date 1710199313 [23:21:51]FM_GetShiftState [23:21:51]SAM_PROTO_GetShiftState [23:21:51]wFMCommunicate request_size=4 [23:21:51]MH_SAM_APDU [23:21:51]CAPDU: 80 13 01 00 [23:21:51]Write to MH i2c: E2 08 00 D7 11 80 13 01 00 00 00 00 00 65 [23:21:51]Write i2c OK [23:21:51]MH_I2C_Read... [23:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:51]Read from MH i2c: E2 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 0E 00 [23:21:51]MH_I2C_Read... [23:21:51]Read from MH i2c: E2 0E 00 D7 11 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 01 [23:21:51]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:21:51]wFMCommunicate OK [23:21:51]SAM_PROTO_GetShiftState done [23:21:51]FM_GetShiftState done [23:21:51]opened in 1710115571 [23:21:51]opened+sec_in_day 1710201971 [23:21:51]quantity*price = 100011 [23:21:51]sum+1 = 100012 [23:21:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 240 11.03.2024 23:21 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95065 ФПД: 244057445473912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T232153&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95065&fm=244057445473912&tin=02508201610067®Number=0000000000090555&sum=100000 [23:21:52]StoreToDocumentArchive [23:21:52]shift 326 fd 95065 [23:21:52]save to /storage/0326/doc_00095065 [23:21:52]save last doc name /storage/0326/doc_00095065 to /storage/kkm_last_doc_name [23:21:52]save OK [23:21:52]Clear old archive folders... [23:21:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:21:52]tlvbuf is 01A61990 [23:21:52]SAM_PROTO_ClearQueue [23:21:52]wFMCommunicate request_size=4 [23:21:52]MH_SAM_APDU [23:21:52]CAPDU: 80 09 00 00 [23:21:52]Write to MH i2c: E2 08 00 E4 11 80 09 00 00 00 00 00 00 67 [23:21:52]Write i2c OK [23:21:52]MH_I2C_Read... [23:21:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:52]Read from MH i2c: E2 [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: E2 03 00 [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [23:21:52]RAPDU: 90 00 [23:21:52]wFMCommunicate OK [23:21:52]SAM_PROTO_ClearQueue done [23:21:52]KKMCreateOFDPacket [23:21:52]OFDProtocolAddRootSTLVToBuf [23:21:52]FM_MakeSignedData [23:21:52]FM_MakeSignedData [23:21:52]SAM_PROTO_SignData [23:21:52]wFMCommunicate request_size=4 [23:21:52]MH_SAM_APDU [23:21:52]CAPDU: 80 0D 01 02 [23:21:52]Write to MH i2c: E2 08 00 E5 11 80 0D 01 02 00 00 00 00 6F [23:21:52]Write i2c OK [23:21:52]MH_I2C_Read... [23:21:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:52]Read from MH i2c: E2 [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: E2 03 00 [23:21:52]MH_I2C_Read... [23:21:52]Read from MH i2c: E2 03 00 E5 11 00 90 00 6A [23:21:52]RAPDU: 90 00 [23:21:52]wFMCommunicate OK [23:21:52]wFMCommunicate request_size=255 [23:21:52]MH_SAM_APDU [23:21:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 11 92 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 73 01 00 35 04 06 00 DD [23:21:52]Write to MH i2c: E2 02 01 E6 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 11 92 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 73 01 00 35 04 06 00 DD 00 00 EF [23:21:52]Write i2c OK [23:21:52]MH_I2C_Read... [23:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:53]Read from MH i2c: E2 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 03 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 03 00 E6 11 00 90 00 6B [23:21:53]RAPDU: 90 00 [23:21:53]wFMCommunicate OK [23:21:53]wFMCommunicate request_size=10 [23:21:53]MH_SAM_APDU [23:21:53]CAPDU: 80 0D 02 02 05 F8 0D 57 9E 78 [23:21:53]Write to MH i2c: E2 0D 00 E7 11 80 0D 02 02 05 00 F8 0D 57 9E 78 00 00 EE [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:53]Read from MH i2c: E2 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 03 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [23:21:53]RAPDU: 90 00 [23:21:53]wFMCommunicate OK [23:21:53]wFMCommunicate request_size=4 [23:21:53]MH_SAM_APDU [23:21:53]CAPDU: 80 0D 03 02 [23:21:53]Write to MH i2c: E2 08 00 E8 11 80 0D 03 02 00 00 00 00 74 [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:53]Read from MH i2c: E2 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 0B 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 0B 00 E8 11 00 4D 05 FD 56 A1 C8 77 63 90 00 5D [23:21:53]RAPDU: 4D 05 FD 56 A1 C8 77 63 90 00 [23:21:53]wFMCommunicate OK [23:21:53]SAM_PROTO_SignData done [23:21:53]FM_MakeSignedData done [23:21:53]CreateOFDProtocolMessage [23:21:53]wFMCommunicate request_size=4 [23:21:53]MH_SAM_APDU [23:21:53]CAPDU: 80 11 00 00 [23:21:53]Write to MH i2c: E2 08 00 E9 11 80 11 00 00 00 00 00 00 74 [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:53]Read from MH i2c: E2 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 17 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: E2 17 00 E9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C4 [23:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:21:53]wFMCommunicate OK [23:21:53]CreateOFDProtocolMessage done [23:21:53]OFDSenderStorePacket 95065 [23:21:53]StoreOFDPacket docnum=95065 [23:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 54 08 07 01 EF 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 11 92 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 73 01 00 35 04 06 00 DD F8 0D 57 9E 78 4D 05 FD 56 A1 C8 77 63 [23:21:53]CheckFolder [23:21:53]dirname=/storage/ofd_packets [23:21:53]CheckFolder done [23:21:53]ProducePacketName [23:21:53]name=ofd_packets/00095065 [23:21:53]NVStorageSaveData ofd_packets/00095065 [23:21:53]File name is /storage/ofd_packets/00095065 [23:21:53]Write 301 bytes [23:21:53]NVStorageSaveData done [23:21:53]OFDSenderStorePacket done [23:21:53]KKMCreateOFDPacket done [23:21:53]NVStorageSaveData kkm_last_timestamp [23:21:53]File name is /storage/kkm_last_timestamp [23:21:53]Write 4 bytes [23:21:53]NVStorageSaveData done [23:21:53]ExternCall_PrintAddStr [23:21:53]wPrintStart [23:21:53]Write to MH i2c: 01 00 00 EA 11 FB [23:21:53]Write i2c OK [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: 01 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: 01 07 00 [23:21:53]MH_I2C_Read... [23:21:53]Read from MH i2c: 01 07 00 EA 11 00 80 00 00 00 FF 0F 90 [23:21:53]RasterBufferAndPrint [23:21:53]line Счет N : (1)196024 [23:21:53]line ИНН: 02508201610067 [23:21:53]line Контрольно-Кассовый Чек [23:21:53]line ПРОДАЖА [23:21:53]line ТРК (МРК, ГНК) : 12 [23:21:53]line Товар: 2710124130 [23:21:53]line Аи-92-К-5 [23:21:53]line 15.900 * 62.90 [23:21:53]line = 1000.11 [23:21:53]line НДС 12% НСП 1% [23:21:53]line > о реализуемом товаре [23:21:53]line ОКРУГЛЕНИЕ: -0.11 [23:21:53]line ИТОГО: 1000.00 [23:21:53]line Внесено: 1000.00 [23:21:53]line СДАЧА: 0.00 [23:21:53]line НСП 1% : 8.85 [23:21:53]line НДС 12% : 106.21 [23:21:53]line Наличными: 1000.00 [23:21:53]line Безнал.: 0.00 [23:21:53]line Место: АЗС № 6 "Партнер Нефть" [23:21:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:21:53]line СНО: Общий режим [23:21:53]line Чек 240 11.03.2024 23:21 [23:21:53]line Смена: 326 ФФД: 1.0 [23:21:53]line ЗНМ: 0300000009 [23:21:53]line РНМ: 0000000000090555 [23:21:53]line Версия ККМ: 001 [23:21:53]line ФМ: 0000000000874811 [23:21:53]line ФД: 95065 [23:21:53]line ФПД: 244057445473912 [23:21:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T232153&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95065&fm=244057445473912&tin=02508201610067®Number=0000000000090555&sum=100000 [23:21:53]OFD Sender: Processing packet 95065 [packets to send 30, broken 29] [23:21:53]ProducePacketName [23:21:53]name=ofd_packets/00095065 [23:21:53]OFD Sender: To server: pG, [23:21:53]CommunicateWithHost lk.salyk.kg:30040 [23:21:53]ConnectInit lk.salyk.kg [23:21:53]written 0, free lines is 4095 [23:21:53]Connected sock=10 [23:21:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 54 08 07 01 EF 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 11 92 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 73 01 00 35 04 06 00 DD F8 0D 57 9E 78 4D 05 FD 56 A1 C8 77 63 [23:21:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D5 AB 47 00 9E 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 31 31 10 04 04 00 59 73 01 00 F4 03 04 00 69 3D EF 65 B6 04 01 00 00 72 3E D9 C7 12 B7 4D E6 [23:21:53]CommunicateWithHost err = 0 [23:21:53]CheckOFDResponse [23:21:53]1017 (14) - 77093643461234 [23:21:53]1041 (16) - 0000000000874811 [23:21:53]1040 (4) - 95065 [23:21:53]1012 (4) - 11.03.2024 17:20 [23:21:53]1206 (1) - 0 [23:21:53]OFD Sender: Remove packet 95065 [23:21:53]ProducePacketName [23:21:53]name=ofd_packets/00095065 [23:21:53]NVStorageDeleteData [23:21:54]Write to MH i2c: 01 00 00 15 12 27 [23:21:54]Write i2c OK [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: 01 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: 01 07 00 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: 01 07 00 15 12 00 80 00 00 00 47 0D 02 [23:21:54]RasterBufferAndPrint [23:21:54]line [23:21:54]line [23:21:54]line [23:21:54]line [23:21:54]line [23:21:54]written 0, free lines is 3405 [23:21:54]process_action close_receipt done [23:21:54]requested_data is exist [23:21:54]produce_requested_data [23:21:54]requested_item fm.sn is exist - process it [23:21:54]wFMCommunicate request_size=4 [23:21:54]MH_SAM_APDU [23:21:54]CAPDU: 80 11 00 00 [23:21:54]Write to MH i2c: E2 08 00 1C 12 80 11 00 00 00 00 00 00 A8 [23:21:54]Write i2c OK [23:21:54]MH_I2C_Read... [23:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:54]Read from MH i2c: E2 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 17 00 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 17 00 1C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [23:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:21:54]wFMCommunicate OK [23:21:54]requested_item fd.num is exist - process it [23:21:54]SAM_PROTO_GetFieldsCounters [23:21:54]wFMCommunicate request_size=4 [23:21:54]MH_SAM_APDU [23:21:54]CAPDU: 80 13 00 00 [23:21:54]Write to MH i2c: E2 08 00 1D 12 80 13 00 00 00 00 00 00 AB [23:21:54]Write i2c OK [23:21:54]MH_I2C_Read... [23:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:54]Read from MH i2c: E2 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 62 00 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 62 00 1D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 59 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [23:21: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 59 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:54]wFMCommunicate OK [23:21:54]SAM_PROTO_GetFieldsCounters done [23:21:54]requested_item shift.num is exist - process it [23:21:54]requested_item shift.opened is exist - process it [23:21:54]req_shift_opened [23:21:54]FM_GetShiftState [23:21:54]SAM_PROTO_GetShiftState [23:21:54]wFMCommunicate request_size=4 [23:21:54]MH_SAM_APDU [23:21:54]CAPDU: 80 13 01 00 [23:21:54]Write to MH i2c: E2 08 00 1E 12 80 13 01 00 00 00 00 00 AD [23:21:54]Write i2c OK [23:21:54]MH_I2C_Read... [23:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:54]Read from MH i2c: E2 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 0E 00 [23:21:54]MH_I2C_Read... [23:21:54]Read from MH i2c: E2 0E 00 1E 12 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 49 [23:21:54]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:21:54]wFMCommunicate OK [23:21:54]SAM_PROTO_GetShiftState done [23:21:54]FM_GetShiftState done [23:21:54]req_shift_opened done [23:21:54]requested_item shift.open_date is exist - process it [23:21:54]req_shift_open_date [23:21:54]req_shift_open_date done [23:21:54]produce_requested_data done [23:21:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95065,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:21:54]process_action_free close_receipt [23:21:54]json_value_free [23:21:54]json_value_free done [23:21:54]process_json_proto returns [23:21:54]Send response to host [23:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95065,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:21:54]free response buf [23:21:54]execute_script done [23:21:54]execute_script returns [23:21:54]free content buf [23:21:54]Sock 8.Close socket [23:21:54]Sock 8.Thread stoped [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:41]accept exits with 9 [23:29:41]New connection [23:29:41]New thread 3066813796 created [23:29:41]Thread 3066957156 joined [23:29:41]Waiting for new connection... [23:29:41] Sock 9.Parse request [23:29:41]Sock 9.Check first char [23:29:41]Sock 9.First char is OK [23:29:41]request: POST /json_proto HTTP/1.0 [23:29:41]Method: POST [23:29:41]URL: /json_proto [23:29:41]Method is POST - this is cgi request [23:29:41]url: /json_proto [23:29:41]query_string will be loaded in cgi processing [23:29:41]execute_cgi json_proto POST (null) [23:29:41]execute_cgi path=json_proto method=POST [23:29:41]POST find Content-Length [23:29:41]Host: 172.17.62.67:8080 [23:29:41]Content-Length: 682 [23:29:41]Content-Type: application/json [23:29:41] [23:29:41]POST finish read [23:29:41]Found Content-Length = 682 [23:29:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:41]execute_script... [23:29:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:41]POST & json_proto [23:29:41]process_json_proto [23:29:41]json parsed OK: [23:29:41]protocol is kg_v1.0 [23:29:41]action value=close_receipt [23:29:41]process_action close_receipt [23:29:41]cmd_close_receipt [23:29:41]MH_GetDate [23:29:41]Write to MH i2c: F0 00 00 1F 12 20 [23:29:41]Write i2c OK [23:29:41]MH_I2C_Read... [23:29:41]Read from MH i2c: F0 [23:29:41]MH_I2C_Read... [23:29:41]Read from MH i2c: F0 05 00 [23:29:41]MH_I2C_Read... [23:29:41]Read from MH i2c: F0 05 00 1F 12 00 E7 93 EF 65 F3 [23:29:41]GetLastDocTimeStamp 1710199313 [23:29:41]current date 1710199783 [23:29:41]FM_GetShiftState [23:29:41]SAM_PROTO_GetShiftState [23:29:41]wFMCommunicate request_size=4 [23:29:41]MH_SAM_APDU [23:29:41]CAPDU: 80 13 01 00 [23:29:41]Write to MH i2c: E2 08 00 20 12 80 13 01 00 00 00 00 00 AF [23:29:41]Write i2c OK [23:29:41]MH_I2C_Read... [23:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:41]Read from MH i2c: E2 [23:29:41]MH_I2C_Read... [23:29:41]Read from MH i2c: E2 0E 00 [23:29:41]MH_I2C_Read... [23:29:41]Read from MH i2c: E2 0E 00 20 12 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 4B [23:29:41]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:29:41]wFMCommunicate OK [23:29:41]SAM_PROTO_GetShiftState done [23:29:41]FM_GetShiftState done [23:29:41]opened in 1710115571 [23:29:41]opened+sec_in_day 1710201971 [23:29:41]quantity*price = 100011 [23:29:41]sum+1 = 100012 [23:29:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 241 11.03.2024 23:29 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95066 ФПД: 69156430497672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T232943&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95066&fm=69156430497672&tin=02508201610067®Number=0000000000090555&sum=100000 [23:29:42]StoreToDocumentArchive [23:29:42]shift 326 fd 95066 [23:29:42]save to /storage/0326/doc_00095066 [23:29:42]save last doc name /storage/0326/doc_00095066 to /storage/kkm_last_doc_name [23:29:42]save OK [23:29:42]Clear old archive folders... [23:29:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:29:42]tlvbuf is 01A31F00 [23:29:42]SAM_PROTO_ClearQueue [23:29:42]wFMCommunicate request_size=4 [23:29:42]MH_SAM_APDU [23:29:42]CAPDU: 80 09 00 00 [23:29:42]Write to MH i2c: E2 08 00 2D 12 80 09 00 00 00 00 00 00 B1 [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:42]Read from MH i2c: E2 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 03 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 03 00 2D 12 00 90 00 B3 [23:29:42]RAPDU: 90 00 [23:29:42]wFMCommunicate OK [23:29:42]SAM_PROTO_ClearQueue done [23:29:42]KKMCreateOFDPacket [23:29:42]OFDProtocolAddRootSTLVToBuf [23:29:42]FM_MakeSignedData [23:29:42]FM_MakeSignedData [23:29:42]SAM_PROTO_SignData [23:29:42]wFMCommunicate request_size=4 [23:29:42]MH_SAM_APDU [23:29:42]CAPDU: 80 0D 01 02 [23:29:42]Write to MH i2c: E2 08 00 2E 12 80 0D 01 02 00 00 00 00 B9 [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:42]Read from MH i2c: E2 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 03 00 [23:29:42]MH_I2C_Read... [23:29:42]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [23:29:42]RAPDU: 90 00 [23:29:42]wFMCommunicate OK [23:29:42]wFMCommunicate request_size=255 [23:29:42]MH_SAM_APDU [23:29:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E7 93 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 73 01 00 35 04 06 00 3E [23:29:42]Write to MH i2c: E2 02 01 2F 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E7 93 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 73 01 00 35 04 06 00 3E 00 00 73 [23:29:42]Write i2c OK [23:29:42]MH_I2C_Read... [23:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:43]Read from MH i2c: E2 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 03 00 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 03 00 2F 12 00 90 00 B5 [23:29:43]RAPDU: 90 00 [23:29:43]wFMCommunicate OK [23:29:43]wFMCommunicate request_size=10 [23:29:43]MH_SAM_APDU [23:29:43]CAPDU: 80 0D 02 02 05 E5 BC 79 47 88 [23:29:43]Write to MH i2c: E2 0D 00 30 12 80 0D 02 02 05 00 E5 BC 79 47 88 00 00 AF [23:29:43]Write i2c OK [23:29:43]MH_I2C_Read... [23:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:43]Read from MH i2c: E2 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 03 00 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 03 00 30 12 00 90 00 B6 [23:29:43]RAPDU: 90 00 [23:29:43]wFMCommunicate OK [23:29:43]wFMCommunicate request_size=4 [23:29:43]MH_SAM_APDU [23:29:43]CAPDU: 80 0D 03 02 [23:29:43]Write to MH i2c: E2 08 00 31 12 80 0D 03 02 00 00 00 00 BE [23:29:43]Write i2c OK [23:29:43]MH_I2C_Read... [23:29:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:43]Read from MH i2c: E2 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 0B 00 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 0B 00 31 12 00 4D 94 94 CD 61 97 8E F9 90 00 80 [23:29:43]RAPDU: 4D 94 94 CD 61 97 8E F9 90 00 [23:29:43]wFMCommunicate OK [23:29:43]SAM_PROTO_SignData done [23:29:43]FM_MakeSignedData done [23:29:43]CreateOFDProtocolMessage [23:29:43]wFMCommunicate request_size=4 [23:29:43]MH_SAM_APDU [23:29:43]CAPDU: 80 11 00 00 [23:29:43]Write to MH i2c: E2 08 00 32 12 80 11 00 00 00 00 00 00 BE [23:29:43]Write i2c OK [23:29:43]MH_I2C_Read... [23:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:43]Read from MH i2c: E2 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 17 00 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: E2 17 00 32 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [23:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:29:43]wFMCommunicate OK [23:29:43]CreateOFDProtocolMessage done [23:29:43]OFDSenderStorePacket 95066 [23:29:43]StoreOFDPacket docnum=95066 [23:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B2 9F 07 01 05 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E7 93 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 73 01 00 35 04 06 00 3E E5 BC 79 47 88 4D 94 94 CD 61 97 8E F9 [23:29:43]CheckFolder [23:29:43]dirname=/storage/ofd_packets [23:29:43]CheckFolder done [23:29:43]ProducePacketName [23:29:43]name=ofd_packets/00095066 [23:29:43]NVStorageSaveData ofd_packets/00095066 [23:29:43]File name is /storage/ofd_packets/00095066 [23:29:43]Write 301 bytes [23:29:43]NVStorageSaveData done [23:29:43]OFDSenderStorePacket done [23:29:43]KKMCreateOFDPacket done [23:29:43]NVStorageSaveData kkm_last_timestamp [23:29:43]File name is /storage/kkm_last_timestamp [23:29:43]Write 4 bytes [23:29:43]NVStorageSaveData done [23:29:43]ExternCall_PrintAddStr [23:29:43]wPrintStart [23:29:43]Write to MH i2c: 01 00 00 33 12 45 [23:29:43]OFD Sender: Processing packet 95066 [packets to send 30, broken 29] [23:29:43]ProducePacketName [23:29:43]name=ofd_packets/00095066 [23:29:43]OFD Sender: To server: pG, [23:29:43]CommunicateWithHost lk.salyk.kg:30040 [23:29:43]ConnectInit lk.salyk.kg [23:29:43]Write i2c OK [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: 01 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: 01 07 00 [23:29:43]MH_I2C_Read... [23:29:43]Read from MH i2c: 01 07 00 33 12 00 80 00 00 00 FF 0F DA [23:29:43]RasterBufferAndPrint [23:29:43]line Счет N : (1)196025 [23:29:43]line ИНН: 02508201610067 [23:29:43]line Контрольно-Кассовый Чек [23:29:43]line ПРОДАЖА [23:29:43]line ТРК (МРК, ГНК) : 22 [23:29:43]line Товар: 2710124130 [23:29:43]line Аи-92-К-5 [23:29:43]line 15.900 * 62.90 [23:29:43]line = 1000.11 [23:29:43]line НДС 12% НСП 1% [23:29:43]line > о реализуемом товаре [23:29:43]line ОКРУГЛЕНИЕ: -0.11 [23:29:43]line ИТОГО: 1000.00 [23:29:43]line Внесено: 1000.00 [23:29:43]line СДАЧА: 0.00 [23:29:43]line НСП 1% : 8.85 [23:29:43]line НДС 12% : 106.21 [23:29:43]line Наличными: 1000.00 [23:29:43]line Безнал.: 0.00 [23:29:43]line Место: АЗС № 6 "Партнер Нефть" [23:29:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:29:43]line СНО: Общий режим [23:29:43]line Чек 241 11.03.2024 23:29 [23:29:43]line Смена: 326 ФФД: 1.0 [23:29:43]line ЗНМ: 0300000009 [23:29:43]line РНМ: 0000000000090555 [23:29:43]line Версия ККМ: 001 [23:29:43]line ФМ: 0000000000874811 [23:29:43]line ФД: 95066 [23:29:43]line ФПД: 69156430497672 [23:29:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T232943&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95066&fm=69156430497672&tin=02508201610067®Number=0000000000090555&sum=100000 [23:29:43]Connected sock=10 [23:29:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B2 9F 07 01 05 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E7 93 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 73 01 00 35 04 06 00 3E E5 BC 79 47 88 4D 94 94 CD 61 97 8E F9 [23:29:43]written 0, free lines is 4095 [23:29: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 31 31 4F 00 00 00 64 92 47 00 A7 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 73 01 00 F4 03 04 00 3F 3F EF 65 B6 04 01 00 00 F4 D6 C5 5E 9E 67 FC 5F [23:29:43]CommunicateWithHost err = 0 [23:29:43]CheckOFDResponse [23:29:43]1017 (14) - 77093643461234 [23:29:43]1041 (16) - 0000000000874811 [23:29:43]1040 (4) - 95066 [23:29:43]1012 (4) - 11.03.2024 17:28 [23:29:43]1206 (1) - 0 [23:29:43]OFD Sender: Remove packet 95066 [23:29:43]ProducePacketName [23:29:43]name=ofd_packets/00095066 [23:29:43]NVStorageDeleteData [23:29:44]Write to MH i2c: 01 00 00 5E 12 70 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 07 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: 01 07 00 5E 12 00 80 00 00 00 58 0D 5C [23:29:44]RasterBufferAndPrint [23:29:44]line [23:29:44]line [23:29:44]line [23:29:44]line [23:29:44]line [23:29:44]written 0, free lines is 3422 [23:29:44]process_action close_receipt done [23:29:44]requested_data is exist [23:29:44]produce_requested_data [23:29:44]requested_item fm.sn is exist - process it [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 11 00 00 [23:29:44]Write to MH i2c: E2 08 00 65 12 80 11 00 00 00 00 00 00 F1 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:44]Read from MH i2c: E2 17 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 17 00 65 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 41 [23:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:29:44]wFMCommunicate OK [23:29:44]requested_item fd.num is exist - process it [23:29:44]SAM_PROTO_GetFieldsCounters [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 13 00 00 [23:29:44]Write to MH i2c: E2 08 00 66 12 80 13 00 00 00 00 00 00 F4 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]OFD Sender: No OFD packet to send [23:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 62 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 62 00 66 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [23: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5A 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:44]wFMCommunicate OK [23:29:44]SAM_PROTO_GetFieldsCounters done [23:29:44]requested_item shift.num is exist - process it [23:29:44]requested_item shift.opened is exist - process it [23:29:44]req_shift_opened [23:29:44]FM_GetShiftState [23:29:44]SAM_PROTO_GetShiftState [23:29:44]wFMCommunicate request_size=4 [23:29:44]MH_SAM_APDU [23:29:44]CAPDU: 80 13 01 00 [23:29:44]Write to MH i2c: E2 08 00 67 12 80 13 01 00 00 00 00 00 F6 [23:29:44]Write i2c OK [23:29:44]MH_I2C_Read... [23:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:44]Read from MH i2c: E2 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 0E 00 [23:29:44]MH_I2C_Read... [23:29:44]Read from MH i2c: E2 0E 00 67 12 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 92 [23:29:44]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:29:44]wFMCommunicate OK [23:29:44]SAM_PROTO_GetShiftState done [23:29:44]FM_GetShiftState done [23:29:44]req_shift_opened done [23:29:44]requested_item shift.open_date is exist - process it [23:29:44]req_shift_open_date [23:29:44]req_shift_open_date done [23:29:44]produce_requested_data done [23:29:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95066,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:29:44]process_action_free close_receipt [23:29:44]json_value_free [23:29:44]json_value_free done [23:29:44]process_json_proto returns [23:29:44]Send response to host [23:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95066,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:29:44]free response buf [23:29:44]execute_script done [23:29:44]execute_script returns [23:29:44]free content buf [23:29:44]Sock 9.Close socket [23:29:44]Sock 9.Thread stoped [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:37]accept exits with 8 [23:33:37]New connection [23:33:37]New thread 3066957156 created [23:33:37]Thread 3066813796 joined [23:33:37]Waiting for new connection... [23:33:37] Sock 8.Parse request [23:33:37]Sock 8.Check first char [23:33:37]Sock 8.First char is OK [23:33:37]request: POST /json_proto HTTP/1.0 [23:33:37]Method: POST [23:33:37]URL: /json_proto [23:33:37]Method is POST - this is cgi request [23:33:37]url: /json_proto [23:33:37]query_string will be loaded in cgi processing [23:33:37]execute_cgi json_proto POST (null) [23:33:37]execute_cgi path=json_proto method=POST [23:33:37]POST find Content-Length [23:33:37]Host: 172.17.62.67:8080 [23:33:37]Content-Length: 805 [23:33:37]Content-Type: application/json [23:33:37] [23:33:37]POST finish read [23:33:37]Found Content-Length = 805 [23:33:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:37]execute_script... [23:33:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:37]POST & json_proto [23:33:37]process_json_proto [23:33:37]json parsed OK: [23:33:37]protocol is kg_v1.0 [23:33:37]action value=close_receipt [23:33:37]process_action close_receipt [23:33:37]cmd_close_receipt [23:33:37]MH_GetDate [23:33:37]Write to MH i2c: F0 00 00 68 12 69 [23:33:37]Write i2c OK [23:33:37]MH_I2C_Read... [23:33:37]Read from MH i2c: F0 [23:33:37]MH_I2C_Read... [23:33:37]Read from MH i2c: F0 05 00 [23:33:37]MH_I2C_Read... [23:33:37]Read from MH i2c: F0 05 00 68 12 00 D3 94 EF 65 29 [23:33:37]GetLastDocTimeStamp 1710199783 [23:33:37]current date 1710200019 [23:33:37]FM_GetShiftState [23:33:37]SAM_PROTO_GetShiftState [23:33:37]wFMCommunicate request_size=4 [23:33:37]MH_SAM_APDU [23:33:37]CAPDU: 80 13 01 00 [23:33:37]Write to MH i2c: E2 08 00 69 12 80 13 01 00 00 00 00 00 F8 [23:33:37]Write i2c OK [23:33:37]MH_I2C_Read... [23:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:37]Read from MH i2c: E2 [23:33:37]MH_I2C_Read... [23:33:37]Read from MH i2c: E2 0E 00 [23:33:37]MH_I2C_Read... [23:33:37]Read from MH i2c: E2 0E 00 69 12 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 94 [23:33:37]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:33:37]wFMCommunicate OK [23:33:37]SAM_PROTO_GetShiftState done [23:33:37]FM_GetShiftState done [23:33:37]opened in 1710115571 [23:33:37]opened+sec_in_day 1710201971 [23:33:37]quantity*price = 50005 [23:33:37]sum+1 = 50007 [23:33:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 242 11.03.2024 23:33 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95067 ФПД: 68840205322801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T233339&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95067&fm=68840205322801&tin=02508201610067®Number=0000000000090555&sum=50006 [23:33:38]StoreToDocumentArchive [23:33:38]shift 326 fd 95067 [23:33:38]save to /storage/0326/doc_00095067 [23:33:38]save last doc name /storage/0326/doc_00095067 to /storage/kkm_last_doc_name [23:33:38]save OK [23:33:38]Clear old archive folders... [23:33:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:33:38]tlvbuf is 01A6D430 [23:33:38]SAM_PROTO_ClearQueue [23:33:38]wFMCommunicate request_size=4 [23:33:38]MH_SAM_APDU [23:33:38]CAPDU: 80 09 00 00 [23:33:38]Write to MH i2c: E2 08 00 76 12 80 09 00 00 00 00 00 00 FA [23:33:38]Write i2c OK [23:33:38]MH_I2C_Read... [23:33:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:38]Read from MH i2c: E2 [23:33:38]MH_I2C_Read... [23:33:38]Read from MH i2c: E2 03 00 [23:33:38]MH_I2C_Read... [23:33:38]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [23:33:38]RAPDU: 90 00 [23:33:38]wFMCommunicate OK [23:33:38]SAM_PROTO_ClearQueue done [23:33:38]KKMCreateOFDPacket [23:33:38]OFDProtocolAddRootSTLVToBuf [23:33:38]FM_MakeSignedData [23:33:38]FM_MakeSignedData [23:33:38]SAM_PROTO_SignData [23:33:38]wFMCommunicate request_size=4 [23:33:38]MH_SAM_APDU [23:33:38]CAPDU: 80 0D 01 02 [23:33:38]Write to MH i2c: E2 08 00 77 12 80 0D 01 02 00 00 00 00 02 [23:33:38]Write i2c OK [23:33:38]MH_I2C_Read... [23:33:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:38]Read from MH i2c: E2 [23:33:38]MH_I2C_Read... [23:33:38]Read from MH i2c: E2 03 00 [23:33:38]MH_I2C_Read... [23:33:38]Read from MH i2c: E2 03 00 77 12 00 90 00 FD [23:33:38]RAPDU: 90 00 [23:33:38]wFMCommunicate OK [23:33:38]wFMCommunicate request_size=255 [23:33:38]MH_SAM_APDU [23:33:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 D3 94 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 73 01 00 35 04 06 00 3E [23:33:38]Write to MH i2c: E2 02 01 78 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 D3 94 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 73 01 00 35 04 06 00 3E 00 00 B8 [23:33:38]Write i2c OK [23:33:38]MH_I2C_Read... [23:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:39]Read from MH i2c: E2 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 03 00 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [23:33:39]RAPDU: 90 00 [23:33:39]wFMCommunicate OK [23:33:39]wFMCommunicate request_size=10 [23:33:39]MH_SAM_APDU [23:33:39]CAPDU: 80 0D 02 02 05 9C 1B FC 0A 31 [23:33:39]Write to MH i2c: E2 0D 00 79 12 80 0D 02 02 05 00 9C 1B FC 0A 31 00 00 FD [23:33:39]Write i2c OK [23:33:39]MH_I2C_Read... [23:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:39]Read from MH i2c: E2 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 03 00 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [23:33:39]RAPDU: 90 00 [23:33:39]wFMCommunicate OK [23:33:39]wFMCommunicate request_size=4 [23:33:39]MH_SAM_APDU [23:33:39]CAPDU: 80 0D 03 02 [23:33:39]Write to MH i2c: E2 08 00 7A 12 80 0D 03 02 00 00 00 00 07 [23:33:39]Write i2c OK [23:33:39]MH_I2C_Read... [23:33:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:39]Read from MH i2c: E2 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 0B 00 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 0B 00 7A 12 00 06 14 EF 50 FB 28 51 36 90 00 0B [23:33:39]RAPDU: 06 14 EF 50 FB 28 51 36 90 00 [23:33:39]wFMCommunicate OK [23:33:39]SAM_PROTO_SignData done [23:33:39]FM_MakeSignedData done [23:33:39]CreateOFDProtocolMessage [23:33:39]wFMCommunicate request_size=4 [23:33:39]MH_SAM_APDU [23:33:39]CAPDU: 80 11 00 00 [23:33:39]Write to MH i2c: E2 08 00 7B 12 80 11 00 00 00 00 00 00 07 [23:33:39]Write i2c OK [23:33:39]MH_I2C_Read... [23:33:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:39]Read from MH i2c: E2 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 17 00 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: E2 17 00 7B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [23:33:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:33:39]wFMCommunicate OK [23:33:39]CreateOFDProtocolMessage done [23:33:39]OFDSenderStorePacket 95067 [23:33:39]StoreOFDPacket docnum=95067 [23:33:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 34 37 07 01 FE B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 D3 94 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 73 01 00 35 04 06 00 3E 9C 1B FC 0A 31 06 14 EF 50 FB 28 51 36 [23:33:39]CheckFolder [23:33:39]dirname=/storage/ofd_packets [23:33:39]CheckFolder done [23:33:39]ProducePacketName [23:33:39]name=ofd_packets/00095067 [23:33:39]NVStorageSaveData ofd_packets/00095067 [23:33:39]File name is /storage/ofd_packets/00095067 [23:33:39]Write 301 bytes [23:33:39]NVStorageSaveData done [23:33:39]OFDSenderStorePacket done [23:33:39]KKMCreateOFDPacket done [23:33:39]NVStorageSaveData kkm_last_timestamp [23:33:39]File name is /storage/kkm_last_timestamp [23:33:39]Write 4 bytes [23:33:39]NVStorageSaveData done [23:33:39]ExternCall_PrintAddStr [23:33:39]wPrintStart [23:33:39]Write to MH i2c: 01 00 00 7C 12 8E [23:33:39]Write i2c OK [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: 01 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: 01 07 00 [23:33:39]MH_I2C_Read... [23:33:39]Read from MH i2c: 01 07 00 7C 12 00 80 00 00 00 FF 0F 23 [23:33:39]RasterBufferAndPrint [23:33:39]line Счет N : (1)196026 [23:33:39]line ИНН: 02508201610067 [23:33:39]line Контрольно-Кассовый Чек [23:33:39]line ПРОДАЖА [23:33:39]line ТРК (МРК, ГНК) : 42 [23:33:39]line Товар: 2710124130 [23:33:39]line Аи-92-К-5 [23:33:39]line 7.950 * 62.90 [23:33:39]line = 500.06 [23:33:39]line НДС 12% НСП 1% [23:33:39]line > о реализуемом товаре [23:33:39]line ИТОГО: 500.06 [23:33:39]line НСП 1% : 4.42 [23:33:39]line НДС 12% : 53.10 [23:33:39]line Наличными: 0.00 [23:33:39]line Безнал.: 500.06 [23:33:39]line Место: АЗС № 6 "Партнер Нефть" [23:33:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:33:39]line СНО: Общий режим [23:33:39]line Чек 242 11.03.2024 23:33 [23:33:39]line Смена: 326 ФФД: 1.0 [23:33:39]line ЗНМ: 0300000009 [23:33:39]line РНМ: 0000000000090555 [23:33:39]line Версия ККМ: 001 [23:33:39]line Платежная система: О! деньги [23:33:39]line ФМ: 0000000000874811 [23:33:39]line ФД: 95067 [23:33:39]line ФПД: 68840205322801 [23:33:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T233339&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95067&fm=68840205322801&tin=02508201610067®Number=0000000000090555&sum=50006 [23:33:39]OFD Sender: Processing packet 95067 [packets to send 30, broken 29] [23:33:39]ProducePacketName [23:33:39]name=ofd_packets/00095067 [23:33:39]OFD Sender: To server: pG, [23:33:39]CommunicateWithHost lk.salyk.kg:30040 [23:33:39]ConnectInit lk.salyk.kg [23:33:39]written 0, free lines is 4095 [23:33:39]Connected sock=10 [23:33:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 34 37 07 01 FE B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 D3 94 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 73 01 00 35 04 06 00 3E 9C 1B FC 0A 31 06 14 EF 50 FB 28 51 36 [23:33: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 31 31 4F 00 00 00 4C 15 47 00 CD 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 73 01 00 F4 03 04 00 2B 40 EF 65 B6 04 01 00 00 88 E8 36 A6 1D 73 46 5C [23:33:39]CommunicateWithHost err = 0 [23:33:39]CheckOFDResponse [23:33:39]1017 (14) - 77093643461234 [23:33:39]1041 (16) - 0000000000874811 [23:33:39]1040 (4) - 95067 [23:33:39]1012 (4) - 11.03.2024 17:32 [23:33:39]1206 (1) - 0 [23:33:39]OFD Sender: Remove packet 95067 [23:33:39]ProducePacketName [23:33:39]name=ofd_packets/00095067 [23:33:39]NVStorageDeleteData [23:33:40]Write to MH i2c: 01 00 00 A6 12 B8 [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: 01 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: 01 07 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: 01 07 00 A6 12 00 80 00 00 00 5B 0D A7 [23:33:40]RasterBufferAndPrint [23:33:40]line [23:33:40]line [23:33:40]line [23:33:40]line [23:33:40]line [23:33:40]written 0, free lines is 3425 [23:33:40]process_action close_receipt done [23:33:40]requested_data is exist [23:33:40]produce_requested_data [23:33:40]requested_item fm.sn is exist - process it [23:33:40]wFMCommunicate request_size=4 [23:33:40]MH_SAM_APDU [23:33:40]CAPDU: 80 11 00 00 [23:33:40]Write to MH i2c: E2 08 00 AD 12 80 11 00 00 00 00 00 00 39 [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 [23:33:40]MH_I2C_Read... [23:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:40]Read from MH i2c: E2 17 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 17 00 AD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 89 [23:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:33:40]wFMCommunicate OK [23:33:40]requested_item fd.num is exist - process it [23:33:40]SAM_PROTO_GetFieldsCounters [23:33:40]wFMCommunicate request_size=4 [23:33:40]MH_SAM_APDU [23:33:40]CAPDU: 80 13 00 00 [23:33:40]Write to MH i2c: E2 08 00 AE 12 80 13 00 00 00 00 00 00 3C [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:40]Read from MH i2c: E2 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 62 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 62 00 AE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [23:33: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5B 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:33:40]wFMCommunicate OK [23:33:40]SAM_PROTO_GetFieldsCounters done [23:33:40]requested_item shift.num is exist - process it [23:33:40]requested_item shift.opened is exist - process it [23:33:40]req_shift_opened [23:33:40]FM_GetShiftState [23:33:40]SAM_PROTO_GetShiftState [23:33:40]wFMCommunicate request_size=4 [23:33:40]MH_SAM_APDU [23:33:40]CAPDU: 80 13 01 00 [23:33:40]Write to MH i2c: E2 08 00 AF 12 80 13 01 00 00 00 00 00 3E [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]OFD Sender: No OFD packet to send [23:33:40]Read from MH i2c: E2 [23:33:40]MH_I2C_Read... [23:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:40]Read from MH i2c: E2 0E 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 0E 00 AF 12 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DA [23:33:40]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:33:40]wFMCommunicate OK [23:33:40]SAM_PROTO_GetShiftState done [23:33:40]FM_GetShiftState done [23:33:40]req_shift_opened done [23:33:40]requested_item shift.open_date is exist - process it [23:33:40]req_shift_open_date [23:33:40]req_shift_open_date done [23:33:40]produce_requested_data done [23:33:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95067,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:33:40]process_action_free close_receipt [23:33:40]json_value_free [23:33:40]json_value_free done [23:33:40]process_json_proto returns [23:33:40]Send response to host [23:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95067,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:33:40]free response buf [23:33:40]execute_script done [23:33:40]execute_script returns [23:33:40]free content buf [23:33:40]Sock 8.Close socket [23:33:40]Sock 8.Thread stoped [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:06]accept exits with 9 [23:53:06]New connection [23:53:06]New thread 3066813796 created [23:53:06]Thread 3066957156 joined [23:53:06]Waiting for new connection... [23:53:06] Sock 9.Parse request [23:53:06]Sock 9.Check first char [23:53:06]Sock 9.First char is OK [23:53:06]request: POST /json_proto HTTP/1.0 [23:53:06]Method: POST [23:53:06]URL: /json_proto [23:53:06]Method is POST - this is cgi request [23:53:06]url: /json_proto [23:53:06]query_string will be loaded in cgi processing [23:53:06]execute_cgi json_proto POST (null) [23:53:06]execute_cgi path=json_proto method=POST [23:53:06]POST find Content-Length [23:53:06]Host: 172.17.62.67:8080 [23:53:06]Content-Length: 677 [23:53:06]Content-Type: application/json [23:53:06] [23:53:06]POST finish read [23:53:06]Found Content-Length = 677 [23:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 2.490, "sum" : 156.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 156.00, "total" : 156.00, "payments": [ { "type": 0, "sum" : 156.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:06]execute_script... [23:53:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 2.490, "sum" : 156.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 156.00, "total" : 156.00, "payments": [ { "type": 0, "sum" : 156.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:06]POST & json_proto [23:53:06]process_json_proto [23:53:06]json parsed OK: [23:53:06]protocol is kg_v1.0 [23:53:06]action value=close_receipt [23:53:06]process_action close_receipt [23:53:06]cmd_close_receipt [23:53:06]MH_GetDate [23:53:06]Write to MH i2c: F0 00 00 B0 12 B1 [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: F0 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: F0 05 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: F0 05 00 B0 12 00 64 99 EF 65 07 [23:53:06]GetLastDocTimeStamp 1710200019 [23:53:06]current date 1710201188 [23:53:06]FM_GetShiftState [23:53:06]SAM_PROTO_GetShiftState [23:53:06]wFMCommunicate request_size=4 [23:53:06]MH_SAM_APDU [23:53:06]CAPDU: 80 13 01 00 [23:53:06]Write to MH i2c: E2 08 00 B1 12 80 13 01 00 00 00 00 00 40 [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:06]Read from MH i2c: E2 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 0E 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 0E 00 B1 12 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 DC [23:53:06]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:53:06]wFMCommunicate OK [23:53:06]SAM_PROTO_GetShiftState done [23:53:06]FM_GetShiftState done [23:53:06]opened in 1710115571 [23:53:06]opened+sec_in_day 1710201971 [23:53:06]quantity*price = 15662 [23:53:06]sum+1 = 15663 [23:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 156.00 Внесено: 156.00 СДАЧА: 0.00 НСП 1% : 1.39 НДС 12% : 16.63 Наличными: 156.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 243 11.03.2024 23:53 Смена: 326 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95068 ФПД: 240127124156807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T235308&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95068&fm=240127124156807&tin=02508201610067®Number=0000000000090555&sum=15600 [23:53:07]StoreToDocumentArchive [23:53:07]shift 326 fd 95068 [23:53:07]save to /storage/0326/doc_00095068 [23:53:07]save last doc name /storage/0326/doc_00095068 to /storage/kkm_last_doc_name [23:53:07]save OK [23:53:07]Clear old archive folders... [23:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:53:07]tlvbuf is 01A6D770 [23:53:07]SAM_PROTO_ClearQueue [23:53:07]wFMCommunicate request_size=4 [23:53:07]MH_SAM_APDU [23:53:07]CAPDU: 80 09 00 00 [23:53:07]Write to MH i2c: E2 08 00 BE 12 80 09 00 00 00 00 00 00 42 [23:53:07]Write i2c OK [23:53:07]MH_I2C_Read... [23:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:07]Read from MH i2c: E2 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 03 00 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [23:53:07]RAPDU: 90 00 [23:53:07]wFMCommunicate OK [23:53:07]SAM_PROTO_ClearQueue done [23:53:07]KKMCreateOFDPacket [23:53:07]OFDProtocolAddRootSTLVToBuf [23:53:07]FM_MakeSignedData [23:53:07]FM_MakeSignedData [23:53:07]SAM_PROTO_SignData [23:53:07]wFMCommunicate request_size=4 [23:53:07]MH_SAM_APDU [23:53:07]CAPDU: 80 0D 01 02 [23:53:07]Write to MH i2c: E2 08 00 BF 12 80 0D 01 02 00 00 00 00 4A [23:53:07]Write i2c OK [23:53:07]MH_I2C_Read... [23:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:07]Read from MH i2c: E2 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 03 00 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [23:53:07]RAPDU: 90 00 [23:53:07]wFMCommunicate OK [23:53:07]wFMCommunicate request_size=255 [23:53:07]MH_SAM_APDU [23:53:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 2E 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 64 99 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 73 01 00 35 04 06 00 DA [23:53:07]Write to MH i2c: E2 02 01 C0 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 2E 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 64 99 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 73 01 00 35 04 06 00 DA 00 00 C5 [23:53:07]Write i2c OK [23:53:07]MH_I2C_Read... [23:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:08]Read from MH i2c: E2 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 03 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [23:53:08]RAPDU: 90 00 [23:53:08]wFMCommunicate OK [23:53:08]wFMCommunicate request_size=10 [23:53:08]MH_SAM_APDU [23:53:08]CAPDU: 80 0D 02 02 05 64 F3 EF B1 87 [23:53:08]Write to MH i2c: E2 0D 00 C1 12 80 0D 02 02 05 00 64 F3 EF B1 87 00 00 D5 [23:53:08]Write i2c OK [23:53:08]MH_I2C_Read... [23:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:08]Read from MH i2c: E2 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 03 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [23:53:08]RAPDU: 90 00 [23:53:08]wFMCommunicate OK [23:53:08]wFMCommunicate request_size=4 [23:53:08]MH_SAM_APDU [23:53:08]CAPDU: 80 0D 03 02 [23:53:08]Write to MH i2c: E2 08 00 C2 12 80 0D 03 02 00 00 00 00 4F [23:53:08]Write i2c OK [23:53:08]MH_I2C_Read... [23:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:08]Read from MH i2c: E2 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 0B 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 0B 00 C2 12 00 82 76 D5 2C 60 3B B1 04 90 00 99 [23:53:08]RAPDU: 82 76 D5 2C 60 3B B1 04 90 00 [23:53:08]wFMCommunicate OK [23:53:08]SAM_PROTO_SignData done [23:53:08]FM_MakeSignedData done [23:53:08]CreateOFDProtocolMessage [23:53:08]wFMCommunicate request_size=4 [23:53:08]MH_SAM_APDU [23:53:08]CAPDU: 80 11 00 00 [23:53:08]Write to MH i2c: E2 08 00 C3 12 80 11 00 00 00 00 00 00 4F [23:53:08]Write i2c OK [23:53:08]MH_I2C_Read... [23:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:08]Read from MH i2c: E2 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 17 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 17 00 C3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9F [23:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:53:08]wFMCommunicate OK [23:53:08]CreateOFDProtocolMessage done [23:53:08]OFDSenderStorePacket 95068 [23:53:08]StoreOFDPacket docnum=95068 [23:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7E 28 07 01 B6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 2E 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 64 99 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 73 01 00 35 04 06 00 DA 64 F3 EF B1 87 82 76 D5 2C 60 3B B1 04 [23:53:08]CheckFolder [23:53:08]dirname=/storage/ofd_packets [23:53:08]CheckFolder done [23:53:08]ProducePacketName [23:53:08]name=ofd_packets/00095068 [23:53:08]NVStorageSaveData ofd_packets/00095068 [23:53:08]File name is /storage/ofd_packets/00095068 [23:53:08]Write 301 bytes [23:53:08]NVStorageSaveData done [23:53:08]OFDSenderStorePacket done [23:53:08]KKMCreateOFDPacket done [23:53:08]NVStorageSaveData kkm_last_timestamp [23:53:08]File name is /storage/kkm_last_timestamp [23:53:08]Write 4 bytes [23:53:08]NVStorageSaveData done [23:53:08]ExternCall_PrintAddStr [23:53:08]wPrintStart [23:53:08]Write to MH i2c: 01 00 00 C4 12 D6 [23:53:08]Write i2c OK [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: 01 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: 01 07 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: 01 07 00 C4 12 00 80 00 00 00 FF 0F 6B [23:53:08]RasterBufferAndPrint [23:53:08]line Счет N : (1)196027 [23:53:08]line ИНН: 02508201610067 [23:53:08]line Контрольно-Кассовый Чек [23:53:08]line ПРОДАЖА [23:53:08]line ТРК (МРК, ГНК) : 22 [23:53:08]line Товар: 2710124130 [23:53:08]line Аи-92-К-5 [23:53:08]line 2.490 * 62.90 [23:53:08]line = 156.62 [23:53:08]line НДС 12% НСП 1% [23:53:08]line > о реализуемом товаре [23:53:08]line ОКРУГЛЕНИЕ: -0.62 [23:53:08]line ИТОГО: 156.00 [23:53:08]line Внесено: 156.00 [23:53:08]line СДАЧА: 0.00 [23:53:08]line НСП 1% : 1.39 [23:53:08]line НДС 12% : 16.63 [23:53:08]line Наличными: 156.00 [23:53:08]line Безнал.: 0.00 [23:53:08]line Место: АЗС № 6 "Партнер Нефть" [23:53:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [23:53:08]line СНО: Общий режим [23:53:08]line Чек 243 11.03.2024 23:53 [23:53:08]line Смена: 326 ФФД: 1.0 [23:53:08]line ЗНМ: 0300000009 [23:53:08]line РНМ: 0000000000090555 [23:53:08]line Версия ККМ: 001 [23:53:08]line ФМ: 0000000000874811 [23:53:08]line ФД: 95068 [23:53:08]line ФПД: 240127124156807 [23:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240311T235308&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95068&fm=240127124156807&tin=02508201610067®Number=0000000000090555&sum=15600 [23:53:08]written 0, free lines is 4095 [23:53:08]OFD Sender: Processing packet 95068 [packets to send 30, broken 29] [23:53:08]ProducePacketName [23:53:08]name=ofd_packets/00095068 [23:53:08]OFD Sender: To server: pG, [23:53:08]CommunicateWithHost lk.salyk.kg:30040 [23:53:08]ConnectInit lk.salyk.kg [23:53:08]Connected sock=10 [23:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7E 28 07 01 B6 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 2E 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 06 00 00 00 00 07 04 06 00 F0 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 64 99 EF 65 0E 04 04 00 46 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 73 01 00 35 04 06 00 DA 64 F3 EF B1 87 82 76 D5 2C 60 3B B1 04 [23:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 16 A7 47 00 5A 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 31 31 10 04 04 00 5C 73 01 00 F4 03 04 00 BC 44 EF 65 B6 04 01 00 00 E8 28 D8 92 07 72 6E 7C [23:53:08]CommunicateWithHost err = 0 [23:53:08]CheckOFDResponse [23:53:08]1017 (14) - 77093643461234 [23:53:08]1041 (16) - 0000000000874811 [23:53:08]1040 (4) - 95068 [23:53:08]1012 (4) - 11.03.2024 17:51 [23:53:08]1206 (1) - 0 [23:53:08]OFD Sender: Remove packet 95068 [23:53:08]ProducePacketName [23:53:08]name=ofd_packets/00095068 [23:53:08]NVStorageDeleteData [23:53:09]Write to MH i2c: 01 00 00 EF 12 01 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: 01 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: 01 07 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: 01 07 00 EF 12 00 80 00 00 00 4D 0D E2 [23:53:09]RasterBufferAndPrint [23:53:09]line [23:53:09]line [23:53:09]line [23:53:09]line [23:53:09]line [23:53:09]written 0, free lines is 3411 [23:53:09]process_action close_receipt done [23:53:09]requested_data is exist [23:53:09]produce_requested_data [23:53:09]requested_item fm.sn is exist - process it [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 11 00 00 [23:53:09]Write to MH i2c: E2 08 00 F6 12 80 11 00 00 00 00 00 00 82 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:09]Read from MH i2c: E2 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 17 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 17 00 F6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D2 [23:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:53:09]wFMCommunicate OK [23:53:09]requested_item fd.num is exist - process it [23:53:09]SAM_PROTO_GetFieldsCounters [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 13 00 00 [23:53:09]Write to MH i2c: E2 08 00 F7 12 80 13 00 00 00 00 00 00 85 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:09]Read from MH i2c: E2 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 62 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 62 00 F7 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [23:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:09]wFMCommunicate OK [23:53:09]SAM_PROTO_GetFieldsCounters done [23:53:09]requested_item shift.num is exist - process it [23:53:09]requested_item shift.opened is exist - process it [23:53:09]req_shift_opened [23:53:09]FM_GetShiftState [23:53:09]SAM_PROTO_GetShiftState [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 13 01 00 [23:53:09]Write to MH i2c: E2 08 00 F8 12 80 13 01 00 00 00 00 00 87 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:09]Read from MH i2c: E2 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 0E 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 0E 00 F8 12 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 23 [23:53:09]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:53:09]wFMCommunicate OK [23:53:09]SAM_PROTO_GetShiftState done [23:53:09]FM_GetShiftState done [23:53:09]req_shift_opened done [23:53:09]requested_item shift.open_date is exist - process it [23:53:09]req_shift_open_date [23:53:09]req_shift_open_date done [23:53:09]produce_requested_data done [23:53:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95068,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:53:09]process_action_free close_receipt [23:53:09]json_value_free [23:53:09]json_value_free done [23:53:09]process_json_proto returns [23:53:09]Send response to host [23:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95068,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:53:09]free response buf [23:53:09]execute_script done [23:53:09]execute_script returns [23:53:09]free content buf [23:53:09]Sock 9.Close socket [23:53:09]Sock 9.Thread stoped [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:07]accept exits with 8 [23:56:07]New connection [23:56:07]New thread 3066957156 created [23:56:07]Thread 3066813796 joined [23:56:07]Waiting for new connection... [23:56:07] Sock 8.Parse request [23:56:07]Sock 8.Check first char [23:56:07]Sock 8.First char is OK [23:56:07]request: POST /json_proto HTTP/1.0 [23:56:07]Method: POST [23:56:07]URL: /json_proto [23:56:07]Method is POST - this is cgi request [23:56:07]url: /json_proto [23:56:07]query_string will be loaded in cgi processing [23:56:07]execute_cgi json_proto POST (null) [23:56:07]execute_cgi path=json_proto method=POST [23:56:07]POST find Content-Length [23:56:07]Host: 172.17.62.67:8080 [23:56:07]Content-Length: 215 [23:56:07]Content-Type: application/json [23:56:07] [23:56:07]POST finish read [23:56:07]Found Content-Length = 215 [23:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:07]execute_script... [23:56:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:07]POST & json_proto [23:56:07]process_json_proto [23:56:07]json parsed OK: [23:56:07]protocol is kg_v1.0 [23:56:07]action value=get_value [23:56:07]process_action get_value [23:56:07]cmd_get_value [23:56:07]process_action get_value done [23:56:07]requested_data is exist [23:56:07]produce_requested_data [23:56:07]requested_item kkm.sn is exist - process it [23:56:07]requested_item kkm.ver is exist - process it [23:56:07]requested_item fm.sn is exist - process it [23:56:07]wFMCommunicate request_size=4 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 11 00 00 [23:56:07]Write to MH i2c: E2 08 00 F9 12 80 11 00 00 00 00 00 00 85 [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 17 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 17 00 F9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D5 [23:56:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:56:07]wFMCommunicate OK [23:56:07]requested_item fd.num is exist - process it [23:56:07]SAM_PROTO_GetFieldsCounters [23:56:07]wFMCommunicate request_size=4 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 13 00 00 [23:56:07]Write to MH i2c: E2 08 00 FA 12 80 13 00 00 00 00 00 00 88 [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 62 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 62 00 FA 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [23:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:07]wFMCommunicate OK [23:56:07]SAM_PROTO_GetFieldsCounters done [23:56:07]requested_item shift.num is exist - process it [23:56:07]requested_item shift.opened is exist - process it [23:56:07]req_shift_opened [23:56:07]FM_GetShiftState [23:56:07]SAM_PROTO_GetShiftState [23:56:07]wFMCommunicate request_size=4 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 13 01 00 [23:56:07]Write to MH i2c: E2 08 00 FB 12 80 13 01 00 00 00 00 00 8A [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 0E 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 0E 00 FB 12 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 26 [23:56:07]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:56:07]wFMCommunicate OK [23:56:07]SAM_PROTO_GetShiftState done [23:56:07]FM_GetShiftState done [23:56:07]req_shift_opened done [23:56:07]requested_item shift.open_date is exist - process it [23:56:07]req_shift_open_date [23:56:07]req_shift_open_date done [23:56:07]produce_requested_data done [23:56:07]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95068,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:56:07]process_action_free get_value [23:56:07]json_value_free [23:56:07]json_value_free done [23:56:07]process_json_proto returns [23:56:07]Send response to host [23:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95068,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:56:07]free response buf [23:56:07]execute_script done [23:56:07]execute_script returns [23:56:07]free content buf [23:56:07]Sock 8.Close socket [23:56:07]Sock 8.Thread stoped [23:56:07]accept exits with 9 [23:56:07]New connection [23:56:07]New thread 3066813796 created [23:56:07]Thread 3066957156 joined [23:56:07]Waiting for new connection... [23:56:07] Sock 9.Parse request [23:56:07]Sock 9.Check first char [23:56:07]Sock 9.First char is OK [23:56:07]request: POST /json_proto HTTP/1.0 [23:56:07]Method: POST [23:56:07]URL: /json_proto [23:56:07]Method is POST - this is cgi request [23:56:07]url: /json_proto [23:56:07]query_string will be loaded in cgi processing [23:56:07]execute_cgi json_proto POST (null) [23:56:07]execute_cgi path=json_proto method=POST [23:56:07]POST find Content-Length [23:56:07]Host: 172.17.62.67:8080 [23:56:07]Content-Length: 331 [23:56:07]Content-Type: application/json [23:56:07] [23:56:07]POST finish read [23:56:07]Found Content-Length = 331 [23:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:07]execute_script... [23:56:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:07]POST & json_proto [23:56:07]process_json_proto [23:56:07]json parsed OK: [23:56:07]protocol is kg_v1.0 [23:56:07]action value=get_value [23:56:07]process_action get_value [23:56:07]cmd_get_value [23:56:07]process_action get_value done [23:56:07]requested_data is exist [23:56:07]produce_requested_data [23:56:07]requested_item fm.sale.total is exist - process it [23:56:07]SAM_PROTO_GetFMData [23:56:07]wFMCommunicate request_size=4 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 13 03 00 [23:56:07]Write to MH i2c: E2 08 00 FC 12 80 13 03 00 00 00 00 00 8D [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 FD 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 FD 00 FC 12 00 C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 ED [23:56:08]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=4 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 17 00 00 [23:56:08]Write to MH i2c: E2 08 00 FD 12 80 17 00 00 00 00 00 00 8F [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 FD 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 FD 00 FD 12 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 24 [23:56:08]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=4 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 17 00 00 [23:56:08]Write to MH i2c: E2 08 00 FE 12 80 17 00 00 00 00 00 00 90 [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 FD 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 FD 00 FE 12 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 68 [23:56:08]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=4 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 17 00 00 [23:56:08]Write to MH i2c: E2 08 00 FF 12 80 17 00 00 00 00 00 00 91 [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 FD 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 FD 00 FF 12 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 09 [23:56:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=4 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 17 00 00 [23:56:08]Write to MH i2c: E2 08 00 00 13 80 17 00 00 00 00 00 00 93 [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:56:09]Read from MH i2c: E2 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 E5 00 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 E5 00 00 13 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [23:56:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:09]wFMCommunicate OK [23:56:09]SAM_PROTO_GetFMData done [23:56:09]requested_item fm.sale_refund.total is exist - process it [23:56:09]requested_item fm.buy.total is exist - process it [23:56:09]requested_item shift.sale.total is exist - process it [23:56:09]SAM_PROTO_GetShiftData [23:56:09]wFMCommunicate request_size=4 [23:56:09]MH_SAM_APDU [23:56:09]CAPDU: 80 13 02 00 [23:56:09]Write to MH i2c: E2 08 00 01 13 80 13 02 00 00 00 00 00 92 [23:56:09]Write i2c OK [23:56:09]MH_I2C_Read... [23:56:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:09]Read from MH i2c: E2 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 FD 00 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 FD 00 01 13 00 BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 C8 [23:56:09]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:56:09]wFMCommunicate OK [23:56:09]wFMCommunicate request_size=4 [23:56:09]MH_SAM_APDU [23:56:09]CAPDU: 80 17 00 00 [23:56:09]Write to MH i2c: E2 08 00 02 13 80 17 00 00 00 00 00 00 95 [23:56:09]Write i2c OK [23:56:09]MH_I2C_Read... [23:56:09]OFD Sender: No OFD packet to send [23:56:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:09]Read from MH i2c: E2 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 FD 00 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 FD 00 02 13 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 55 [23:56:09]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [23:56:09]wFMCommunicate OK [23:56:09]wFMCommunicate request_size=4 [23:56:09]MH_SAM_APDU [23:56:09]CAPDU: 80 17 00 00 [23:56:09]Write to MH i2c: E2 08 00 03 13 80 17 00 00 00 00 00 00 96 [23:56:09]Write i2c OK [23:56:09]MH_I2C_Read... [23:56:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:10]Read from MH i2c: E2 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 FD 00 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 FD 00 03 13 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 BF [23:56:10]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [23:56:10]wFMCommunicate OK [23:56:10]wFMCommunicate request_size=4 [23:56:10]MH_SAM_APDU [23:56:10]CAPDU: 80 17 00 00 [23:56:10]Write to MH i2c: E2 08 00 04 13 80 17 00 00 00 00 00 00 97 [23:56:10]Write i2c OK [23:56:10]MH_I2C_Read... [23:56:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:10]Read from MH i2c: E2 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 FD 00 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 FD 00 04 13 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 18 [23:56:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:56:10]wFMCommunicate OK [23:56:10]wFMCommunicate request_size=4 [23:56:10]MH_SAM_APDU [23:56:10]CAPDU: 80 17 00 00 [23:56:10]Write to MH i2c: E2 08 00 05 13 80 17 00 00 00 00 00 00 98 [23:56:10]Write i2c OK [23:56:10]MH_I2C_Read... [23:56:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:56:10]Read from MH i2c: E2 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 D9 00 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 D9 00 05 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [23:56:10]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:10]wFMCommunicate OK [23:56:10]SAM_PROTO_GetShiftData done [23:56:10]requested_item shift.sale.total_cash is exist - process it [23:56:10]requested_item shift.sale_refund.total is exist - process it [23:56:10]requested_item shift.sale_refund.total_cash is exist - process it [23:56:10]requested_item shift.buy.total is exist - process it [23:56:10]requested_item shift.buy.total_cash is exist - process it [23:56:10]produce_requested_data done [23:56:10]produce_requested_data return {"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:56:10]process_action_free get_value [23:56:10]json_value_free [23:56:10]json_value_free done [23:56:10]process_json_proto returns [23:56:10]Send response to host [23:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:56:10]free response buf [23:56:10]execute_script done [23:56:10]execute_script returns [23:56:10]free content buf [23:56:10]Sock 9.Close socket [23:56:10]Sock 9.Thread stoped [23:56:10]accept exits with 8 [23:56:10]New connection [23:56:10]New thread 3066957156 created [23:56:10]Thread 3066813796 joined [23:56:10]Waiting for new connection... [23:56:10] Sock 8.Parse request [23:56:10]Sock 8.Check first char [23:56:10]Sock 8.First char is OK [23:56:10]request: POST /json_proto HTTP/1.0 [23:56:10]Method: POST [23:56:10]URL: /json_proto [23:56:10]Method is POST - this is cgi request [23:56:10]url: /json_proto [23:56:10]query_string will be loaded in cgi processing [23:56:10]execute_cgi json_proto POST (null) [23:56:10]execute_cgi path=json_proto method=POST [23:56:10]POST find Content-Length [23:56:10]Host: 172.17.62.67:8080 [23:56:10]Content-Length: 331 [23:56:10]Content-Type: application/json [23:56:10] [23:56:10]POST finish read [23:56:10]Found Content-Length = 331 [23:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:10]execute_script... [23:56:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:10]POST & json_proto [23:56:10]process_json_proto [23:56:10]json parsed OK: [23:56:10]protocol is kg_v1.0 [23:56:10]action value=get_value [23:56:10]process_action get_value [23:56:10]cmd_get_value [23:56:10]process_action get_value done [23:56:10]requested_data is exist [23:56:10]produce_requested_data [23:56:10]requested_item fm.sale.total is exist - process it [23:56:10]SAM_PROTO_GetFMData [23:56:10]wFMCommunicate request_size=4 [23:56:10]MH_SAM_APDU [23:56:10]CAPDU: 80 13 03 00 [23:56:10]Write to MH i2c: E2 08 00 06 13 80 13 03 00 00 00 00 00 98 [23:56:10]Write i2c OK [23:56:10]MH_I2C_Read... [23:56:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:11]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 FD 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 FD 00 06 13 00 C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 F8 [23:56:11]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 [23:56:11]wFMCommunicate OK [23:56:11]wFMCommunicate request_size=4 [23:56:11]MH_SAM_APDU [23:56:11]CAPDU: 80 17 00 00 [23:56:11]Write to MH i2c: E2 08 00 07 13 80 17 00 00 00 00 00 00 9A [23:56:11]Write i2c OK [23:56:11]MH_I2C_Read... [23:56:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:11]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 FD 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 FD 00 07 13 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 2F [23:56:11]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [23:56:11]wFMCommunicate OK [23:56:11]wFMCommunicate request_size=4 [23:56:11]MH_SAM_APDU [23:56:11]CAPDU: 80 17 00 00 [23:56:11]Write to MH i2c: E2 08 00 08 13 80 17 00 00 00 00 00 00 9B [23:56:11]Write i2c OK [23:56:11]MH_I2C_Read... [23:56:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:12]Read from MH i2c: E2 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 FD 00 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 FD 00 08 13 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 73 [23:56:12]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:56:12]wFMCommunicate OK [23:56:12]wFMCommunicate request_size=4 [23:56:12]MH_SAM_APDU [23:56:12]CAPDU: 80 17 00 00 [23:56:12]Write to MH i2c: E2 08 00 09 13 80 17 00 00 00 00 00 00 9C [23:56:12]Write i2c OK [23:56:12]MH_I2C_Read... [23:56:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:12]Read from MH i2c: E2 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 FD 00 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 FD 00 09 13 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 14 [23:56:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:56:12]wFMCommunicate OK [23:56:12]wFMCommunicate request_size=4 [23:56:12]MH_SAM_APDU [23:56:12]CAPDU: 80 17 00 00 [23:56:12]Write to MH i2c: E2 08 00 0A 13 80 17 00 00 00 00 00 00 9D [23:56:12]Write i2c OK [23:56:12]MH_I2C_Read... [23:56:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:56:12]Read from MH i2c: E2 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 E5 00 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: E2 E5 00 0A 13 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [23:56:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:12]wFMCommunicate OK [23:56:12]SAM_PROTO_GetFMData done [23:56:12]requested_item fm.sale_refund.total is exist - process it [23:56:12]requested_item fm.buy.total is exist - process it [23:56:12]requested_item shift.sale.total is exist - process it [23:56:12]SAM_PROTO_GetShiftData [23:56:12]wFMCommunicate request_size=4 [23:56:12]MH_SAM_APDU [23:56:12]CAPDU: 80 13 02 00 [23:56:12]Write to MH i2c: E2 08 00 0B 13 80 13 02 00 00 00 00 00 9C [23:56:12]Write i2c OK [23:56:12]MH_I2C_Read... [23:56:13]Read from MH i2c: E2 [23:56:13]MH_I2C_Read... [23:56:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:13]Read from MH i2c: E2 FD 00 [23:56:13]MH_I2C_Read... [23:56:13]Read from MH i2c: E2 FD 00 0B 13 00 BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D2 [23:56:13]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:56:13]wFMCommunicate OK [23:56:13]wFMCommunicate request_size=4 [23:56:13]MH_SAM_APDU [23:56:13]CAPDU: 80 17 00 00 [23:56:13]Write to MH i2c: E2 08 00 0C 13 80 17 00 00 00 00 00 00 9F [23:56:13]Write i2c OK [23:56:13]MH_I2C_Read... [23:56:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:13]Read from MH i2c: E2 [23:56:13]MH_I2C_Read... [23:56:13]Read from MH i2c: E2 FD 00 [23:56:13]MH_I2C_Read... [23:56:13]Read from MH i2c: E2 FD 00 0C 13 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 5F [23:56:13]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [23:56:13]wFMCommunicate OK [23:56:13]wFMCommunicate request_size=4 [23:56:13]MH_SAM_APDU [23:56:13]CAPDU: 80 17 00 00 [23:56:13]Write to MH i2c: E2 08 00 0D 13 80 17 00 00 00 00 00 00 A0 [23:56:13]Write i2c OK [23:56:13]MH_I2C_Read... [23:56:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:14]Read from MH i2c: E2 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 FD 00 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 FD 00 0D 13 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 C9 [23:56:14]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [23:56:14]wFMCommunicate OK [23:56:14]wFMCommunicate request_size=4 [23:56:14]MH_SAM_APDU [23:56:14]CAPDU: 80 17 00 00 [23:56:14]Write to MH i2c: E2 08 00 0E 13 80 17 00 00 00 00 00 00 A1 [23:56:14]Write i2c OK [23:56:14]MH_I2C_Read... [23:56:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:14]Read from MH i2c: E2 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 FD 00 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 FD 00 0E 13 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 22 [23:56:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:56:14]wFMCommunicate OK [23:56:14]wFMCommunicate request_size=4 [23:56:14]MH_SAM_APDU [23:56:14]CAPDU: 80 17 00 00 [23:56:14]Write to MH i2c: E2 08 00 0F 13 80 17 00 00 00 00 00 00 A2 [23:56:14]Write i2c OK [23:56:14]MH_I2C_Read... [23:56:14]OFD Sender: No OFD packet to send [23:56:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:56:14]Read from MH i2c: E2 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 D9 00 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 D9 00 0F 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [23:56:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:14]wFMCommunicate OK [23:56:14]SAM_PROTO_GetShiftData done [23:56:14]requested_item shift.sale.total_cash is exist - process it [23:56:14]requested_item shift.sale_refund.total is exist - process it [23:56:14]requested_item shift.sale_refund.total_cash is exist - process it [23:56:14]requested_item shift.buy.total is exist - process it [23:56:14]requested_item shift.buy.total_cash is exist - process it [23:56:14]produce_requested_data done [23:56:14]produce_requested_data return {"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:56:14]process_action_free get_value [23:56:14]json_value_free [23:56:14]json_value_free done [23:56:14]process_json_proto returns [23:56:14]Send response to host [23:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:56:14]free response buf [23:56:14]execute_script done [23:56:14]execute_script returns [23:56:14]free content buf [23:56:14]Sock 8.Close socket [23:56:14]Sock 8.Thread stoped [23:56:14]accept exits with 9 [23:56:14]New connection [23:56:14]New thread 3066813796 created [23:56:14]Thread 3066957156 joined [23:56:14]Waiting for new connection... [23:56:14] Sock 9.Parse request [23:56:14]Sock 9.Check first char [23:56:14]Sock 9.First char is OK [23:56:14]request: POST /json_proto HTTP/1.0 [23:56:14]Method: POST [23:56:14]URL: /json_proto [23:56:14]Method is POST - this is cgi request [23:56:14]url: /json_proto [23:56:14]query_string will be loaded in cgi processing [23:56:14]execute_cgi json_proto POST (null) [23:56:14]execute_cgi path=json_proto method=POST [23:56:14]POST find Content-Length [23:56:14]Host: 172.17.62.67:8080 [23:56:14]Content-Length: 256 [23:56:14]Content-Type: application/json [23:56:14] [23:56:14]POST finish read [23:56:14]Found Content-Length = 256 [23:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:14]execute_script... [23:56:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:14]POST & json_proto [23:56:14]process_json_proto [23:56:14]json parsed OK: [23:56:14]protocol is kg_v1.0 [23:56:14]action value=x_report [23:56:14]process_action x_report [23:56:14]cmd_x_report [23:56:14]MH_GetDate [23:56:14]Write to MH i2c: F0 00 00 10 13 12 [23:56:14]Write i2c OK [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: F0 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: F0 05 00 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: F0 05 00 10 13 00 21 9A EF 65 26 [23:56:14]GetLastDocTimeStamp 1710201188 [23:56:14]current date 1710201377 [23:56:14]FM_GetShiftState [23:56:14]SAM_PROTO_GetShiftState [23:56:14]wFMCommunicate request_size=4 [23:56:14]MH_SAM_APDU [23:56:14]CAPDU: 80 13 01 00 [23:56:14]Write to MH i2c: E2 08 00 11 13 80 13 01 00 00 00 00 00 A1 [23:56:14]Write i2c OK [23:56:14]MH_I2C_Read... [23:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:15]Read from MH i2c: E2 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 0E 00 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 0E 00 11 13 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 3D [23:56:15]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:56:15]wFMCommunicate OK [23:56:15]SAM_PROTO_GetShiftState done [23:56:15]FM_GetShiftState done [23:56:15]KKMCreateXReportDocument [23:56:15]Load OK [23:56:15]Malloc new data [23:56:15]MH_GetDate [23:56:15]Write to MH i2c: F0 00 00 12 13 14 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: F0 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: F0 05 00 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: F0 05 00 12 13 00 21 9A EF 65 28 [23:56:15]Malloc new data [23:56:15]Malloc new data [23:56:15]wFMCommunicate request_size=4 [23:56:15]MH_SAM_APDU [23:56:15]CAPDU: 80 11 00 00 [23:56:15]Write to MH i2c: E2 08 00 13 13 80 11 00 00 00 00 00 00 A0 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:15]Read from MH i2c: E2 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 17 00 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 17 00 13 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F0 [23:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:56:15]wFMCommunicate OK [23:56:15]SAM_PROTO_GetFieldsCounters [23:56:15]wFMCommunicate request_size=4 [23:56:15]MH_SAM_APDU [23:56:15]CAPDU: 80 13 00 00 [23:56:15]Write to MH i2c: E2 08 00 14 13 80 13 00 00 00 00 00 00 A3 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:15]Read from MH i2c: E2 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 62 00 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 62 00 14 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [23:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:15]wFMCommunicate OK [23:56:15]SAM_PROTO_GetFieldsCounters done [23:56:15]Malloc new data [23:56:15]Malloc new data [23:56:15]Malloc new data [23:56:15]KKMCreateXReportDocument OK [23:56:15]KKMSetXReportData OK [23:56:15]KKMPrepareXReportFMData [23:56:15]SAM_PROTO_GetShiftData [23:56:15]wFMCommunicate request_size=4 [23:56:15]MH_SAM_APDU [23:56:15]CAPDU: 80 13 02 00 [23:56:15]Write to MH i2c: E2 08 00 15 13 80 13 02 00 00 00 00 00 A6 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:15]Read from MH i2c: E2 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 FD 00 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 FD 00 15 13 00 BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 DC [23:56:15]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:56:15]wFMCommunicate OK [23:56:15]wFMCommunicate request_size=4 [23:56:15]MH_SAM_APDU [23:56:15]CAPDU: 80 17 00 00 [23:56:15]Write to MH i2c: E2 08 00 16 13 80 17 00 00 00 00 00 00 A9 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:16]Read from MH i2c: E2 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 FD 00 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 FD 00 16 13 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 69 [23:56:16]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [23:56:16]wFMCommunicate OK [23:56:16]wFMCommunicate request_size=4 [23:56:16]MH_SAM_APDU [23:56:16]CAPDU: 80 17 00 00 [23:56:16]Write to MH i2c: E2 08 00 17 13 80 17 00 00 00 00 00 00 AA [23:56:16]Write i2c OK [23:56:16]MH_I2C_Read... [23:56:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:16]Read from MH i2c: E2 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 FD 00 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 FD 00 17 13 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 D3 [23:56:16]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [23:56:16]wFMCommunicate OK [23:56:16]wFMCommunicate request_size=4 [23:56:16]MH_SAM_APDU [23:56:16]CAPDU: 80 17 00 00 [23:56:16]Write to MH i2c: E2 08 00 18 13 80 17 00 00 00 00 00 00 AB [23:56:16]Write i2c OK [23:56:16]MH_I2C_Read... [23:56:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:17]Read from MH i2c: E2 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 FD 00 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 FD 00 18 13 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 2C [23:56:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:56:17]wFMCommunicate OK [23:56:17]wFMCommunicate request_size=4 [23:56:17]MH_SAM_APDU [23:56:17]CAPDU: 80 17 00 00 [23:56:17]Write to MH i2c: E2 08 00 19 13 80 17 00 00 00 00 00 00 AC [23:56:17]Write i2c OK [23:56:17]MH_I2C_Read... [23:56:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:56:17]Read from MH i2c: E2 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 D9 00 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 D9 00 19 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [23:56:17]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:17]wFMCommunicate OK [23:56:17]SAM_PROTO_GetShiftData done [23:56:17]1194 (1208) - счетчики итогов смены [23:56:17] 1134 (4) - 243 - количество чеков со всеми признаками расчетов [23:56:17] 1129 (158) - счетчики операций «приход» [23:56:17] 1135 (4) - 235 - количество чеков по признаку расчетов [23:56:17] 1201 (4) - 233238.93 - общая итоговая сумма в чеках [23:56:17] 1136 (4) - 174061.00 - итоговая сумма в чеках наличными [23:56:17] 1138 (3) - 59177.93 - итоговая сумма в чеках безналичными [23:56:17] 1024 (123) - суммы налогов [23:56:17] 1006 (9) - суммы НДС [23:56:17] 1010 (1) - 0% - код ставки НДС [23:56:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:17] 1006 (12) - суммы НДС [23:56:17] 1010 (1) - 12% - код ставки НДС [23:56:17] 1011 (3) - 24772.32 - сумма НДС по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 0% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (12) - суммы НСП [23:56:17] 1014 (1) - 1% - код ставки НСП [23:56:17] 1015 (3) - 2064.04 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 2% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 3% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 5% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 0,50% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 1,50% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1130 (152) - счетчики операций «возврат прихода» [23:56:17] 1135 (4) - 8 - количество чеков по признаку расчетов [23:56:17] 1201 (3) - 41808.00 - общая итоговая сумма в чеках [23:56:17] 1136 (3) - 41808.00 - итоговая сумма в чеках наличными [23:56:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:17] 1024 (122) - суммы налогов [23:56:17] 1006 (9) - суммы НДС [23:56:17] 1010 (1) - 0% - код ставки НДС [23:56:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:17] 1006 (12) - суммы НДС [23:56:17] 1010 (1) - 12% - код ставки НДС [23:56:17] 1011 (3) - 4439.88 - сумма НДС по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 0% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (11) - суммы НСП [23:56:17] 1014 (1) - 1% - код ставки НСП [23:56:17] 1015 (2) - 369.98 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 2% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 3% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 5% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 0,50% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 1,50% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1131 (141) - счетчики операций «расход» [23:56:17] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:17] 1024 (117) - суммы налогов [23:56:17] 1006 (9) - суммы НДС [23:56:17] 1010 (1) - 0% - код ставки НДС [23:56:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:17] 1006 (9) - суммы НДС [23:56:17] 1010 (1) - 12% - код ставки НДС [23:56:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 0% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 1% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 2% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 3% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 5% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 0,50% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:17] 1014 (1) - 1,50% - код ставки НСП [23:56:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:17] 1132 (141) - счетчики операций «возврат расхода» [23:56:17] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:17] 1024 (117) - суммы налогов [23:56:17] 1006 (9) - суммы НДС [23:56:17] 1010 (1) - 0% - код ставки НДС [23:56:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:17] 1006 (9) - суммы НДС [23:56:17] 1010 (1) - 12% - код ставки НДС [23:56:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:17] 1007 (9) - суммы НСП [23:56:18] 1014 (1) - 0% - код ставки НСП [23:56:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:18] 1007 (9) - суммы НСП [23:56:18] 1014 (1) - 1% - код ставки НСП [23:56:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:18] 1007 (9) - суммы НСП [23:56:18] 1014 (1) - 2% - код ставки НСП [23:56:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:18] 1007 (9) - суммы НСП [23:56:18] 1014 (1) - 3% - код ставки НСП [23:56:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:18] 1007 (9) - суммы НСП [23:56:18] 1014 (1) - 5% - код ставки НСП [23:56:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:18] 1007 (9) - суммы НСП [23:56:18] 1014 (1) - 0,50% - код ставки НСП [23:56:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:18] 1007 (9) - суммы НСП [23:56:18] 1014 (1) - 1,50% - код ставки НСП [23:56:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:18] 1133 (588) - - счетчики коррекции - не используются [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1194 (04AA) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1134 (046E) [23:56:18]Malloc new data [23:56:18]Processing tag 1129 (0469) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1135 (046F) [23:56:18]Malloc new data [23:56:18]Processing tag 1201 (04B1) [23:56:18]Malloc new data [23:56:18]Processing tag 1136 (0470) [23:56:18]Malloc new data [23:56:18]Processing tag 1138 (0472) [23:56:18]Malloc new data [23:56:18]Processing tag 1024 (0400) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1006 (03EE) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1010 (03F2) [23:56:18]Malloc new data [23:56:18]Processing tag 1011 (03F3) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1006 (03EE) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1010 (03F2) [23:56:18]Malloc new data [23:56:18]Processing tag 1011 (03F3) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1130 (046A) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1135 (046F) [23:56:18]Malloc new data [23:56:18]Processing tag 1201 (04B1) [23:56:18]Malloc new data [23:56:18]Processing tag 1136 (0470) [23:56:18]Malloc new data [23:56:18]Processing tag 1138 (0472) [23:56:18]Malloc new data [23:56:18]Processing tag 1024 (0400) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1006 (03EE) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1010 (03F2) [23:56:18]Malloc new data [23:56:18]Processing tag 1011 (03F3) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1006 (03EE) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1010 (03F2) [23:56:18]Malloc new data [23:56:18]Processing tag 1011 (03F3) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1131 (046B) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1135 (046F) [23:56:18]Malloc new data [23:56:18]Processing tag 1201 (04B1) [23:56:18]Malloc new data [23:56:18]Processing tag 1136 (0470) [23:56:18]Malloc new data [23:56:18]Processing tag 1138 (0472) [23:56:18]Malloc new data [23:56:18]Processing tag 1024 (0400) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1006 (03EE) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1010 (03F2) [23:56:18]Malloc new data [23:56:18]Processing tag 1011 (03F3) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1006 (03EE) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1010 (03F2) [23:56:18]Malloc new data [23:56:18]Processing tag 1011 (03F3) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1132 (046C) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1135 (046F) [23:56:18]Malloc new data [23:56:18]Processing tag 1201 (04B1) [23:56:18]Malloc new data [23:56:18]Processing tag 1136 (0470) [23:56:18]Malloc new data [23:56:18]Processing tag 1138 (0472) [23:56:18]Malloc new data [23:56:18]Processing tag 1024 (0400) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1006 (03EE) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1010 (03F2) [23:56:18]Malloc new data [23:56:18]Processing tag 1011 (03F3) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1006 (03EE) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1010 (03F2) [23:56:18]Malloc new data [23:56:18]Processing tag 1011 (03F3) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1007 (03EF) [23:56:18]Load OK [23:56:18]SetTLVBufToDocument [23:56:18]Processing tag 1014 (03F6) [23:56:18]Malloc new data [23:56:18]Processing tag 1015 (03F7) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Processing tag 1133 (046D) [23:56:18]Malloc new data [23:56:18]SetTLVBufToDocument err=0 [23:56:18]SetTLVBufToDocument err=0 [23:56:18]Malloc new data [23:56:18]SAM_PROTO_GetFMData [23:56:18]wFMCommunicate request_size=4 [23:56:18]MH_SAM_APDU [23:56:18]CAPDU: 80 13 03 00 [23:56:18]Write to MH i2c: E2 08 00 1A 13 80 13 03 00 00 00 00 00 AC [23:56:18]Write i2c OK [23:56:18]MH_I2C_Read... [23:56:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:19]Read from MH i2c: E2 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 1A 13 00 C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 0C [23:56:19]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 [23:56:19]wFMCommunicate OK [23:56:19]wFMCommunicate request_size=4 [23:56:19]MH_SAM_APDU [23:56:19]CAPDU: 80 17 00 00 [23:56:19]Write to MH i2c: E2 08 00 1B 13 80 17 00 00 00 00 00 00 AE [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]OFD Sender: No OFD packet to send [23:56:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:19]Read from MH i2c: E2 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 FD 00 1B 13 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 43 [23:56:19]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [23:56:20]wFMCommunicate OK [23:56:20]wFMCommunicate request_size=4 [23:56:20]MH_SAM_APDU [23:56:20]CAPDU: 80 17 00 00 [23:56:20]Write to MH i2c: E2 08 00 1C 13 80 17 00 00 00 00 00 00 AF [23:56:20]Write i2c OK [23:56:20]MH_I2C_Read... [23:56:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:20]Read from MH i2c: E2 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 FD 00 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 FD 00 1C 13 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 87 [23:56:20]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:56:20]wFMCommunicate OK [23:56:20]wFMCommunicate request_size=4 [23:56:20]MH_SAM_APDU [23:56:20]CAPDU: 80 17 00 00 [23:56:20]Write to MH i2c: E2 08 00 1D 13 80 17 00 00 00 00 00 00 B0 [23:56:20]Write i2c OK [23:56:20]MH_I2C_Read... [23:56:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:20]Read from MH i2c: E2 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 FD 00 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 FD 00 1D 13 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 28 [23:56:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:56:21]wFMCommunicate OK [23:56:21]wFMCommunicate request_size=4 [23:56:21]MH_SAM_APDU [23:56:21]CAPDU: 80 17 00 00 [23:56:21]Write to MH i2c: E2 08 00 1E 13 80 17 00 00 00 00 00 00 B1 [23:56:21]Write i2c OK [23:56:21]MH_I2C_Read... [23:56:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:56:21]Read from MH i2c: E2 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 E5 00 [23:56:21]MH_I2C_Read... [23:56:21]Read from MH i2c: E2 E5 00 1E 13 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 95 [23:56:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:21]wFMCommunicate OK [23:56:21]SAM_PROTO_GetFMData done [23:56:21]FM_GetFMData:85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:56:22]oper:6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:56:22]total:82 32 DE AF 01 [23:56:22]Malloc new data [23:56:22]oper:6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:56:22]total:C4 21 E9 21 [23:56:22]Malloc new data [23:56:22]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:56:22]total: [23:56:22]Malloc new data [23:56:22]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:56:22]total: [23:56:22]Malloc new data [23:56:22]KKMPrepareXReportFMData err=0 [23:56:22]Х отчет ИНН: 02508201610067 Кассир: Карыбаев Б. 11.03.2024 23:56 Смена: 266 РНМ: 0000000000090555 ЗНМ: 0300000009 СНО: Общий режим Всего чеков: 243 ИТОГИ ПРИХОД Чеков: 235 Общий итог: 233238.93 Итого наличными: 174061.00 Итого безнал.: 59177.93 НДС 0% : 0.00 НДС 12% : 24772.32 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2064.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 8 Общий итог: 41808.00 Итого наличными: 41808.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 4439.88 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 369.98 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 132253.00 НС Приход: 72455420.18 НС Возвр.Прихода: 5689266.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874811 [23:56:22]StoreToDocumentArchive [23:56:22]MH_GetDate [23:56:22]Write to MH i2c: F0 00 00 1F 13 21 [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: F0 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: F0 05 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: F0 05 00 1F 13 00 28 9A EF 65 3C [23:56:22]shift 266 fd 1710201384 [23:56:22]Create dir for shift 0266 [23:56:22]save to /storage/0266/doc_1710201384 [23:56:22]save last doc name /storage/0266/doc_1710201384 to /storage/kkm_last_doc_name [23:56:22]save OK [23:56:22]Clear old archive folders... [23:56:22]NVStorageSaveData kkm_last_timestamp [23:56:22]File name is /storage/kkm_last_timestamp [23:56:22]Write 4 bytes [23:56:22]NVStorageSaveData done [23:56:22]ExternCall_PrintAddStr [23:56:22]wPrintStart [23:56:22]Write to MH i2c: 01 00 00 20 13 33 [23:56:22]Write i2c OK [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: 01 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: 01 07 00 [23:56:22]MH_I2C_Read... [23:56:22]Read from MH i2c: 01 07 00 20 13 00 80 00 00 00 FF 0F C8 [23:56:22]RasterBufferAndPrint [23:56:22]line Х отчет [23:56:22]line ИНН: 02508201610067 [23:56:22]line Кассир: Карыбаев Б. [23:56:22]line 11.03.2024 23:56 [23:56:22]line Смена: 266 [23:56:22]line РНМ: 0000000000090555 [23:56:22]line ЗНМ: 0300000009 [23:56:22]line СНО: Общий режим [23:56:22]line Всего чеков: 243 [23:56:22]line ИТОГИ ПРИХОД [23:56:22]line Чеков: 235 [23:56:22]line Общий итог: 233238.93 [23:56:22]line Итого наличными: 174061.00 [23:56:22]line Итого безнал.: 59177.93 [23:56:22]line НДС 0% : 0.00 [23:56:22]line НДС 12% : 24772.32 [23:56:22]line НСП 0% : 0.00 [23:56:22]line НСП 1,50% : 0.00 [23:56:22]line НСП 0,50% : 0.00 [23:56:22]line НСП 5% : 0.00 [23:56:22]line НСП 3% : 0.00 [23:56:22]line НСП 2% : 0.00 [23:56:22]line НСП 1% : 2064.04 [23:56:22]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:56:22]line Чеков: 8 [23:56:22]line Общий итог: 41808.00 [23:56:22]line Итого наличными: 41808.00 [23:56:22]line Итого безнал.: 0.00 [23:56:22]line НДС 0% : 0.00 [23:56:22]line НДС 12% : 4439.88 [23:56:22]line НСП 0% : 0.00 [23:56:22]line НСП 1,50% : 0.00 [23:56:22]line НСП 0,50% : 0.00 [23:56:22]line НСП 5% : 0.00 [23:56:22]line НСП 3% : 0.00 [23:56:22]line НСП 2% : 0.00 [23:56:22]line НСП 1% : 369.98 [23:56:22]line ИТОГИ РАСХОД [23:56:22]line Чеков: 0 [23:56:22]line Общий итог: 0.00 [23:56:22]line Итого наличными: 0.00 [23:56:22]line Итого безнал.: 0.00 [23:56:22]line НДС 0% : 0.00 [23:56:22]line НДС 12% : 0.00 [23:56:22]line НСП 0% : 0.00 [23:56:22]line НСП 1,50% : 0.00 [23:56:22]line НСП 0,50% : 0.00 [23:56:22]line НСП 5% : 0.00 [23:56:22]line НСП 3% : 0.00 [23:56:22]line НСП 2% : 0.00 [23:56:22]line НСП 1% : 0.00 [23:56:22]line ИТОГИ ВОЗВРАТ РАСХОДА [23:56:22]line Чеков: 0 [23:56:22]line Общий итог: 0.00 [23:56:22]line Итого наличными: 0.00 [23:56:22]line Итого безнал.: 0.00 [23:56:22]line НДС 0% : 0.00 [23:56:22]line НДС 12% : 0.00 [23:56:22]line НСП 0% : 0.00 [23:56:22]line НСП 1,50% : 0.00 [23:56:22]line НСП 0,50% : 0.00 [23:56:22]line НСП 5% : 0.00 [23:56:22]line НСП 3% : 0.00 [23:56:22]line НСП 2% : 0.00 [23:56:22]line НСП 1% : 0.00 [23:56:22]line Сумма внесений: 0.00 [23:56:22]line Сумма выплат: 0.00 [23:56:22]line Нал. в кассе: 132253.00 [23:56:22]line НС Приход: 72455420.18 [23:56:22]line НС Возвр.Прихода: 5689266.60 [23:56:22]line НС Расход: 0.00 [23:56:22]line НС Возвр.Расхода: 0.00 [23:56:22]line ФМ: 0000000000874811 [23:56:22]written 0, free lines is 4095 [23:56:23]Write to MH i2c: 01 00 00 6B 13 7E [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: 01 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: 01 07 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: 01 07 00 6B 13 00 80 00 00 00 7B 0B 8B [23:56:23]RasterBufferAndPrint [23:56:23]line [23:56:23]line [23:56:23]line [23:56:23]line [23:56:23]line [23:56:23]written 0, free lines is 2971 [23:56:23]process_action x_report done [23:56:23]requested_data is exist [23:56:23]produce_requested_data [23:56:23]requested_item fd.num is exist - process it [23:56:23]SAM_PROTO_GetFieldsCounters [23:56:23]wFMCommunicate request_size=4 [23:56:23]MH_SAM_APDU [23:56:23]CAPDU: 80 13 00 00 [23:56:23]Write to MH i2c: E2 08 00 72 13 80 13 00 00 00 00 00 00 01 [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:23]Read from MH i2c: E2 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 62 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 62 00 72 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [23:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:23]wFMCommunicate OK [23:56:23]SAM_PROTO_GetFieldsCounters done [23:56:23]requested_item shift.num is exist - process it [23:56:23]requested_item shift.opened is exist - process it [23:56:23]req_shift_opened [23:56:23]FM_GetShiftState [23:56:23]SAM_PROTO_GetShiftState [23:56:23]wFMCommunicate request_size=4 [23:56:23]MH_SAM_APDU [23:56:23]CAPDU: 80 13 01 00 [23:56:23]Write to MH i2c: E2 08 00 73 13 80 13 01 00 00 00 00 00 03 [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:23]Read from MH i2c: E2 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 0E 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 0E 00 73 13 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 9F [23:56:23]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:56:23]wFMCommunicate OK [23:56:23]SAM_PROTO_GetShiftState done [23:56:23]FM_GetShiftState done [23:56:23]req_shift_opened done [23:56:23]requested_item shift.open_date is exist - process it [23:56:23]req_shift_open_date [23:56:23]req_shift_open_date done [23:56:23]produce_requested_data done [23:56:23]produce_requested_data return {"fd.num":95068,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:56:23]process_action_free x_report [23:56:23]json_value_free [23:56:23]json_value_free done [23:56:23]process_json_proto returns [23:56:23]Send response to host [23:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":95068,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:56:23]free response buf [23:56:23]execute_script done [23:56:23]execute_script returns [23:56:23]free content buf [23:56:23]Sock 9.Close socket [23:56:23]Sock 9.Thread stoped [23:56:24]OFD Sender: No OFD packet to send [23:56:25]accept exits with 8 [23:56:25]New connection [23:56:25]New thread 3066957156 created [23:56:25]Thread 3066813796 joined [23:56:25]Waiting for new connection... [23:56:25] Sock 8.Parse request [23:56:25]Sock 8.Check first char [23:56:25]Sock 8.First char is OK [23:56:25]request: POST /json_proto HTTP/1.0 [23:56:25]Method: POST [23:56:25]URL: /json_proto [23:56:25]Method is POST - this is cgi request [23:56:25]url: /json_proto [23:56:25]query_string will be loaded in cgi processing [23:56:25]execute_cgi json_proto POST (null) [23:56:25]execute_cgi path=json_proto method=POST [23:56:25]POST find Content-Length [23:56:25]Host: 172.17.62.67:8080 [23:56:25]Content-Length: 215 [23:56:25]Content-Type: application/json [23:56:25] [23:56:25]POST finish read [23:56:25]Found Content-Length = 215 [23:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:25]execute_script... [23:56:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:25]POST & json_proto [23:56:25]process_json_proto [23:56:25]json parsed OK: [23:56:25]protocol is kg_v1.0 [23:56:25]action value=get_value [23:56:25]process_action get_value [23:56:25]cmd_get_value [23:56:25]process_action get_value done [23:56:25]requested_data is exist [23:56:25]produce_requested_data [23:56:25]requested_item kkm.sn is exist - process it [23:56:25]requested_item kkm.ver is exist - process it [23:56:25]requested_item fm.sn is exist - process it [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 11 00 00 [23:56:25]Write to MH i2c: E2 08 00 74 13 80 11 00 00 00 00 00 00 01 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 17 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 17 00 74 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 51 [23:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:56:25]wFMCommunicate OK [23:56:25]requested_item fd.num is exist - process it [23:56:25]SAM_PROTO_GetFieldsCounters [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 13 00 00 [23:56:25]Write to MH i2c: E2 08 00 75 13 80 13 00 00 00 00 00 00 04 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 62 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 62 00 75 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [23:56: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:26]wFMCommunicate OK [23:56:26]SAM_PROTO_GetFieldsCounters done [23:56:26]requested_item shift.num is exist - process it [23:56:26]requested_item shift.opened is exist - process it [23:56:26]req_shift_opened [23:56:26]FM_GetShiftState [23:56:26]SAM_PROTO_GetShiftState [23:56:26]wFMCommunicate request_size=4 [23:56:26]MH_SAM_APDU [23:56:26]CAPDU: 80 13 01 00 [23:56:26]Write to MH i2c: E2 08 00 76 13 80 13 01 00 00 00 00 00 06 [23:56:26]Write i2c OK [23:56:26]MH_I2C_Read... [23:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:26]Read from MH i2c: E2 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 0E 00 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 0E 00 76 13 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 A2 [23:56:26]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:56:26]wFMCommunicate OK [23:56:26]SAM_PROTO_GetShiftState done [23:56:26]FM_GetShiftState done [23:56:26]req_shift_opened done [23:56:26]requested_item shift.open_date is exist - process it [23:56:26]req_shift_open_date [23:56:26]req_shift_open_date done [23:56:26]produce_requested_data done [23:56:26]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95068,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571} [23:56:26]process_action_free get_value [23:56:26]json_value_free [23:56:26]json_value_free done [23:56:26]process_json_proto returns [23:56:26]Send response to host [23:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95068,"shift.num":326,"shift.opened":1,"shift.open_date":1710115571}}} [23:56:26]free response buf [23:56:26]execute_script done [23:56:26]execute_script returns [23:56:26]free content buf [23:56:26]Sock 8.Close socket [23:56:26]Sock 8.Thread stoped [23:56:26]accept exits with 9 [23:56:26]New connection [23:56:26]New thread 3066813796 created [23:56:26]Thread 3066957156 joined [23:56:26]Waiting for new connection... [23:56:26] Sock 9.Parse request [23:56:26]Sock 9.Check first char [23:56:26]Sock 9.First char is OK [23:56:26]request: POST /json_proto HTTP/1.0 [23:56:26]Method: POST [23:56:26]URL: /json_proto [23:56:26]Method is POST - this is cgi request [23:56:26]url: /json_proto [23:56:26]query_string will be loaded in cgi processing [23:56:26]execute_cgi json_proto POST (null) [23:56:26]execute_cgi path=json_proto method=POST [23:56:26]POST find Content-Length [23:56:26]Host: 172.17.62.67:8080 [23:56:26]Content-Length: 331 [23:56:26]Content-Type: application/json [23:56:26] [23:56:26]POST finish read [23:56:26]Found Content-Length = 331 [23:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:26]execute_script... [23:56:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:26]POST & json_proto [23:56:26]process_json_proto [23:56:26]json parsed OK: [23:56:26]protocol is kg_v1.0 [23:56:26]action value=get_value [23:56:26]process_action get_value [23:56:26]cmd_get_value [23:56:26]process_action get_value done [23:56:26]requested_data is exist [23:56:26]produce_requested_data [23:56:26]requested_item fm.sale.total is exist - process it [23:56:26]SAM_PROTO_GetFMData [23:56:26]wFMCommunicate request_size=4 [23:56:26]MH_SAM_APDU [23:56:26]CAPDU: 80 13 03 00 [23:56:26]Write to MH i2c: E2 08 00 77 13 80 13 03 00 00 00 00 00 09 [23:56:26]Write i2c OK [23:56:26]MH_I2C_Read... [23:56:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:26]Read from MH i2c: E2 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 77 13 00 C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 69 [23:56:26]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 [23:56:26]wFMCommunicate OK [23:56:26]wFMCommunicate request_size=4 [23:56:26]MH_SAM_APDU [23:56:26]CAPDU: 80 17 00 00 [23:56:26]Write to MH i2c: E2 08 00 78 13 80 17 00 00 00 00 00 00 0B [23:56:27]Write i2c OK [23:56:27]MH_I2C_Read... [23:56:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:27]Read from MH i2c: E2 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 FD 00 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 FD 00 78 13 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 A0 [23:56:27]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [23:56:27]wFMCommunicate OK [23:56:27]wFMCommunicate request_size=4 [23:56:27]MH_SAM_APDU [23:56:27]CAPDU: 80 17 00 00 [23:56:27]Write to MH i2c: E2 08 00 79 13 80 17 00 00 00 00 00 00 0C [23:56:27]Write i2c OK [23:56:27]MH_I2C_Read... [23:56:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:27]Read from MH i2c: E2 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 FD 00 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 FD 00 79 13 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 E4 [23:56:28]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:56:28]wFMCommunicate OK [23:56:28]wFMCommunicate request_size=4 [23:56:28]MH_SAM_APDU [23:56:28]CAPDU: 80 17 00 00 [23:56:28]Write to MH i2c: E2 08 00 7A 13 80 17 00 00 00 00 00 00 0D [23:56:28]Write i2c OK [23:56:28]MH_I2C_Read... [23:56:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:28]Read from MH i2c: E2 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 7A 13 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 85 [23:56:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:56:28]wFMCommunicate OK [23:56:28]wFMCommunicate request_size=4 [23:56:28]MH_SAM_APDU [23:56:28]CAPDU: 80 17 00 00 [23:56:28]Write to MH i2c: E2 08 00 7B 13 80 17 00 00 00 00 00 00 0E [23:56:28]Write i2c OK [23:56:28]MH_I2C_Read... [23:56:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:56:28]Read from MH i2c: E2 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 E5 00 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 E5 00 7B 13 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F2 [23:56:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:29]wFMCommunicate OK [23:56:29]SAM_PROTO_GetFMData done [23:56:29]requested_item fm.sale_refund.total is exist - process it [23:56:29]requested_item fm.buy.total is exist - process it [23:56:29]requested_item shift.sale.total is exist - process it [23:56:29]SAM_PROTO_GetShiftData [23:56:29]wFMCommunicate request_size=4 [23:56:29]MH_SAM_APDU [23:56:29]CAPDU: 80 13 02 00 [23:56:29]Write to MH i2c: E2 08 00 7C 13 80 13 02 00 00 00 00 00 0D [23:56:29]Write i2c OK [23:56:29]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 FD 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 FD 00 7C 13 00 BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 43 [23:56:29]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 OFD Sender: No OFD packet to send [23:56:30]EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:56:30]wFMCommunicate OK [23:56:30]wFMCommunicate request_size=4 [23:56:30]MH_SAM_APDU [23:56:30]CAPDU: 80 17 00 00 [23:56:30]Write to MH i2c: E2 08 00 7D 13 80 17 00 00 00 00 00 00 10 [23:56:30]Write i2c OK [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: E2 [23:56:30]MH_I2C_Read... [23:56:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:30]Read from MH i2c: E2 FD 00 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: E2 FD 00 7D 13 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 D0 [23:56:30]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [23:56:30]wFMCommunicate OK [23:56:30]wFMCommunicate request_size=4 [23:56:30]MH_SAM_APDU [23:56:30]CAPDU: 80 17 00 00 [23:56:30]Write to MH i2c: E2 08 00 7E 13 80 17 00 00 00 00 00 00 11 [23:56:30]Write i2c OK [23:56:30]MH_I2C_Read... [23:56:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:30]Read from MH i2c: E2 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: E2 FD 00 [23:56:30]MH_I2C_Read... [23:56:30]Read from MH i2c: E2 FD 00 7E 13 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 3A [23:56:31]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [23:56:31]wFMCommunicate OK [23:56:31]wFMCommunicate request_size=4 [23:56:31]MH_SAM_APDU [23:56:31]CAPDU: 80 17 00 00 [23:56:31]Write to MH i2c: E2 08 00 7F 13 80 17 00 00 00 00 00 00 12 [23:56:31]Write i2c OK [23:56:31]MH_I2C_Read... [23:56:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:31]Read from MH i2c: E2 [23:56:31]MH_I2C_Read... [23:56:31]Read from MH i2c: E2 FD 00 [23:56:31]MH_I2C_Read... [23:56:31]Read from MH i2c: E2 FD 00 7F 13 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 93 [23:56:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:56:31]wFMCommunicate OK [23:56:31]wFMCommunicate request_size=4 [23:56:31]MH_SAM_APDU [23:56:31]CAPDU: 80 17 00 00 [23:56:31]Write to MH i2c: E2 08 00 80 13 80 17 00 00 00 00 00 00 13 [23:56:31]Write i2c OK [23:56:31]MH_I2C_Read... [23:56:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:56:32]Read from MH i2c: E2 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: E2 D9 00 [23:56:32]MH_I2C_Read... [23:56:32]Read from MH i2c: E2 D9 00 80 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F2 [23:56:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:32]wFMCommunicate OK [23:56:32]SAM_PROTO_GetShiftData done [23:56:32]requested_item shift.sale.total_cash is exist - process it [23:56:32]requested_item shift.sale_refund.total is exist - process it [23:56:32]requested_item shift.sale_refund.total_cash is exist - process it [23:56:32]requested_item shift.buy.total is exist - process it [23:56:32]requested_item shift.buy.total_cash is exist - process it [23:56:32]produce_requested_data done [23:56:32]produce_requested_data return {"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:56:32]process_action_free get_value [23:56:32]json_value_free [23:56:32]json_value_free done [23:56:32]process_json_proto returns [23:56:32]Send response to host [23:56:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:56:32]free response buf [23:56:32]execute_script done [23:56:32]execute_script returns [23:56:32]free content buf [23:56:32]Sock 9.Close socket [23:56:32]Sock 9.Thread stoped [23:56:32]accept exits with 8 [23:56:32]New connection [23:56:32]New thread 3066957156 created [23:56:32]Thread 3066813796 joined [23:56:32]Waiting for new connection... [23:56:32] Sock 8.Parse request [23:56:32]Sock 8.Check first char [23:56:32]Sock 8.First char is OK [23:56:32]request: POST /json_proto HTTP/1.0 [23:56:32]Method: POST [23:56:32]URL: /json_proto [23:56:32]Method is POST - this is cgi request [23:56:32]url: /json_proto [23:56:32]query_string will be loaded in cgi processing [23:56:32]execute_cgi json_proto POST (null) [23:56:32]execute_cgi path=json_proto method=POST [23:56:32]POST find Content-Length [23:56:32]Host: 172.17.62.67:8080 [23:56:32]Content-Length: 331 [23:56:32]Content-Type: application/json [23:56:32] [23:56:32]POST finish read [23:56:32]Found Content-Length = 331 [23:56:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:32]execute_script... [23:56:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:32]POST & json_proto [23:56:32]process_json_proto [23:56:32]json parsed OK: [23:56:32]protocol is kg_v1.0 [23:56:32]action value=get_value [23:56:32]process_action get_value [23:56:32]cmd_get_value [23:56:32]process_action get_value done [23:56:32]requested_data is exist [23:56:32]produce_requested_data [23:56:32]requested_item fm.sale.total is exist - process it [23:56:32]SAM_PROTO_GetFMData [23:56:32]wFMCommunicate request_size=4 [23:56:32]MH_SAM_APDU [23:56:32]CAPDU: 80 13 03 00 [23:56:32]Write to MH i2c: E2 08 00 81 13 80 13 03 00 00 00 00 00 13 [23:56:32]Write i2c OK [23:56:32]MH_I2C_Read... [23:56:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:33]Read from MH i2c: E2 [23:56:33]MH_I2C_Read... [23:56:33]Read from MH i2c: E2 FD 00 [23:56:33]MH_I2C_Read... [23:56:33]Read from MH i2c: E2 FD 00 81 13 00 C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 73 [23:56:33]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 [23:56:33]wFMCommunicate OK [23:56:33]wFMCommunicate request_size=4 [23:56:33]MH_SAM_APDU [23:56:33]CAPDU: 80 17 00 00 [23:56:33]Write to MH i2c: E2 08 00 82 13 80 17 00 00 00 00 00 00 15 [23:56:33]Write i2c OK [23:56:33]MH_I2C_Read... [23:56:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:33]Read from MH i2c: E2 [23:56:33]MH_I2C_Read... [23:56:33]Read from MH i2c: E2 FD 00 [23:56:33]MH_I2C_Read... [23:56:33]Read from MH i2c: E2 FD 00 82 13 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 AA [23:56:33]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [23:56:34]wFMCommunicate OK [23:56:34]wFMCommunicate request_size=4 [23:56:34]MH_SAM_APDU [23:56:34]CAPDU: 80 17 00 00 [23:56:34]Write to MH i2c: E2 08 00 83 13 80 17 00 00 00 00 00 00 16 [23:56:34]Write i2c OK [23:56:34]MH_I2C_Read... [23:56:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:34]Read from MH i2c: E2 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: E2 FD 00 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: E2 FD 00 83 13 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 EE [23:56:34]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:56:34]wFMCommunicate OK [23:56:34]wFMCommunicate request_size=4 [23:56:34]MH_SAM_APDU [23:56:34]CAPDU: 80 17 00 00 [23:56:34]Write to MH i2c: E2 08 00 84 13 80 17 00 00 00 00 00 00 17 [23:56:34]Write i2c OK [23:56:34]MH_I2C_Read... [23:56:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:34]Read from MH i2c: E2 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: E2 FD 00 [23:56:34]MH_I2C_Read... [23:56:34]Read from MH i2c: E2 FD 00 84 13 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 8F [23:56:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 OFD Sender: No OFD packet to send [23:56:35]F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:56:35]wFMCommunicate OK [23:56:35]wFMCommunicate request_size=4 [23:56:35]MH_SAM_APDU [23:56:35]CAPDU: 80 17 00 00 [23:56:35]Write to MH i2c: E2 08 00 85 13 80 17 00 00 00 00 00 00 18 [23:56:35]Write i2c OK [23:56:35]MH_I2C_Read... [23:56:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:56:35]Read from MH i2c: E2 [23:56:35]MH_I2C_Read... [23:56:35]Read from MH i2c: E2 E5 00 [23:56:35]MH_I2C_Read... [23:56:35]Read from MH i2c: E2 E5 00 85 13 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [23:56:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:35]wFMCommunicate OK [23:56:35]SAM_PROTO_GetFMData done [23:56:35]requested_item fm.sale_refund.total is exist - process it [23:56:35]requested_item fm.buy.total is exist - process it [23:56:35]requested_item shift.sale.total is exist - process it [23:56:35]SAM_PROTO_GetShiftData [23:56:35]wFMCommunicate request_size=4 [23:56:35]MH_SAM_APDU [23:56:35]CAPDU: 80 13 02 00 [23:56:35]Write to MH i2c: E2 08 00 86 13 80 13 02 00 00 00 00 00 17 [23:56:35]Write i2c OK [23:56:35]MH_I2C_Read... [23:56:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:36]Read from MH i2c: E2 [23:56:36]MH_I2C_Read... [23:56:36]Read from MH i2c: E2 FD 00 [23:56:36]MH_I2C_Read... [23:56:36]Read from MH i2c: E2 FD 00 86 13 00 BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 4D [23:56:36]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:56:36]wFMCommunicate OK [23:56:36]wFMCommunicate request_size=4 [23:56:36]MH_SAM_APDU [23:56:36]CAPDU: 80 17 00 00 [23:56:36]Write to MH i2c: E2 08 00 87 13 80 17 00 00 00 00 00 00 1A [23:56:36]Write i2c OK [23:56:36]MH_I2C_Read... [23:56:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:37]Read from MH i2c: E2 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 FD 00 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 FD 00 87 13 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 DA [23:56:37]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [23:56:37]wFMCommunicate OK [23:56:37]wFMCommunicate request_size=4 [23:56:37]MH_SAM_APDU [23:56:37]CAPDU: 80 17 00 00 [23:56:37]Write to MH i2c: E2 08 00 88 13 80 17 00 00 00 00 00 00 1B [23:56:37]Write i2c OK [23:56:37]MH_I2C_Read... [23:56:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:37]Read from MH i2c: E2 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 FD 00 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 FD 00 88 13 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 44 [23:56:37]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [23:56:38]wFMCommunicate OK [23:56:38]wFMCommunicate request_size=4 [23:56:38]MH_SAM_APDU [23:56:38]CAPDU: 80 17 00 00 [23:56:38]Write to MH i2c: E2 08 00 89 13 80 17 00 00 00 00 00 00 1C [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:38]Read from MH i2c: E2 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 FD 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 FD 00 89 13 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 9D [23:56:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:56:38]wFMCommunicate OK [23:56:38]wFMCommunicate request_size=4 [23:56:38]MH_SAM_APDU [23:56:38]CAPDU: 80 17 00 00 [23:56:38]Write to MH i2c: E2 08 00 8A 13 80 17 00 00 00 00 00 00 1D [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:56:39]Read from MH i2c: E2 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 D9 00 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 D9 00 8A 13 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [23:56:39]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:39]wFMCommunicate OK [23:56:39]SAM_PROTO_GetShiftData done [23:56:39]requested_item shift.sale.total_cash is exist - process it [23:56:39]requested_item shift.sale_refund.total is exist - process it [23:56:39]requested_item shift.sale_refund.total_cash is exist - process it [23:56:39]requested_item shift.buy.total is exist - process it [23:56:39]requested_item shift.buy.total_cash is exist - process it [23:56:39]produce_requested_data done [23:56:39]produce_requested_data return {"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:56:39]process_action_free get_value [23:56:39]json_value_free [23:56:39]json_value_free done [23:56:39]process_json_proto returns [23:56:39]Send response to host [23:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:56:39]free response buf [23:56:39]execute_script done [23:56:39]execute_script returns [23:56:39]free content buf [23:56:39]Sock 8.Close socket [23:56:39]Sock 8.Thread stoped [23:56:39]accept exits with 9 [23:56:39]New connection [23:56:39]New thread 3066813796 created [23:56:39]Thread 3066957156 joined [23:56:39]Waiting for new connection... [23:56:39] Sock 9.Parse request [23:56:39]Sock 9.Check first char [23:56:39]Sock 9.First char is OK [23:56:39]request: POST /json_proto HTTP/1.0 [23:56:39]Method: POST [23:56:39]URL: /json_proto [23:56:39]Method is POST - this is cgi request [23:56:39]url: /json_proto [23:56:39]query_string will be loaded in cgi processing [23:56:39]execute_cgi json_proto POST (null) [23:56:39]execute_cgi path=json_proto method=POST [23:56:39]POST find Content-Length [23:56:39]Host: 172.17.62.67:8080 [23:56:39]Content-Length: 259 [23:56:39]Content-Type: application/json [23:56:39] [23:56:39]POST finish read [23:56:39]Found Content-Length = 259 [23:56:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:39]execute_script... [23:56:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0440\u044B\u0431\u0430\u0435\u0432 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:39]POST & json_proto [23:56:39]process_json_proto [23:56:39]json parsed OK: [23:56:39]protocol is kg_v1.0 [23:56:39]action value=close_shift [23:56:39]process_action close_shift [23:56:39]cmd_close_shift [23:56:39]MH_GetDate [23:56:39]Write to MH i2c: F0 00 00 8B 13 8D [23:56:39]Write i2c OK [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: F0 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: F0 05 00 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: F0 05 00 8B 13 00 39 9A EF 65 B9 [23:56:39]GetLastDocTimeStamp 1710201377 [23:56:39]current date 1710201401 [23:56:39]FM_GetShiftState [23:56:39]SAM_PROTO_GetShiftState [23:56:39]wFMCommunicate request_size=4 [23:56:39]MH_SAM_APDU [23:56:39]CAPDU: 80 13 01 00 [23:56:39]Write to MH i2c: E2 08 00 8C 13 80 13 01 00 00 00 00 00 1C [23:56:39]Write i2c OK [23:56:39]MH_I2C_Read... [23:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:39]Read from MH i2c: E2 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 0E 00 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 0E 00 8C 13 00 09 00 01 F3 4A EE 65 00 00 00 00 90 00 B8 [23:56:39]RAPDU: 09 00 01 F3 4A EE 65 00 00 00 00 90 00 [23:56:39]wFMCommunicate OK [23:56:39]SAM_PROTO_GetShiftState done [23:56:39]FM_GetShiftState done [23:56:39]KKMCreateCloseShiftDocument [23:56:39]Load OK [23:56:39]Malloc new data [23:56:39]MH_GetDate [23:56:39]Write to MH i2c: F0 00 00 8D 13 8F [23:56:39]Write i2c OK [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: F0 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: F0 05 00 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: F0 05 00 8D 13 00 39 9A EF 65 BB [23:56:39]Malloc new data [23:56:39]Malloc new data [23:56:39]Malloc new data [23:56:39]Malloc new data [23:56:39]KKMCreateCloseShiftDocument OK [23:56:39]KKMSetCloseShiftData OK [23:56:39]ProcessDocumentItem done err = 0, tmpTLVsize=70 [23:56:39]tlvbuf is 01AD6810 [23:56:39]KKMLoadAndSignCloseShiftData [23:56:39]SAM_PROTO_ProcessDocument [23:56:39]wFMCommunicate request_size=9 [23:56:39]MH_SAM_APDU [23:56:39]CAPDU: 80 15 01 00 04 05 00 46 00 [23:56:39]Write to MH i2c: E2 0C 00 8E 13 80 15 01 00 04 00 05 00 46 00 00 00 73 [23:56:39]Write i2c OK [23:56:39]MH_I2C_Read... [23:56:39]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:56:39]Read from MH i2c: E2 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 03 00 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 03 00 8E 13 00 90 00 15 [23:56:39]RAPDU: 90 00 [23:56:39]wFMCommunicate OK [23:56:39]wFMCommunicate request_size=23 [23:56:39]MH_SAM_APDU [23:56:39]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:56:39]Write to MH i2c: E2 1A 00 8F 13 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 17 [23:56:39]Write i2c OK [23:56:39]MH_I2C_Read... [23:56:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:39]Read from MH i2c: E2 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 03 00 [23:56:39]MH_I2C_Read... [23:56:39]Read from MH i2c: E2 03 00 8F 13 00 90 00 16 [23:56:39]RAPDU: 90 00 [23:56:39]wFMCommunicate OK [23:56:39]wFMCommunicate request_size=29 [23:56:39]MH_SAM_APDU [23:56:39]CAPDU: 80 15 02 00 18 FD 03 14 00 D0 9A D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 91 2E [23:56:39]Write to MH i2c: E2 20 00 90 13 80 15 02 00 18 00 FD 03 14 00 D0 9A D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 91 2E 00 00 B5 [23:56:39]Write i2c OK [23:56:39]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 90 13 00 90 00 17 [23:56:40]RAPDU: 90 00 [23:56:40]wFMCommunicate OK [23:56:40]wFMCommunicate request_size=13 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 15 02 00 08 F4 03 04 00 39 9A EF 65 [23:56:40]Write to MH i2c: E2 10 00 91 13 80 15 02 00 08 00 F4 03 04 00 39 9A EF 65 00 00 56 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 91 13 00 90 00 18 [23:56:40]RAPDU: 90 00 [23:56:40]wFMCommunicate OK [23:56:40]wFMCommunicate request_size=25 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 [23:56:40]Write to MH i2c: E2 1C 00 92 13 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 00 00 86 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 92 13 00 90 00 19 [23:56:40]RAPDU: 90 00 [23:56:40]wFMCommunicate OK [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 15 03 00 [23:56:40]Write to MH i2c: E2 08 00 93 13 80 15 03 00 00 00 00 00 27 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]OFD Sender: No OFD packet to send [23:56:40]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 FD 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 FD 00 93 13 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5D 73 01 00 0E 04 04 00 46 01 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 90 00 F0 [23:56:40]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5D 73 01 00 0E 04 04 00 46 01 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 90 00 [23:56:41]wFMCommunicate OK [23:56:41]SAM_PROTO_ProcessDocument answer len = 1279 [23:56:41]SAM_PROTO_ProcessDocument remain to read = 1031 [23:56:41]wFMCommunicate request_size=4 [23:56:41]MH_SAM_APDU [23:56:41]CAPDU: 80 17 00 00 [23:56:41]Write to MH i2c: E2 08 00 94 13 80 17 00 00 00 00 00 00 27 [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:41]Read from MH i2c: E2 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 FD 00 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 FD 00 94 13 00 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 8A [23:56:41]RAPDU: CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:56:41]wFMCommunicate OK [23:56:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:41]SAM_PROTO_ProcessDocument remain to read = 781 [23:56:41]wFMCommunicate request_size=4 [23:56:41]MH_SAM_APDU [23:56:41]CAPDU: 80 17 00 00 [23:56:41]Write to MH i2c: E2 08 00 95 13 80 17 00 00 00 00 00 00 28 [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 95 13 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 90 00 8E [23:56:42]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 90 00 [23:56:42]wFMCommunicate OK [23:56:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:42]SAM_PROTO_ProcessDocument remain to read = 531 [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 17 00 00 [23:56:42]Write to MH i2c: E2 08 00 96 13 80 17 00 00 00 00 00 00 29 [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 96 13 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 CA [23:56:43]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [23:56:43]wFMCommunicate OK [23:56:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:43]SAM_PROTO_ProcessDocument remain to read = 281 [23:56:43]wFMCommunicate request_size=4 [23:56:43]MH_SAM_APDU [23:56:43]CAPDU: 80 17 00 00 [23:56:43]Write to MH i2c: E2 08 00 97 13 80 17 00 00 00 00 00 00 2A [23:56:43]Write i2c OK [23:56:43]MH_I2C_Read... [23:56:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:43]Read from MH i2c: E2 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 FD 00 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 FD 00 97 13 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 D6 [23:56:43]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [23:56:43]wFMCommunicate OK [23:56:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:43]SAM_PROTO_ProcessDocument remain to read = 31 [23:56:43]wFMCommunicate request_size=4 [23:56:43]MH_SAM_APDU [23:56:43]CAPDU: 80 17 00 00 [23:56:44]Write to MH i2c: E2 08 00 98 13 80 17 00 00 00 00 00 00 2B [23:56:44]Write i2c OK [23:56:44]MH_I2C_Read... [23:56:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [23:56:44]Read from MH i2c: E2 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 22 00 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 22 00 98 13 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 BA A6 A2 3D FC 7A 90 00 2A [23:56:44]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 BA A6 A2 3D FC 7A 90 00 [23:56:44]wFMCommunicate OK [23:56:44]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [23:56:44]SAM_PROTO_ProcessDocument done [23:56:44]1209 (1) - 1.0 - номер версии ФФД [23:56:44]1041 (16) - 0000000000874811 - номер ФМ [23:56:44]1040 (4) - 95069 - номер ФД [23:56:44]1038 (4) - 326 - номер смены [23:56:44]1118 (4) - 243 - количество кассовых чеков за смену [23:56:44]1111 (4) - 245 - общее количество ФД за смену [23:56:44]1194 (1208) - счетчики итогов смены [23:56:44] 1134 (4) - 243 - количество чеков со всеми признаками расчетов [23:56:44] 1129 (158) - счетчики операций «приход» [23:56:44] 1135 (4) - 235 - количество чеков по признаку расчетов [23:56:44] 1201 (4) - 233238.93 - общая итоговая сумма в чеках [23:56:44] 1136 (4) - 174061.00 - итоговая сумма в чеках наличными [23:56:44] 1138 (3) - 59177.93 - итоговая сумма в чеках безналичными [23:56:44] 1024 (123) - суммы налогов [23:56:44] 1006 (9) - суммы НДС [23:56:44] 1010 (1) - 0% - код ставки НДС [23:56:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:44] 1006 (12) - суммы НДС [23:56:44] 1010 (1) - 12% - код ставки НДС [23:56:44] 1011 (3) - 24772.32 - сумма НДС по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 0% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (12) - суммы НСП [23:56:44] 1014 (1) - 1% - код ставки НСП [23:56:44] 1015 (3) - 2064.04 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 2% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 3% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 5% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 0,50% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 1,50% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1130 (152) - счетчики операций «возврат прихода» [23:56:44] 1135 (4) - 8 - количество чеков по признаку расчетов [23:56:44] 1201 (3) - 41808.00 - общая итоговая сумма в чеках [23:56:44] 1136 (3) - 41808.00 - итоговая сумма в чеках наличными [23:56:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:44] 1024 (122) - суммы налогов [23:56:44] 1006 (9) - суммы НДС [23:56:44] 1010 (1) - 0% - код ставки НДС [23:56:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:44] 1006 (12) - суммы НДС [23:56:44] 1010 (1) - 12% - код ставки НДС [23:56:44] 1011 (3) - 4439.88 - сумма НДС по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 0% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (11) - суммы НСП [23:56:44] 1014 (1) - 1% - код ставки НСП [23:56:44] 1015 (2) - 369.98 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 2% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 3% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 5% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 0,50% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 1,50% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1131 (141) - счетчики операций «расход» [23:56:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:44] 1024 (117) - суммы налогов [23:56:44] 1006 (9) - суммы НДС [23:56:44] 1010 (1) - 0% - код ставки НДС [23:56:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:44] 1006 (9) - суммы НДС [23:56:44] 1010 (1) - 12% - код ставки НДС [23:56:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 0% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 1% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 2% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 3% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 5% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 0,50% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 1,50% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1132 (141) - счетчики операций «возврат расхода» [23:56:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:44] 1024 (117) - суммы налогов [23:56:44] 1006 (9) - суммы НДС [23:56:44] 1010 (1) - 0% - код ставки НДС [23:56:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:44] 1006 (9) - суммы НДС [23:56:44] 1010 (1) - 12% - код ставки НДС [23:56:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 0% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 1% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 2% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 3% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 5% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 0,50% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1007 (9) - суммы НСП [23:56:44] 1014 (1) - 1,50% - код ставки НСП [23:56:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:44] 1133 (588) - - счетчики коррекции - не используются [23:56:44]1077 (6) - 205224849308794 - ФПД [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1209 (04B9) [23:56:44]Malloc new data [23:56:44]Processing tag 1041 (0411) [23:56:44]Processing tag 1040 (0410) [23:56:44]Malloc new data [23:56:44]Processing tag 1038 (040E) [23:56:44]Malloc new data [23:56:44]Processing tag 1118 (045E) [23:56:44]Malloc new data [23:56:44]Processing tag 1111 (0457) [23:56:44]Malloc new data [23:56:44]Processing tag 1194 (04AA) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1134 (046E) [23:56:44]Malloc new data [23:56:44]Processing tag 1129 (0469) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1135 (046F) [23:56:44]Malloc new data [23:56:44]Processing tag 1201 (04B1) [23:56:44]Malloc new data [23:56:44]Processing tag 1136 (0470) [23:56:44]Malloc new data [23:56:44]Processing tag 1138 (0472) [23:56:44]Malloc new data [23:56:44]Processing tag 1024 (0400) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1006 (03EE) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1010 (03F2) [23:56:44]Malloc new data [23:56:44]Processing tag 1011 (03F3) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1006 (03EE) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1010 (03F2) [23:56:44]Malloc new data [23:56:44]Processing tag 1011 (03F3) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]SetTLVBufToDocument err=0 [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1130 (046A) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1135 (046F) [23:56:44]Malloc new data [23:56:44]Processing tag 1201 (04B1) [23:56:44]Malloc new data [23:56:44]Processing tag 1136 (0470) [23:56:44]Malloc new data [23:56:44]Processing tag 1138 (0472) [23:56:44]Malloc new data [23:56:44]Processing tag 1024 (0400) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1006 (03EE) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1010 (03F2) [23:56:44]Malloc new data [23:56:44]Processing tag 1011 (03F3) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1006 (03EE) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1010 (03F2) [23:56:44]Malloc new data [23:56:44]Processing tag 1011 (03F3) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]SetTLVBufToDocument err=0 [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1131 (046B) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1135 (046F) [23:56:44]Malloc new data [23:56:44]Processing tag 1201 (04B1) [23:56:44]Malloc new data [23:56:44]Processing tag 1136 (0470) [23:56:44]Malloc new data [23:56:44]Processing tag 1138 (0472) [23:56:44]Malloc new data [23:56:44]Processing tag 1024 (0400) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1006 (03EE) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1010 (03F2) [23:56:44]Malloc new data [23:56:44]Processing tag 1011 (03F3) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1006 (03EE) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1010 (03F2) [23:56:44]Malloc new data [23:56:44]Processing tag 1011 (03F3) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:44]Load OK [23:56:44]SetTLVBufToDocument [23:56:44]Processing tag 1014 (03F6) [23:56:44]Malloc new data [23:56:44]Processing tag 1015 (03F7) [23:56:44]Malloc new data [23:56:44]SetTLVBufToDocument err=0 [23:56:44]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]SetTLVBufToDocument err=0 [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1132 (046C) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1135 (046F) [23:56:45]Malloc new data [23:56:45]Processing tag 1201 (04B1) [23:56:45]Malloc new data [23:56:45]Processing tag 1136 (0470) [23:56:45]Malloc new data [23:56:45]Processing tag 1138 (0472) [23:56:45]Malloc new data [23:56:45]Processing tag 1024 (0400) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1006 (03EE) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1010 (03F2) [23:56:45]Malloc new data [23:56:45]Processing tag 1011 (03F3) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1006 (03EE) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1010 (03F2) [23:56:45]Malloc new data [23:56:45]Processing tag 1011 (03F3) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1007 (03EF) [23:56:45]Load OK [23:56:45]SetTLVBufToDocument [23:56:45]Processing tag 1014 (03F6) [23:56:45]Malloc new data [23:56:45]Processing tag 1015 (03F7) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]SetTLVBufToDocument err=0 [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1133 (046D) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Processing tag 1077 (0435) [23:56:45]Malloc new data [23:56:45]SetTLVBufToDocument err=0 [23:56:45]Malloc new data [23:56:45]SAM_PROTO_GetFMData [23:56:45]wFMCommunicate request_size=4 [23:56:45]MH_SAM_APDU [23:56:45]CAPDU: 80 13 03 00 [23:56:45]Write to MH i2c: E2 08 00 99 13 80 13 03 00 00 00 00 00 2B [23:56:45]OFD Sender: No OFD packet to send [23:56:45]Write i2c OK [23:56:45]MH_I2C_Read... [23:56:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:45]Read from MH i2c: E2 [23:56:45]MH_I2C_Read... [23:56:45]Read from MH i2c: E2 FD 00 [23:56:45]MH_I2C_Read... [23:56:45]Read from MH i2c: E2 FD 00 99 13 00 C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 8B [23:56:46]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 [23:56:46]wFMCommunicate OK [23:56:46]wFMCommunicate request_size=4 [23:56:46]MH_SAM_APDU [23:56:46]CAPDU: 80 17 00 00 [23:56:46]Write to MH i2c: E2 08 00 9A 13 80 17 00 00 00 00 00 00 2D [23:56:46]Write i2c OK [23:56:46]MH_I2C_Read... [23:56:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:46]Read from MH i2c: E2 [23:56:46]MH_I2C_Read... [23:56:46]Read from MH i2c: E2 FD 00 [23:56:46]MH_I2C_Read... [23:56:46]Read from MH i2c: E2 FD 00 9A 13 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 C2 [23:56:46]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [23:56:47]wFMCommunicate OK [23:56:47]wFMCommunicate request_size=4 [23:56:47]MH_SAM_APDU [23:56:47]CAPDU: 80 17 00 00 [23:56:47]Write to MH i2c: E2 08 00 9B 13 80 17 00 00 00 00 00 00 2E [23:56:47]Write i2c OK [23:56:47]MH_I2C_Read... [23:56:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:47]Read from MH i2c: E2 [23:56:47]MH_I2C_Read... [23:56:47]Read from MH i2c: E2 FD 00 [23:56:47]MH_I2C_Read... [23:56:47]Read from MH i2c: E2 FD 00 9B 13 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 06 [23:56:47]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [23:56:47]wFMCommunicate OK [23:56:47]wFMCommunicate request_size=4 [23:56:47]MH_SAM_APDU [23:56:47]CAPDU: 80 17 00 00 [23:56:47]Write to MH i2c: E2 08 00 9C 13 80 17 00 00 00 00 00 00 2F [23:56:47]Write i2c OK [23:56:47]MH_I2C_Read... [23:56:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:48]Read from MH i2c: E2 [23:56:48]MH_I2C_Read... [23:56:48]Read from MH i2c: E2 FD 00 [23:56:48]MH_I2C_Read... [23:56:48]Read from MH i2c: E2 FD 00 9C 13 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 A7 [23:56:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:56:48]wFMCommunicate OK [23:56:48]wFMCommunicate request_size=4 [23:56:48]MH_SAM_APDU [23:56:48]CAPDU: 80 17 00 00 [23:56:48]Write to MH i2c: E2 08 00 9D 13 80 17 00 00 00 00 00 00 30 [23:56:48]Write i2c OK [23:56:48]MH_I2C_Read... [23:56:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [23:56:48]Read from MH i2c: E2 [23:56:48]MH_I2C_Read... [23:56:48]Read from MH i2c: E2 E5 00 [23:56:48]MH_I2C_Read... [23:56:48]Read from MH i2c: E2 E5 00 9D 13 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 14 [23:56:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:49]wFMCommunicate OK [23:56:49]SAM_PROTO_GetFMData done [23:56:49]Malloc new data [23:56:49]Malloc new data [23:56:49]Malloc new data [23:56:49]Malloc new data [23:56:49]KKMLoadAndSignCloseShiftData err=0 [23:56:49]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Карыбаев Б. 11.03.2024 23:56 Смена: 326 РНМ: 0000000000090555 ЗНМ: 0300000009 СНО: Общий режим Чеков за смену: 243 ФД за смену: 245 Всего чеков: 243 ИТОГИ ПРИХОД Чеков: 235 Общий итог: 233238.93 Итого наличными: 174061.00 Итого безнал.: 59177.93 НДС 0% : 0.00 НДС 12% : 24772.32 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2064.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 8 Общий итог: 41808.00 Итого наличными: 41808.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 4439.88 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 369.98 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 132253.00 НС Приход: 72455420.18 НС Возвр.Прихода: 5689266.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 95069 ФМ: 0000000000874811 ФПД: 205224849308794 [23:56:49]StoreToDocumentArchive [23:56:49]shift 326 fd 95069 [23:56:49]save to /storage/0326/doc_00095069 [23:56:49]save last doc name /storage/0326/doc_00095069 to /storage/kkm_last_doc_name [23:56:49]save OK [23:56:49]Clear old archive folders... [23:56:49]Remove dir /storage/0266 [23:56:49]opendir ok [23:56:49]file . [23:56:49]file .. [23:56:49]file doc_1710201384 [23:56:49]remove file /storage/0266/doc_1710201384 [23:56:49]remove dir /storage/0266 [23:56:49]NVStorageSaveData kkm_registers [23:56:49]File name is /storage/kkm_registers [23:56:49]Write 24 bytes [23:56:49]NVStorageSaveData done [23:56:49]NVStorageSaveData kkm_registers [23:56:49]File name is /storage/kkm_registers [23:56:49]Write 24 bytes [23:56:49]NVStorageSaveData done [23:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=1388 [23:56:49]tlvbuf is 01B2ACF0 [23:56:49]SAM_PROTO_ClearQueue [23:56:49]wFMCommunicate request_size=4 [23:56:49]MH_SAM_APDU [23:56:49]CAPDU: 80 09 00 00 [23:56:49]Write to MH i2c: E2 08 00 9E 13 80 09 00 00 00 00 00 00 23 [23:56:49]Write i2c OK [23:56:49]MH_I2C_Read... [23:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:49]Read from MH i2c: E2 [23:56:49]MH_I2C_Read... [23:56:49]Read from MH i2c: E2 03 00 [23:56:49]MH_I2C_Read... [23:56:49]Read from MH i2c: E2 03 00 9E 13 00 90 00 25 [23:56:49]RAPDU: 90 00 [23:56:49]wFMCommunicate OK [23:56:49]SAM_PROTO_ClearQueue done [23:56:49]KKMCreateOFDPacket [23:56:49]OFDProtocolAddRootSTLVToBuf [23:56:49]FM_MakeSignedData [23:56:49]FM_MakeSignedData [23:56:49]SAM_PROTO_SignData [23:56:49]wFMCommunicate request_size=4 [23:56:49]MH_SAM_APDU [23:56:49]CAPDU: 80 0D 01 02 [23:56:49]Write to MH i2c: E2 08 00 9F 13 80 0D 01 02 00 00 00 00 2B [23:56:49]Write i2c OK [23:56:49]MH_I2C_Read... [23:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:49]Read from MH i2c: E2 [23:56:49]MH_I2C_Read... [23:56:49]Read from MH i2c: E2 03 00 [23:56:49]MH_I2C_Read... [23:56:49]Read from MH i2c: E2 03 00 9F 13 00 90 00 26 [23:56:49]RAPDU: 90 00 [23:56:49]wFMCommunicate OK [23:56:49]wFMCommunicate request_size=255 [23:56:49]MH_SAM_APDU [23:56:49]CAPDU: 80 0D 02 02 FA 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 9A D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 91 2E F4 03 04 00 39 9A EF 65 0E 04 04 00 46 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 DF 04 6E 04 04 00 F3 00 00 00 69 04 A5 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 [23:56:49]Write to MH i2c: E2 02 01 A0 13 80 0D 02 02 FA 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 9A D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 91 2E F4 03 04 00 39 9A EF 65 0E 04 04 00 46 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 DF 04 6E 04 04 00 F3 00 00 00 69 04 A5 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 00 00 40 [23:56:50]Write i2c OK [23:56:50]MH_I2C_Read... [23:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:50]Read from MH i2c: E2 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 03 00 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [23:56:50]RAPDU: 90 00 [23:56:50]wFMCommunicate OK [23:56:50]wFMCommunicate request_size=255 [23:56:50]MH_SAM_APDU [23:56:50]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE OFD Sender: No OFD packet to send [23:56:50]03 0A 00 F2 03 01 [23:56:50]Write to MH i2c: E2 02 01 A1 13 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 FE [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [23:56:51]RAPDU: 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=255 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 0D 02 02 FA 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 [23:56:51]Write to MH i2c: E2 02 01 A2 13 80 0D 02 02 FA 00 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 00 00 E9 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [23:56:52]RAPDU: 90 00 [23:56:52]wFMCommunicate OK [23:56:52]wFMCommunicate request_size=255 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 0D 02 02 FA 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF [23:56:52]Write to MH i2c: E2 02 01 A3 13 80 0D 02 02 FA 00 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 00 00 F3 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:53]Read from MH i2c: E2 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 03 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 03 00 A3 13 00 90 00 2A [23:56:53]RAPDU: 90 00 [23:56:53]wFMCommunicate OK [23:56:53]wFMCommunicate request_size=255 [23:56:53]MH_SAM_APDU [23:56:53]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 [23:56:53]Write to MH i2c: E2 02 01 A4 13 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 00 D2 [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 A4 13 00 90 00 2B [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=147 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 0D 02 02 8E EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 5D 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 BA A6 A2 3D FC 7A [23:56:54]Write to MH i2c: E2 96 00 A5 13 80 0D 02 02 8E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 5D 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 BA A6 A2 3D FC 7A 00 00 F2 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 A5 13 00 90 00 2C [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 0D 03 02 [23:56:54]Write to MH i2c: E2 08 00 A6 13 80 0D 03 02 00 00 00 00 34 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 0B 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 0B 00 A6 13 00 06 4D 36 00 72 70 0F E5 90 00 94 [23:56:54]RAPDU: 06 4D 36 00 72 70 0F E5 90 00 [23:56:54]wFMCommunicate OK [23:56:54]SAM_PROTO_SignData done [23:56:54]FM_MakeSignedData done [23:56:54]CreateOFDProtocolMessage [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 11 00 00 [23:56:54]Write to MH i2c: E2 08 00 A7 13 80 11 00 00 00 00 00 00 34 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 17 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 17 00 A7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 84 [23:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [23:56:54]wFMCommunicate OK [23:56:54]CreateOFDProtocolMessage done [23:56:54]OFDSenderStorePacket 95069 [23:56:54]StoreOFDPacket docnum=95069 [23:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 80 05 00 00 97 97 78 05 83 F5 5A 05 01 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 9A D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 D0 91 2E F4 03 04 00 39 9A EF 65 0E 04 04 00 46 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 DF 04 6E 04 04 00 F3 00 00 00 69 04 A5 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 5D 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 BA A6 A2 3D FC 7A 06 4D 36 00 72 70 0F E5 [23:56:55]CheckFolder [23:56:55]dirname=/storage/ofd_packets [23:56:55]CheckFolder done [23:56:55]ProducePacketName [23:56:55]name=ofd_packets/00095069 [23:56:55]NVStorageSaveData ofd_packets/00095069 [23:56:55]File name is /storage/ofd_packets/00095069 [23:56:55]Write 1438 bytes [23:56:55]NVStorageSaveData done [23:56:55]OFDSenderStorePacket done [23:56:55]KKMCreateOFDPacket done [23:56:55]NVStorageSaveData kkm_last_timestamp [23:56:55]File name is /storage/kkm_last_timestamp [23:56:55]Write 4 bytes [23:56:55]NVStorageSaveData done [23:56:55]ExternCall_PrintAddStr [23:56:55]wPrintStart [23:56:55]Write to MH i2c: 01 00 00 A8 13 BB [23:56:55]OFD Sender: Processing packet 95069 [packets to send 30, broken 29] [23:56:55]ProducePacketName [23:56:55]name=ofd_packets/00095069 [23:56:55]OFD Sender: To server: pG, [23:56:55]CommunicateWithHost lk.salyk.kg:30040 [23:56:55]ConnectInit lk.salyk.kg [23:56:55]Write i2c OK [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: 01 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: 01 07 00 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: 01 07 00 A8 13 00 80 00 00 00 FF 0F 50 [23:56:55]RasterBufferAndPrint [23:56:55]line Отчет о закрытии смены [23:56:55]line ФФД: 1.0 [23:56:55]line ИНН: 02508201610067 [23:56:55]line Кассир: Карыбаев Б. [23:56:55]line 11.03.2024 23:56 [23:56:55]line Смена: 326 [23:56:55]line РНМ: 0000000000090555 [23:56:55]line ЗНМ: 0300000009 [23:56:55]line СНО: Общий режим [23:56:55]line Чеков за смену: 243 [23:56:55]line ФД за смену: 245 [23:56:55]line Всего чеков: 243 [23:56:55]line ИТОГИ ПРИХОД [23:56:55]line Чеков: 235 [23:56:55]line Общий итог: 233238.93 [23:56:55]line Итого наличными: 174061.00 [23:56:55]line Итого безнал.: 59177.93 [23:56:55]line НДС 0% : 0.00 [23:56:55]line НДС 12% : 24772.32 [23:56:55]line НСП 0% : 0.00 [23:56:55]line НСП 1,50% : 0.00 [23:56:55]line НСП 0,50% : 0.00 [23:56:55]line НСП 5% : 0.00 [23:56:55]line НСП 3% : 0.00 [23:56:55]line НСП 2% : 0.00 [23:56:55]line НСП 1% : 2064.04 [23:56:55]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:56:55]line Чеков: 8 [23:56:55]line Общий итог: 41808.00 [23:56:55]line Итого наличными: 41808.00 [23:56:55]line Итого безнал.: 0.00 [23:56:55]line НДС 0% : 0.00 [23:56:55]line НДС 12% : 4439.88 [23:56:55]line НСП 0% : 0.00 [23:56:55]line НСП 1,50% : 0.00 [23:56:55]line НСП 0,50% : 0.00 [23:56:55]line НСП 5% : 0.00 [23:56:55]line НСП 3% : 0.00 [23:56:55]line НСП 2% : 0.00 [23:56:55]line НСП 1% : 369.98 [23:56:55]line ИТОГИ РАСХОД [23:56:55]line Чеков: 0 [23:56:55]line Общий итог: 0.00 [23:56:55]line Итого наличными: 0.00 [23:56:55]line Итого безнал.: 0.00 [23:56:55]line НДС 0% : 0.00 [23:56:55]line НДС 12% : 0.00 [23:56:55]line НСП 0% : 0.00 [23:56:55]line НСП 1,50% : 0.00 [23:56:55]line НСП 0,50% : 0.00 [23:56:55]line НСП 5% : 0.00 [23:56:55]line НСП 3% : 0.00 [23:56:55]line НСП 2% : 0.00 [23:56:55]line НСП 1% : 0.00 [23:56:55]line ИТОГИ ВОЗВРАТ РАСХОДА [23:56:55]line Чеков: 0 [23:56:55]line Общий итог: 0.00 [23:56:55]line Итого наличными: 0.00 [23:56:55]line Итого безнал.: 0.00 [23:56:55]line НДС 0% : 0.00 [23:56:55]line НДС 12% : 0.00 [23:56:55]line НСП 0% : 0.00 [23:56:55]line НСП 1,50% : 0.00 [23:56:55]line НСП 0,50% : 0.00 [23:56:55]line НСП 5% : 0.00 [23:56:55]line НСП 3% : 0.00 [23:56:55]line НСП 2% : 0.00 [23:56:55]line НСП 1% : 0.00 [23:56:55]line Сумма внесений: 0.00 [23:56:55]line Сумма выплат: 0.00 [23:56:55]Connected sock=10 [23:56: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 31 31 80 05 00 00 97 97 78 05 83 F5 5A 05 01 00 05 00 6C 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 14 00 D0 9A D0 B0 D1 80 D1 8B D0 B1 D0 B0 D0 B5 D0 B2 20 line Нал. в кассе: 132253.00 [23:56:55]D0 line НС Приход: 72455420.18 [23:56:55]91 line НС Возвр.Прихода: 5689266.60 [23:56:55]2E line НС Расход: 0.00 [23:56:55]F4 line НС Возвр.Расхода: 0.00 [23:56:55]line ФД: 95069 [23:56:55]line ФМ: 0000000000874811 [23:56:55]line ФПД: 205224849308794 [23:56:55]03 04 00 39 9A EF 65 0E 04 04 00 46 01 00 00 0D 04 10 00 30 30 30 30 30 30 written 0, free lines is 4095 [23:56:55]30 30 30 30 30 39 30 35 35 35 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 AA 04 DF 04 6E 04 04 00 F3 00 00 00 69 04 A5 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 6A 04 A0 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 Write to MH i2c: 09 01 00 00 F2 00 03 F8 01 13 00 0B 00 F3 [23:56:56]03 00 00 EE 03 09 00 F2 03 Write i2c OK [23:56:56]01 MH_I2C_Read... [23:56:56]00 Read from MH i2c: 01 01 F3 [23:56:56]03 MH_I2C_Read... [23:56:56]00 Read from MH i2c: 00 01 EF 07 03 00 09 [23:56:56]00 MH_I2C_Read... [23:56:56]F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 Read from MH i2c: 00 01 00 07 EF 00 03 F8 09 13 00 00 F6 80 03 00 01 00 00 00 03 F7 F7 0C 03 95 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 [23:56:57]04 RasterBufferAndPrint [23:56:57]00 line [23:56:57]00 line [23:56:57]72 line [23:56:57]line [23:56:57]line [23:56:57]04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 written 0, free lines is 3804 [23:56:57]F7 03 00 00 EF 03 09 00 F6 03 01 00 process_action close_shift done [23:56:57]02 requested_data is exist [23:56:57]F7 produce_requested_data [23:56:57]03 requested_item fd.num is exist - process it [23:56:57]00 SAM_PROTO_GetFieldsCounters [23:56:57]00 wFMCommunicate request_size=4 [23:56:57]EF MH_SAM_APDU [23:56:57]03 CAPDU: 09 00 F6 03 01 00 03 F7 03 00 80 00 13 EF 00 03 00 09 [23:56:57]00 Write to MH i2c: F6 E2 03 08 01 00 00 FF 13 80 13 00 00 00 00 00 00 04 8E F7 [23:56:57]03 Write i2c OK [23:56:57]00 MH_I2C_Read... [23:56:57]00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 E2 00 [23:56:57]02 MH_I2C_Read... [23:56:57]F7 03 Read from MH i2c: 00 E2 00 62 EF 00 03 [23:56:57]09 MH_I2C_Read... [23:56:57]00 F6 03 Read from MH i2c: 01 E2 00 62 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:57]03 F7 03 00 00 EF 03 09 00 00 FF F6 13 03 00 01 5D 00 00 04 B9 F7 04 03 01 00 00 00 01 EF 11 03 04 09 10 00 F6 03 01 00 00 30 05 30 F7 30 03 30 00 00 EF 03 09 00 F6 30 03 30 01 30 00 30 06 30 F7 03 00 00 30 D1 38 04 37 8D 00 6F 04 04 00 00 00 00 00 B1 34 04 38 00 31 00 31 70 0D 04 04 00 10 00 00 72 04 00 00 00 04 75 00 EE 03 09 30 00 30 F2 30 30 30 30 30 30 30 30 30 39 30 03 35 01 35 00 35 00 10 F3 04 03 04 00 00 00 5D EE 73 01 00 0E 04 04 00 46 01 00 00 03 12 09 04 00 04 F2 00 03 F3 01 00 00 00 01 00 F3 5E 03 04 00 04 00 00 EF F3 03 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 09 90 00 00 F6 9D 03 [23:56:57]01 RAPDU: 00 5D 00 00 F7 B9 03 04 00 01 00 00 EF 01 03 11 09 04 10 00 30 30 30 30 30 30 30 00 30 F6 30 03 30 01 38 00 37 01 34 F7 38 03 31 00 31 00 0D EF 04 03 10 09 00 00 30 30 30 30 30 30 30 30 30 30 30 F6 39 03 30 01 35 00 35 02 F7 35 03 10 00 04 00 04 EF 03 09 00 F6 03 01 00 03 F7 00 03 5D 00 73 00 01 EF 00 03 09 00 F6 03 01 00 04 F7 03 00 0E 00 04 EF 04 03 00 09 46 00 01 F6 00 03 00 01 12 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 04 04 00 00 F3 5D 00 73 00 01 00 00 5E 11 04 04 10 00 30 30 30 30 30 30 30 04 30 00 30 F3 30 00 38 00 37 34 38 00 31 57 31 04 35 04 04 06 00 BA A6 A2 3D FC 7A 06 00 4D 36 00 72 70 0F E5 F5 [23:56:58]00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:58]wFMCommunicate OK [23:56:58]SAM_PROTO_GetFieldsCounters done [23:56:58]requested_item shift.num is exist - process it [23:56:58]requested_item shift.opened is exist - process it [23:56:58]req_shift_opened [23:56:58]FM_GetShiftState [23:56:58]SAM_PROTO_GetShiftState [23:56:58]wFMCommunicate request_size=4 [23:56:58]MH_SAM_APDU [23:56:58]CAPDU: 80 13 01 00 [23:56:58]Write to MH i2c: E2 08 00 00 14 80 13 01 00 00 00 00 00 91 [23:56:58]Write i2c OK [23:56:58]MH_I2C_Read... [23:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:58]Read from MH i2c: E2 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 0E 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 0E 00 00 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9C [23:56:58]RAPDU: 09 00 00 00 00 00 00 00 Received data: 00 87 00 95 00 F6 90 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 63 74 47 00 BF 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 31 31 10 04 04 00 5D 73 01 00 F4 03 04 00 A1 45 EF 65 B6 04 01 00 00 5F B6 FB 1D 0A 8D EF 34 [23:56:58]CommunicateWithHost err = 0 [23:56:58]CheckOFDResponse [23:56:58]1017 (14) - 77093643461234 [23:56:58]1041 (16) - 0000000000874811 [23:56:58]1040 (4) - 95069 [23:56:58]1012 (4) - 11.03.2024 17:55 [23:56:58]1206 (1) - 0 [23:56:58]OFD Sender: Remove packet 95069 [23:56:58]ProducePacketName [23:56:58]name=ofd_packets/00095069 [23:56:58]NVStorageDeleteData [23:56:58]00 [23:56:58]wFMCommunicate OK [23:56:58]SAM_PROTO_GetShiftState done [23:56:58]FM_GetShiftState done [23:56:58]req_shift_opened done [23:56:58]requested_item shift.open_date is exist - process it [23:56:58]req_shift_open_date [23:56:58]FM_GetShiftState [23:56:58]SAM_PROTO_GetShiftState [23:56:58]wFMCommunicate request_size=4 [23:56:58]MH_SAM_APDU [23:56:58]CAPDU: 80 13 01 00 [23:56:58]Write to MH i2c: E2 08 00 01 14 80 13 01 00 00 00 00 00 92 [23:56:58]Write i2c OK [23:56:58]MH_I2C_Read... [23:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:58]Read from MH i2c: E2 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 0E 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 0E 00 01 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9D [23:56:58]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:58]wFMCommunicate OK [23:56:58]SAM_PROTO_GetShiftState done [23:56:58]FM_GetShiftState done [23:56:58]req_shift_open_date done [23:56:58]produce_requested_data done [23:56:58]produce_requested_data return {"fd.num":95069,"shift.num":326,"shift.opened":0,"shift.open_date":0} [23:56:58]process_action_free close_shift [23:56:58]json_value_free [23:56:58]json_value_free done [23:56:58]process_json_proto returns [23:56:58]Send response to host [23:56:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":95069,"shift.num":326,"shift.opened":0,"shift.open_date":0}}} [23:56:58]free response buf [23:56:58]execute_script done [23:56:58]execute_script returns [23:56:58]free content buf [23:56:58]Sock 9.Close socket [23:56:58]Sock 9.Thread stoped [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:10]accept exits with 8 [00:06:10]New connection [00:06:10]New thread 3066957156 created [00:06:10]Thread 3066813796 joined [00:06:10]Waiting for new connection... [00:06:10] Sock 8.Parse request [00:06:10]Sock 8.Check first char [00:06:10]Sock 8.First char is OK [00:06:10]request: POST /json_proto HTTP/1.0 [00:06:10]Method: POST [00:06:10]URL: /json_proto [00:06:10]Method is POST - this is cgi request [00:06:10]url: /json_proto [00:06:10]query_string will be loaded in cgi processing [00:06:10]execute_cgi json_proto POST (null) [00:06:10]execute_cgi path=json_proto method=POST [00:06:10]POST find Content-Length [00:06:10]Host: 172.17.62.67:8080 [00:06:10]Content-Length: 215 [00:06:10]Content-Type: application/json [00:06:10] [00:06:10]POST finish read [00:06:10]Found Content-Length = 215 [00:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:10]execute_script... [00:06:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:10]POST & json_proto [00:06:10]process_json_proto [00:06:10]json parsed OK: [00:06:10]protocol is kg_v1.0 [00:06:10]action value=get_value [00:06:10]process_action get_value [00:06:10]cmd_get_value [00:06:10]process_action get_value done [00:06:10]requested_data is exist [00:06:10]produce_requested_data [00:06:10]requested_item kkm.sn is exist - process it [00:06:10]requested_item kkm.ver is exist - process it [00:06:10]requested_item fm.sn is exist - process it [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 11 00 00 [00:06:10]Write to MH i2c: E2 08 00 02 14 80 11 00 00 00 00 00 00 90 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 17 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 17 00 02 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E0 [00:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:06:10]wFMCommunicate OK [00:06:10]requested_item fd.num is exist - process it [00:06:10]SAM_PROTO_GetFieldsCounters [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 00 00 [00:06:10]Write to MH i2c: E2 08 00 03 14 80 13 00 00 00 00 00 00 93 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 62 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 62 00 03 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [00:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5D 73 01 00 0E 04 04 00 46 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetFieldsCounters done [00:06:10]requested_item shift.num is exist - process it [00:06:10]requested_item shift.opened is exist - process it [00:06:10]req_shift_opened [00:06:10]FM_GetShiftState [00:06:10]SAM_PROTO_GetShiftState [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 01 00 [00:06:10]Write to MH i2c: E2 08 00 04 14 80 13 01 00 00 00 00 00 95 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 0E 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 0E 00 04 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A0 [00:06:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetShiftState done [00:06:10]FM_GetShiftState done [00:06:10]req_shift_opened done [00:06:10]requested_item shift.open_date is exist - process it [00:06:10]req_shift_open_date [00:06:10]FM_GetShiftState [00:06:10]SAM_PROTO_GetShiftState [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 01 00 [00:06:10]Write to MH i2c: E2 08 00 05 14 80 13 01 00 00 00 00 00 96 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 0E 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 0E 00 05 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A1 [00:06:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:10]wFMCommunicate OK [00:06:10]SAM_PROTO_GetShiftState done [00:06:10]FM_GetShiftState done [00:06:10]req_shift_open_date done [00:06:10]produce_requested_data done [00:06:10]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95069,"shift.num":326,"shift.opened":0,"shift.open_date":0} [00:06:10]process_action_free get_value [00:06:10]json_value_free [00:06:10]json_value_free done [00:06:10]process_json_proto returns [00:06:10]Send response to host [00:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95069,"shift.num":326,"shift.opened":0,"shift.open_date":0}}} [00:06:10]free response buf [00:06:10]execute_script done [00:06:10]execute_script returns [00:06:10]free content buf [00:06:10]Sock 8.Close socket [00:06:10]Sock 8.Thread stoped [00:06:10]accept exits with 10 [00:06:10]New connection [00:06:10]New thread 3066813796 created [00:06:10]Thread 3066957156 joined [00:06:10]Waiting for new connection... [00:06:10] Sock 10.Parse request [00:06:10]Sock 10.Check first char [00:06:10]Sock 10.First char is OK [00:06:10]request: POST /json_proto HTTP/1.0 [00:06:10]Method: POST [00:06:10]URL: /json_proto [00:06:10]Method is POST - this is cgi request [00:06:10]url: /json_proto [00:06:10]query_string will be loaded in cgi processing [00:06:10]execute_cgi json_proto POST (null) [00:06:10]execute_cgi path=json_proto method=POST [00:06:10]POST find Content-Length [00:06:10]Host: 172.17.62.67:8080 [00:06:10]Content-Length: 331 [00:06:10]Content-Type: application/json [00:06:10] [00:06:10]POST finish read [00:06:10]Found Content-Length = 331 [00:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:10]execute_script... [00:06:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:10]POST & json_proto [00:06:10]process_json_proto [00:06:10]json parsed OK: [00:06:10]protocol is kg_v1.0 [00:06:10]action value=get_value [00:06:10]process_action get_value [00:06:10]cmd_get_value [00:06:10]process_action get_value done [00:06:10]requested_data is exist [00:06:10]produce_requested_data [00:06:10]requested_item fm.sale.total is exist - process it [00:06:10]SAM_PROTO_GetFMData [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 13 03 00 [00:06:10]Write to MH i2c: E2 08 00 06 14 80 13 03 00 00 00 00 00 99 [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 06 14 00 C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 F9 [00:06:11]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 07 14 80 17 00 00 00 00 00 00 9B [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 07 14 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 30 [00:06:11]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 08 14 80 17 00 00 00 00 00 00 9C [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 08 14 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 74 [00:06:11]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 09 14 80 17 00 00 00 00 00 00 9D [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 FD 00 09 14 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 15 [00:06:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 0A 14 80 17 00 00 00 00 00 00 9E [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 E5 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 E5 00 0A 14 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [00:06:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:12]wFMCommunicate OK [00:06:12]SAM_PROTO_GetFMData done [00:06:12]requested_item fm.sale_refund.total is exist - process it [00:06:12]requested_item fm.buy.total is exist - process it [00:06:12]requested_item shift.sale.total is exist - process it [00:06:12]SAM_PROTO_GetShiftData [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 13 02 00 [00:06:12]Write to MH i2c: E2 08 00 0B 14 80 13 02 00 00 00 00 00 9D [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 0B 14 00 BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D3 [00:06:12]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F3 00 00 00 69 04 9E 00 6F 04 04 00 EB 00 00 00 B1 04 04 00 F5 E4 63 01 70 04 04 00 94 98 09 01 72 04 03 00 61 4C 5A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 CC 25 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 44 26 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 08 00 00 00 B1 04 03 00 40 CB 3F 70 04 03 00 40 CB 3F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 C6 06 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 0C 14 80 17 00 00 00 00 00 00 A0 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 0C 14 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 60 [00:06:12]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 86 90 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:06:12]wFMCommunicate OK [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 17 00 00 [00:06:12]Write to MH i2c: E2 08 00 0D 14 80 17 00 00 00 00 00 00 A1 [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 0D 14 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 CA [00:06:13]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 0E 14 80 17 00 00 00 00 00 00 A2 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 0E 14 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 23 [00:06:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 0F 14 80 17 00 00 00 00 00 00 A3 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 D9 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 D9 00 0F 14 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [00:06:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:13]wFMCommunicate OK [00:06:13]SAM_PROTO_GetShiftData done [00:06:13]requested_item shift.sale.total_cash is exist - process it [00:06:13]requested_item shift.sale_refund.total is exist - process it [00:06:13]requested_item shift.sale_refund.total_cash is exist - process it [00:06:13]requested_item shift.buy.total is exist - process it [00:06:13]requested_item shift.buy.total_cash is exist - process it [00:06:13]produce_requested_data done [00:06:13]produce_requested_data return {"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:13]process_action_free get_value [00:06:13]json_value_free [00:06:13]json_value_free done [00:06:13]process_json_proto returns [00:06:13]Send response to host [00:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":233238.93,"shift.sale.total_cash":174061.00,"shift.sale_refund.total":41808.00,"shift.sale_refund.total_cash":41808.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:13]free response buf [00:06:13]execute_script done [00:06:13]execute_script returns [00:06:13]free content buf [00:06:13]Sock 10.Close socket [00:06:13]Sock 10.Thread stoped [00:06:14]accept exits with 8 [00:06:14]New connection [00:06:14]New thread 3066957156 created [00:06:14]Thread 3066813796 joined [00:06:14]Waiting for new connection... [00:06:14] Sock 8.Parse request [00:06:14]Sock 8.Check first char [00:06:14]Sock 8.First char is OK [00:06:14]request: POST /json_proto HTTP/1.0 [00:06:14]Method: POST [00:06:14]URL: /json_proto [00:06:14]Method is POST - this is cgi request [00:06:14]url: /json_proto [00:06:14]query_string will be loaded in cgi processing [00:06:14]execute_cgi json_proto POST (null) [00:06:14]execute_cgi path=json_proto method=POST [00:06:14]POST find Content-Length [00:06:14]Host: 172.17.62.67:8080 [00:06:14]Content-Length: 276 [00:06:14]Content-Type: application/json [00:06:14] [00:06:14]POST finish read [00:06:14]Found Content-Length = 276 [00:06:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:14]execute_script... [00:06:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041C\u044B\u043A\u0442\u044B\u0431\u0435\u043A\u043E\u0432\u0430 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:14]POST & json_proto [00:06:14]process_json_proto [00:06:14]json parsed OK: [00:06:14]protocol is kg_v1.0 [00:06:14]action value=open_shift [00:06:14]process_action open_shift [00:06:14]cmd_open_shift [00:06:14]MH_GetDate [00:06:14]Write to MH i2c: F0 00 00 10 14 13 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 05 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 05 00 10 14 00 78 9C EF 65 80 [00:06:14]GetLastDocTimeStamp 1710201401 [00:06:14]current date 1710201976 [00:06:14]FM_GetShiftState [00:06:14]SAM_PROTO_GetShiftState [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 13 01 00 [00:06:14]Write to MH i2c: E2 08 00 11 14 80 13 01 00 00 00 00 00 A2 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 0E 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 0E 00 11 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AD [00:06:14]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:14]wFMCommunicate OK [00:06:14]SAM_PROTO_GetShiftState done [00:06:14]FM_GetShiftState done [00:06:14]KKMCreateOpenShiftDocument [00:06:14]Load OK [00:06:14]Malloc new data [00:06:14]MH_GetDate [00:06:14]Write to MH i2c: F0 00 00 12 14 15 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 05 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: F0 05 00 12 14 00 78 9C EF 65 82 [00:06:14]Malloc new data [00:06:14]KKMCreateOpenShiftDocument OK [00:06:14]KKMSetOpenShiftData OK [00:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=197 [00:06:14]tlvbuf is 01AA1F00 [00:06:14]KKMLoadAndSignOpenShiftData [00:06:14]SAM_PROTO_ProcessDocument [00:06:14]wFMCommunicate request_size=9 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 01 00 04 02 00 C5 00 [00:06:14]Write to MH i2c: E2 0C 00 13 14 80 15 01 00 04 00 02 00 C5 00 00 00 75 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=23 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:06:14]Write to MH i2c: E2 1A 00 14 14 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 9D [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=35 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E [00:06:14]Write to MH i2c: E2 26 00 15 14 80 15 02 00 1E 00 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E 00 00 D6 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 15 14 00 90 00 9D [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=82 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 4D F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 [00:06:14]Write to MH i2c: E2 55 00 16 14 80 15 02 00 4D 00 F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 00 00 5E [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 16 14 00 90 00 9E [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=49 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 2C A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:06:14]Write to MH i2c: E2 34 00 17 14 80 15 02 00 2C 00 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 ED [00:06:14]OFD Sender: No OFD packet to send [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 17 14 00 90 00 9F [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=13 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 08 F4 03 04 00 78 9C EF 65 [00:06:14]Write to MH i2c: E2 10 00 18 14 80 15 02 00 08 00 F4 03 04 00 78 9C EF 65 00 00 1F [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 18 14 00 90 00 A0 [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=25 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 [00:06:14]Write to MH i2c: E2 1C 00 19 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 00 00 0E [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 03 00 19 14 00 90 00 A1 [00:06:14]RAPDU: 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 15 03 00 [00:06:14]Write to MH i2c: E2 08 00 1A 14 80 15 03 00 00 00 00 00 AF [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 38 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 38 00 1A 14 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5E 73 01 00 0E 04 04 00 47 01 00 00 35 04 06 00 85 67 A5 17 28 DE 90 00 40 [00:06:15]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5E 73 01 00 0E 04 04 00 47 01 00 00 35 04 06 00 85 67 A5 17 28 DE 90 00 [00:06:15]wFMCommunicate OK [00:06:15]SAM_PROTO_ProcessDocument answer len = 51 [00:06:15]SAM_PROTO_ProcessDocument done [00:06:15]SetTLVBufToDocument [00:06:15]Processing tag 1209 (04B9) [00:06:15]Malloc new data [00:06:15]Processing tag 1041 (0411) [00:06:15]Processing tag 1040 (0410) [00:06:15]Malloc new data [00:06:15]Processing tag 1038 (040E) [00:06:15]Malloc new data [00:06:15]Processing tag 1077 (0435) [00:06:15]Malloc new data [00:06:15]SetTLVBufToDocument err=0 [00:06:15]KKMLoadAndSignOpenShiftData store KKM data [00:06:15]KKMLoadAndSignOpenShiftData err=0 [00:06:15]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мыктыбекова И. Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 Место: АЗС № 6 "Партнер Нефть" 12.03.2024 00:06 Смена: 327 РНМ: 0000000000090555 ЗНМ: 0300000009 ФД: 95070 ФМ: 0000000000874811 ФПД: 146680197884126 [00:06:15]StoreToDocumentArchive [00:06:15]shift 327 fd 95070 [00:06:15]Create dir for shift 0327 [00:06:15]save to /storage/0327/doc_00095070 [00:06:15]save last doc name /storage/0327/doc_00095070 to /storage/kkm_last_doc_name [00:06:15]save OK [00:06:15]Clear old archive folders... [00:06:15]Remove dir /storage/0326 [00:06:15]opendir ok [00:06:15]file . [00:06:15]file .. [00:06:15]file doc_00094825 [00:06:15]remove file /storage/0326/doc_00094825 [00:06:15]file doc_00094826 [00:06:15]remove file /storage/0326/doc_00094826 [00:06:15]file doc_00094827 [00:06:15]remove file /storage/0326/doc_00094827 [00:06:15]file doc_00094828 [00:06:15]remove file /storage/0326/doc_00094828 [00:06:15]file doc_00094829 [00:06:15]remove file /storage/0326/doc_00094829 [00:06:15]file doc_00094830 [00:06:15]remove file /storage/0326/doc_00094830 [00:06:15]file doc_00094831 [00:06:15]remove file /storage/0326/doc_00094831 [00:06:15]file doc_00094832 [00:06:15]remove file /storage/0326/doc_00094832 [00:06:15]file doc_00094833 [00:06:15]remove file /storage/0326/doc_00094833 [00:06:15]file doc_00094834 [00:06:15]remove file /storage/0326/doc_00094834 [00:06:15]file doc_00094835 [00:06:15]remove file /storage/0326/doc_00094835 [00:06:15]file doc_00094836 [00:06:15]remove file /storage/0326/doc_00094836 [00:06:15]file doc_00094837 [00:06:15]remove file /storage/0326/doc_00094837 [00:06:15]file doc_00094838 [00:06:15]remove file /storage/0326/doc_00094838 [00:06:15]file doc_00094839 [00:06:15]remove file /storage/0326/doc_00094839 [00:06:15]file doc_00094840 [00:06:15]remove file /storage/0326/doc_00094840 [00:06:15]file doc_00094841 [00:06:15]remove file /storage/0326/doc_00094841 [00:06:15]file doc_00094842 [00:06:15]remove file /storage/0326/doc_00094842 [00:06:15]file doc_00094843 [00:06:15]remove file /storage/0326/doc_00094843 [00:06:15]file doc_00094844 [00:06:15]remove file /storage/0326/doc_00094844 [00:06:15]file doc_00094845 [00:06:15]remove file /storage/0326/doc_00094845 [00:06:15]file doc_00094846 [00:06:15]remove file /storage/0326/doc_00094846 [00:06:15]file doc_00094847 [00:06:15]remove file /storage/0326/doc_00094847 [00:06:15]file doc_00094848 [00:06:15]remove file /storage/0326/doc_00094848 [00:06:15]file doc_00094849 [00:06:15]remove file /storage/0326/doc_00094849 [00:06:15]file doc_00094850 [00:06:15]remove file /storage/0326/doc_00094850 [00:06:15]file doc_00094851 [00:06:15]remove file /storage/0326/doc_00094851 [00:06:15]file doc_00094852 [00:06:15]remove file /storage/0326/doc_00094852 [00:06:15]file doc_00094853 [00:06:15]remove file /storage/0326/doc_00094853 [00:06:15]file doc_00094854 [00:06:15]remove file /storage/0326/doc_00094854 [00:06:15]file doc_00094855 [00:06:15]remove file /storage/0326/doc_00094855 [00:06:15]file doc_00094856 [00:06:15]remove file /storage/0326/doc_00094856 [00:06:15]file doc_00094857 [00:06:15]remove file /storage/0326/doc_00094857 [00:06:15]file doc_00094858 [00:06:15]remove file /storage/0326/doc_00094858 [00:06:15]file doc_00094859 [00:06:15]remove file /storage/0326/doc_00094859 [00:06:15]file doc_00094860 [00:06:15]remove file /storage/0326/doc_00094860 [00:06:15]file doc_00094861 [00:06:15]remove file /storage/0326/doc_00094861 [00:06:15]file doc_00094862 [00:06:15]remove file /storage/0326/doc_00094862 [00:06:15]file doc_00094863 [00:06:15]remove file /storage/0326/doc_00094863 [00:06:15]file doc_00094864 [00:06:15]remove file /storage/0326/doc_00094864 [00:06:15]file doc_00094865 [00:06:15]remove file /storage/0326/doc_00094865 [00:06:15]file doc_00094866 [00:06:15]remove file /storage/0326/doc_00094866 [00:06:15]file doc_00094867 [00:06:15]remove file /storage/0326/doc_00094867 [00:06:15]file doc_00094868 [00:06:15]remove file /storage/0326/doc_00094868 [00:06:15]file doc_00094869 [00:06:15]remove file /storage/0326/doc_00094869 [00:06:15]file doc_00094870 [00:06:15]remove file /storage/0326/doc_00094870 [00:06:15]file doc_00094871 [00:06:15]remove file /storage/0326/doc_00094871 [00:06:15]file doc_00094872 [00:06:15]remove file /storage/0326/doc_00094872 [00:06:15]file doc_00094873 [00:06:15]remove file /storage/0326/doc_00094873 [00:06:15]file doc_00094874 [00:06:15]remove file /storage/0326/doc_00094874 [00:06:15]file doc_00094875 [00:06:15]remove file /storage/0326/doc_00094875 [00:06:15]file doc_00094876 [00:06:15]remove file /storage/0326/doc_00094876 [00:06:15]file doc_00094877 [00:06:15]remove file /storage/0326/doc_00094877 [00:06:15]file doc_00094878 [00:06:15]remove file /storage/0326/doc_00094878 [00:06:15]file doc_00094879 [00:06:15]remove file /storage/0326/doc_00094879 [00:06:15]file doc_00094880 [00:06:15]remove file /storage/0326/doc_00094880 [00:06:15]file doc_00094881 [00:06:15]remove file /storage/0326/doc_00094881 [00:06:15]file doc_00094882 [00:06:15]remove file /storage/0326/doc_00094882 [00:06:15]file doc_00094883 [00:06:15]remove file /storage/0326/doc_00094883 [00:06:15]file doc_00094884 [00:06:15]remove file /storage/0326/doc_00094884 [00:06:15]file doc_00094885 [00:06:15]remove file /storage/0326/doc_00094885 [00:06:15]file doc_00094886 [00:06:15]remove file /storage/0326/doc_00094886 [00:06:15]file doc_00094887 [00:06:15]remove file /storage/0326/doc_00094887 [00:06:15]file doc_00094888 [00:06:15]remove file /storage/0326/doc_00094888 [00:06:15]file doc_00094889 [00:06:15]remove file /storage/0326/doc_00094889 [00:06:15]file doc_00094890 [00:06:15]remove file /storage/0326/doc_00094890 [00:06:15]file doc_00094891 [00:06:15]remove file /storage/0326/doc_00094891 [00:06:15]file doc_00094892 [00:06:15]remove file /storage/0326/doc_00094892 [00:06:15]file doc_00094893 [00:06:15]remove file /storage/0326/doc_00094893 [00:06:15]file doc_00094894 [00:06:15]remove file /storage/0326/doc_00094894 [00:06:15]file doc_00094895 [00:06:15]remove file /storage/0326/doc_00094895 [00:06:15]file doc_00094896 [00:06:15]remove file /storage/0326/doc_00094896 [00:06:15]file doc_00094897 [00:06:15]remove file /storage/0326/doc_00094897 [00:06:15]file doc_00094898 [00:06:15]remove file /storage/0326/doc_00094898 [00:06:15]file doc_00094899 [00:06:15]remove file /storage/0326/doc_00094899 [00:06:15]file doc_00094900 [00:06:15]remove file /storage/0326/doc_00094900 [00:06:15]file doc_00094901 [00:06:15]remove file /storage/0326/doc_00094901 [00:06:15]file doc_00094902 [00:06:15]remove file /storage/0326/doc_00094902 [00:06:15]file doc_00094903 [00:06:15]remove file /storage/0326/doc_00094903 [00:06:15]file doc_00094904 [00:06:15]remove file /storage/0326/doc_00094904 [00:06:15]file doc_00094905 [00:06:15]remove file /storage/0326/doc_00094905 [00:06:15]file doc_00094906 [00:06:15]remove file /storage/0326/doc_00094906 [00:06:15]file doc_00094907 [00:06:15]remove file /storage/0326/doc_00094907 [00:06:15]file doc_00094908 [00:06:15]remove file /storage/0326/doc_00094908 [00:06:15]file doc_00094909 [00:06:15]remove file /storage/0326/doc_00094909 [00:06:15]file doc_00094910 [00:06:15]remove file /storage/0326/doc_00094910 [00:06:15]file doc_00094911 [00:06:15]remove file /storage/0326/doc_00094911 [00:06:15]file doc_00094912 [00:06:15]remove file /storage/0326/doc_00094912 [00:06:15]file doc_00094913 [00:06:15]remove file /storage/0326/doc_00094913 [00:06:15]file doc_00094914 [00:06:15]remove file /storage/0326/doc_00094914 [00:06:15]file doc_00094915 [00:06:15]remove file /storage/0326/doc_00094915 [00:06:15]file doc_00094916 [00:06:15]remove file /storage/0326/doc_00094916 [00:06:15]file doc_00094917 [00:06:15]remove file /storage/0326/doc_00094917 [00:06:15]file doc_00094918 [00:06:15]remove file /storage/0326/doc_00094918 [00:06:15]file doc_00094919 [00:06:15]remove file /storage/0326/doc_00094919 [00:06:15]file doc_00094920 [00:06:15]remove file /storage/0326/doc_00094920 [00:06:15]file doc_00094921 [00:06:15]remove file /storage/0326/doc_00094921 [00:06:15]file doc_00094922 [00:06:15]remove file /storage/0326/doc_00094922 [00:06:15]file doc_00094923 [00:06:15]remove file /storage/0326/doc_00094923 [00:06:15]file doc_00094924 [00:06:15]remove file /storage/0326/doc_00094924 [00:06:15]file doc_00094925 [00:06:15]remove file /storage/0326/doc_00094925 [00:06:15]file doc_00094926 [00:06:15]remove file /storage/0326/doc_00094926 [00:06:15]file doc_00094927 [00:06:15]remove file /storage/0326/doc_00094927 [00:06:15]file doc_00094928 [00:06:15]remove file /storage/0326/doc_00094928 [00:06:15]file doc_00094929 [00:06:15]remove file /storage/0326/doc_00094929 [00:06:15]file doc_00094930 [00:06:15]remove file /storage/0326/doc_00094930 [00:06:15]file doc_00094931 [00:06:15]remove file /storage/0326/doc_00094931 [00:06:15]file doc_00094932 [00:06:15]remove file /storage/0326/doc_00094932 [00:06:15]file doc_00094933 [00:06:15]remove file /storage/0326/doc_00094933 [00:06:15]file doc_00094934 [00:06:15]remove file /storage/0326/doc_00094934 [00:06:15]file doc_00094935 [00:06:15]remove file /storage/0326/doc_00094935 [00:06:15]file doc_00094936 [00:06:15]remove file /storage/0326/doc_00094936 [00:06:15]file doc_00094937 [00:06:15]remove file /storage/0326/doc_00094937 [00:06:15]file doc_00094938 [00:06:15]remove file /storage/0326/doc_00094938 [00:06:15]file doc_00094939 [00:06:15]remove file /storage/0326/doc_00094939 [00:06:15]file doc_00094940 [00:06:15]remove file /storage/0326/doc_00094940 [00:06:15]file doc_00094941 [00:06:15]remove file /storage/0326/doc_00094941 [00:06:15]file doc_00094942 [00:06:15]remove file /storage/0326/doc_00094942 [00:06:15]file doc_00094943 [00:06:15]remove file /storage/0326/doc_00094943 [00:06:15]file doc_00094944 [00:06:15]remove file /storage/0326/doc_00094944 [00:06:15]file doc_00094945 [00:06:15]remove file /storage/0326/doc_00094945 [00:06:15]file doc_00094946 [00:06:15]remove file /storage/0326/doc_00094946 [00:06:15]file doc_00094947 [00:06:15]remove file /storage/0326/doc_00094947 [00:06:15]file doc_00094948 [00:06:15]remove file /storage/0326/doc_00094948 [00:06:15]file doc_00094949 [00:06:15]remove file /storage/0326/doc_00094949 [00:06:15]file doc_00094950 [00:06:15]remove file /storage/0326/doc_00094950 [00:06:15]file doc_00094951 [00:06:15]remove file /storage/0326/doc_00094951 [00:06:15]file doc_00094952 [00:06:15]remove file /storage/0326/doc_00094952 [00:06:15]file doc_00094953 [00:06:15]remove file /storage/0326/doc_00094953 [00:06:15]file doc_00094954 [00:06:15]remove file /storage/0326/doc_00094954 [00:06:15]file doc_00094955 [00:06:15]remove file /storage/0326/doc_00094955 [00:06:15]file doc_00094956 [00:06:15]remove file /storage/0326/doc_00094956 [00:06:15]file doc_00094957 [00:06:15]remove file /storage/0326/doc_00094957 [00:06:15]file doc_00094958 [00:06:15]remove file /storage/0326/doc_00094958 [00:06:15]file doc_00094959 [00:06:15]remove file /storage/0326/doc_00094959 [00:06:15]file doc_00094960 [00:06:15]remove file /storage/0326/doc_00094960 [00:06:15]file doc_00094961 [00:06:15]remove file /storage/0326/doc_00094961 [00:06:15]file doc_00094962 [00:06:15]remove file /storage/0326/doc_00094962 [00:06:15]file doc_00094963 [00:06:15]remove file /storage/0326/doc_00094963 [00:06:15]file doc_00094964 [00:06:15]remove file /storage/0326/doc_00094964 [00:06:15]file doc_00094965 [00:06:15]remove file /storage/0326/doc_00094965 [00:06:15]file doc_00094966 [00:06:15]remove file /storage/0326/doc_00094966 [00:06:15]file doc_00094967 [00:06:15]remove file /storage/0326/doc_00094967 [00:06:15]file doc_00094968 [00:06:15]remove file /storage/0326/doc_00094968 [00:06:15]file doc_00094969 [00:06:15]remove file /storage/0326/doc_00094969 [00:06:15]file doc_00094970 [00:06:15]remove file /storage/0326/doc_00094970 [00:06:15]file doc_00094971 [00:06:15]remove file /storage/0326/doc_00094971 [00:06:15]file doc_00094972 [00:06:15]remove file /storage/0326/doc_00094972 [00:06:15]file doc_00094973 [00:06:15]remove file /storage/0326/doc_00094973 [00:06:15]file doc_00094974 [00:06:15]remove file /storage/0326/doc_00094974 [00:06:15]file doc_00094975 [00:06:15]remove file /storage/0326/doc_00094975 [00:06:15]file doc_00094976 [00:06:15]remove file /storage/0326/doc_00094976 [00:06:15]file doc_00094977 [00:06:15]remove file /storage/0326/doc_00094977 [00:06:15]file doc_00094978 [00:06:15]remove file /storage/0326/doc_00094978 [00:06:15]file doc_00094979 [00:06:15]remove file /storage/0326/doc_00094979 [00:06:15]file doc_00094980 [00:06:15]remove file /storage/0326/doc_00094980 [00:06:15]file doc_00094981 [00:06:15]remove file /storage/0326/doc_00094981 [00:06:15]file doc_00094982 [00:06:15]remove file /storage/0326/doc_00094982 [00:06:15]file doc_00094983 [00:06:15]remove file /storage/0326/doc_00094983 [00:06:15]file doc_00094984 [00:06:15]remove file /storage/0326/doc_00094984 [00:06:15]file doc_00094985 [00:06:15]remove file /storage/0326/doc_00094985 [00:06:15]file doc_00094986 [00:06:15]remove file /storage/0326/doc_00094986 [00:06:15]file doc_00094987 [00:06:15]remove file /storage/0326/doc_00094987 [00:06:16]file doc_00094988 [00:06:16]remove file /storage/0326/doc_00094988 [00:06:16]file doc_00094989 [00:06:16]remove file /storage/0326/doc_00094989 [00:06:16]file doc_00094990 [00:06:16]remove file /storage/0326/doc_00094990 [00:06:16]file doc_00094991 [00:06:16]remove file /storage/0326/doc_00094991 [00:06:16]file doc_00094992 [00:06:16]remove file /storage/0326/doc_00094992 [00:06:16]file doc_00094993 [00:06:16]remove file /storage/0326/doc_00094993 [00:06:16]file doc_00094994 [00:06:16]remove file /storage/0326/doc_00094994 [00:06:16]file doc_00094995 [00:06:16]remove file /storage/0326/doc_00094995 [00:06:16]file doc_00094996 [00:06:16]remove file /storage/0326/doc_00094996 [00:06:16]file doc_00094997 [00:06:16]remove file /storage/0326/doc_00094997 [00:06:16]file doc_00094998 [00:06:16]remove file /storage/0326/doc_00094998 [00:06:16]file doc_00094999 [00:06:16]remove file /storage/0326/doc_00094999 [00:06:16]file doc_00095000 [00:06:16]remove file /storage/0326/doc_00095000 [00:06:16]file doc_00095001 [00:06:16]remove file /storage/0326/doc_00095001 [00:06:16]file doc_00095002 [00:06:16]remove file /storage/0326/doc_00095002 [00:06:16]file doc_00095003 [00:06:16]remove file /storage/0326/doc_00095003 [00:06:16]file doc_00095004 [00:06:16]remove file /storage/0326/doc_00095004 [00:06:16]file doc_00095005 [00:06:16]remove file /storage/0326/doc_00095005 [00:06:16]file doc_00095006 [00:06:16]remove file /storage/0326/doc_00095006 [00:06:16]file doc_00095007 [00:06:16]remove file /storage/0326/doc_00095007 [00:06:16]file doc_00095008 [00:06:16]remove file /storage/0326/doc_00095008 [00:06:16]file doc_00095009 [00:06:16]remove file /storage/0326/doc_00095009 [00:06:16]file doc_00095010 [00:06:16]remove file /storage/0326/doc_00095010 [00:06:16]file doc_00095011 [00:06:16]remove file /storage/0326/doc_00095011 [00:06:16]file doc_00095012 [00:06:16]remove file /storage/0326/doc_00095012 [00:06:16]file doc_00095013 [00:06:16]remove file /storage/0326/doc_00095013 [00:06:16]file doc_00095014 [00:06:16]remove file /storage/0326/doc_00095014 [00:06:16]file doc_00095015 [00:06:16]remove file /storage/0326/doc_00095015 [00:06:16]file doc_00095016 [00:06:16]remove file /storage/0326/doc_00095016 [00:06:16]file doc_00095017 [00:06:16]remove file /storage/0326/doc_00095017 [00:06:16]file doc_00095018 [00:06:16]remove file /storage/0326/doc_00095018 [00:06:16]file doc_00095019 [00:06:16]remove file /storage/0326/doc_00095019 [00:06:16]file doc_00095020 [00:06:16]remove file /storage/0326/doc_00095020 [00:06:16]file doc_00095021 [00:06:16]remove file /storage/0326/doc_00095021 [00:06:16]file doc_00095022 [00:06:16]remove file /storage/0326/doc_00095022 [00:06:16]file doc_00095023 [00:06:16]remove file /storage/0326/doc_00095023 [00:06:16]file doc_00095024 [00:06:16]remove file /storage/0326/doc_00095024 [00:06:16]file doc_00095025 [00:06:16]remove file /storage/0326/doc_00095025 [00:06:16]file doc_00095026 [00:06:16]remove file /storage/0326/doc_00095026 [00:06:16]file doc_00095027 [00:06:16]remove file /storage/0326/doc_00095027 [00:06:16]file doc_00095028 [00:06:16]remove file /storage/0326/doc_00095028 [00:06:16]file doc_00095029 [00:06:16]remove file /storage/0326/doc_00095029 [00:06:16]file doc_00095030 [00:06:16]remove file /storage/0326/doc_00095030 [00:06:16]file doc_00095031 [00:06:16]remove file /storage/0326/doc_00095031 [00:06:16]file doc_00095032 [00:06:16]remove file /storage/0326/doc_00095032 [00:06:16]file doc_00095033 [00:06:16]remove file /storage/0326/doc_00095033 [00:06:16]file doc_00095034 [00:06:16]remove file /storage/0326/doc_00095034 [00:06:16]file doc_00095035 [00:06:16]remove file /storage/0326/doc_00095035 [00:06:16]file doc_00095036 [00:06:16]remove file /storage/0326/doc_00095036 [00:06:16]file doc_00095037 [00:06:16]remove file /storage/0326/doc_00095037 [00:06:16]file doc_00095038 [00:06:16]remove file /storage/0326/doc_00095038 [00:06:16]file doc_00095039 [00:06:16]remove file /storage/0326/doc_00095039 [00:06:16]file doc_00095040 [00:06:16]remove file /storage/0326/doc_00095040 [00:06:16]file doc_00095041 [00:06:16]remove file /storage/0326/doc_00095041 [00:06:16]file doc_00095042 [00:06:16]remove file /storage/0326/doc_00095042 [00:06:16]file doc_00095043 [00:06:16]remove file /storage/0326/doc_00095043 [00:06:16]file doc_00095044 [00:06:16]remove file /storage/0326/doc_00095044 [00:06:16]file doc_00095045 [00:06:16]remove file /storage/0326/doc_00095045 [00:06:16]file doc_00095046 [00:06:16]remove file /storage/0326/doc_00095046 [00:06:16]file doc_00095047 [00:06:16]remove file /storage/0326/doc_00095047 [00:06:16]file doc_00095048 [00:06:16]remove file /storage/0326/doc_00095048 [00:06:16]file doc_00095049 [00:06:16]remove file /storage/0326/doc_00095049 [00:06:16]file doc_00095050 [00:06:16]remove file /storage/0326/doc_00095050 [00:06:16]file doc_00095051 [00:06:16]remove file /storage/0326/doc_00095051 [00:06:16]file doc_00095052 [00:06:16]remove file /storage/0326/doc_00095052 [00:06:16]file doc_00095053 [00:06:16]remove file /storage/0326/doc_00095053 [00:06:16]file doc_00095054 [00:06:16]remove file /storage/0326/doc_00095054 [00:06:16]file doc_00095055 [00:06:16]remove file /storage/0326/doc_00095055 [00:06:16]file doc_00095056 [00:06:16]remove file /storage/0326/doc_00095056 [00:06:16]file doc_00095057 [00:06:16]remove file /storage/0326/doc_00095057 [00:06:16]file doc_00095058 [00:06:16]remove file /storage/0326/doc_00095058 [00:06:16]file doc_00095059 [00:06:16]remove file /storage/0326/doc_00095059 [00:06:16]file doc_00095060 [00:06:16]remove file /storage/0326/doc_00095060 [00:06:16]file doc_00095061 [00:06:16]remove file /storage/0326/doc_00095061 [00:06:16]file doc_00095062 [00:06:16]remove file /storage/0326/doc_00095062 [00:06:16]file doc_00095063 [00:06:16]remove file /storage/0326/doc_00095063 [00:06:16]file doc_00095064 [00:06:16]remove file /storage/0326/doc_00095064 [00:06:16]file doc_00095065 [00:06:16]remove file /storage/0326/doc_00095065 [00:06:16]file doc_00095066 [00:06:16]remove file /storage/0326/doc_00095066 [00:06:16]file doc_00095067 [00:06:16]remove file /storage/0326/doc_00095067 [00:06:16]file doc_00095068 [00:06:16]remove file /storage/0326/doc_00095068 [00:06:16]file doc_00095069 [00:06:16]remove file /storage/0326/doc_00095069 [00:06:16]remove dir /storage/0326 [00:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:06:16]tlvbuf is 01AC84C0 [00:06:16]SAM_PROTO_ClearQueue [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 09 00 00 [00:06:16]Write to MH i2c: E2 08 00 1B 14 80 09 00 00 00 00 00 00 A1 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]SAM_PROTO_ClearQueue done [00:06:16]KKMCreateOFDPacket [00:06:16]OFDProtocolAddRootSTLVToBuf [00:06:16]FM_MakeSignedData [00:06:16]FM_MakeSignedData [00:06:16]SAM_PROTO_SignData [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 0D 01 02 [00:06:16]Write to MH i2c: E2 08 00 1C 14 80 0D 01 02 00 00 00 00 A9 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=255 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 0D 02 02 FA 02 00 F8 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 78 9C EF 65 0E 04 04 00 47 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5E 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 85 67 A5 17 [00:06:16]Write to MH i2c: E2 02 01 1D 14 80 0D 02 02 FA 00 02 00 F8 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 78 9C EF 65 0E 04 04 00 47 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5E 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 85 67 A5 17 00 00 2C [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 03 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [00:06:17]RAPDU: 90 00 [00:06:17]wFMCommunicate OK [00:06:17]wFMCommunicate request_size=7 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 0D 02 02 02 28 DE [00:06:17]Write to MH i2c: E2 0A 00 1E 14 80 0D 02 02 02 00 28 DE 00 00 B6 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 03 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [00:06:17]RAPDU: 90 00 [00:06:17]wFMCommunicate OK [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 0D 03 02 [00:06:17]Write to MH i2c: E2 08 00 1F 14 80 0D 03 02 00 00 00 00 AE [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 0B 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 0B 00 1F 14 00 34 BC 56 C5 41 80 4D 05 90 00 CD [00:06:17]RAPDU: 34 BC 56 C5 41 80 4D 05 90 00 [00:06:17]wFMCommunicate OK [00:06:17]SAM_PROTO_SignData done [00:06:17]FM_MakeSignedData done [00:06:17]CreateOFDProtocolMessage [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 11 00 00 [00:06:17]Write to MH i2c: E2 08 00 20 14 80 11 00 00 00 00 00 00 AE [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 17 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 17 00 20 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FE [00:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:06:17]wFMCommunicate OK [00:06:17]CreateOFDProtocolMessage done [00:06:17]OFDSenderStorePacket 95070 [00:06:17]StoreOFDPacket docnum=95070 [00:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 16 91 04 01 18 27 5A 02 01 00 02 00 F8 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 78 9C EF 65 0E 04 04 00 47 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5E 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 85 67 A5 17 28 DE 34 BC 56 C5 41 80 4D 05 [00:06:17]CheckFolder [00:06:17]dirname=/storage/ofd_packets [00:06:17]CheckFolder done [00:06:17]ProducePacketName [00:06:17]name=ofd_packets/00095070 [00:06:17]NVStorageSaveData ofd_packets/00095070 [00:06:17]File name is /storage/ofd_packets/00095070 [00:06:17]Write 298 bytes [00:06:17]NVStorageSaveData done [00:06:17]OFDSenderStorePacket done [00:06:17]KKMCreateOFDPacket done [00:06:17]NVStorageSaveData kkm_last_timestamp [00:06:17]File name is /storage/kkm_last_timestamp [00:06:17]Write 4 bytes [00:06:17]NVStorageSaveData done [00:06:17]ExternCall_PrintAddStr [00:06:17]wPrintStart [00:06:17]Write to MH i2c: 01 00 00 21 14 35 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 21 14 00 80 00 00 00 FF 0F CA [00:06:17]RasterBufferAndPrint [00:06:17]line Отчет об открытии смены [00:06:17]line ФФД: 1.0 [00:06:17]line ИНН: 02508201610067 [00:06:17]line Кассир: Мыктыбекова И. [00:06:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:06:17]line Место: АЗС № 6 "Партнер Нефть" [00:06:17]line 12.03.2024 00:06 [00:06:17]line Смена: 327 [00:06:17]line РНМ: 0000000000090555 [00:06:17]line ЗНМ: 0300000009 [00:06:17]line ФД: 95070 [00:06:17]line ФМ: 0000000000874811 [00:06:17]line ФПД: 146680197884126 [00:06:17]OFD Sender: Processing packet 95070 [packets to send 30, broken 29] [00:06:17]ProducePacketName [00:06:17]name=ofd_packets/00095070 [00:06:17]OFD Sender: To server: pG, [00:06:17]CommunicateWithHost lk.salyk.kg:30040 [00:06:17]ConnectInit lk.salyk.kg [00:06:17]written 0, free lines is 4095 [00:06:17]Connected sock=10 [00:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 16 91 04 01 18 27 5A 02 01 00 02 00 F8 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 9C D1 8B D0 BA D1 82 D1 8B D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 98 2E F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 D1 83 D0 BB 2E 20 37 20 D0 B0 D0 BF D1 80 D0 B5 D0 BB D1 8F 20 39 20 D0 90 2C 20 34 32 2E 38 35 39 38 38 31 2C 20 37 34 2E 36 33 36 30 31 36 A3 04 28 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 78 9C EF 65 0E 04 04 00 47 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5E 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 85 67 A5 17 28 DE 34 BC 56 C5 41 80 4D 05 [00:06:17]Write to MH i2c: 01 00 00 33 14 47 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 33 14 00 80 00 00 00 AC 0E 88 [00:06:17]RasterBufferAndPrint [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]written 0, free lines is 3778 [00:06:17]process_action open_shift done [00:06:17]requested_data is exist [00:06:17]produce_requested_data [00:06:17]requested_item fd.num is exist - process it [00:06:17]SAM_PROTO_GetFieldsCounters [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 13 00 00 [00:06:17]Write to MH i2c: E2 08 00 3A 14 80 13 00 00 00 00 00 00 CA [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 20 F8 47 00 17 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5E 73 01 00 F4 03 04 00 D1 47 EF 65 B6 04 01 00 00 3D C1 C6 1F 94 4D 86 7D [00:06:17]CommunicateWithHost err = 0 [00:06:17]CheckOFDResponse [00:06:17]1017 (14) - 77093643461234 [00:06:17]1041 (16) - 0000000000874811 [00:06:17]1040 (4) - 95070 [00:06:17]1012 (4) - 11.03.2024 18:05 [00:06:17]1206 (1) - 0 [00:06:17]OFD Sender: Remove packet 95070 [00:06:17]ProducePacketName [00:06:17]name=ofd_packets/00095070 [00:06:17]NVStorageDeleteData [00:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 62 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 62 00 3A 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5E 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [00:06:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5E 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:17]wFMCommunicate OK [00:06:17]SAM_PROTO_GetFieldsCounters done [00:06:17]requested_item shift.num is exist - process it [00:06:17]requested_item shift.opened is exist - process it [00:06:17]req_shift_opened [00:06:17]FM_GetShiftState [00:06:17]SAM_PROTO_GetShiftState [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 13 01 00 [00:06:17]Write to MH i2c: E2 08 00 3B 14 80 13 01 00 00 00 00 00 CC [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:17]Read from MH i2c: E2 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 0E 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: E2 0E 00 3B 14 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 40 [00:06:17]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:06:17]wFMCommunicate OK [00:06:17]SAM_PROTO_GetShiftState done [00:06:17]FM_GetShiftState done [00:06:17]req_shift_opened done [00:06:17]requested_item shift.open_date is exist - process it [00:06:17]req_shift_open_date [00:06:17]req_shift_open_date done [00:06:17]produce_requested_data done [00:06:17]produce_requested_data return {"fd.num":95070,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:06:17]process_action_free open_shift [00:06:17]json_value_free [00:06:17]json_value_free done [00:06:17]process_json_proto returns [00:06:17]Send response to host [00:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":95070,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:06:17]free response buf [00:06:17]execute_script done [00:06:17]execute_script returns [00:06:17]free content buf [00:06:17]Sock 8.Close socket [00:06:17]Sock 8.Thread stoped [00:06:17]accept exits with 9 [00:06:17]New connection [00:06:17]New thread 3066813796 created [00:06:17]Thread 3066957156 joined [00:06:17]Waiting for new connection... [00:06:17] Sock 9.Parse request [00:06:17]Sock 9.Check first char [00:06:17]Sock 9.First char is OK [00:06:17]request: POST /json_proto HTTP/1.0 [00:06:17]Method: POST [00:06:17]URL: /json_proto [00:06:17]Method is POST - this is cgi request [00:06:17]url: /json_proto [00:06:17]query_string will be loaded in cgi processing [00:06:17]execute_cgi json_proto POST (null) [00:06:17]execute_cgi path=json_proto method=POST [00:06:17]POST find Content-Length [00:06:17]Host: 172.17.62.67:8080 [00:06:17]Content-Length: 331 [00:06:17]Content-Type: application/json [00:06:17] [00:06:17]POST finish read [00:06:17]Found Content-Length = 331 [00:06:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:17]execute_script... [00:06:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:17]POST & json_proto [00:06:17]process_json_proto [00:06:17]json parsed OK: [00:06:17]protocol is kg_v1.0 [00:06:17]action value=get_value [00:06:17]process_action get_value [00:06:17]cmd_get_value [00:06:17]process_action get_value done [00:06:17]requested_data is exist [00:06:17]produce_requested_data [00:06:17]requested_item fm.sale.total is exist - process it [00:06:17]SAM_PROTO_GetFMData [00:06:17]wFMCommunicate request_size=4 [00:06:17]MH_SAM_APDU [00:06:17]CAPDU: 80 13 03 00 [00:06:17]Write to MH i2c: E2 08 00 3C 14 80 13 03 00 00 00 00 00 CF [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:18]OFD Sender: No OFD packet to send [00:06:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 3C 14 00 C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 2F [00:06:18]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CB 70 01 00 69 04 A3 00 6F 04 04 00 F8 63 01 00 B1 04 05 00 82 32 DE AF 01 70 04 05 00 7C 23 0D 5C 01 72 04 04 00 06 0F D1 53 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD D3 DF 2D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9C 90 D2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 D3 0C 00 00 B1 04 04 00 C4 21 E9 21 70 04 04 00 F0 F6 E7 21 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 00 0A 9A 03 90 00 [00:06:18]wFMCommunicate OK [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 17 00 00 [00:06:18]Write to MH i2c: E2 08 00 3D 14 80 17 00 00 00 00 00 00 D1 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 FD 00 3D 14 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 66 [00:06:18]RAPDU: EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 78 D5 4C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [00:06:18]wFMCommunicate OK [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 17 00 00 [00:06:18]Write to MH i2c: E2 08 00 3E 14 80 17 00 00 00 00 00 00 D2 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 3E 14 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 AA [00:06:19]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:06:19]wFMCommunicate OK [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 3F 14 80 17 00 00 00 00 00 00 D3 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 FD 00 3F 14 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 4B [00:06:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:06:19]wFMCommunicate OK [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 17 00 00 [00:06:19]Write to MH i2c: E2 08 00 40 14 80 17 00 00 00 00 00 00 D4 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 E5 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 E5 00 40 14 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B8 [00:06:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:20]wFMCommunicate OK [00:06:20]SAM_PROTO_GetFMData done [00:06:20]requested_item fm.sale_refund.total is exist - process it [00:06:20]requested_item fm.buy.total is exist - process it [00:06:20]requested_item shift.sale.total is exist - process it [00:06:20]SAM_PROTO_GetShiftData [00:06:20]wFMCommunicate request_size=4 [00:06:20]MH_SAM_APDU [00:06:20]CAPDU: 80 13 02 00 [00:06:20]Write to MH i2c: E2 08 00 41 14 80 13 02 00 00 00 00 00 D3 [00:06:20]Write i2c OK [00:06:20]MH_I2C_Read... [00:06:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:20]Read from MH i2c: E2 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 [00:06:20]MH_I2C_Read... [00:06:20]Read from MH i2c: E2 FD 00 41 14 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 46 [00:06:20]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 42 14 80 17 00 00 00 00 00 00 D6 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 42 14 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 DE [00:06:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 43 14 80 17 00 00 00 00 00 00 D7 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:21]Read from MH i2c: E2 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 [00:06:21]MH_I2C_Read... [00:06:21]Read from MH i2c: E2 FD 00 43 14 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 A9 [00:06:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:06:21]wFMCommunicate OK [00:06:21]wFMCommunicate request_size=4 [00:06:21]MH_SAM_APDU [00:06:21]CAPDU: 80 17 00 00 [00:06:21]Write to MH i2c: E2 08 00 44 14 80 17 00 00 00 00 00 00 D8 [00:06:21]Write i2c OK [00:06:21]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 FD 00 44 14 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 4A [00:06:22]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:06:22]wFMCommunicate OK [00:06:22]wFMCommunicate request_size=4 [00:06:22]MH_SAM_APDU [00:06:22]CAPDU: 80 17 00 00 [00:06:22]Write to MH i2c: E2 08 00 45 14 80 17 00 00 00 00 00 00 D9 [00:06:22]Write i2c OK [00:06:22]MH_I2C_Read... [00:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:06:22]Read from MH i2c: E2 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 BD 00 [00:06:22]MH_I2C_Read... [00:06:22]Read from MH i2c: E2 BD 00 45 14 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [00:06:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:22]wFMCommunicate OK [00:06:22]SAM_PROTO_GetShiftData done [00:06:22]requested_item shift.sale.total_cash is exist - process it [00:06:22]requested_item shift.sale_refund.total is exist - process it [00:06:22]requested_item shift.sale_refund.total_cash is exist - process it [00:06:22]requested_item shift.buy.total is exist - process it [00:06:22]requested_item shift.buy.total_cash is exist - process it [00:06:22]produce_requested_data done [00:06:22]produce_requested_data return {"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:22]process_action_free get_value [00:06:22]json_value_free [00:06:22]json_value_free done [00:06:22]process_json_proto returns [00:06:22]Send response to host [00:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72455420.18,"fm.sale_refund.total":5689266.60,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:22]free response buf [00:06:22]execute_script done [00:06:22]execute_script returns [00:06:22]free content buf [00:06:22]Sock 9.Close socket [00:06:22]Sock 9.Thread stoped [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:42]accept exits with 8 [00:06:42]New connection [00:06:42]New thread 3066957156 created [00:06:42]Thread 3066813796 joined [00:06:42]Waiting for new connection... [00:06:42] Sock 8.Parse request [00:06:42]Sock 8.Check first char [00:06:42]Sock 8.First char is OK [00:06:42]request: POST /json_proto HTTP/1.0 [00:06:42]Method: POST [00:06:42]URL: /json_proto [00:06:42]Method is POST - this is cgi request [00:06:42]url: /json_proto [00:06:42]query_string will be loaded in cgi processing [00:06:42]execute_cgi json_proto POST (null) [00:06:42]execute_cgi path=json_proto method=POST [00:06:42]POST find Content-Length [00:06:42]Host: 172.17.62.67:8080 [00:06:42]Content-Length: 671 [00:06:42]Content-Type: application/json [00:06:42] [00:06:42]POST finish read [00:06:42]Found Content-Length = 671 [00:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.180, "sum" : 650.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:42]execute_script... [00:06:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.180, "sum" : 650.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:42]POST & json_proto [00:06:42]process_json_proto [00:06:42]json parsed OK: [00:06:42]protocol is kg_v1.0 [00:06:42]action value=close_receipt [00:06:42]process_action close_receipt [00:06:42]cmd_close_receipt [00:06:42]MH_GetDate [00:06:42]Write to MH i2c: F0 00 00 46 14 49 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: F0 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: F0 05 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: F0 05 00 46 14 00 94 9C EF 65 D2 [00:06:42]GetLastDocTimeStamp 1710201976 [00:06:42]current date 1710202004 [00:06:42]FM_GetShiftState [00:06:42]SAM_PROTO_GetShiftState [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 13 01 00 [00:06:42]Write to MH i2c: E2 08 00 47 14 80 13 01 00 00 00 00 00 D8 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 0E 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 0E 00 47 14 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4C [00:06:42]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:06:42]wFMCommunicate OK [00:06:42]SAM_PROTO_GetShiftState done [00:06:42]FM_GetShiftState done [00:06:42]opened in 1710201976 [00:06:42]opened+sec_in_day 1710288376 [00:06:42]quantity*price = 65050 [00:06:42]sum+1 = 65051 [00:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.08 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 1 12.03.2024 00:06 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95071 ФПД: 15343472172716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T000644&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95071&fm=15343472172716&tin=02508201610067®Number=0000000000090555&sum=65000 [00:06:43]StoreToDocumentArchive [00:06:43]shift 327 fd 95071 [00:06:43]save to /storage/0327/doc_00095071 [00:06:43]save last doc name /storage/0327/doc_00095071 to /storage/kkm_last_doc_name [00:06:43]save OK [00:06:43]Clear old archive folders... [00:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:06:43]tlvbuf is 01AA5430 [00:06:43]SAM_PROTO_ClearQueue [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 09 00 00 [00:06:43]Write to MH i2c: E2 08 00 54 14 80 09 00 00 00 00 00 00 DA [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 03 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 03 00 54 14 00 90 00 DC [00:06:43]RAPDU: 90 00 [00:06:43]wFMCommunicate OK [00:06:43]SAM_PROTO_ClearQueue done [00:06:43]KKMCreateOFDPacket [00:06:43]OFDProtocolAddRootSTLVToBuf [00:06:43]FM_MakeSignedData [00:06:43]FM_MakeSignedData [00:06:43]SAM_PROTO_SignData [00:06:43]wFMCommunicate request_size=4 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 0D 01 02 [00:06:43]Write to MH i2c: E2 08 00 55 14 80 0D 01 02 00 00 00 00 E2 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:43]Read from MH i2c: E2 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 03 00 [00:06:43]MH_I2C_Read... [00:06:43]Read from MH i2c: E2 03 00 55 14 00 90 00 DD [00:06:43]RAPDU: 90 00 [00:06:43]wFMCommunicate OK [00:06:43]wFMCommunicate request_size=255 [00:06:43]MH_SAM_APDU [00:06:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1A FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 94 9C EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 73 01 00 35 04 06 00 [00:06:43]Write to MH i2c: E2 02 01 56 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1A FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 94 9C EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 73 01 00 35 04 06 00 00 00 58 [00:06:43]Write i2c OK [00:06:43]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 56 14 00 90 00 DE [00:06:44]RAPDU: 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=11 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 0D 02 02 06 0D F4 6E 35 5E AC [00:06:44]Write to MH i2c: E2 0E 00 57 14 80 0D 02 02 06 00 0D F4 6E 35 5E AC 00 00 9F [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 03 00 57 14 00 90 00 DF [00:06:44]RAPDU: 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 0D 03 02 [00:06:44]Write to MH i2c: E2 08 00 58 14 80 0D 03 02 00 00 00 00 E7 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 0B 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 0B 00 58 14 00 D5 CB DE 47 7D 68 02 63 90 00 F7 [00:06:44]RAPDU: D5 CB DE 47 7D 68 02 63 90 00 [00:06:44]wFMCommunicate OK [00:06:44]SAM_PROTO_SignData done [00:06:44]FM_MakeSignedData done [00:06:44]CreateOFDProtocolMessage [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 11 00 00 [00:06:44]Write to MH i2c: E2 08 00 59 14 80 11 00 00 00 00 00 00 E7 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 17 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 17 00 59 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 37 [00:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:06:44]wFMCommunicate OK [00:06:44]CreateOFDProtocolMessage done [00:06:44]OFDSenderStorePacket 95071 [00:06:44]StoreOFDPacket docnum=95071 [00:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C2 C6 08 01 7C 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1A FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 94 9C EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 73 01 00 35 04 06 00 0D F4 6E 35 5E AC D5 CB DE 47 7D 68 02 63 [00:06:44]CheckFolder [00:06:44]dirname=/storage/ofd_packets [00:06:44]CheckFolder done [00:06:44]ProducePacketName [00:06:44]name=ofd_packets/00095071 [00:06:44]NVStorageSaveData ofd_packets/00095071 [00:06:44]File name is /storage/ofd_packets/00095071 [00:06:44]Write 302 bytes [00:06:44]NVStorageSaveData done [00:06:44]OFDSenderStorePacket done [00:06:44]KKMCreateOFDPacket done [00:06:44]NVStorageSaveData kkm_last_timestamp [00:06:44]File name is /storage/kkm_last_timestamp [00:06:44]Write 4 bytes [00:06:44]NVStorageSaveData done [00:06:44]ExternCall_PrintAddStr [00:06:44]wPrintStart [00:06:44]Write to MH i2c: 01 00 00 5A 14 6E [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: 01 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: 01 07 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: 01 07 00 5A 14 00 80 00 00 00 FF 0F 03 [00:06:44]RasterBufferAndPrint [00:06:44]line Счет N : (1)196028 [00:06:44]line ИНН: 02508201610067 [00:06:44]line Контрольно-Кассовый Чек [00:06:44]line ПРОДАЖА [00:06:44]line ТРК (МРК, ГНК) : 33 [00:06:44]line Товар: 2710124130 [00:06:44]line SUPER 92-К-5 [00:06:44]line 10.180 * 63.90 [00:06:44]line = 650.50 [00:06:44]line НДС 12% НСП 1% [00:06:44]line > о реализуемом товаре [00:06:44]line ОКРУГЛЕНИЕ: -0.50 [00:06:44]line ИТОГО: 650.00 [00:06:44]line Внесено: 650.00 [00:06:44]line СДАЧА: 0.00 [00:06:44]line НСП 1% : 5.76 [00:06:44]line НДС 12% : 69.08 [00:06:44]line Наличными: 650.00 [00:06:44]line Безнал.: 0.00 [00:06:44]line Место: АЗС № 6 "Партнер Нефть" [00:06:44]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:06:44]line СНО: Общий режим [00:06:44]line Чек 1 12.03.2024 00:06 [00:06:44]line Смена: 327 ФФД: 1.0 [00:06:44]line ЗНМ: 0300000009 [00:06:44]line РНМ: 0000000000090555 [00:06:44]line Версия ККМ: 001 [00:06:44]line ФМ: 0000000000874811 [00:06:44]line ФД: 95071 [00:06:44]line ФПД: 15343472172716 [00:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T000644&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95071&fm=15343472172716&tin=02508201610067®Number=0000000000090555&sum=65000 [00:06:44]written 0, free lines is 4095 [00:06:44]OFD Sender: Processing packet 95071 [packets to send 30, broken 29] [00:06:44]ProducePacketName [00:06:44]name=ofd_packets/00095071 [00:06:44]OFD Sender: To server: pG, [00:06:44]CommunicateWithHost lk.salyk.kg:30040 [00:06:44]ConnectInit lk.salyk.kg [00:06:44]Connected sock=10 [00:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C2 C6 08 01 7C 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1A FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 94 9C EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 73 01 00 35 04 06 00 0D F4 6E 35 5E AC D5 CB DE 47 7D 68 02 63 [00:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F8 C4 47 00 B4 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 31 31 10 04 04 00 5F 73 01 00 F4 03 04 00 EC 47 EF 65 B6 04 01 00 00 65 6F 7C 97 10 67 4D 97 [00:06:44]CommunicateWithHost err = 0 [00:06:44]CheckOFDResponse [00:06:44]1017 (14) - 77093643461234 [00:06:44]1041 (16) - 0000000000874811 [00:06:44]1040 (4) - 95071 [00:06:44]1012 (4) - 11.03.2024 18:05 [00:06:44]1206 (1) - 0 [00:06:44]OFD Sender: Remove packet 95071 [00:06:44]ProducePacketName [00:06:44]name=ofd_packets/00095071 [00:06:44]NVStorageDeleteData [00:06:44]Write to MH i2c: 01 00 00 85 14 99 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: 01 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: 01 07 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: 01 07 00 85 14 00 80 00 00 00 65 0D 92 [00:06:44]RasterBufferAndPrint [00:06:44]line [00:06:44]line [00:06:44]line [00:06:44]line [00:06:44]line [00:06:44]written 0, free lines is 3455 [00:06:44]process_action close_receipt done [00:06:44]requested_data is exist [00:06:44]produce_requested_data [00:06:44]requested_item fm.sn is exist - process it [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 11 00 00 [00:06:44]Write to MH i2c: E2 08 00 8C 14 80 11 00 00 00 00 00 00 1A [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 17 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 17 00 8C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6A [00:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:06:45]wFMCommunicate OK [00:06:45]requested_item fd.num is exist - process it [00:06:45]SAM_PROTO_GetFieldsCounters [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 13 00 00 [00:06:45]Write to MH i2c: E2 08 00 8D 14 80 13 00 00 00 00 00 00 1D [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 62 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 62 00 8D 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5F 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [00:06: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5F 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:45]wFMCommunicate OK [00:06:45]SAM_PROTO_GetFieldsCounters done [00:06:45]requested_item shift.num is exist - process it [00:06:45]requested_item shift.opened is exist - process it [00:06:45]req_shift_opened [00:06:45]FM_GetShiftState [00:06:45]SAM_PROTO_GetShiftState [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 13 01 00 [00:06:45]Write to MH i2c: E2 08 00 8E 14 80 13 01 00 00 00 00 00 1F [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 0E 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 0E 00 8E 14 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 93 [00:06:45]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:06:45]wFMCommunicate OK [00:06:45]SAM_PROTO_GetShiftState done [00:06:45]FM_GetShiftState done [00:06:45]req_shift_opened done [00:06:45]requested_item shift.open_date is exist - process it [00:06:45]req_shift_open_date [00:06:45]req_shift_open_date done [00:06:45]produce_requested_data done [00:06:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95071,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:06:45]process_action_free close_receipt [00:06:45]json_value_free [00:06:45]json_value_free done [00:06:45]process_json_proto returns [00:06:45]Send response to host [00:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95071,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:06:45]free response buf [00:06:45]execute_script done [00:06:45]execute_script returns [00:06:45]free content buf [00:06:45]Sock 8.Close socket [00:06:45]Sock 8.Thread stoped [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:15]accept exits with 9 [00:09:15]New connection [00:09:15]New thread 3066813796 created [00:09:15]Thread 3066957156 joined [00:09:15]Waiting for new connection... [00:09:15] Sock 9.Parse request [00:09:15]Sock 9.Check first char [00:09:15]Sock 9.First char is OK [00:09:15]request: POST /json_proto HTTP/1.0 [00:09:15]Method: POST [00:09:15]URL: /json_proto [00:09:15]Method is POST - this is cgi request [00:09:15]url: /json_proto [00:09:15]query_string will be loaded in cgi processing [00:09:15]execute_cgi json_proto POST (null) [00:09:15]execute_cgi path=json_proto method=POST [00:09:15]POST find Content-Length [00:09:15]Host: 172.17.62.67:8080 [00:09:15]Content-Length: 675 [00:09:15]Content-Type: application/json [00:09:15] [00:09:15]POST finish read [00:09:15]Found Content-Length = 675 [00:09:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 21.290, "sum" : 1360.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1360.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:15]execute_script... [00:09:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 21.290, "sum" : 1360.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1360.00, "total" : 1360.00, "payments": [ { "type": 0, "sum" : 1360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:15]POST & json_proto [00:09:15]process_json_proto [00:09:15]json parsed OK: [00:09:15]protocol is kg_v1.0 [00:09:15]action value=close_receipt [00:09:15]process_action close_receipt [00:09:15]cmd_close_receipt [00:09:15]MH_GetDate [00:09:15]Write to MH i2c: F0 00 00 8F 14 92 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: F0 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: F0 05 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: F0 05 00 8F 14 00 2D 9D EF 65 B5 [00:09:15]GetLastDocTimeStamp 1710202004 [00:09:15]current date 1710202157 [00:09:15]FM_GetShiftState [00:09:15]SAM_PROTO_GetShiftState [00:09:15]wFMCommunicate request_size=4 [00:09:15]MH_SAM_APDU [00:09:15]CAPDU: 80 13 01 00 [00:09:15]Write to MH i2c: E2 08 00 90 14 80 13 01 00 00 00 00 00 21 [00:09:15]Write i2c OK [00:09:15]MH_I2C_Read... [00:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:15]Read from MH i2c: E2 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0E 00 [00:09:15]MH_I2C_Read... [00:09:15]Read from MH i2c: E2 0E 00 90 14 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 95 [00:09:15]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:09:15]wFMCommunicate OK [00:09:15]SAM_PROTO_GetShiftState done [00:09:15]FM_GetShiftState done [00:09:15]opened in 1710201976 [00:09:15]opened+sec_in_day 1710288376 [00:09:15]quantity*price = 136043 [00:09:15]sum+1 = 136044 [00:09:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1360.00 Внесено: 1360.00 СДАЧА: 0.00 НСП 1% : 12.04 НДС 12% : 144.47 Наличными: 1360.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 2 12.03.2024 00:09 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95072 ФПД: 75232615278331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T000917&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95072&fm=75232615278331&tin=02508201610067®Number=0000000000090555&sum=136000 [00:09:16]StoreToDocumentArchive [00:09:16]shift 327 fd 95072 [00:09:16]save to /storage/0327/doc_00095072 [00:09:16]save last doc name /storage/0327/doc_00095072 to /storage/kkm_last_doc_name [00:09:16]save OK [00:09:16]Clear old archive folders... [00:09:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:09:16]tlvbuf is 01A74810 [00:09:16]SAM_PROTO_ClearQueue [00:09:16]wFMCommunicate request_size=4 [00:09:16]MH_SAM_APDU [00:09:16]CAPDU: 80 09 00 00 [00:09:16]Write to MH i2c: E2 08 00 9D 14 80 09 00 00 00 00 00 00 23 [00:09:16]Write i2c OK [00:09:16]MH_I2C_Read... [00:09:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:16]Read from MH i2c: E2 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 03 00 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 03 00 9D 14 00 90 00 25 [00:09:16]RAPDU: 90 00 [00:09:16]wFMCommunicate OK [00:09:16]SAM_PROTO_ClearQueue done [00:09:16]KKMCreateOFDPacket [00:09:16]OFDProtocolAddRootSTLVToBuf [00:09:16]FM_MakeSignedData [00:09:16]FM_MakeSignedData [00:09:16]SAM_PROTO_SignData [00:09:16]wFMCommunicate request_size=4 [00:09:16]MH_SAM_APDU [00:09:16]CAPDU: 80 0D 01 02 [00:09:16]Write to MH i2c: E2 08 00 9E 14 80 0D 01 02 00 00 00 00 2B [00:09:16]Write i2c OK [00:09:16]MH_I2C_Read... [00:09:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:16]Read from MH i2c: E2 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 03 00 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: E2 03 00 9E 14 00 90 00 26 [00:09:16]RAPDU: 90 00 [00:09:16]wFMCommunicate OK [00:09:16]wFMCommunicate request_size=255 [00:09:16]MH_SAM_APDU [00:09:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 53 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 6B 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2D 9D EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 73 01 00 35 04 06 00 [00:09:16]Write to MH i2c: E2 02 01 9F 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 53 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 6B 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2D 9D EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 73 01 00 35 04 06 00 00 00 1E [00:09:16]Write i2c OK [00:09:16]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 03 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 03 00 9F 14 00 90 00 27 [00:09:17]RAPDU: 90 00 [00:09:17]wFMCommunicate OK [00:09:17]wFMCommunicate request_size=11 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 0D 02 02 06 44 6C 75 4F 26 FB [00:09:17]Write to MH i2c: E2 0E 00 A0 14 80 0D 02 02 06 00 44 6C 75 4F 26 FB 00 00 CF [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 03 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 03 00 A0 14 00 90 00 28 [00:09:17]RAPDU: 90 00 [00:09:17]wFMCommunicate OK [00:09:17]wFMCommunicate request_size=4 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 0D 03 02 [00:09:17]Write to MH i2c: E2 08 00 A1 14 80 0D 03 02 00 00 00 00 30 [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 0B 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 0B 00 A1 14 00 E5 F7 7C 06 67 19 6F D0 90 00 4E [00:09:17]RAPDU: E5 F7 7C 06 67 19 6F D0 90 00 [00:09:17]wFMCommunicate OK [00:09:17]SAM_PROTO_SignData done [00:09:17]FM_MakeSignedData done [00:09:17]CreateOFDProtocolMessage [00:09:17]wFMCommunicate request_size=4 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 11 00 00 [00:09:17]Write to MH i2c: E2 08 00 A2 14 80 11 00 00 00 00 00 00 30 [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 17 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 17 00 A2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 80 [00:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:09:17]wFMCommunicate OK [00:09:17]CreateOFDProtocolMessage done [00:09:17]OFDSenderStorePacket 95072 [00:09:17]StoreOFDPacket docnum=95072 [00:09:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C9 58 08 01 0E FA 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 53 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 6B 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2D 9D EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 73 01 00 35 04 06 00 44 6C 75 4F 26 FB E5 F7 7C 06 67 19 6F D0 [00:09:17]CheckFolder [00:09:17]dirname=/storage/ofd_packets [00:09:17]CheckFolder done [00:09:17]ProducePacketName [00:09:17]name=ofd_packets/00095072 [00:09:17]NVStorageSaveData ofd_packets/00095072 [00:09:17]File name is /storage/ofd_packets/00095072 [00:09:17]Write 302 bytes [00:09:17]NVStorageSaveData done [00:09:17]OFDSenderStorePacket done [00:09:17]KKMCreateOFDPacket done [00:09:17]NVStorageSaveData kkm_last_timestamp [00:09:17]File name is /storage/kkm_last_timestamp [00:09:17]Write 4 bytes [00:09:17]NVStorageSaveData done [00:09:17]ExternCall_PrintAddStr [00:09:17]wPrintStart [00:09:17]Write to MH i2c: 01 00 00 A3 14 B7 [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: 01 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: 01 07 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: 01 07 00 A3 14 00 80 00 00 00 FF 0F 4C [00:09:17]RasterBufferAndPrint [00:09:17]line Счет N : (1)196029 [00:09:17]line ИНН: 02508201610067 [00:09:17]line Контрольно-Кассовый Чек [00:09:17]line ПРОДАЖА [00:09:17]line ТРК (МРК, ГНК) : 23 [00:09:17]line Товар: 2710124130 [00:09:17]line SUPER 92-К-5 [00:09:17]line 21.290 * 63.90 [00:09:17]line = 1360.43 [00:09:17]line НДС 12% НСП 1% [00:09:17]line > о реализуемом товаре [00:09:17]line ОКРУГЛЕНИЕ: -0.43 [00:09:17]line ИТОГО: 1360.00 [00:09:17]line Внесено: 1360.00 [00:09:17]line СДАЧА: 0.00 [00:09:17]line НСП 1% : 12.04 [00:09:17]line НДС 12% : 144.47 [00:09:17]line Наличными: 1360.00 [00:09:17]line Безнал.: 0.00 [00:09:17]line Место: АЗС № 6 "Партнер Нефть" [00:09:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:09:17]line СНО: Общий режим [00:09:17]line Чек 2 12.03.2024 00:09 [00:09:17]line Смена: 327 ФФД: 1.0 [00:09:17]line ЗНМ: 0300000009 [00:09:17]line РНМ: 0000000000090555 [00:09:17]line Версия ККМ: 001 [00:09:17]line ФМ: 0000000000874811 [00:09:17]line ФД: 95072 [00:09:17]line ФПД: 75232615278331 [00:09:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T000917&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95072&fm=75232615278331&tin=02508201610067®Number=0000000000090555&sum=136000 [00:09:17]OFD Sender: Processing packet 95072 [packets to send 30, broken 29] [00:09:17]ProducePacketName [00:09:17]name=ofd_packets/00095072 [00:09:17]OFD Sender: To server: pG, [00:09:17]CommunicateWithHost lk.salyk.kg:30040 [00:09:17]ConnectInit lk.salyk.kg [00:09:17]written 0, free lines is 4095 [00:09:17]Connected sock=10 [00:09:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C9 58 08 01 0E FA 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 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 53 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 6B 13 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 13 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 38 00 00 00 00 07 04 06 00 40 13 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2D 9D EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 73 01 00 35 04 06 00 44 6C 75 4F 26 FB E5 F7 7C 06 67 19 6F D0 [00:09:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 58 D9 47 00 1E 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 73 01 00 F4 03 04 00 85 48 EF 65 B6 04 01 00 00 35 46 CB B5 9B 14 00 B9 [00:09:17]CommunicateWithHost err = 0 [00:09:17]CheckOFDResponse [00:09:17]1017 (14) - 77093643461234 [00:09:17]1041 (16) - 0000000000874811 [00:09:17]1040 (4) - 95072 [00:09:17]1012 (4) - 11.03.2024 18:08 [00:09:17]1206 (1) - 0 [00:09:17]OFD Sender: Remove packet 95072 [00:09:17]ProducePacketName [00:09:17]name=ofd_packets/00095072 [00:09:17]NVStorageDeleteData [00:09:18]Write to MH i2c: 01 00 00 CE 14 E2 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: 01 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: 01 07 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: 01 07 00 CE 14 00 80 00 00 00 4A 0D C0 [00:09:18]RasterBufferAndPrint [00:09:18]line [00:09:18]line [00:09:18]line [00:09:18]line [00:09:18]line [00:09:18]written 0, free lines is 3408 [00:09:18]process_action close_receipt done [00:09:18]requested_data is exist [00:09:18]produce_requested_data [00:09:18]requested_item fm.sn is exist - process it [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 11 00 00 [00:09:18]Write to MH i2c: E2 08 00 D5 14 80 11 00 00 00 00 00 00 63 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:18]Read from MH i2c: E2 17 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 17 00 D5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B3 [00:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:09:18]wFMCommunicate OK [00:09:18]requested_item fd.num is exist - process it [00:09:18]SAM_PROTO_GetFieldsCounters [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 13 00 00 [00:09:18]Write to MH i2c: E2 08 00 D6 14 80 13 00 00 00 00 00 00 66 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 62 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 62 00 D6 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 60 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [00:09:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 60 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:18]wFMCommunicate OK [00:09:18]SAM_PROTO_GetFieldsCounters done [00:09:18]requested_item shift.num is exist - process it [00:09:18]requested_item shift.opened is exist - process it [00:09:18]req_shift_opened [00:09:18]FM_GetShiftState [00:09:18]SAM_PROTO_GetShiftState [00:09:18]wFMCommunicate request_size=4 [00:09:18]MH_SAM_APDU [00:09:18]CAPDU: 80 13 01 00 [00:09:18]Write to MH i2c: E2 08 00 D7 14 80 13 01 00 00 00 00 00 68 [00:09:18]Write i2c OK [00:09:18]MH_I2C_Read... [00:09:18]OFD Sender: No OFD packet to send [00:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:18]Read from MH i2c: E2 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 0E 00 [00:09:18]MH_I2C_Read... [00:09:18]Read from MH i2c: E2 0E 00 D7 14 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DC [00:09:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:09:18]wFMCommunicate OK [00:09:18]SAM_PROTO_GetShiftState done [00:09:18]FM_GetShiftState done [00:09:18]req_shift_opened done [00:09:18]requested_item shift.open_date is exist - process it [00:09:18]req_shift_open_date [00:09:18]req_shift_open_date done [00:09:18]produce_requested_data done [00:09:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95072,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:09:18]process_action_free close_receipt [00:09:18]json_value_free [00:09:18]json_value_free done [00:09:18]process_json_proto returns [00:09:18]Send response to host [00:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95072,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:09:18]free response buf [00:09:18]execute_script done [00:09:18]execute_script returns [00:09:18]free content buf [00:09:18]Sock 9.Close socket [00:09:18]Sock 9.Thread stoped [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]accept exits with 8 [00:38:49]New connection [00:38:49]New thread 3066957156 created [00:38:49]Thread 3066813796 joined [00:38:49]Waiting for new connection... [00:38:49] Sock 8.Parse request [00:38:49]Sock 8.Check first char [00:38:49]Sock 8.First char is OK [00:38:49]request: POST /json_proto HTTP/1.0 [00:38:49]Method: POST [00:38:49]URL: /json_proto [00:38:49]Method is POST - this is cgi request [00:38:49]url: /json_proto [00:38:49]query_string will be loaded in cgi processing [00:38:49]execute_cgi json_proto POST (null) [00:38:49]execute_cgi path=json_proto method=POST [00:38:49]POST find Content-Length [00:38:49]Host: 172.17.62.67:8080 [00:38:49]Content-Length: 808 [00:38:49]Content-Type: application/json [00:38:49] [00:38:49]POST finish read [00:38:49]Found Content-Length = 808 [00:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:49]execute_script... [00:38: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)196030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:49]POST & json_proto [00:38:49]process_json_proto [00:38:49]json parsed OK: [00:38:49]protocol is kg_v1.0 [00:38:49]action value=close_receipt [00:38:49]process_action close_receipt [00:38:49]cmd_close_receipt [00:38:49]MH_GetDate [00:38:49]Write to MH i2c: F0 00 00 D8 14 DB [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: F0 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: F0 05 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: F0 05 00 D8 14 00 1B A4 EF 65 F3 [00:38:49]GetLastDocTimeStamp 1710202157 [00:38:49]current date 1710203931 [00:38:49]FM_GetShiftState [00:38:49]SAM_PROTO_GetShiftState [00:38:49]wFMCommunicate request_size=4 [00:38:49]MH_SAM_APDU [00:38:49]CAPDU: 80 13 01 00 [00:38:49]Write to MH i2c: E2 08 00 D9 14 80 13 01 00 00 00 00 00 6A [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 0E 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 0E 00 D9 14 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DE [00:38:49]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:38:49]wFMCommunicate OK [00:38:49]SAM_PROTO_GetShiftState done [00:38:49]FM_GetShiftState done [00:38:49]opened in 1710201976 [00:38:49]opened+sec_in_day 1710288376 [00:38:49]quantity*price = 150050 [00:38:49]sum+1 = 150052 [00:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.51 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.51 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 3 12.03.2024 00:38 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95073 ФПД: 257052622282824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T003851&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95073&fm=257052622282824&tin=02508201610067®Number=0000000000090555&sum=150051 [00:38:50]StoreToDocumentArchive [00:38:50]shift 327 fd 95073 [00:38:50]save to /storage/0327/doc_00095073 [00:38:50]save last doc name /storage/0327/doc_00095073 to /storage/kkm_last_doc_name [00:38:50]save OK [00:38:50]Clear old archive folders... [00:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:50]tlvbuf is 01A2E860 [00:38:50]SAM_PROTO_ClearQueue [00:38:50]wFMCommunicate request_size=4 [00:38:50]MH_SAM_APDU [00:38:50]CAPDU: 80 09 00 00 [00:38:50]Write to MH i2c: E2 08 00 E6 14 80 09 00 00 00 00 00 00 6C [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:50]Read from MH i2c: E2 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 03 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 03 00 E6 14 00 90 00 6E [00:38:50]RAPDU: 90 00 [00:38:50]wFMCommunicate OK [00:38:50]SAM_PROTO_ClearQueue done [00:38:50]KKMCreateOFDPacket [00:38:50]OFDProtocolAddRootSTLVToBuf [00:38:50]FM_MakeSignedData [00:38:50]FM_MakeSignedData [00:38:50]SAM_PROTO_SignData [00:38:50]wFMCommunicate request_size=4 [00:38:50]MH_SAM_APDU [00:38:50]CAPDU: 80 0D 01 02 [00:38:50]Write to MH i2c: E2 08 00 E7 14 80 0D 01 02 00 00 00 00 74 [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:50]Read from MH i2c: E2 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 03 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 03 00 E7 14 00 90 00 6F [00:38:50]RAPDU: 90 00 [00:38:50]wFMCommunicate OK [00:38:50]wFMCommunicate request_size=255 [00:38:50]MH_SAM_APDU [00:38: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1B A4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 73 01 00 35 04 06 00 E9 [00:38:50]Write to MH i2c: E2 02 01 E8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1B A4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 73 01 00 35 04 06 00 E9 00 00 84 [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:50]Read from MH i2c: E2 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 03 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 03 00 E8 14 00 90 00 70 [00:38:50]RAPDU: 90 00 [00:38:50]wFMCommunicate OK [00:38:50]wFMCommunicate request_size=10 [00:38:50]MH_SAM_APDU [00:38:50]CAPDU: 80 0D 02 02 05 C9 BA 3D 60 48 [00:38:50]Write to MH i2c: E2 0D 00 E9 14 80 0D 02 02 05 00 C9 BA 3D 60 48 00 00 E9 [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:50]Read from MH i2c: E2 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 03 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 03 00 E9 14 00 90 00 71 [00:38:50]RAPDU: 90 00 [00:38:50]wFMCommunicate OK [00:38:50]wFMCommunicate request_size=4 [00:38:50]MH_SAM_APDU [00:38:50]CAPDU: 80 0D 03 02 [00:38:50]Write to MH i2c: E2 08 00 EA 14 80 0D 03 02 00 00 00 00 79 [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:50]Read from MH i2c: E2 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 0B 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 0B 00 EA 14 00 F7 A9 3E 8D 5C 04 10 A2 90 00 F7 [00:38:50]RAPDU: F7 A9 3E 8D 5C 04 10 A2 90 00 [00:38:50]wFMCommunicate OK [00:38:50]SAM_PROTO_SignData done [00:38:50]FM_MakeSignedData done [00:38:50]CreateOFDProtocolMessage [00:38:50]wFMCommunicate request_size=4 [00:38:50]MH_SAM_APDU [00:38:50]CAPDU: 80 11 00 00 [00:38:50]Write to MH i2c: E2 08 00 EB 14 80 11 00 00 00 00 00 00 79 [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:50]Read from MH i2c: E2 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 17 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 17 00 EB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C9 [00:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:38:50]wFMCommunicate OK [00:38:50]CreateOFDProtocolMessage done [00:38:50]OFDSenderStorePacket 95073 [00:38:50]StoreOFDPacket docnum=95073 [00:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0E AE 07 01 40 08 5A 03 01 00 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 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1B A4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 73 01 00 35 04 06 00 E9 C9 BA 3D 60 48 F7 A9 3E 8D 5C 04 10 A2 [00:38:50]CheckFolder [00:38:50]dirname=/storage/ofd_packets [00:38:50]CheckFolder done [00:38:50]ProducePacketName [00:38:50]name=ofd_packets/00095073 [00:38:50]NVStorageSaveData ofd_packets/00095073 [00:38:50]File name is /storage/ofd_packets/00095073 [00:38:50]Write 301 bytes [00:38:50]NVStorageSaveData done [00:38:50]OFDSenderStorePacket done [00:38:50]KKMCreateOFDPacket done [00:38:50]NVStorageSaveData kkm_last_timestamp [00:38:50]File name is /storage/kkm_last_timestamp [00:38:50]Write 4 bytes [00:38:50]NVStorageSaveData done [00:38:50]ExternCall_PrintAddStr [00:38:50]wPrintStart [00:38:50]Write to MH i2c: 01 00 00 EC 14 00 [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 07 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 07 00 EC 14 00 80 00 00 00 FF 0F 95 [00:38:50]RasterBufferAndPrint [00:38:50]line Счет N : (1)196030 [00:38:50]line ИНН: 02508201610067 [00:38:50]line Контрольно-Кассовый Чек [00:38:50]line ПРОДАЖА [00:38:50]line ТРК (МРК, ГНК) : 41 [00:38:50]line Товар: 2710124500 [00:38:50]line Аи-95-К-5 [00:38:50]line 21.590 * 69.50 [00:38:50]line = 1500.51 [00:38:50]line НДС 12% НСП 1% [00:38:50]line > о реализуемом товаре [00:38:50]line ИТОГО: 1500.51 [00:38:50]line НСП 1% : 13.28 [00:38:50]line НДС 12% : 159.35 [00:38:50]line Наличными: 0.00 [00:38:50]line Безнал.: 1500.51 [00:38:50]line Место: АЗС № 6 "Партнер Нефть" [00:38:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:38:50]line СНО: Общий режим [00:38:50]line Чек 3 12.03.2024 00:38 [00:38:50]line Смена: 327 ФФД: 1.0 [00:38:50]line ЗНМ: 0300000009 [00:38:50]line РНМ: 0000000000090555 [00:38:50]line Версия ККМ: 001 [00:38:50]line Платежная система: О! деньги [00:38:50]line ФМ: 0000000000874811 [00:38:50]line ФД: 95073 [00:38:50]line ФПД: 257052622282824 [00:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T003851&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95073&fm=257052622282824&tin=02508201610067®Number=0000000000090555&sum=150051 [00:38:51]OFD Sender: Processing packet 95073 [packets to send 30, broken 29] [00:38:51]ProducePacketName [00:38:51]name=ofd_packets/00095073 [00:38:51]OFD Sender: To server: pG, [00:38:51]CommunicateWithHost lk.salyk.kg:30040 [00:38:51]ConnectInit lk.salyk.kg [00:38:51]written 0, free lines is 4095 [00:38:51]Connected sock=10 [00:38: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 31 31 0F 01 00 00 0E AE 07 01 40 08 5A 03 01 00 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 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1B A4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 73 01 00 35 04 06 00 E9 C9 BA 3D 60 48 F7 A9 3E 8D 5C 04 10 A2 [00:38: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 31 31 4F 00 00 00 32 4A 47 00 EF 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 31 31 10 04 04 00 61 73 01 00 F4 03 04 00 73 4F EF 65 B6 04 01 00 00 DF 74 DF D0 C9 C0 CC DD [00:38:51]CommunicateWithHost err = 0 [00:38:51]CheckOFDResponse [00:38:51]1017 (14) - 77093643461234 [00:38:51]1041 (16) - 0000000000874811 [00:38:51]1040 (4) - 95073 [00:38:51]1012 (4) - 11.03.2024 18:37 [00:38:51]1206 (1) - 0 [00:38:51]OFD Sender: Remove packet 95073 [00:38:51]ProducePacketName [00:38:51]name=ofd_packets/00095073 [00:38:51]NVStorageDeleteData [00:38:51]Write to MH i2c: 01 00 00 16 15 2B [00:38:51]Write i2c OK [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: 01 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: 01 07 00 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: 01 07 00 16 15 00 80 00 00 00 63 0D 22 [00:38:51]RasterBufferAndPrint [00:38:51]line [00:38:51]line [00:38:51]line [00:38:51]line [00:38:51]line [00:38:51]written 0, free lines is 3433 [00:38:51]process_action close_receipt done [00:38:51]requested_data is exist [00:38:51]produce_requested_data [00:38:51]requested_item fm.sn is exist - process it [00:38:51]wFMCommunicate request_size=4 [00:38:51]MH_SAM_APDU [00:38:51]CAPDU: 80 11 00 00 [00:38:51]Write to MH i2c: E2 08 00 1D 15 80 11 00 00 00 00 00 00 AC [00:38:51]Write i2c OK [00:38:51]MH_I2C_Read... [00:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:51]Read from MH i2c: E2 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 17 00 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 17 00 1D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FC [00:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:38:51]wFMCommunicate OK [00:38:51]requested_item fd.num is exist - process it [00:38:51]SAM_PROTO_GetFieldsCounters [00:38:51]wFMCommunicate request_size=4 [00:38:51]MH_SAM_APDU [00:38:51]CAPDU: 80 13 00 00 [00:38:51]Write to MH i2c: E2 08 00 1E 15 80 13 00 00 00 00 00 00 AF [00:38:51]Write i2c OK [00:38:51]MH_I2C_Read... [00:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:51]Read from MH i2c: E2 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 62 00 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 62 00 1E 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 61 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [00:38: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 61 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:51]wFMCommunicate OK [00:38:51]SAM_PROTO_GetFieldsCounters done [00:38:51]requested_item shift.num is exist - process it [00:38:51]requested_item shift.opened is exist - process it [00:38:51]req_shift_opened [00:38:51]FM_GetShiftState [00:38:51]SAM_PROTO_GetShiftState [00:38:51]wFMCommunicate request_size=4 [00:38:51]MH_SAM_APDU [00:38:51]CAPDU: 80 13 01 00 [00:38:51]Write to MH i2c: E2 08 00 1F 15 80 13 01 00 00 00 00 00 B1 [00:38:51]Write i2c OK [00:38:51]MH_I2C_Read... [00:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:51]Read from MH i2c: E2 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 0E 00 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 0E 00 1F 15 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 25 [00:38:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:38:51]wFMCommunicate OK [00:38:51]SAM_PROTO_GetShiftState done [00:38:51]FM_GetShiftState done [00:38:51]req_shift_opened done [00:38:51]requested_item shift.open_date is exist - process it [00:38:51]req_shift_open_date [00:38:51]req_shift_open_date done [00:38:51]produce_requested_data done [00:38:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95073,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:38:51]process_action_free close_receipt [00:38:51]json_value_free [00:38:51]json_value_free done [00:38:51]process_json_proto returns [00:38:51]Send response to host [00:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95073,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:38:51]free response buf [00:38:51]execute_script done [00:38:51]execute_script returns [00:38:51]free content buf [00:38:51]Sock 8.Close socket [00:38:51]Sock 8.Thread stoped [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:19]accept exits with 9 [00:41:19]New connection [00:41:19]New thread 3066813796 created [00:41:19]Thread 3066957156 joined [00:41:19]Waiting for new connection... [00:41:19] Sock 9.Parse request [00:41:19]Sock 9.Check first char [00:41:19]Sock 9.First char is OK [00:41:19]request: POST /json_proto HTTP/1.0 [00:41:19]Method: POST [00:41:19]URL: /json_proto [00:41:19]Method is POST - this is cgi request [00:41:19]url: /json_proto [00:41:19]query_string will be loaded in cgi processing [00:41:19]execute_cgi json_proto POST (null) [00:41:19]execute_cgi path=json_proto method=POST [00:41:19]POST find Content-Length [00:41:19]Host: 172.17.62.67:8080 [00:41:19]Content-Length: 816 [00:41:19]Content-Type: application/json [00:41:19] [00:41:19]POST finish read [00:41:19]Found Content-Length = 816 [00:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:19]execute_script... [00:41: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)196031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:19]POST & json_proto [00:41:19]process_json_proto [00:41:19]json parsed OK: [00:41:19]protocol is kg_v1.0 [00:41:19]action value=close_receipt [00:41:19]process_action close_receipt [00:41:19]cmd_close_receipt [00:41:19]MH_GetDate [00:41:19]Write to MH i2c: F0 00 00 20 15 24 [00:41:19]Write i2c OK [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: F0 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: F0 05 00 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: F0 05 00 20 15 00 B1 A4 EF 65 D2 [00:41:19]GetLastDocTimeStamp 1710203931 [00:41:19]current date 1710204081 [00:41:19]FM_GetShiftState [00:41:19]SAM_PROTO_GetShiftState [00:41:19]wFMCommunicate request_size=4 [00:41:19]MH_SAM_APDU [00:41:19]CAPDU: 80 13 01 00 [00:41:19]Write to MH i2c: E2 08 00 21 15 80 13 01 00 00 00 00 00 B3 [00:41:19]Write i2c OK [00:41:19]MH_I2C_Read... [00:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:19]Read from MH i2c: E2 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: E2 0E 00 [00:41:19]MH_I2C_Read... [00:41:19]Read from MH i2c: E2 0E 00 21 15 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 27 [00:41:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:41:19]wFMCommunicate OK [00:41:19]SAM_PROTO_GetShiftState done [00:41:19]FM_GetShiftState done [00:41:19]opened in 1710201976 [00:41:19]opened+sec_in_day 1710288376 [00:41:19]quantity*price = 200008 [00:41:19]sum+1 = 200010 [00:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.09 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.09 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 4 12.03.2024 00:41 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95074 ФПД: 270576658934323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T004122&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95074&fm=270576658934323&tin=02508201610067®Number=0000000000090555&sum=200009 [00:41:20]StoreToDocumentArchive [00:41:20]shift 327 fd 95074 [00:41:20]save to /storage/0327/doc_00095074 [00:41:20]save last doc name /storage/0327/doc_00095074 to /storage/kkm_last_doc_name [00:41:20]save OK [00:41:20]Clear old archive folders... [00:41:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:41:20]tlvbuf is 01A058D0 [00:41:20]SAM_PROTO_ClearQueue [00:41:20]wFMCommunicate request_size=4 [00:41:20]MH_SAM_APDU [00:41:20]CAPDU: 80 09 00 00 [00:41:20]Write to MH i2c: E2 08 00 2E 15 80 09 00 00 00 00 00 00 B5 [00:41:20]Write i2c OK [00:41:20]MH_I2C_Read... [00:41:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:20]Read from MH i2c: E2 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: E2 03 00 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: E2 03 00 2E 15 00 90 00 B7 [00:41:20]RAPDU: 90 00 [00:41:20]wFMCommunicate OK [00:41:20]SAM_PROTO_ClearQueue done [00:41:20]KKMCreateOFDPacket [00:41:20]OFDProtocolAddRootSTLVToBuf [00:41:20]FM_MakeSignedData [00:41:20]FM_MakeSignedData [00:41:20]SAM_PROTO_SignData [00:41:20]wFMCommunicate request_size=4 [00:41:20]MH_SAM_APDU [00:41:20]CAPDU: 80 0D 01 02 [00:41:20]Write to MH i2c: E2 08 00 2F 15 80 0D 01 02 00 00 00 00 BD [00:41:20]Write i2c OK [00:41:20]MH_I2C_Read... [00:41:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:20]Read from MH i2c: E2 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: E2 03 00 [00:41:20]MH_I2C_Read... [00:41:20]Read from MH i2c: E2 03 00 2F 15 00 90 00 B8 [00:41:20]RAPDU: 90 00 [00:41:20]wFMCommunicate OK [00:41:20]wFMCommunicate request_size=255 [00:41:20]MH_SAM_APDU [00:41:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B2 A4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 73 01 00 35 04 06 00 F6 16 89 A3 [00:41:20]Write to MH i2c: E2 02 01 30 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B2 A4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 73 01 00 35 04 06 00 F6 16 89 A3 00 00 CC [00:41:20]Write i2c OK [00:41:20]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 30 15 00 90 00 B9 [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]wFMCommunicate request_size=7 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 0D 02 02 02 EA 33 [00:41:21]Write to MH i2c: E2 0A 00 31 15 80 0D 02 02 02 00 EA 33 00 00 E1 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 03 00 31 15 00 90 00 BA [00:41:21]RAPDU: 90 00 [00:41:21]wFMCommunicate OK [00:41:21]wFMCommunicate request_size=4 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 0D 03 02 [00:41:21]Write to MH i2c: E2 08 00 32 15 80 0D 03 02 00 00 00 00 C2 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 0B 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 0B 00 32 15 00 B6 E8 25 83 58 EA DE 70 90 00 99 [00:41:21]RAPDU: B6 E8 25 83 58 EA DE 70 90 00 [00:41:21]wFMCommunicate OK [00:41:21]SAM_PROTO_SignData done [00:41:21]FM_MakeSignedData done [00:41:21]CreateOFDProtocolMessage [00:41:21]wFMCommunicate request_size=4 [00:41:21]MH_SAM_APDU [00:41:21]CAPDU: 80 11 00 00 [00:41:21]Write to MH i2c: E2 08 00 33 15 80 11 00 00 00 00 00 00 C2 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:21]Read from MH i2c: E2 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 17 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: E2 17 00 33 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 12 [00:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:41:21]wFMCommunicate OK [00:41:21]CreateOFDProtocolMessage done [00:41:21]OFDSenderStorePacket 95074 [00:41:21]StoreOFDPacket docnum=95074 [00:41:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 9E 75 04 01 CE D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B2 A4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 73 01 00 35 04 06 00 F6 16 89 A3 EA 33 B6 E8 25 83 58 EA DE 70 [00:41:21]CheckFolder [00:41:21]dirname=/storage/ofd_packets [00:41:21]CheckFolder done [00:41:21]ProducePacketName [00:41:21]name=ofd_packets/00095074 [00:41:21]NVStorageSaveData ofd_packets/00095074 [00:41:21]File name is /storage/ofd_packets/00095074 [00:41:21]Write 298 bytes [00:41:21]NVStorageSaveData done [00:41:21]OFDSenderStorePacket done [00:41:21]KKMCreateOFDPacket done [00:41:21]NVStorageSaveData kkm_last_timestamp [00:41:21]File name is /storage/kkm_last_timestamp [00:41:21]Write 4 bytes [00:41:21]NVStorageSaveData done [00:41:21]ExternCall_PrintAddStr [00:41:21]wPrintStart [00:41:21]Write to MH i2c: 01 00 00 34 15 49 [00:41:21]Write i2c OK [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: 01 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: 01 07 00 [00:41:21]MH_I2C_Read... [00:41:21]Read from MH i2c: 01 07 00 34 15 00 80 00 00 00 FF 0F DE [00:41:21]RasterBufferAndPrint [00:41:21]line Счет N : (1)196031 [00:41:21]line ИНН: 02508201610067 [00:41:21]line Контрольно-Кассовый Чек [00:41:21]line ПРОДАЖА [00:41:21]line ТРК (МРК, ГНК) : 51 [00:41:21]line Товар: 2710194210 [00:41:21]line ДТ-К-5 [00:41:21]line 28.210 * 70.90 [00:41:21]line = 2000.09 [00:41:21]line НДС 12% НСП 1% [00:41:21]line > о реализуемом товаре [00:41:21]line ИТОГО: 2000.09 [00:41:21]line НСП 1% : 17.70 [00:41:21]line НДС 12% : 212.40 [00:41:21]line Наличными: 0.00 [00:41:21]line Безнал.: 2000.09 [00:41:21]line Место: АЗС № 6 "Партнер Нефть" [00:41:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:41:21]line СНО: Общий режим [00:41:21]line Чек 4 12.03.2024 00:41 [00:41:21]line Смена: 327 ФФД: 1.0 [00:41:21]line ЗНМ: 0300000009 [00:41:21]line РНМ: 0000000000090555 [00:41:21]line Версия ККМ: 001 [00:41:21]line Платежная система: Бакай Банк [00:41:21]line ФМ: 0000000000874811 [00:41:21]line ФД: 95074 [00:41:21]line ФПД: 270576658934323 [00:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T004122&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95074&fm=270576658934323&tin=02508201610067®Number=0000000000090555&sum=200009 [00:41:21]OFD Sender: Processing packet 95074 [packets to send 30, broken 29] [00:41:21]ProducePacketName [00:41:21]name=ofd_packets/00095074 [00:41:21]OFD Sender: To server: pG, [00:41:21]CommunicateWithHost lk.salyk.kg:30040 [00:41:21]ConnectInit lk.salyk.kg [00:41:21]written 0, free lines is 4095 [00:41:21]Connected sock=10 [00:41: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 31 31 0C 01 00 00 9E 75 04 01 CE D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B2 A4 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 73 01 00 35 04 06 00 F6 16 89 A3 EA 33 B6 E8 25 83 58 EA DE 70 [00:41:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 22 DD 47 00 A7 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 31 31 10 04 04 00 62 73 01 00 F4 03 04 00 09 50 EF 65 B6 04 01 00 00 95 4B 94 E8 03 52 CF 5E [00:41:21]CommunicateWithHost err = 0 [00:41:21]CheckOFDResponse [00:41:21]1017 (14) - 77093643461234 [00:41:21]1041 (16) - 0000000000874811 [00:41:21]1040 (4) - 95074 [00:41:21]1012 (4) - 11.03.2024 18:40 [00:41:21]1206 (1) - 0 [00:41:21]OFD Sender: Remove packet 95074 [00:41:21]ProducePacketName [00:41:21]name=ofd_packets/00095074 [00:41:21]NVStorageDeleteData [00:41:22]Write to MH i2c: 01 00 00 5E 15 73 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 07 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: 01 07 00 5E 15 00 80 00 00 00 5B 0D 62 [00:41:22]RasterBufferAndPrint [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]line [00:41:22]written 0, free lines is 3424 [00:41:22]process_action close_receipt done [00:41:22]requested_data is exist [00:41:22]produce_requested_data [00:41:22]requested_item fm.sn is exist - process it [00:41:22]wFMCommunicate request_size=4 [00:41:22]MH_SAM_APDU [00:41:22]CAPDU: 80 11 00 00 [00:41:22]Write to MH i2c: E2 08 00 65 15 80 11 00 00 00 00 00 00 F4 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:22]Read from MH i2c: E2 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 17 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 17 00 65 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 44 [00:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:41:22]wFMCommunicate OK [00:41:22]requested_item fd.num is exist - process it [00:41:22]SAM_PROTO_GetFieldsCounters [00:41:22]wFMCommunicate request_size=4 [00:41:22]MH_SAM_APDU [00:41:22]CAPDU: 80 13 00 00 [00:41:22]Write to MH i2c: E2 08 00 66 15 80 13 00 00 00 00 00 00 F7 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:22]Read from MH i2c: E2 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 62 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 62 00 66 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 62 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [00:41: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 62 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:22]wFMCommunicate OK [00:41:22]SAM_PROTO_GetFieldsCounters done [00:41:22]requested_item shift.num is exist - process it [00:41:22]requested_item shift.opened is exist - process it [00:41:22]req_shift_opened [00:41:22]FM_GetShiftState [00:41:22]SAM_PROTO_GetShiftState [00:41:22]wFMCommunicate request_size=4 [00:41:22]MH_SAM_APDU [00:41:22]CAPDU: 80 13 01 00 [00:41:22]Write to MH i2c: E2 08 00 67 15 80 13 01 00 00 00 00 00 F9 [00:41:22]Write i2c OK [00:41:22]MH_I2C_Read... [00:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:22]Read from MH i2c: E2 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 0E 00 [00:41:22]MH_I2C_Read... [00:41:22]Read from MH i2c: E2 0E 00 67 15 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6D [00:41:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:41:22]wFMCommunicate OK [00:41:22]SAM_PROTO_GetShiftState done [00:41:22]FM_GetShiftState done [00:41:22]req_shift_opened done [00:41:22]requested_item shift.open_date is exist - process it [00:41:22]req_shift_open_date [00:41:22]req_shift_open_date done [00:41:22]produce_requested_data done [00:41:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95074,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:41:22]process_action_free close_receipt [00:41:22]json_value_free [00:41:22]json_value_free done [00:41:22]process_json_proto returns [00:41:22]Send response to host [00:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95074,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:41:22]free response buf [00:41:22]execute_script done [00:41:22]execute_script returns [00:41:22]free content buf [00:41:22]Sock 9.Close socket [00:41:22]Sock 9.Thread stoped [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:42:59]accept exits with 8 [00:42:59]New connection [00:42:59]New thread 3066957156 created [00:42:59]Thread 3066813796 joined [00:42:59]Waiting for new connection... [00:42:59] Sock 8.Parse request [00:42:59]Sock 8.Check first char [00:42:59]Sock 8.First char is OK [00:42:59]request: POST /json_proto HTTP/1.0 [00:42:59]Method: POST [00:42:59]URL: /json_proto [00:42:59]Method is POST - this is cgi request [00:42:59]url: /json_proto [00:42:59]query_string will be loaded in cgi processing [00:42:59]execute_cgi json_proto POST (null) [00:42:59]execute_cgi path=json_proto method=POST [00:42:59]POST find Content-Length [00:42:59]Host: 172.17.62.67:8080 [00:42:59]Content-Length: 816 [00:42:59]Content-Type: application/json [00:42:59] [00:42:59]POST finish read [00:42:59]Found Content-Length = 816 [00:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:59]execute_script... [00:42: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)196032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:42:59]POST & json_proto [00:42:59]process_json_proto [00:42:59]json parsed OK: [00:42:59]protocol is kg_v1.0 [00:42:59]action value=close_receipt [00:42:59]process_action close_receipt [00:42:59]cmd_close_receipt [00:42:59]MH_GetDate [00:42:59]Write to MH i2c: F0 00 00 68 15 6C [00:42:59]Write i2c OK [00:42:59]MH_I2C_Read... [00:42:59]Read from MH i2c: F0 [00:42:59]MH_I2C_Read... [00:42:59]Read from MH i2c: F0 05 00 [00:42:59]MH_I2C_Read... [00:42:59]Read from MH i2c: F0 05 00 68 15 00 15 A5 EF 65 7F [00:42:59]GetLastDocTimeStamp 1710204082 [00:42:59]current date 1710204181 [00:42:59]FM_GetShiftState [00:42:59]SAM_PROTO_GetShiftState [00:42:59]wFMCommunicate request_size=4 [00:42:59]MH_SAM_APDU [00:42:59]CAPDU: 80 13 01 00 [00:42:59]Write to MH i2c: E2 08 00 69 15 80 13 01 00 00 00 00 00 FB [00:42:59]Write i2c OK [00:42:59]MH_I2C_Read... [00:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:59]Read from MH i2c: E2 [00:42:59]MH_I2C_Read... [00:42:59]Read from MH i2c: E2 0E 00 [00:42:59]MH_I2C_Read... [00:42:59]Read from MH i2c: E2 0E 00 69 15 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6F [00:42:59]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:42:59]wFMCommunicate OK [00:42:59]SAM_PROTO_GetShiftState done [00:42:59]FM_GetShiftState done [00:42:59]opened in 1710201976 [00:42:59]opened+sec_in_day 1710288376 [00:42:59]quantity*price = 50005 [00:42:59]sum+1 = 50007 [00:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 5 12.03.2024 00:43 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95075 ФПД: 181689791110546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T004301&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95075&fm=181689791110546&tin=02508201610067®Number=0000000000090555&sum=50006 [00:43:00]StoreToDocumentArchive [00:43:00]shift 327 fd 95075 [00:43:00]save to /storage/0327/doc_00095075 [00:43:00]save last doc name /storage/0327/doc_00095075 to /storage/kkm_last_doc_name [00:43:00]save OK [00:43:00]Clear old archive folders... [00:43:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:00]tlvbuf is 01A2E4B0 [00:43:00]SAM_PROTO_ClearQueue [00:43:00]wFMCommunicate request_size=4 [00:43:00]MH_SAM_APDU [00:43:00]CAPDU: 80 09 00 00 [00:43:00]Write to MH i2c: E2 08 00 76 15 80 09 00 00 00 00 00 00 FD [00:43:00]Write i2c OK [00:43:00]MH_I2C_Read... [00:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:00]Read from MH i2c: E2 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 03 00 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 03 00 76 15 00 90 00 FF [00:43:00]RAPDU: 90 00 [00:43:00]wFMCommunicate OK [00:43:00]SAM_PROTO_ClearQueue done [00:43:00]KKMCreateOFDPacket [00:43:00]OFDProtocolAddRootSTLVToBuf [00:43:00]FM_MakeSignedData [00:43:00]FM_MakeSignedData [00:43:00]SAM_PROTO_SignData [00:43:00]wFMCommunicate request_size=4 [00:43:00]MH_SAM_APDU [00:43:00]CAPDU: 80 0D 01 02 [00:43:00]Write to MH i2c: E2 08 00 77 15 80 0D 01 02 00 00 00 00 05 [00:43:00]Write i2c OK [00:43:00]MH_I2C_Read... [00:43:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:00]Read from MH i2c: E2 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 03 00 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 03 00 77 15 00 90 00 00 [00:43:00]RAPDU: 90 00 [00:43:00]wFMCommunicate OK [00:43:00]wFMCommunicate request_size=255 [00:43:00]MH_SAM_APDU [00:43:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 A5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 73 01 00 35 04 06 00 A5 [00:43:00]Write to MH i2c: E2 02 01 78 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 A5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 73 01 00 35 04 06 00 A5 00 00 91 [00:43:00]Write i2c OK [00:43:00]MH_I2C_Read... [00:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:00]Read from MH i2c: E2 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 03 00 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 03 00 78 15 00 90 00 01 [00:43:00]RAPDU: 90 00 [00:43:00]wFMCommunicate OK [00:43:00]wFMCommunicate request_size=10 [00:43:00]MH_SAM_APDU [00:43:00]CAPDU: 80 0D 02 02 05 3E F3 75 5D 92 [00:43:00]Write to MH i2c: E2 0D 00 79 15 80 0D 02 02 05 00 3E F3 75 5D 92 00 00 A7 [00:43:00]Write i2c OK [00:43:00]MH_I2C_Read... [00:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:00]Read from MH i2c: E2 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 03 00 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 03 00 79 15 00 90 00 02 [00:43:00]RAPDU: 90 00 [00:43:00]wFMCommunicate OK [00:43:00]wFMCommunicate request_size=4 [00:43:00]MH_SAM_APDU [00:43:00]CAPDU: 80 0D 03 02 [00:43:00]Write to MH i2c: E2 08 00 7A 15 80 0D 03 02 00 00 00 00 0A [00:43:00]Write i2c OK [00:43:00]MH_I2C_Read... [00:43:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:00]Read from MH i2c: E2 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 0B 00 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 0B 00 7A 15 00 B1 7E 2B D5 0C 29 16 2B 90 00 B0 [00:43:00]RAPDU: B1 7E 2B D5 0C 29 16 2B 90 00 [00:43:00]wFMCommunicate OK [00:43:00]SAM_PROTO_SignData done [00:43:00]FM_MakeSignedData done [00:43:00]CreateOFDProtocolMessage [00:43:00]wFMCommunicate request_size=4 [00:43:00]MH_SAM_APDU [00:43:00]CAPDU: 80 11 00 00 [00:43:00]Write to MH i2c: E2 08 00 7B 15 80 11 00 00 00 00 00 00 0A [00:43:00]Write i2c OK [00:43:00]MH_I2C_Read... [00:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:00]Read from MH i2c: E2 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 17 00 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: E2 17 00 7B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5A [00:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:43:00]wFMCommunicate OK [00:43:00]CreateOFDProtocolMessage done [00:43:00]OFDSenderStorePacket 95075 [00:43:00]StoreOFDPacket docnum=95075 [00:43:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B4 6A 07 01 1F B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 A5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 73 01 00 35 04 06 00 A5 3E F3 75 5D 92 B1 7E 2B D5 0C 29 16 2B [00:43:00]CheckFolder [00:43:00]dirname=/storage/ofd_packets [00:43:00]CheckFolder done [00:43:00]ProducePacketName [00:43:00]name=ofd_packets/00095075 [00:43:00]NVStorageSaveData ofd_packets/00095075 [00:43:00]File name is /storage/ofd_packets/00095075 [00:43:00]Write 301 bytes [00:43:00]NVStorageSaveData done [00:43:00]OFDSenderStorePacket done [00:43:00]KKMCreateOFDPacket done [00:43:00]NVStorageSaveData kkm_last_timestamp [00:43:00]File name is /storage/kkm_last_timestamp [00:43:00]Write 4 bytes [00:43:00]NVStorageSaveData done [00:43:00]ExternCall_PrintAddStr [00:43:00]wPrintStart [00:43:00]Write to MH i2c: 01 00 00 7C 15 91 [00:43:00]Write i2c OK [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: 01 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: 01 07 00 [00:43:00]MH_I2C_Read... [00:43:00]Read from MH i2c: 01 07 00 7C 15 00 80 00 00 00 FF 0F 26 [00:43:00]RasterBufferAndPrint [00:43:00]line Счет N : (1)196032 [00:43:00]line ИНН: 02508201610067 [00:43:00]line Контрольно-Кассовый Чек [00:43:00]line ПРОДАЖА [00:43:00]line ТРК (МРК, ГНК) : 12 [00:43:00]line Товар: 2710124130 [00:43:00]line Аи-92-К-5 [00:43:00]line 7.950 * 62.90 [00:43:00]line = 500.06 [00:43:00]line НДС 12% НСП 1% [00:43:00]line > о реализуемом товаре [00:43:00]line ИТОГО: 500.06 [00:43:00]line НСП 1% : 4.42 [00:43:00]line НДС 12% : 53.10 [00:43:00]line Наличными: 0.00 [00:43:00]line Безнал.: 500.06 [00:43:00]line Место: АЗС № 6 "Партнер Нефть" [00:43:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:43:00]line СНО: Общий режим [00:43:00]line Чек 5 12.03.2024 00:43 [00:43:00]line Смена: 327 ФФД: 1.0 [00:43:00]line ЗНМ: 0300000009 [00:43:00]line РНМ: 0000000000090555 [00:43:00]line Версия ККМ: 001 [00:43:00]line Платежная система: Бакай Банк [00:43:00]line ФМ: 0000000000874811 [00:43:00]line ФД: 95075 [00:43:00]line ФПД: 181689791110546 [00:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T004301&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95075&fm=181689791110546&tin=02508201610067®Number=0000000000090555&sum=50006 [00:43:01]OFD Sender: Processing packet 95075 [packets to send 30, broken 29] [00:43:01]ProducePacketName [00:43:01]name=ofd_packets/00095075 [00:43:01]OFD Sender: To server: pG, [00:43:01]CommunicateWithHost lk.salyk.kg:30040 [00:43:01]ConnectInit lk.salyk.kg [00:43:01]written 0, free lines is 4095 [00:43:01]Connected sock=10 [00:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B4 6A 07 01 1F B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 A5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 73 01 00 35 04 06 00 A5 3E F3 75 5D 92 B1 7E 2B D5 0C 29 16 2B [00:43:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C0 93 47 00 9E 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 73 01 00 F4 03 04 00 6D 50 EF 65 B6 04 01 00 00 2C 45 48 E1 B8 BA A3 17 [00:43:01]CommunicateWithHost err = 0 [00:43:01]CheckOFDResponse [00:43:01]1017 (14) - 77093643461234 [00:43:01]1041 (16) - 0000000000874811 [00:43:01]1040 (4) - 95075 [00:43:01]1012 (4) - 11.03.2024 18:41 [00:43:01]1206 (1) - 0 [00:43:01]OFD Sender: Remove packet 95075 [00:43:01]ProducePacketName [00:43:01]name=ofd_packets/00095075 [00:43:01]NVStorageDeleteData [00:43:01]Write to MH i2c: 01 00 00 A6 15 BB [00:43:01]Write i2c OK [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: 01 [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: 01 07 00 [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: 01 07 00 A6 15 00 80 00 00 00 52 0D A1 [00:43:01]RasterBufferAndPrint [00:43:01]line [00:43:01]line [00:43:01]line [00:43:01]line [00:43:01]line [00:43:01]written 0, free lines is 3415 [00:43:01]process_action close_receipt done [00:43:01]requested_data is exist [00:43:01]produce_requested_data [00:43:01]requested_item fm.sn is exist - process it [00:43:01]wFMCommunicate request_size=4 [00:43:01]MH_SAM_APDU [00:43:01]CAPDU: 80 11 00 00 [00:43:01]Write to MH i2c: E2 08 00 AD 15 80 11 00 00 00 00 00 00 3C [00:43:01]Write i2c OK [00:43:01]MH_I2C_Read... [00:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:01]Read from MH i2c: E2 [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: E2 17 00 [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: E2 17 00 AD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8C [00:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:43:01]wFMCommunicate OK [00:43:01]requested_item fd.num is exist - process it [00:43:01]SAM_PROTO_GetFieldsCounters [00:43:01]wFMCommunicate request_size=4 [00:43:01]MH_SAM_APDU [00:43:01]CAPDU: 80 13 00 00 [00:43:01]Write to MH i2c: E2 08 00 AE 15 80 13 00 00 00 00 00 00 3F [00:43:01]Write i2c OK [00:43:01]MH_I2C_Read... [00:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:01]Read from MH i2c: E2 [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: E2 62 00 [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: E2 62 00 AE 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 63 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [00:43: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 63 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:01]wFMCommunicate OK [00:43:01]SAM_PROTO_GetFieldsCounters done [00:43:01]requested_item shift.num is exist - process it [00:43:01]requested_item shift.opened is exist - process it [00:43:01]req_shift_opened [00:43:01]FM_GetShiftState [00:43:01]SAM_PROTO_GetShiftState [00:43:01]wFMCommunicate request_size=4 [00:43:01]MH_SAM_APDU [00:43:01]CAPDU: 80 13 01 00 [00:43:01]Write to MH i2c: E2 08 00 AF 15 80 13 01 00 00 00 00 00 41 [00:43:01]Write i2c OK [00:43:01]MH_I2C_Read... [00:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:01]Read from MH i2c: E2 [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: E2 0E 00 [00:43:01]MH_I2C_Read... [00:43:01]Read from MH i2c: E2 0E 00 AF 15 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B5 [00:43:01]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:43:01]wFMCommunicate OK [00:43:01]SAM_PROTO_GetShiftState done [00:43:01]FM_GetShiftState done [00:43:01]req_shift_opened done [00:43:01]requested_item shift.open_date is exist - process it [00:43:01]req_shift_open_date [00:43:01]req_shift_open_date done [00:43:01]produce_requested_data done [00:43:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95075,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:43:01]process_action_free close_receipt [00:43:01]json_value_free [00:43:01]json_value_free done [00:43:01]process_json_proto returns [00:43:01]Send response to host [00:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95075,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:43:01]free response buf [00:43:01]execute_script done [00:43:01]execute_script returns [00:43:01]free content buf [00:43:01]Sock 8.Close socket [00:43:01]Sock 8.Thread stoped [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:08]accept exits with 9 [00:53:08]New connection [00:53:08]New thread 3066813796 created [00:53:08]Thread 3066957156 joined [00:53:08]Waiting for new connection... [00:53:08] Sock 9.Parse request [00:53:08]Sock 9.Check first char [00:53:08]Sock 9.First char is OK [00:53:08]request: POST /json_proto HTTP/1.0 [00:53:08]Method: POST [00:53:08]URL: /json_proto [00:53:08]Method is POST - this is cgi request [00:53:08]url: /json_proto [00:53:08]query_string will be loaded in cgi processing [00:53:08]execute_cgi json_proto POST (null) [00:53:08]execute_cgi path=json_proto method=POST [00:53:08]POST find Content-Length [00:53:08]Host: 172.17.62.67:8080 [00:53:08]Content-Length: 677 [00:53:08]Content-Type: application/json [00:53:08] [00:53:08]POST finish read [00:53:08]Found Content-Length = 677 [00:53:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:08]execute_script... [00:53: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)196033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:08]POST & json_proto [00:53:08]process_json_proto [00:53:08]json parsed OK: [00:53:08]protocol is kg_v1.0 [00:53:08]action value=close_receipt [00:53:08]process_action close_receipt [00:53:08]cmd_close_receipt [00:53:08]MH_GetDate [00:53:08]Write to MH i2c: F0 00 00 B0 15 B4 [00:53:08]Write i2c OK [00:53:08]MH_I2C_Read... [00:53:08]Read from MH i2c: F0 [00:53:08]MH_I2C_Read... [00:53:08]Read from MH i2c: F0 05 00 [00:53:08]MH_I2C_Read... [00:53:08]Read from MH i2c: F0 05 00 B0 15 00 76 A7 EF 65 2A [00:53:08]GetLastDocTimeStamp 1710204181 [00:53:08]current date 1710204790 [00:53:08]FM_GetShiftState [00:53:08]SAM_PROTO_GetShiftState [00:53:08]wFMCommunicate request_size=4 [00:53:08]MH_SAM_APDU [00:53:08]CAPDU: 80 13 01 00 [00:53:08]Write to MH i2c: E2 08 00 B1 15 80 13 01 00 00 00 00 00 43 [00:53:08]Write i2c OK [00:53:08]MH_I2C_Read... [00:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:08]Read from MH i2c: E2 [00:53:08]MH_I2C_Read... [00:53:08]Read from MH i2c: E2 0E 00 [00:53:08]MH_I2C_Read... [00:53:08]Read from MH i2c: E2 0E 00 B1 15 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 B7 [00:53:08]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:53:08]wFMCommunicate OK [00:53:08]SAM_PROTO_GetShiftState done [00:53:08]FM_GetShiftState done [00:53:08]opened in 1710201976 [00:53:08]opened+sec_in_day 1710288376 [00:53:08]quantity*price = 50005 [00:53:08]sum+1 = 50007 [00:53:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 6 12.03.2024 00:53 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95076 ФПД: 249606537678726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T005310&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95076&fm=249606537678726&tin=02508201610067®Number=0000000000090555&sum=50000 [00:53:09]StoreToDocumentArchive [00:53:09]shift 327 fd 95076 [00:53:09]save to /storage/0327/doc_00095076 [00:53:09]save last doc name /storage/0327/doc_00095076 to /storage/kkm_last_doc_name [00:53:09]save OK [00:53:09]Clear old archive folders... [00:53:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:53:09]tlvbuf is 01ABA370 [00:53:09]SAM_PROTO_ClearQueue [00:53:09]wFMCommunicate request_size=4 [00:53:09]MH_SAM_APDU [00:53:09]CAPDU: 80 09 00 00 [00:53:09]Write to MH i2c: E2 08 00 BE 15 80 09 00 00 00 00 00 00 45 [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:53:09]Read from MH i2c: E2 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 03 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [00:53:09]RAPDU: 90 00 [00:53:09]wFMCommunicate OK [00:53:09]SAM_PROTO_ClearQueue done [00:53:09]KKMCreateOFDPacket [00:53:09]OFDProtocolAddRootSTLVToBuf [00:53:09]FM_MakeSignedData [00:53:09]FM_MakeSignedData [00:53:09]SAM_PROTO_SignData [00:53:09]wFMCommunicate request_size=4 [00:53:09]MH_SAM_APDU [00:53:09]CAPDU: 80 0D 01 02 [00:53:09]Write to MH i2c: E2 08 00 BF 15 80 0D 01 02 00 00 00 00 4D [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:53:09]Read from MH i2c: E2 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 03 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [00:53:09]RAPDU: 90 00 [00:53:09]wFMCommunicate OK [00:53:09]wFMCommunicate request_size=255 [00:53:09]MH_SAM_APDU [00:53:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 76 A7 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 73 01 00 35 04 06 00 E3 [00:53:09]Write to MH i2c: E2 02 01 C0 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 76 A7 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 73 01 00 35 04 06 00 E3 00 00 70 [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:09]Read from MH i2c: E2 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 03 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [00:53:09]RAPDU: 90 00 [00:53:09]wFMCommunicate OK [00:53:09]wFMCommunicate request_size=10 [00:53:09]MH_SAM_APDU [00:53:09]CAPDU: 80 0D 02 02 05 04 0D 03 0F 86 [00:53:09]Write to MH i2c: E2 0D 00 C1 15 80 0D 02 02 05 00 04 0D 03 0F 86 00 00 03 [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:09]Read from MH i2c: E2 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 03 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 03 00 C1 15 00 90 00 4A [00:53:09]RAPDU: 90 00 [00:53:09]wFMCommunicate OK [00:53:09]wFMCommunicate request_size=4 [00:53:09]MH_SAM_APDU [00:53:09]CAPDU: 80 0D 03 02 [00:53:09]Write to MH i2c: E2 08 00 C2 15 80 0D 03 02 00 00 00 00 52 [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:53:09]Read from MH i2c: E2 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 0B 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 0B 00 C2 15 00 09 35 04 48 07 34 E9 92 90 00 93 [00:53:09]RAPDU: 09 35 04 48 07 34 E9 92 90 00 [00:53:09]wFMCommunicate OK [00:53:09]SAM_PROTO_SignData done [00:53:09]FM_MakeSignedData done [00:53:09]CreateOFDProtocolMessage [00:53:09]wFMCommunicate request_size=4 [00:53:09]MH_SAM_APDU [00:53:09]CAPDU: 80 11 00 00 [00:53:09]Write to MH i2c: E2 08 00 C3 15 80 11 00 00 00 00 00 00 52 [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:09]Read from MH i2c: E2 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 17 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: E2 17 00 C3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A2 [00:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:53:09]wFMCommunicate OK [00:53:09]CreateOFDProtocolMessage done [00:53:09]OFDSenderStorePacket 95076 [00:53:09]StoreOFDPacket docnum=95076 [00:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 28 CA 07 01 A1 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 76 A7 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 73 01 00 35 04 06 00 E3 04 0D 03 0F 86 09 35 04 48 07 34 E9 92 [00:53:09]CheckFolder [00:53:09]dirname=/storage/ofd_packets [00:53:09]CheckFolder done [00:53:09]ProducePacketName [00:53:09]name=ofd_packets/00095076 [00:53:09]NVStorageSaveData ofd_packets/00095076 [00:53:09]File name is /storage/ofd_packets/00095076 [00:53:09]Write 301 bytes [00:53:09]NVStorageSaveData done [00:53:09]OFDSenderStorePacket done [00:53:09]KKMCreateOFDPacket done [00:53:09]NVStorageSaveData kkm_last_timestamp [00:53:09]File name is /storage/kkm_last_timestamp [00:53:09]Write 4 bytes [00:53:09]NVStorageSaveData done [00:53:09]ExternCall_PrintAddStr [00:53:09]wPrintStart [00:53:09]Write to MH i2c: 01 00 00 C4 15 D9 [00:53:09]Write i2c OK [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: 01 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: 01 07 00 [00:53:09]MH_I2C_Read... [00:53:09]Read from MH i2c: 01 07 00 C4 15 00 80 00 00 00 FF 0F 6E [00:53:09]RasterBufferAndPrint [00:53:09]line Счет N : (1)196033 [00:53:09]line ИНН: 02508201610067 [00:53:09]line Контрольно-Кассовый Чек [00:53:09]line ПРОДАЖА [00:53:09]line ТРК (МРК, ГНК) : 12 [00:53:09]line Товар: 2710124130 [00:53:09]line Аи-92-К-5 [00:53:09]line 7.950 * 62.90 [00:53:09]line = 500.06 [00:53:09]line НДС 12% НСП 1% [00:53:09]line > о реализуемом товаре [00:53:09]line ОКРУГЛЕНИЕ: -0.06 [00:53:09]line ИТОГО: 500.00 [00:53:09]line Внесено: 500.00 [00:53:09]line СДАЧА: 0.00 [00:53:09]line НСП 1% : 4.42 [00:53:09]line НДС 12% : 53.10 [00:53:09]line Наличными: 500.00 [00:53:09]line Безнал.: 0.00 [00:53:09]line Место: АЗС № 6 "Партнер Нефть" [00:53:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:53:09]line СНО: Общий режим [00:53:09]line Чек 6 12.03.2024 00:53 [00:53:09]line Смена: 327 ФФД: 1.0 [00:53:09]line ЗНМ: 0300000009 [00:53:09]line РНМ: 0000000000090555 [00:53:09]line Версия ККМ: 001 [00:53:09]line ФМ: 0000000000874811 [00:53:09]line ФД: 95076 [00:53:10]line ФПД: 249606537678726 [00:53:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T005310&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95076&fm=249606537678726&tin=02508201610067®Number=0000000000090555&sum=50000 [00:53:10]OFD Sender: Processing packet 95076 [packets to send 30, broken 29] [00:53:10]ProducePacketName [00:53:10]name=ofd_packets/00095076 [00:53:10]OFD Sender: To server: pG, [00:53:10]CommunicateWithHost lk.salyk.kg:30040 [00:53:10]ConnectInit lk.salyk.kg [00:53:10]written 0, free lines is 4095 [00:53:10]Connected sock=10 [00:53: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 31 31 0F 01 00 00 28 CA 07 01 A1 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 76 A7 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 73 01 00 35 04 06 00 E3 04 0D 03 0F 86 09 35 04 48 07 34 E9 92 [00:53: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 31 31 4F 00 00 00 1F A4 47 00 F0 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 31 31 10 04 04 00 64 73 01 00 F4 03 04 00 CE 52 EF 65 B6 04 01 00 00 27 B7 0C 11 2E FF A7 F3 [00:53:10]CommunicateWithHost err = 0 [00:53:10]CheckOFDResponse [00:53:10]1017 (14) - 77093643461234 [00:53:10]1041 (16) - 0000000000874811 [00:53:10]1040 (4) - 95076 [00:53:10]1012 (4) - 11.03.2024 18:51 [00:53:10]1206 (1) - 0 [00:53:10]OFD Sender: Remove packet 95076 [00:53:10]ProducePacketName [00:53:10]name=ofd_packets/00095076 [00:53:10]NVStorageDeleteData [00:53:10]Write to MH i2c: 01 00 00 EF 15 04 [00:53:10]Write i2c OK [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: 01 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: 01 07 00 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: 01 07 00 EF 15 00 80 00 00 00 4C 0D E4 [00:53:10]RasterBufferAndPrint [00:53:10]line [00:53:10]line [00:53:10]line [00:53:10]line [00:53:10]line [00:53:10]written 0, free lines is 3408 [00:53:10]process_action close_receipt done [00:53:10]requested_data is exist [00:53:10]produce_requested_data [00:53:10]requested_item fm.sn is exist - process it [00:53:10]wFMCommunicate request_size=4 [00:53:10]MH_SAM_APDU [00:53:10]CAPDU: 80 11 00 00 [00:53:10]Write to MH i2c: E2 08 00 F6 15 80 11 00 00 00 00 00 00 85 [00:53:10]Write i2c OK [00:53:10]MH_I2C_Read... [00:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:10]Read from MH i2c: E2 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 17 00 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 17 00 F6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D5 [00:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:53:10]wFMCommunicate OK [00:53:10]requested_item fd.num is exist - process it [00:53:10]SAM_PROTO_GetFieldsCounters [00:53:10]wFMCommunicate request_size=4 [00:53:10]MH_SAM_APDU [00:53:10]CAPDU: 80 13 00 00 [00:53:10]Write to MH i2c: E2 08 00 F7 15 80 13 00 00 00 00 00 00 88 [00:53:10]Write i2c OK [00:53:10]MH_I2C_Read... [00:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:53:10]Read from MH i2c: E2 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 62 00 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 62 00 F7 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 64 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [00:53: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 64 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:53:10]wFMCommunicate OK [00:53:10]SAM_PROTO_GetFieldsCounters done [00:53:10]requested_item shift.num is exist - process it [00:53:10]requested_item shift.opened is exist - process it [00:53:10]req_shift_opened [00:53:10]FM_GetShiftState [00:53:10]SAM_PROTO_GetShiftState [00:53:10]wFMCommunicate request_size=4 [00:53:10]MH_SAM_APDU [00:53:10]CAPDU: 80 13 01 00 [00:53:10]Write to MH i2c: E2 08 00 F8 15 80 13 01 00 00 00 00 00 8A [00:53:10]Write i2c OK [00:53:10]MH_I2C_Read... [00:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:10]Read from MH i2c: E2 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 0E 00 [00:53:10]MH_I2C_Read... [00:53:10]Read from MH i2c: E2 0E 00 F8 15 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 FE [00:53:10]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:53:10]wFMCommunicate OK [00:53:10]SAM_PROTO_GetShiftState done [00:53:10]FM_GetShiftState done [00:53:10]req_shift_opened done [00:53:10]requested_item shift.open_date is exist - process it [00:53:10]req_shift_open_date [00:53:10]req_shift_open_date done [00:53:10]produce_requested_data done [00:53:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95076,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:53:10]process_action_free close_receipt [00:53:10]json_value_free [00:53:10]json_value_free done [00:53:10]process_json_proto returns [00:53:10]Send response to host [00:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95076,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:53:10]free response buf [00:53:10]execute_script done [00:53:10]execute_script returns [00:53:10]free content buf [00:53:10]Sock 9.Close socket [00:53:10]Sock 9.Thread stoped [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:51]accept exits with 8 [00:59:51]New connection [00:59:51]New thread 3066957156 created [00:59:51]Thread 3066813796 joined [00:59:51]Waiting for new connection... [00:59:51] Sock 8.Parse request [00:59:51]Sock 8.Check first char [00:59:51]Sock 8.First char is OK [00:59:51]request: POST /json_proto HTTP/1.0 [00:59:51]Method: POST [00:59:51]URL: /json_proto [00:59:51]Method is POST - this is cgi request [00:59:51]url: /json_proto [00:59:51]query_string will be loaded in cgi processing [00:59:51]execute_cgi json_proto POST (null) [00:59:51]execute_cgi path=json_proto method=POST [00:59:51]POST find Content-Length [00:59:51]Host: 172.17.62.67:8080 [00:59:51]Content-Length: 677 [00:59:51]Content-Type: application/json [00:59:51] [00:59:51]POST finish read [00:59:51]Found Content-Length = 677 [00:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 2.880, "sum" : 200.16, "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" ] } } [00:59:51]execute_script... [00:59: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)196034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 2.880, "sum" : 200.16, "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" ] } } [00:59:51]POST & json_proto [00:59:51]process_json_proto [00:59:51]json parsed OK: [00:59:51]protocol is kg_v1.0 [00:59:51]action value=close_receipt [00:59:51]process_action close_receipt [00:59:51]cmd_close_receipt [00:59:51]MH_GetDate [00:59:51]Write to MH i2c: F0 00 00 F9 15 FD [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: F0 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: F0 05 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: F0 05 00 F9 15 00 09 A9 EF 65 08 [00:59:51]GetLastDocTimeStamp 1710204790 [00:59:51]current date 1710205193 [00:59:51]FM_GetShiftState [00:59:51]SAM_PROTO_GetShiftState [00:59:51]wFMCommunicate request_size=4 [00:59:51]MH_SAM_APDU [00:59:51]CAPDU: 80 13 01 00 [00:59:51]Write to MH i2c: E2 08 00 FA 15 80 13 01 00 00 00 00 00 8C [00:59:51]Write i2c OK [00:59:51]MH_I2C_Read... [00:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:51]Read from MH i2c: E2 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 0E 00 [00:59:51]MH_I2C_Read... [00:59:51]Read from MH i2c: E2 0E 00 FA 15 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 00 [00:59:51]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:59:51]wFMCommunicate OK [00:59:51]SAM_PROTO_GetShiftState done [00:59:51]FM_GetShiftState done [00:59:51]opened in 1710201976 [00:59:51]opened+sec_in_day 1710288376 [00:59:51]quantity*price = 20016 [00:59:51]sum+1 = 20017 [00:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 7 12.03.2024 00:59 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95077 ФПД: 89335238751961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T005953&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95077&fm=89335238751961&tin=02508201610067®Number=0000000000090555&sum=20000 [00:59:52]StoreToDocumentArchive [00:59:52]shift 327 fd 95077 [00:59:52]save to /storage/0327/doc_00095077 [00:59:52]save last doc name /storage/0327/doc_00095077 to /storage/kkm_last_doc_name [00:59:52]save OK [00:59:52]Clear old archive folders... [00:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:59:52]tlvbuf is 01A61DD0 [00:59:52]SAM_PROTO_ClearQueue [00:59:52]wFMCommunicate request_size=4 [00:59:52]MH_SAM_APDU [00:59:52]CAPDU: 80 09 00 00 [00:59:52]Write to MH i2c: E2 08 00 07 16 80 09 00 00 00 00 00 00 8F [00:59:52]Write i2c OK [00:59:52]MH_I2C_Read... [00:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:52]Read from MH i2c: E2 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: E2 03 00 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [00:59:52]RAPDU: 90 00 [00:59:52]wFMCommunicate OK [00:59:52]SAM_PROTO_ClearQueue done [00:59:52]KKMCreateOFDPacket [00:59:52]OFDProtocolAddRootSTLVToBuf [00:59:52]FM_MakeSignedData [00:59:52]FM_MakeSignedData [00:59:52]SAM_PROTO_SignData [00:59:52]wFMCommunicate request_size=4 [00:59:52]MH_SAM_APDU [00:59:52]CAPDU: 80 0D 01 02 [00:59:52]Write to MH i2c: E2 08 00 08 16 80 0D 01 02 00 00 00 00 97 [00:59:52]Write i2c OK [00:59:52]MH_I2C_Read... [00:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:52]Read from MH i2c: E2 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: E2 03 00 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: E2 03 00 08 16 00 90 00 92 [00:59:52]RAPDU: 90 00 [00:59:52]wFMCommunicate OK [00:59:52]wFMCommunicate request_size=255 [00:59:52]MH_SAM_APDU [00:59:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 0B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 30 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 07 00 00 00 F4 03 04 00 09 A9 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 73 01 00 35 04 06 00 51 [00:59:52]Write to MH i2c: E2 02 01 09 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 0B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 30 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 07 00 00 00 F4 03 04 00 09 A9 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 73 01 00 35 04 06 00 51 00 00 0D [00:59:52]Write i2c OK [00:59:52]MH_I2C_Read... [00:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:52]Read from MH i2c: E2 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: E2 03 00 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [00:59:52]RAPDU: 90 00 [00:59:52]wFMCommunicate OK [00:59:52]wFMCommunicate request_size=10 [00:59:52]MH_SAM_APDU [00:59:52]CAPDU: 80 0D 02 02 05 3F FB 2B F6 D9 [00:59:52]Write to MH i2c: E2 0D 00 0A 16 80 0D 02 02 05 00 3F FB 2B F6 D9 00 00 D8 [00:59:52]Write i2c OK [00:59:52]MH_I2C_Read... [00:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:53]Read from MH i2c: E2 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 03 00 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [00:59:53]RAPDU: 90 00 [00:59:53]wFMCommunicate OK [00:59:53]wFMCommunicate request_size=4 [00:59:53]MH_SAM_APDU [00:59:53]CAPDU: 80 0D 03 02 [00:59:53]Write to MH i2c: E2 08 00 0B 16 80 0D 03 02 00 00 00 00 9C [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:53]Read from MH i2c: E2 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 0B 00 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 0B 00 0B 16 00 CC AD AD 86 37 9F 7D 7F 90 00 1B [00:59:53]RAPDU: CC AD AD 86 37 9F 7D 7F 90 00 [00:59:53]wFMCommunicate OK [00:59:53]SAM_PROTO_SignData done [00:59:53]FM_MakeSignedData done [00:59:53]CreateOFDProtocolMessage [00:59:53]wFMCommunicate request_size=4 [00:59:53]MH_SAM_APDU [00:59:53]CAPDU: 80 11 00 00 [00:59:53]Write to MH i2c: E2 08 00 0C 16 80 11 00 00 00 00 00 00 9C [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:53]Read from MH i2c: E2 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 17 00 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 17 00 0C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EC [00:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:59:53]wFMCommunicate OK [00:59:53]CreateOFDProtocolMessage done [00:59:53]OFDSenderStorePacket 95077 [00:59:53]StoreOFDPacket docnum=95077 [00:59:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EB 60 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 0B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 30 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 07 00 00 00 F4 03 04 00 09 A9 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 73 01 00 35 04 06 00 51 3F FB 2B F6 D9 CC AD AD 86 37 9F 7D 7F [00:59:53]CheckFolder [00:59:53]dirname=/storage/ofd_packets [00:59:53]CheckFolder done [00:59:53]ProducePacketName [00:59:53]name=ofd_packets/00095077 [00:59:53]NVStorageSaveData ofd_packets/00095077 [00:59:53]File name is /storage/ofd_packets/00095077 [00:59:53]Write 301 bytes [00:59:53]NVStorageSaveData done [00:59:53]OFDSenderStorePacket done [00:59:53]KKMCreateOFDPacket done [00:59:53]NVStorageSaveData kkm_last_timestamp [00:59:53]File name is /storage/kkm_last_timestamp [00:59:53]Write 4 bytes [00:59:53]NVStorageSaveData done [00:59:53]ExternCall_PrintAddStr [00:59:53]wPrintStart [00:59:53]Write to MH i2c: 01 00 00 0D 16 23 [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: 01 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: 01 07 00 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: 01 07 00 0D 16 00 80 00 00 00 FF 0F B8 [00:59:53]RasterBufferAndPrint [00:59:53]line Счет N : (1)196034 [00:59:53]line ИНН: 02508201610067 [00:59:53]line Контрольно-Кассовый Чек [00:59:53]line ПРОДАЖА [00:59:53]line ТРК (МРК, ГНК) : 41 [00:59:53]line Товар: 2710124500 [00:59:53]line Аи-95-К-5 [00:59:53]line 2.880 * 69.50 [00:59:53]line = 200.16 [00:59:53]line НДС 12% НСП 1% [00:59:53]line > о реализуемом товаре [00:59:53]line ОКРУГЛЕНИЕ: -0.16 [00:59:53]line ИТОГО: 200.00 [00:59:53]line Внесено: 200.00 [00:59:53]line СДАЧА: 0.00 [00:59:53]line НСП 1% : 1.77 [00:59:53]line НДС 12% : 21.26 [00:59:53]line Наличными: 200.00 [00:59:53]line Безнал.: 0.00 [00:59:53]line Место: АЗС № 6 "Партнер Нефть" [00:59:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [00:59:53]line СНО: Общий режим [00:59:53]line Чек 7 12.03.2024 00:59 [00:59:53]line Смена: 327 ФФД: 1.0 [00:59:53]line ЗНМ: 0300000009 [00:59:53]line РНМ: 0000000000090555 [00:59:53]line Версия ККМ: 001 [00:59:53]line ФМ: 0000000000874811 [00:59:53]line ФД: 95077 [00:59:53]line ФПД: 89335238751961 [00:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T005953&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95077&fm=89335238751961&tin=02508201610067®Number=0000000000090555&sum=20000 [00:59:53]OFD Sender: Processing packet 95077 [packets to send 30, broken 29] [00:59:53]ProducePacketName [00:59:53]name=ofd_packets/00095077 [00:59:53]OFD Sender: To server: pG, [00:59:53]CommunicateWithHost lk.salyk.kg:30040 [00:59:53]ConnectInit lk.salyk.kg [00:59:53]written 0, free lines is 4095 [00:59:53]Connected sock=10 [00:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EB 60 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 0B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 30 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 07 00 00 00 F4 03 04 00 09 A9 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 73 01 00 35 04 06 00 51 3F FB 2B F6 D9 CC AD AD 86 37 9F 7D 7F [00:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BD D8 47 00 73 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 73 01 00 F4 03 04 00 61 54 EF 65 B6 04 01 00 00 1A E0 86 06 96 26 C6 69 [00:59:53]CommunicateWithHost err = 0 [00:59:53]CheckOFDResponse [00:59:53]1017 (14) - 77093643461234 [00:59:53]1041 (16) - 0000000000874811 [00:59:53]1040 (4) - 95077 [00:59:53]1012 (4) - 11.03.2024 18:58 [00:59:53]1206 (1) - 0 [00:59:53]OFD Sender: Remove packet 95077 [00:59:53]ProducePacketName [00:59:53]name=ofd_packets/00095077 [00:59:53]NVStorageDeleteData [00:59:53]Write to MH i2c: 01 00 00 38 16 4E [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: 01 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: 01 07 00 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: 01 07 00 38 16 00 80 00 00 00 48 0D 2A [00:59:53]RasterBufferAndPrint [00:59:53]line [00:59:53]line [00:59:53]line [00:59:53]line [00:59:53]line [00:59:53]written 0, free lines is 3406 [00:59:53]process_action close_receipt done [00:59:53]requested_data is exist [00:59:53]produce_requested_data [00:59:53]requested_item fm.sn is exist - process it [00:59:53]wFMCommunicate request_size=4 [00:59:53]MH_SAM_APDU [00:59:53]CAPDU: 80 11 00 00 [00:59:53]Write to MH i2c: E2 08 00 3F 16 80 11 00 00 00 00 00 00 CF [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 17 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 17 00 3F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1F [00:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [00:59:54]wFMCommunicate OK [00:59:54]requested_item fd.num is exist - process it [00:59:54]SAM_PROTO_GetFieldsCounters [00:59:54]wFMCommunicate request_size=4 [00:59:54]MH_SAM_APDU [00:59:54]CAPDU: 80 13 00 00 [00:59:54]Write to MH i2c: E2 08 00 40 16 80 13 00 00 00 00 00 00 D2 [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 62 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 62 00 40 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 65 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [00:59: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 65 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:59:54]wFMCommunicate OK [00:59:54]SAM_PROTO_GetFieldsCounters done [00:59:54]requested_item shift.num is exist - process it [00:59:54]requested_item shift.opened is exist - process it [00:59:54]req_shift_opened [00:59:54]FM_GetShiftState [00:59:54]SAM_PROTO_GetShiftState [00:59:54]wFMCommunicate request_size=4 [00:59:54]MH_SAM_APDU [00:59:54]CAPDU: 80 13 01 00 [00:59:54]Write to MH i2c: E2 08 00 41 16 80 13 01 00 00 00 00 00 D4 [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 0E 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 0E 00 41 16 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 48 [00:59:54]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [00:59:54]wFMCommunicate OK [00:59:54]SAM_PROTO_GetShiftState done [00:59:54]FM_GetShiftState done [00:59:54]req_shift_opened done [00:59:54]requested_item shift.open_date is exist - process it [00:59:54]req_shift_open_date [00:59:54]req_shift_open_date done [00:59:54]produce_requested_data done [00:59:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95077,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [00:59:54]process_action_free close_receipt [00:59:54]json_value_free [00:59:54]json_value_free done [00:59:54]process_json_proto returns [00:59:54]Send response to host [00:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95077,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [00:59:54]free response buf [00:59:54]execute_script done [00:59:54]execute_script returns [00:59:54]free content buf [00:59:54]Sock 8.Close socket [00:59:54]Sock 8.Thread stoped [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:27]accept exits with 9 [01:01:27]New connection [01:01:27]New thread 3066813796 created [01:01:27]Thread 3066957156 joined [01:01:27]Waiting for new connection... [01:01:27] Sock 9.Parse request [01:01:27]Sock 9.Check first char [01:01:27]Sock 9.First char is OK [01:01:27]request: POST /json_proto HTTP/1.0 [01:01:27]Method: POST [01:01:27]URL: /json_proto [01:01:27]Method is POST - this is cgi request [01:01:27]url: /json_proto [01:01:27]query_string will be loaded in cgi processing [01:01:27]execute_cgi json_proto POST (null) [01:01:27]execute_cgi path=json_proto method=POST [01:01:27]POST find Content-Length [01:01:27]Host: 172.17.62.67:8080 [01:01:27]Content-Length: 805 [01:01:27]Content-Type: application/json [01:01:27] [01:01:27]POST finish read [01:01:27]Found Content-Length = 805 [01:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 2.880, "sum" : 200.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:27]execute_script... [01:01: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)196035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 2.880, "sum" : 200.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:27]POST & json_proto [01:01:27]process_json_proto [01:01:27]json parsed OK: [01:01:27]protocol is kg_v1.0 [01:01:27]action value=close_receipt [01:01:27]process_action close_receipt [01:01:27]cmd_close_receipt [01:01:27]MH_GetDate [01:01:27]Write to MH i2c: F0 00 00 42 16 47 [01:01:27]Write i2c OK [01:01:27]MH_I2C_Read... [01:01:27]Read from MH i2c: F0 [01:01:27]MH_I2C_Read... [01:01:27]Read from MH i2c: F0 05 00 [01:01:27]MH_I2C_Read... [01:01:27]Read from MH i2c: F0 05 00 42 16 00 69 A9 EF 65 B2 [01:01:27]GetLastDocTimeStamp 1710205193 [01:01:27]current date 1710205289 [01:01:27]FM_GetShiftState [01:01:27]SAM_PROTO_GetShiftState [01:01:27]wFMCommunicate request_size=4 [01:01:27]MH_SAM_APDU [01:01:27]CAPDU: 80 13 01 00 [01:01:27]Write to MH i2c: E2 08 00 43 16 80 13 01 00 00 00 00 00 D6 [01:01:27]Write i2c OK [01:01:27]MH_I2C_Read... [01:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:27]Read from MH i2c: E2 [01:01:27]MH_I2C_Read... [01:01:27]Read from MH i2c: E2 0E 00 [01:01:27]MH_I2C_Read... [01:01:27]Read from MH i2c: E2 0E 00 43 16 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 4A [01:01:27]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [01:01:27]wFMCommunicate OK [01:01:27]SAM_PROTO_GetShiftState done [01:01:27]FM_GetShiftState done [01:01:27]opened in 1710201976 [01:01:27]opened+sec_in_day 1710288376 [01:01:27]quantity*price = 20016 [01:01:27]sum+1 = 20017 [01:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.16 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.16 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 8 12.03.2024 01:01 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95078 ФПД: 253476188724816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T010129&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95078&fm=253476188724816&tin=02508201610067®Number=0000000000090555&sum=20016 [01:01:28]StoreToDocumentArchive [01:01:28]shift 327 fd 95078 [01:01:28]save to /storage/0327/doc_00095078 [01:01:28]save last doc name /storage/0327/doc_00095078 to /storage/kkm_last_doc_name [01:01:28]save OK [01:01:28]Clear old archive folders... [01:01:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:01:28]tlvbuf is 01A2A810 [01:01:28]SAM_PROTO_ClearQueue [01:01:28]wFMCommunicate request_size=4 [01:01:28]MH_SAM_APDU [01:01:28]CAPDU: 80 09 00 00 [01:01:28]Write to MH i2c: E2 08 00 50 16 80 09 00 00 00 00 00 00 D8 [01:01:28]Write i2c OK [01:01:28]MH_I2C_Read... [01:01:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:28]Read from MH i2c: E2 [01:01:28]MH_I2C_Read... [01:01:28]Read from MH i2c: E2 03 00 [01:01:28]MH_I2C_Read... [01:01:28]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [01:01:28]RAPDU: 90 00 [01:01:28]wFMCommunicate OK [01:01:28]SAM_PROTO_ClearQueue done [01:01:28]KKMCreateOFDPacket [01:01:28]OFDProtocolAddRootSTLVToBuf [01:01:28]FM_MakeSignedData [01:01:28]FM_MakeSignedData [01:01:28]SAM_PROTO_SignData [01:01:28]wFMCommunicate request_size=4 [01:01:28]MH_SAM_APDU [01:01:28]CAPDU: 80 0D 01 02 [01:01:28]Write to MH i2c: E2 08 00 51 16 80 0D 01 02 00 00 00 00 E0 [01:01:28]Write i2c OK [01:01:28]MH_I2C_Read... [01:01:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:28]Read from MH i2c: E2 [01:01:28]MH_I2C_Read... [01:01:28]Read from MH i2c: E2 03 00 [01:01:28]MH_I2C_Read... [01:01:28]Read from MH i2c: E2 03 00 51 16 00 90 00 DB [01:01:28]RAPDU: 90 00 [01:01:28]wFMCommunicate OK [01:01:28]wFMCommunicate request_size=255 [01:01:28]MH_SAM_APDU [01:01: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 0B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 30 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 69 A9 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 73 01 00 35 04 06 00 E6 [01:01:28]Write to MH i2c: E2 02 01 52 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 0B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 30 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 69 A9 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 73 01 00 35 04 06 00 E6 00 00 6D [01:01:28]Write i2c OK [01:01:28]MH_I2C_Read... [01:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:28]Read from MH i2c: E2 [01:01:28]MH_I2C_Read... [01:01:28]Read from MH i2c: E2 03 00 [01:01:28]MH_I2C_Read... [01:01:28]Read from MH i2c: E2 03 00 52 16 00 90 00 DC [01:01:28]RAPDU: 90 00 [01:01:28]wFMCommunicate OK [01:01:28]wFMCommunicate request_size=10 [01:01:28]MH_SAM_APDU [01:01:28]CAPDU: 80 0D 02 02 05 89 06 30 1E 50 [01:01:28]Write to MH i2c: E2 0D 00 53 16 80 0D 02 02 05 00 89 06 30 1E 50 00 00 1A [01:01:28]Write i2c OK [01:01:28]MH_I2C_Read... [01:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:29]Read from MH i2c: E2 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: E2 03 00 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: E2 03 00 53 16 00 90 00 DD [01:01:29]RAPDU: 90 00 [01:01:29]wFMCommunicate OK [01:01:29]wFMCommunicate request_size=4 [01:01:29]MH_SAM_APDU [01:01:29]CAPDU: 80 0D 03 02 [01:01:29]Write to MH i2c: E2 08 00 54 16 80 0D 03 02 00 00 00 00 E5 [01:01:29]Write i2c OK [01:01:29]MH_I2C_Read... [01:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:29]Read from MH i2c: E2 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: E2 0B 00 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: E2 0B 00 54 16 00 B7 21 9D BF D8 48 45 71 90 00 F0 [01:01:29]RAPDU: B7 21 9D BF D8 48 45 71 90 00 [01:01:29]wFMCommunicate OK [01:01:29]SAM_PROTO_SignData done [01:01:29]FM_MakeSignedData done [01:01:29]CreateOFDProtocolMessage [01:01:29]wFMCommunicate request_size=4 [01:01:29]MH_SAM_APDU [01:01:29]CAPDU: 80 11 00 00 [01:01:29]Write to MH i2c: E2 08 00 55 16 80 11 00 00 00 00 00 00 E5 [01:01:29]Write i2c OK [01:01:29]MH_I2C_Read... [01:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:29]Read from MH i2c: E2 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: E2 17 00 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: E2 17 00 55 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 35 [01:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:01:29]wFMCommunicate OK [01:01:29]CreateOFDProtocolMessage done [01:01:29]OFDSenderStorePacket 95078 [01:01:29]StoreOFDPacket docnum=95078 [01:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 47 DB 07 01 D4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 0B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 30 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 69 A9 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 73 01 00 35 04 06 00 E6 89 06 30 1E 50 B7 21 9D BF D8 48 45 71 [01:01:29]CheckFolder [01:01:29]dirname=/storage/ofd_packets [01:01:29]CheckFolder done [01:01:29]ProducePacketName [01:01:29]name=ofd_packets/00095078 [01:01:29]NVStorageSaveData ofd_packets/00095078 [01:01:29]File name is /storage/ofd_packets/00095078 [01:01:29]Write 301 bytes [01:01:29]NVStorageSaveData done [01:01:29]OFDSenderStorePacket done [01:01:29]KKMCreateOFDPacket done [01:01:29]NVStorageSaveData kkm_last_timestamp [01:01:29]File name is /storage/kkm_last_timestamp [01:01:29]Write 4 bytes [01:01:29]NVStorageSaveData done [01:01:29]ExternCall_PrintAddStr [01:01:29]wPrintStart [01:01:29]Write to MH i2c: 01 00 00 56 16 6C [01:01:29]Write i2c OK [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: 01 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: 01 07 00 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: 01 07 00 56 16 00 80 00 00 00 FF 0F 01 [01:01:29]RasterBufferAndPrint [01:01:29]line Счет N : (1)196035 [01:01:29]line ИНН: 02508201610067 [01:01:29]line Контрольно-Кассовый Чек [01:01:29]line ПРОДАЖА [01:01:29]line ТРК (МРК, ГНК) : 41 [01:01:29]line Товар: 2710124500 [01:01:29]line Аи-95-К-5 [01:01:29]line 2.880 * 69.50 [01:01:29]line = 200.16 [01:01:29]line НДС 12% НСП 1% [01:01:29]line > о реализуемом товаре [01:01:29]line ИТОГО: 200.16 [01:01:29]line НСП 1% : 1.77 [01:01:29]line НДС 12% : 21.26 [01:01:29]line Наличными: 0.00 [01:01:29]line Безнал.: 200.16 [01:01:29]line Место: АЗС № 6 "Партнер Нефть" [01:01:29]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [01:01:29]line СНО: Общий режим [01:01:29]line Чек 8 12.03.2024 01:01 [01:01:29]line Смена: 327 ФФД: 1.0 [01:01:29]line ЗНМ: 0300000009 [01:01:29]line РНМ: 0000000000090555 [01:01:29]line Версия ККМ: 001 [01:01:29]line Платежная система: О! деньги [01:01:29]line ФМ: 0000000000874811 [01:01:29]line ФД: 95078 [01:01:29]line ФПД: 253476188724816 [01:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T010129&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95078&fm=253476188724816&tin=02508201610067®Number=0000000000090555&sum=20016 [01:01:29]OFD Sender: Processing packet 95078 [packets to send 30, broken 29] [01:01:29]ProducePacketName [01:01:29]name=ofd_packets/00095078 [01:01:29]OFD Sender: To server: pG, [01:01:29]CommunicateWithHost lk.salyk.kg:30040 [01:01:29]ConnectInit lk.salyk.kg [01:01:29]written 0, free lines is 4095 [01:01:29]Connected sock=10 [01:01: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 31 31 0F 01 00 00 47 DB 07 01 D4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 0B 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 30 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 69 A9 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 73 01 00 35 04 06 00 E6 89 06 30 1E 50 B7 21 9D BF D8 48 45 71 [01:01: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 31 31 4F 00 00 00 57 46 47 00 86 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 73 01 00 F4 03 04 00 C1 54 EF 65 B6 04 01 00 00 13 9C 56 B2 18 7F D2 81 [01:01:29]CommunicateWithHost err = 0 [01:01:29]CheckOFDResponse [01:01:29]1017 (14) - 77093643461234 [01:01:29]1041 (16) - 0000000000874811 [01:01:29]1040 (4) - 95078 [01:01:29]1012 (4) - 11.03.2024 19:00 [01:01:29]1206 (1) - 0 [01:01:29]OFD Sender: Remove packet 95078 [01:01:29]ProducePacketName [01:01:29]name=ofd_packets/00095078 [01:01:29]NVStorageDeleteData [01:01:29]Write to MH i2c: 01 00 00 80 16 96 [01:01:29]Write i2c OK [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: 01 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: 01 07 00 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: 01 07 00 80 16 00 80 00 00 00 56 0D 80 [01:01:29]RasterBufferAndPrint [01:01:29]line [01:01:29]line [01:01:29]line [01:01:29]line [01:01:29]line [01:01:29]written 0, free lines is 3421 [01:01:29]process_action close_receipt done [01:01:29]requested_data is exist [01:01:29]produce_requested_data [01:01:29]requested_item fm.sn is exist - process it [01:01:29]wFMCommunicate request_size=4 [01:01:29]MH_SAM_APDU [01:01:29]CAPDU: 80 11 00 00 [01:01:29]Write to MH i2c: E2 08 00 87 16 80 11 00 00 00 00 00 00 17 [01:01:29]Write i2c OK [01:01:29]MH_I2C_Read... [01:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:29]Read from MH i2c: E2 [01:01:29]MH_I2C_Read... [01:01:29]Read from MH i2c: E2 17 00 [01:01:29]MH_I2C_Read... [01:01:29]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 31 31 90 00 67 [01:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:01:29]wFMCommunicate OK [01:01:29]requested_item fd.num is exist - process it [01:01:29]SAM_PROTO_GetFieldsCounters [01:01:29]wFMCommunicate request_size=4 [01:01:29]MH_SAM_APDU [01:01:29]CAPDU: 80 13 00 00 [01:01:29]Write to MH i2c: E2 08 00 88 16 80 13 00 00 00 00 00 00 1A [01:01:29]Write i2c OK [01:01:29]MH_I2C_Read... [01:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:01:30]Read from MH i2c: E2 [01:01:30]MH_I2C_Read... [01:01:30]Read from MH i2c: E2 62 00 [01:01:30]MH_I2C_Read... [01:01:30]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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 66 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [01: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 66 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:01:30]wFMCommunicate OK [01:01:30]SAM_PROTO_GetFieldsCounters done [01:01:30]requested_item shift.num is exist - process it [01:01:30]requested_item shift.opened is exist - process it [01:01:30]req_shift_opened [01:01:30]FM_GetShiftState [01:01:30]SAM_PROTO_GetShiftState [01:01:30]wFMCommunicate request_size=4 [01:01:30]MH_SAM_APDU [01:01:30]CAPDU: 80 13 01 00 [01:01:30]Write to MH i2c: E2 08 00 89 16 80 13 01 00 00 00 00 00 1C [01:01:30]Write i2c OK [01:01:30]MH_I2C_Read... [01:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:30]Read from MH i2c: E2 [01:01:30]MH_I2C_Read... [01:01:30]Read from MH i2c: E2 0E 00 [01:01:30]MH_I2C_Read... [01:01:30]Read from MH i2c: E2 0E 00 89 16 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 90 [01:01:30]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [01:01:30]wFMCommunicate OK [01:01:30]SAM_PROTO_GetShiftState done [01:01:30]FM_GetShiftState done [01:01:30]req_shift_opened done [01:01:30]requested_item shift.open_date is exist - process it [01:01:30]req_shift_open_date [01:01:30]req_shift_open_date done [01:01:30]produce_requested_data done [01:01:30]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95078,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [01:01:30]process_action_free close_receipt [01:01:30]json_value_free [01:01:30]json_value_free done [01:01:30]process_json_proto returns [01:01:30]Send response to host [01:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95078,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [01:01:30]free response buf [01:01:30]execute_script done [01:01:30]execute_script returns [01:01:30]free content buf [01:01:30]Sock 9.Close socket [01:01:30]Sock 9.Thread stoped [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:16]accept exits with 8 [01:05:16]New connection [01:05:16]New thread 3066957156 created [01:05:16]Thread 3066813796 joined [01:05:16]Waiting for new connection... [01:05:16] Sock 8.Parse request [01:05:16]Sock 8.Check first char [01:05:16]Sock 8.First char is OK [01:05:16]request: POST /json_proto HTTP/1.0 [01:05:16]Method: POST [01:05:16]URL: /json_proto [01:05:16]Method is POST - this is cgi request [01:05:16]url: /json_proto [01:05:16]query_string will be loaded in cgi processing [01:05:16]execute_cgi json_proto POST (null) [01:05:16]execute_cgi path=json_proto method=POST [01:05:16]POST find Content-Length [01:05:16]Host: 172.17.62.67:8080 [01:05:16]Content-Length: 677 [01:05:16]Content-Type: application/json [01:05:16] [01:05:16]POST finish read [01:05:16]Found Content-Length = 677 [01:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [01:05:16]execute_script... [01:05: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)196036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 7.950, "sum" : 500.06, "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" ] } } [01:05:16]POST & json_proto [01:05:16]process_json_proto [01:05:16]json parsed OK: [01:05:16]protocol is kg_v1.0 [01:05:16]action value=close_receipt [01:05:16]process_action close_receipt [01:05:16]cmd_close_receipt [01:05:16]MH_GetDate [01:05:16]Write to MH i2c: F0 00 00 8A 16 8F [01:05:16]Write i2c OK [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: F0 [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: F0 05 00 [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: F0 05 00 8A 16 00 4E AA EF 65 E0 [01:05:16]GetLastDocTimeStamp 1710205289 [01:05:16]current date 1710205518 [01:05:16]FM_GetShiftState [01:05:16]SAM_PROTO_GetShiftState [01:05:16]wFMCommunicate request_size=4 [01:05:16]MH_SAM_APDU [01:05:16]CAPDU: 80 13 01 00 [01:05:16]Write to MH i2c: E2 08 00 8B 16 80 13 01 00 00 00 00 00 1E [01:05:16]Write i2c OK [01:05:16]MH_I2C_Read... [01:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:16]Read from MH i2c: E2 [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: E2 0E 00 [01:05:16]MH_I2C_Read... [01:05:16]Read from MH i2c: E2 0E 00 8B 16 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 92 [01:05:16]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [01:05:16]wFMCommunicate OK [01:05:16]SAM_PROTO_GetShiftState done [01:05:16]FM_GetShiftState done [01:05:16]opened in 1710201976 [01:05:16]opened+sec_in_day 1710288376 [01:05:16]quantity*price = 50005 [01:05:16]sum+1 = 50007 [01:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 9 12.03.2024 01:05 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95079 ФПД: 234433253716598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T010518&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95079&fm=234433253716598&tin=02508201610067®Number=0000000000090555&sum=50000 [01:05:17]StoreToDocumentArchive [01:05:17]shift 327 fd 95079 [01:05:17]save to /storage/0327/doc_00095079 [01:05:17]save last doc name /storage/0327/doc_00095079 to /storage/kkm_last_doc_name [01:05:17]save OK [01:05:17]Clear old archive folders... [01:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:05:17]tlvbuf is 019FEEA0 [01:05:17]SAM_PROTO_ClearQueue [01:05:17]wFMCommunicate request_size=4 [01:05:17]MH_SAM_APDU [01:05:17]CAPDU: 80 09 00 00 [01:05:17]Write to MH i2c: E2 08 00 98 16 80 09 00 00 00 00 00 00 20 [01:05:17]Write i2c OK [01:05:17]MH_I2C_Read... [01:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:05:17]Read from MH i2c: E2 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 03 00 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [01:05:17]RAPDU: 90 00 [01:05:17]wFMCommunicate OK [01:05:17]SAM_PROTO_ClearQueue done [01:05:17]KKMCreateOFDPacket [01:05:17]OFDProtocolAddRootSTLVToBuf [01:05:17]FM_MakeSignedData [01:05:17]FM_MakeSignedData [01:05:17]SAM_PROTO_SignData [01:05:17]wFMCommunicate request_size=4 [01:05:17]MH_SAM_APDU [01:05:17]CAPDU: 80 0D 01 02 [01:05:17]Write to MH i2c: E2 08 00 99 16 80 0D 01 02 00 00 00 00 28 [01:05:17]Write i2c OK [01:05:17]MH_I2C_Read... [01:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:05:17]Read from MH i2c: E2 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 03 00 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [01:05:17]RAPDU: 90 00 [01:05:17]wFMCommunicate OK [01:05:17]wFMCommunicate request_size=255 [01:05:17]MH_SAM_APDU [01:05:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4E AA EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 73 01 00 35 04 06 00 D5 [01:05:17]Write to MH i2c: E2 02 01 9A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4E AA EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 73 01 00 35 04 06 00 D5 00 00 1E [01:05:17]Write i2c OK [01:05:17]MH_I2C_Read... [01:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:17]Read from MH i2c: E2 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 03 00 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [01:05:17]RAPDU: 90 00 [01:05:17]wFMCommunicate OK [01:05:17]wFMCommunicate request_size=10 [01:05:17]MH_SAM_APDU [01:05:17]CAPDU: 80 0D 02 02 05 37 3E CF B2 76 [01:05:17]Write to MH i2c: E2 0D 00 9B 16 80 0D 02 02 05 00 37 3E CF B2 76 00 00 A1 [01:05:17]Write i2c OK [01:05:17]MH_I2C_Read... [01:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:17]Read from MH i2c: E2 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 03 00 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [01:05:17]RAPDU: 90 00 [01:05:17]wFMCommunicate OK [01:05:17]wFMCommunicate request_size=4 [01:05:17]MH_SAM_APDU [01:05:17]CAPDU: 80 0D 03 02 [01:05:17]Write to MH i2c: E2 08 00 9C 16 80 0D 03 02 00 00 00 00 2D [01:05:17]Write i2c OK [01:05:17]MH_I2C_Read... [01:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:05:17]Read from MH i2c: E2 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 0B 00 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 0B 00 9C 16 00 FF 43 75 04 95 10 DE 87 90 00 F3 [01:05:17]RAPDU: FF 43 75 04 95 10 DE 87 90 00 [01:05:17]wFMCommunicate OK [01:05:17]SAM_PROTO_SignData done [01:05:17]FM_MakeSignedData done [01:05:17]CreateOFDProtocolMessage [01:05:17]wFMCommunicate request_size=4 [01:05:17]MH_SAM_APDU [01:05:17]CAPDU: 80 11 00 00 [01:05:17]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [01:05:17]Write i2c OK [01:05:17]MH_I2C_Read... [01:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:17]Read from MH i2c: E2 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: E2 17 00 [01:05:17]MH_I2C_Read... [01:05:17]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 31 31 90 00 7D [01:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:05:17]wFMCommunicate OK [01:05:17]CreateOFDProtocolMessage done [01:05:17]OFDSenderStorePacket 95079 [01:05:17]StoreOFDPacket docnum=95079 [01:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 59 7E 07 01 01 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4E AA EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 73 01 00 35 04 06 00 D5 37 3E CF B2 76 FF 43 75 04 95 10 DE 87 [01:05:17]CheckFolder [01:05:17]dirname=/storage/ofd_packets [01:05:17]CheckFolder done [01:05:17]ProducePacketName [01:05:17]name=ofd_packets/00095079 [01:05:17]NVStorageSaveData ofd_packets/00095079 [01:05:17]File name is /storage/ofd_packets/00095079 [01:05:17]Write 301 bytes [01:05:17]NVStorageSaveData done [01:05:17]OFDSenderStorePacket done [01:05:17]KKMCreateOFDPacket done [01:05:17]NVStorageSaveData kkm_last_timestamp [01:05:17]File name is /storage/kkm_last_timestamp [01:05:17]Write 4 bytes [01:05:17]NVStorageSaveData done [01:05:17]ExternCall_PrintAddStr [01:05:17]wPrintStart [01:05:17]Write to MH i2c: 01 00 00 9E 16 B4 [01:05:17]Write i2c OK [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: 01 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: 01 07 00 [01:05:17]MH_I2C_Read... [01:05:17]Read from MH i2c: 01 07 00 9E 16 00 80 00 00 00 FF 0F 49 [01:05:17]RasterBufferAndPrint [01:05:17]line Счет N : (1)196036 [01:05:17]line ИНН: 02508201610067 [01:05:17]line Контрольно-Кассовый Чек [01:05:17]line ПРОДАЖА [01:05:17]line ТРК (МРК, ГНК) : 12 [01:05:17]line Товар: 2710124130 [01:05:17]line Аи-92-К-5 [01:05:17]line 7.950 * 62.90 [01:05:17]line = 500.06 [01:05:17]line НДС 12% НСП 1% [01:05:17]line > о реализуемом товаре [01:05:17]line ОКРУГЛЕНИЕ: -0.06 [01:05:17]line ИТОГО: 500.00 [01:05:17]line Внесено: 500.00 [01:05:17]line СДАЧА: 0.00 [01:05:17]line НСП 1% : 4.42 [01:05:17]line НДС 12% : 53.10 [01:05:17]line Наличными: 500.00 [01:05:17]line Безнал.: 0.00 [01:05:17]line Место: АЗС № 6 "Партнер Нефть" [01:05:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [01:05:17]line СНО: Общий режим [01:05:17]line Чек 9 12.03.2024 01:05 [01:05:17]line Смена: 327 ФФД: 1.0 [01:05:17]line ЗНМ: 0300000009 [01:05:17]line РНМ: 0000000000090555 [01:05:17]line Версия ККМ: 001 [01:05:17]line ФМ: 0000000000874811 [01:05:17]line ФД: 95079 [01:05:17]line ФПД: 234433253716598 [01:05:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T010518&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95079&fm=234433253716598&tin=02508201610067®Number=0000000000090555&sum=50000 [01:05:17]written 0, free lines is 4095 [01:05:17]OFD Sender: Processing packet 95079 [packets to send 30, broken 29] [01:05:17]ProducePacketName [01:05:17]name=ofd_packets/00095079 [01:05:17]OFD Sender: To server: pG, [01:05:17]CommunicateWithHost lk.salyk.kg:30040 [01:05:17]ConnectInit lk.salyk.kg [01:05:17]Connected sock=10 [01:05:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 59 7E 07 01 01 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4E AA EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 73 01 00 35 04 06 00 D5 37 3E CF B2 76 FF 43 75 04 95 10 DE 87 [01:05: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 31 31 4F 00 00 00 9A 41 47 00 F2 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 73 01 00 F4 03 04 00 A5 55 EF 65 B6 04 01 00 00 1B D2 F7 91 36 5C A2 4C [01:05:18]CommunicateWithHost err = 0 [01:05:18]CheckOFDResponse [01:05:18]1017 (14) - 77093643461234 [01:05:18]1041 (16) - 0000000000874811 [01:05:18]1040 (4) - 95079 [01:05:18]1012 (4) - 11.03.2024 19:04 [01:05:18]1206 (1) - 0 [01:05:18]OFD Sender: Remove packet 95079 [01:05:18]ProducePacketName [01:05:18]name=ofd_packets/00095079 [01:05:18]NVStorageDeleteData [01:05:18]Write to MH i2c: 01 00 00 C9 16 DF [01:05:18]Write i2c OK [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: 01 [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: 01 07 00 [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: 01 07 00 C9 16 00 80 00 00 00 4D 0D C0 [01:05:18]RasterBufferAndPrint [01:05:18]line [01:05:18]line [01:05:18]line [01:05:18]line [01:05:18]line [01:05:18]written 0, free lines is 3411 [01:05:18]process_action close_receipt done [01:05:18]requested_data is exist [01:05:18]produce_requested_data [01:05:18]requested_item fm.sn is exist - process it [01:05:18]wFMCommunicate request_size=4 [01:05:18]MH_SAM_APDU [01:05:18]CAPDU: 80 11 00 00 [01:05:18]Write to MH i2c: E2 08 00 D0 16 80 11 00 00 00 00 00 00 60 [01:05:18]Write i2c OK [01:05:18]MH_I2C_Read... [01:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:18]Read from MH i2c: E2 [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: E2 17 00 [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: E2 17 00 D0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B0 [01:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:05:18]wFMCommunicate OK [01:05:18]requested_item fd.num is exist - process it [01:05:18]SAM_PROTO_GetFieldsCounters [01:05:18]wFMCommunicate request_size=4 [01:05:18]MH_SAM_APDU [01:05:18]CAPDU: 80 13 00 00 [01:05:18]Write to MH i2c: E2 08 00 D1 16 80 13 00 00 00 00 00 00 63 [01:05:18]Write i2c OK [01:05:18]MH_I2C_Read... [01:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:18]Read from MH i2c: E2 [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: E2 62 00 [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: E2 62 00 D1 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 67 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [01:05: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 67 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:05:18]wFMCommunicate OK [01:05:18]SAM_PROTO_GetFieldsCounters done [01:05:18]requested_item shift.num is exist - process it [01:05:18]requested_item shift.opened is exist - process it [01:05:18]req_shift_opened [01:05:18]FM_GetShiftState [01:05:18]SAM_PROTO_GetShiftState [01:05:18]wFMCommunicate request_size=4 [01:05:18]MH_SAM_APDU [01:05:18]CAPDU: 80 13 01 00 [01:05:18]Write to MH i2c: E2 08 00 D2 16 80 13 01 00 00 00 00 00 65 [01:05:18]Write i2c OK [01:05:18]MH_I2C_Read... [01:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:18]Read from MH i2c: E2 [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: E2 0E 00 [01:05:18]MH_I2C_Read... [01:05:18]Read from MH i2c: E2 0E 00 D2 16 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 D9 [01:05:18]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [01:05:18]wFMCommunicate OK [01:05:18]SAM_PROTO_GetShiftState done [01:05:18]FM_GetShiftState done [01:05:18]req_shift_opened done [01:05:18]requested_item shift.open_date is exist - process it [01:05:18]req_shift_open_date [01:05:18]req_shift_open_date done [01:05:18]produce_requested_data done [01:05:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95079,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [01:05:18]process_action_free close_receipt [01:05:18]json_value_free [01:05:18]json_value_free done [01:05:18]process_json_proto returns [01:05:18]Send response to host [01:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95079,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [01:05:18]free response buf [01:05:18]execute_script done [01:05:18]execute_script returns [01:05:18]free content buf [01:05:18]Sock 8.Close socket [01:05:18]Sock 8.Thread stoped [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:03]accept exits with 9 [01:53:03]New connection [01:53:03]New thread 3066813796 created [01:53:03]Thread 3066957156 joined [01:53:03]Waiting for new connection... [01:53:03] Sock 9.Parse request [01:53:03]Sock 9.Check first char [01:53:03]Sock 9.First char is OK [01:53:03]request: POST /json_proto HTTP/1.0 [01:53:03]Method: POST [01:53:03]URL: /json_proto [01:53:03]Method is POST - this is cgi request [01:53:03]url: /json_proto [01:53:03]query_string will be loaded in cgi processing [01:53:03]execute_cgi json_proto POST (null) [01:53:03]execute_cgi path=json_proto method=POST [01:53:03]POST find Content-Length [01:53:03]Host: 172.17.62.67:8080 [01:53:03]Content-Length: 622 [01:53:03]Content-Type: application/json [01:53:03] [01:53:03]POST finish read [01:53:03]Found Content-Length = 622 [01:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11530", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:03]execute_script... [01:53:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11530", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:03]POST & json_proto [01:53:03]process_json_proto [01:53:03]json parsed OK: [01:53:03]protocol is kg_v1.0 [01:53:03]action value=close_receipt [01:53:03]process_action close_receipt [01:53:03]cmd_close_receipt [01:53:03]MH_GetDate [01:53:03]Write to MH i2c: F0 00 00 D3 16 D8 [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: F0 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: F0 05 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: F0 05 00 D3 16 00 82 B5 EF 65 68 [01:53:03]GetLastDocTimeStamp 1710205518 [01:53:03]current date 1710208386 [01:53:03]FM_GetShiftState [01:53:03]SAM_PROTO_GetShiftState [01:53:03]wFMCommunicate request_size=4 [01:53:03]MH_SAM_APDU [01:53:03]CAPDU: 80 13 01 00 [01:53:03]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [01:53:03]Write i2c OK [01:53:03]MH_I2C_Read... [01:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:03]Read from MH i2c: E2 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 0E 00 [01:53:03]MH_I2C_Read... [01:53:03]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 DB [01:53:03]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [01:53:03]wFMCommunicate OK [01:53:03]SAM_PROTO_GetShiftState done [01:53:03]FM_GetShiftState done [01:53:03]opened in 1710201976 [01:53:03]opened+sec_in_day 1710288376 [01:53:03]quantity*price = 11100 [01:53:03]sum+1 = 11101 [01:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 10 12.03.2024 01:53 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95080 ФПД: 139663327856138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T015306&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95080&fm=139663327856138&tin=02508201610067®Number=0000000000090555&sum=11100 0 [01:53:04]StoreToDocumentArchive [01:53:04]shift 327 fd 95080 [01:53:04]save to /storage/0327/doc_00095080 [01:53:04]save last doc name /storage/0327/doc_00095080 to /storage/kkm_last_doc_name [01:53:04]save OK [01:53:04]Clear old archive folders... [01:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=275 [01:53:04]tlvbuf is 01A4C760 [01:53:04]SAM_PROTO_ClearQueue [01:53:04]wFMCommunicate request_size=4 [01:53:04]MH_SAM_APDU [01:53:04]CAPDU: 80 09 00 00 [01:53:04]Write to MH i2c: E2 08 00 E1 16 80 09 00 00 00 00 00 00 69 [01:53:04]Write i2c OK [01:53:04]MH_I2C_Read... [01:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:04]Read from MH i2c: E2 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: E2 03 00 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: E2 03 00 E1 16 00 90 00 6B [01:53:04]RAPDU: 90 00 [01:53:04]wFMCommunicate OK [01:53:04]SAM_PROTO_ClearQueue done [01:53:04]KKMCreateOFDPacket [01:53:04]OFDProtocolAddRootSTLVToBuf [01:53:04]FM_MakeSignedData [01:53:04]FM_MakeSignedData [01:53:04]SAM_PROTO_SignData [01:53:04]wFMCommunicate request_size=4 [01:53:04]MH_SAM_APDU [01:53:04]CAPDU: 80 0D 01 02 [01:53:04]Write to MH i2c: E2 08 00 E2 16 80 0D 01 02 00 00 00 00 71 [01:53:04]Write i2c OK [01:53:04]MH_I2C_Read... [01:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:04]Read from MH i2c: E2 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: E2 03 00 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: E2 03 00 E2 16 00 90 00 6C [01:53:04]RAPDU: 90 00 [01:53:04]wFMCommunicate OK [01:53:04]wFMCommunicate request_size=255 [01:53:04]MH_SAM_APDU [01:53:04]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 82 B5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 [01:53:04]Write to MH i2c: E2 02 01 E3 16 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 82 B5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 00 00 12 [01:53:04]Write i2c OK [01:53:04]MH_I2C_Read... [01:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:04]Read from MH i2c: E2 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: E2 03 00 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [01:53:04]RAPDU: 90 00 [01:53:04]wFMCommunicate OK [01:53:04]wFMCommunicate request_size=34 [01:53:04]MH_SAM_APDU [01:53:04]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 73 01 00 35 04 06 00 7F 05 E7 0B 86 0A [01:53:04]Write to MH i2c: E2 25 00 E4 16 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 73 01 00 35 04 06 00 7F 05 E7 0B 86 0A 00 00 14 [01:53:04]Write i2c OK [01:53:04]MH_I2C_Read... [01:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:04]Read from MH i2c: E2 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: E2 03 00 [01:53:04]MH_I2C_Read... [01:53:04]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [01:53:04]RAPDU: 90 00 [01:53:04]wFMCommunicate OK [01:53:04]wFMCommunicate request_size=4 [01:53:04]MH_SAM_APDU [01:53:04]CAPDU: 80 0D 03 02 [01:53:04]Write to MH i2c: E2 08 00 E5 16 80 0D 03 02 00 00 00 00 76 [01:53:04]Write i2c OK [01:53:04]MH_I2C_Read... [01:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:05]Read from MH i2c: E2 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: E2 0B 00 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: E2 0B 00 E5 16 00 04 29 7C 78 59 43 E5 BC 90 00 D5 [01:53:05]RAPDU: 04 29 7C 78 59 43 E5 BC 90 00 [01:53:05]wFMCommunicate OK [01:53:05]SAM_PROTO_SignData done [01:53:05]FM_MakeSignedData done [01:53:05]CreateOFDProtocolMessage [01:53:05]wFMCommunicate request_size=4 [01:53:05]MH_SAM_APDU [01:53:05]CAPDU: 80 11 00 00 [01:53:05]Write to MH i2c: E2 08 00 E6 16 80 11 00 00 00 00 00 00 76 [01:53:05]Write i2c OK [01:53:05]MH_I2C_Read... [01:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:05]Read from MH i2c: E2 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: E2 17 00 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: E2 17 00 E6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [01:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:53:05]wFMCommunicate OK [01:53:05]CreateOFDProtocolMessage done [01:53:05]OFDSenderStorePacket 95080 [01:53:05]StoreOFDPacket docnum=95080 [01:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 27 01 00 00 45 07 1F 01 0F 99 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 82 B5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 73 01 00 35 04 06 00 7F 05 E7 0B 86 0A 04 29 7C 78 59 43 E5 BC [01:53:05]CheckFolder [01:53:05]dirname=/storage/ofd_packets [01:53:05]CheckFolder done [01:53:05]ProducePacketName [01:53:05]name=ofd_packets/00095080 [01:53:05]NVStorageSaveData ofd_packets/00095080 [01:53:05]File name is /storage/ofd_packets/00095080 [01:53:05]Write 325 bytes [01:53:05]NVStorageSaveData done [01:53:05]OFDSenderStorePacket done [01:53:05]KKMCreateOFDPacket done [01:53:05]NVStorageSaveData kkm_last_timestamp [01:53:05]File name is /storage/kkm_last_timestamp [01:53:05]Write 4 bytes [01:53:05]NVStorageSaveData done [01:53:05]ExternCall_PrintAddStr [01:53:05]wPrintStart [01:53:05]Write to MH i2c: 01 00 00 E7 16 FD [01:53:05]Write i2c OK [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: 01 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: 01 07 00 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: 01 07 00 E7 16 00 80 00 00 00 FF 0F 92 [01:53:05]RasterBufferAndPrint [01:53:05]line Счет N : (3)11530 [01:53:05]line ИНН: 02508201610067 [01:53:05]line Контрольно-Кассовый Чек [01:53:05]line ПРОДАЖА [01:53:05]line Товар: 48743587 [01:53:05]line Сигареты Winston XStyle Silver [01:53:05]line 1.000 * 111.00 [01:53:05]line = 111.00 [01:53:05]line НДС 12% НСП 1% [01:53:05]line > о реализуемом товаре [01:53:05]line ИТОГО: 111.00 [01:53:05]line НСП 1% : 0.98 [01:53:05]line НДС 12% : 11.79 [01:53:05]line Наличными: 111.00 [01:53:05]line Безнал.: 0.00 [01:53:05]line Место: АЗС № 6 "Партнер Нефть" [01:53:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [01:53:05]line СНО: Общий режим [01:53:05]line Чек 10 12.03.2024 01:53 [01:53:05]line Смена: 327 ФФД: 1.0 [01:53:05]line ЗНМ: 0300000009 [01:53:05]line РНМ: 0000000000090555 [01:53:05]line Версия ККМ: 001 [01:53:05]line ФМ: 0000000000874811 [01:53:05]line ФД: 95080 [01:53:05]line ФПД: 139663327856138 [01:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T015306&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95080&fm=139663327856138&tin=02508201610067®Number=0000000000090555&sum=11100 [01:53:05]line 0 [01:53:05]OFD Sender: Processing packet 95080 [packets to send 30, broken 29] [01:53:05]ProducePacketName [01:53:05]name=ofd_packets/00095080 [01:53:05]OFD Sender: To server: pG, [01:53:05]CommunicateWithHost lk.salyk.kg:30040 [01:53:05]ConnectInit lk.salyk.kg [01:53:05]written 0, free lines is 4095 [01:53:05]Connected sock=10 [01:53: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 31 31 27 01 00 00 45 07 1F 01 0F 99 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 82 B5 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 73 01 00 35 04 06 00 7F 05 E7 0B 86 0A 04 29 7C 78 59 43 E5 BC [01:53: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 31 31 4F 00 00 00 38 C8 47 00 F7 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 73 01 00 F4 03 04 00 D9 60 EF 65 B6 04 01 00 00 97 24 F1 85 B3 EE BE D2 [01:53:05]CommunicateWithHost err = 0 [01:53:05]CheckOFDResponse [01:53:05]1017 (14) - 77093643461234 [01:53:05]1041 (16) - 0000000000874811 [01:53:05]1040 (4) - 95080 [01:53:05]1012 (4) - 11.03.2024 19:51 [01:53:05]1206 (1) - 0 [01:53:05]OFD Sender: Remove packet 95080 [01:53:05]ProducePacketName [01:53:05]name=ofd_packets/00095080 [01:53:05]NVStorageDeleteData [01:53:05]Write to MH i2c: 01 00 00 10 17 27 [01:53:05]Write i2c OK [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: 01 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: 01 07 00 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: 01 07 00 10 17 00 80 00 00 00 62 0D 1D [01:53:05]RasterBufferAndPrint [01:53:05]line [01:53:05]line [01:53:05]line [01:53:05]line [01:53:05]line [01:53:05]written 0, free lines is 3433 [01:53:05]process_action close_receipt done [01:53:05]requested_data is exist [01:53:05]produce_requested_data [01:53:05]requested_item fm.sn is exist - process it [01:53:05]wFMCommunicate request_size=4 [01:53:05]MH_SAM_APDU [01:53:05]CAPDU: 80 11 00 00 [01:53:05]Write to MH i2c: E2 08 00 17 17 80 11 00 00 00 00 00 00 A8 [01:53:05]Write i2c OK [01:53:05]MH_I2C_Read... [01:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:05]Read from MH i2c: E2 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: E2 17 00 [01:53:05]MH_I2C_Read... [01:53:05]Read from MH i2c: E2 17 00 17 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [01:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:53:05]wFMCommunicate OK [01:53:05]requested_item fd.num is exist - process it [01:53:05]SAM_PROTO_GetFieldsCounters [01:53:05]wFMCommunicate request_size=4 [01:53:05]MH_SAM_APDU [01:53:05]CAPDU: 80 13 00 00 [01:53:05]Write to MH i2c: E2 08 00 18 17 80 13 00 00 00 00 00 00 AB [01:53:05]Write i2c OK [01:53:05]MH_I2C_Read... [01:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:06]Read from MH i2c: E2 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 62 00 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 62 00 18 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 68 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [01:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 68 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:53:06]wFMCommunicate OK [01:53:06]SAM_PROTO_GetFieldsCounters done [01:53:06]requested_item shift.num is exist - process it [01:53:06]requested_item shift.opened is exist - process it [01:53:06]req_shift_opened [01:53:06]FM_GetShiftState [01:53:06]SAM_PROTO_GetShiftState [01:53:06]wFMCommunicate request_size=4 [01:53:06]MH_SAM_APDU [01:53:06]CAPDU: 80 13 01 00 [01:53:06]Write to MH i2c: E2 08 00 19 17 80 13 01 00 00 00 00 00 AD [01:53:06]Write i2c OK [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 [01:53:06]MH_I2C_Read... [01:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:06]Read from MH i2c: E2 0E 00 [01:53:06]MH_I2C_Read... [01:53:06]Read from MH i2c: E2 0E 00 19 17 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 21 [01:53:06]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [01:53:06]wFMCommunicate OK [01:53:06]SAM_PROTO_GetShiftState done [01:53:06]FM_GetShiftState done [01:53:06]req_shift_opened done [01:53:06]requested_item shift.open_date is exist - process it [01:53:06]req_shift_open_date [01:53:06]req_shift_open_date done [01:53:06]produce_requested_data done [01:53:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95080,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [01:53:06]process_action_free close_receipt [01:53:06]json_value_free [01:53:06]json_value_free done [01:53:06]process_json_proto returns [01:53:06]Send response to host [01:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95080,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [01:53:06]free response buf [01:53:06]execute_script done [01:53:06]execute_script returns [01:53:06]free content buf [01:53:06]Sock 9.Close socket [01:53:06]Sock 9.Thread stoped [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:19]accept exits with 8 [01:58:19]New connection [01:58:19]New thread 3066957156 created [01:58:19]Thread 3066813796 joined [01:58:19]Waiting for new connection... [01:58:19] Sock 8.Parse request [01:58:19]Sock 8.Check first char [01:58:19]Sock 8.First char is OK [01:58:19]request: POST /json_proto HTTP/1.0 [01:58:19]Method: POST [01:58:19]URL: /json_proto [01:58:19]Method is POST - this is cgi request [01:58:19]url: /json_proto [01:58:19]query_string will be loaded in cgi processing [01:58:19]execute_cgi json_proto POST (null) [01:58:19]execute_cgi path=json_proto method=POST [01:58:19]POST find Content-Length [01:58:19]Host: 172.17.62.67:8080 [01:58:19]Content-Length: 677 [01:58:19]Content-Type: application/json [01:58:19] [01:58:19]POST finish read [01:58:19]Found Content-Length = 677 [01:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:58:19]execute_script... [01:58: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)196037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:58:19]POST & json_proto [01:58:19]process_json_proto [01:58:19]json parsed OK: [01:58:19]protocol is kg_v1.0 [01:58:19]action value=close_receipt [01:58:19]process_action close_receipt [01:58:19]cmd_close_receipt [01:58:19]MH_GetDate [01:58:19]Write to MH i2c: F0 00 00 1A 17 20 [01:58:19]Write i2c OK [01:58:19]MH_I2C_Read... [01:58:19]Read from MH i2c: F0 [01:58:19]MH_I2C_Read... [01:58:19]Read from MH i2c: F0 05 00 [01:58:19]MH_I2C_Read... [01:58:19]Read from MH i2c: F0 05 00 1A 17 00 BE B6 EF 65 ED [01:58:19]GetLastDocTimeStamp 1710208386 [01:58:19]current date 1710208702 [01:58:19]FM_GetShiftState [01:58:19]SAM_PROTO_GetShiftState [01:58:19]wFMCommunicate request_size=4 [01:58:19]MH_SAM_APDU [01:58:19]CAPDU: 80 13 01 00 [01:58:19]Write to MH i2c: E2 08 00 1B 17 80 13 01 00 00 00 00 00 AF [01:58:19]Write i2c OK [01:58:19]MH_I2C_Read... [01:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:58:19]Read from MH i2c: E2 [01:58:19]MH_I2C_Read... [01:58:19]Read from MH i2c: E2 0E 00 [01:58:19]MH_I2C_Read... [01:58:19]Read from MH i2c: E2 0E 00 1B 17 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 23 [01:58:19]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [01:58:19]wFMCommunicate OK [01:58:19]SAM_PROTO_GetShiftState done [01:58:19]FM_GetShiftState done [01:58:19]opened in 1710201976 [01:58:19]opened+sec_in_day 1710288376 [01:58:19]quantity*price = 20002 [01:58:19]sum+1 = 20003 [01:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 11 12.03.2024 01:58 Смена: 327 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95081 ФПД: 171437496162265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T015822&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95081&fm=171437496162265&tin=02508201610067®Number=0000000000090555&sum=20000 [01:58:20]StoreToDocumentArchive [01:58:20]shift 327 fd 95081 [01:58:20]save to /storage/0327/doc_00095081 [01:58:20]save last doc name /storage/0327/doc_00095081 to /storage/kkm_last_doc_name [01:58:20]save OK [01:58:20]Clear old archive folders... [01:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:58:20]tlvbuf is 01A34200 [01:58:20]SAM_PROTO_ClearQueue [01:58:20]wFMCommunicate request_size=4 [01:58:20]MH_SAM_APDU [01:58:20]CAPDU: 80 09 00 00 [01:58:20]Write to MH i2c: E2 08 00 28 17 80 09 00 00 00 00 00 00 B1 [01:58:20]Write i2c OK [01:58:20]MH_I2C_Read... [01:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:58:20]Read from MH i2c: E2 [01:58:20]MH_I2C_Read... [01:58:20]Read from MH i2c: E2 03 00 [01:58:20]MH_I2C_Read... [01:58:20]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [01:58:20]RAPDU: 90 00 [01:58:20]wFMCommunicate OK [01:58:20]SAM_PROTO_ClearQueue done [01:58:20]KKMCreateOFDPacket [01:58:20]OFDProtocolAddRootSTLVToBuf [01:58:20]FM_MakeSignedData [01:58:20]FM_MakeSignedData [01:58:20]SAM_PROTO_SignData [01:58:20]wFMCommunicate request_size=4 [01:58:20]MH_SAM_APDU [01:58:20]CAPDU: 80 0D 01 02 [01:58:20]Write to MH i2c: E2 08 00 29 17 80 0D 01 02 00 00 00 00 B9 [01:58:20]Write i2c OK [01:58:20]MH_I2C_Read... [01:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:58:20]Read from MH i2c: E2 [01:58:20]MH_I2C_Read... [01:58:20]Read from MH i2c: E2 03 00 [01:58:20]MH_I2C_Read... [01:58:20]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [01:58:20]RAPDU: 90 00 [01:58:20]wFMCommunicate OK [01:58:20]wFMCommunicate request_size=255 [01:58:20]MH_SAM_APDU [01:58: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 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BE B6 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 73 01 00 35 04 06 00 9B [01:58:20]Write to MH i2c: E2 02 01 2A 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BE B6 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 73 01 00 35 04 06 00 9B 00 00 C5 [01:58:20]Write i2c OK [01:58:20]MH_I2C_Read... [01:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:58:21]Read from MH i2c: E2 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 03 00 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 03 00 2A 17 00 90 00 B5 [01:58:21]RAPDU: 90 00 [01:58:21]wFMCommunicate OK [01:58:21]wFMCommunicate request_size=10 [01:58:21]MH_SAM_APDU [01:58:21]CAPDU: 80 0D 02 02 05 EB E7 0F 57 D9 [01:58:21]Write to MH i2c: E2 0D 00 2B 17 80 0D 02 02 05 00 EB E7 0F 57 D9 00 00 D7 [01:58:21]Write i2c OK [01:58:21]MH_I2C_Read... [01:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:58:21]Read from MH i2c: E2 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 03 00 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 03 00 2B 17 00 90 00 B6 [01:58:21]RAPDU: 90 00 [01:58:21]wFMCommunicate OK [01:58:21]wFMCommunicate request_size=4 [01:58:21]MH_SAM_APDU [01:58:21]CAPDU: 80 0D 03 02 [01:58:21]Write to MH i2c: E2 08 00 2C 17 80 0D 03 02 00 00 00 00 BE [01:58:21]Write i2c OK [01:58:21]MH_I2C_Read... [01:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:58:21]Read from MH i2c: E2 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 0B 00 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 0B 00 2C 17 00 17 39 1A 4F A8 86 A9 CB 90 00 1A [01:58:21]RAPDU: 17 39 1A 4F A8 86 A9 CB 90 00 [01:58:21]wFMCommunicate OK [01:58:21]SAM_PROTO_SignData done [01:58:21]FM_MakeSignedData done [01:58:21]CreateOFDProtocolMessage [01:58:21]wFMCommunicate request_size=4 [01:58:21]MH_SAM_APDU [01:58:21]CAPDU: 80 11 00 00 [01:58:21]Write to MH i2c: E2 08 00 2D 17 80 11 00 00 00 00 00 00 BE [01:58:21]Write i2c OK [01:58:21]MH_I2C_Read... [01:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:58:21]Read from MH i2c: E2 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 17 00 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 17 00 2D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [01:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:58:21]wFMCommunicate OK [01:58:21]CreateOFDProtocolMessage done [01:58:21]OFDSenderStorePacket 95081 [01:58:21]StoreOFDPacket docnum=95081 [01:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 88 74 07 01 B3 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BE B6 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 73 01 00 35 04 06 00 9B EB E7 0F 57 D9 17 39 1A 4F A8 86 A9 CB [01:58:21]CheckFolder [01:58:21]dirname=/storage/ofd_packets [01:58:21]CheckFolder done [01:58:21]ProducePacketName [01:58:21]name=ofd_packets/00095081 [01:58:21]NVStorageSaveData ofd_packets/00095081 [01:58:21]File name is /storage/ofd_packets/00095081 [01:58:21]Write 301 bytes [01:58:21]NVStorageSaveData done [01:58:21]OFDSenderStorePacket done [01:58:21]KKMCreateOFDPacket done [01:58:21]NVStorageSaveData kkm_last_timestamp [01:58:21]File name is /storage/kkm_last_timestamp [01:58:21]Write 4 bytes [01:58:21]NVStorageSaveData done [01:58:21]ExternCall_PrintAddStr [01:58:21]wPrintStart [01:58:21]Write to MH i2c: 01 00 00 2E 17 45 [01:58:21]Write i2c OK [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: 01 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: 01 07 00 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: 01 07 00 2E 17 00 80 00 00 00 FF 0F DA [01:58:21]RasterBufferAndPrint [01:58:21]line Счет N : (1)196037 [01:58:21]line ИНН: 02508201610067 [01:58:21]line Контрольно-Кассовый Чек [01:58:21]line ПРОДАЖА [01:58:21]line ТРК (МРК, ГНК) : 32 [01:58:21]line Товар: 2710124130 [01:58:21]line Аи-92-К-5 [01:58:21]line 3.180 * 62.90 [01:58:21]line = 200.02 [01:58:21]line НДС 12% НСП 1% [01:58:21]line > о реализуемом товаре [01:58:21]line ОКРУГЛЕНИЕ: -0.02 [01:58:21]line ИТОГО: 200.00 [01:58:21]line Внесено: 200.00 [01:58:21]line СДАЧА: 0.00 [01:58:21]line НСП 1% : 1.77 [01:58:21]line НДС 12% : 21.24 [01:58:21]line Наличными: 200.00 [01:58:21]line Безнал.: 0.00 [01:58:21]line Место: АЗС № 6 "Партнер Нефть" [01:58:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [01:58:21]line СНО: Общий режим [01:58:21]line Чек 11 12.03.2024 01:58 [01:58:21]line Смена: 327 ФФД: 1.0 [01:58:21]line ЗНМ: 0300000009 [01:58:21]line РНМ: 0000000000090555 [01:58:21]line Версия ККМ: 001 [01:58:21]line ФМ: 0000000000874811 [01:58:21]line ФД: 95081 [01:58:21]line ФПД: 171437496162265 [01:58:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240312T015822&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95081&fm=171437496162265&tin=02508201610067®Number=0000000000090555&sum=20000 [01:58:21]OFD Sender: Processing packet 95081 [packets to send 30, broken 29] [01:58:21]ProducePacketName [01:58:21]name=ofd_packets/00095081 [01:58:21]OFD Sender: To server: pG, [01:58:21]CommunicateWithHost lk.salyk.kg:30040 [01:58:21]ConnectInit lk.salyk.kg [01:58:21]written 0, free lines is 4095 [01:58:21]Connected sock=10 [01:58: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 31 31 0F 01 00 00 88 74 07 01 B3 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 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 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 BE B6 EF 65 0E 04 04 00 47 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 73 01 00 35 04 06 00 9B EB E7 0F 57 D9 17 39 1A 4F A8 86 A9 CB [01:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 52 64 47 00 A6 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 73 01 00 F4 03 04 00 15 62 EF 65 B6 04 01 00 00 3F B1 6B 02 86 FC C9 B9 [01:58:21]CommunicateWithHost err = 0 [01:58:21]CheckOFDResponse [01:58:21]1017 (14) - 77093643461234 [01:58:21]1041 (16) - 0000000000874811 [01:58:21]1040 (4) - 95081 [01:58:21]1012 (4) - 11.03.2024 19:57 [01:58:21]1206 (1) - 0 [01:58:21]OFD Sender: Remove packet 95081 [01:58:21]ProducePacketName [01:58:21]name=ofd_packets/00095081 [01:58:21]NVStorageDeleteData [01:58:22]Write to MH i2c: 01 00 00 59 17 70 [01:58:22]Write i2c OK [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: 01 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: 01 07 00 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: 01 07 00 59 17 00 80 00 00 00 5B 0D 5F [01:58:22]RasterBufferAndPrint [01:58:22]line [01:58:22]line [01:58:22]line [01:58:22]line [01:58:22]line [01:58:22]written 0, free lines is 3425 [01:58:22]process_action close_receipt done [01:58:22]requested_data is exist [01:58:22]produce_requested_data [01:58:22]requested_item fm.sn is exist - process it [01:58:22]wFMCommunicate request_size=4 [01:58:22]MH_SAM_APDU [01:58:22]CAPDU: 80 11 00 00 [01:58:22]Write to MH i2c: E2 08 00 60 17 80 11 00 00 00 00 00 00 F1 [01:58:22]Write i2c OK [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 [01:58:22]MH_I2C_Read... [01:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:58:22]Read from MH i2c: E2 17 00 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 17 00 60 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 41 [01:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [01:58:22]wFMCommunicate OK [01:58:22]requested_item fd.num is exist - process it [01:58:22]SAM_PROTO_GetFieldsCounters [01:58:22]wFMCommunicate request_size=4 [01:58:22]MH_SAM_APDU [01:58:22]CAPDU: 80 13 00 00 [01:58:22]Write to MH i2c: E2 08 00 61 17 80 13 00 00 00 00 00 00 F4 [01:58:22]Write i2c OK [01:58:22]MH_I2C_Read... [01:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:58:22]Read from MH i2c: E2 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 62 00 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 62 00 61 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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 69 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [01:58: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 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 69 73 01 00 0E 04 04 00 47 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:58:22]wFMCommunicate OK [01:58:22]SAM_PROTO_GetFieldsCounters done [01:58:22]requested_item shift.num is exist - process it [01:58:22]requested_item shift.opened is exist - process it [01:58:22]req_shift_opened [01:58:22]FM_GetShiftState [01:58:22]SAM_PROTO_GetShiftState [01:58:22]wFMCommunicate request_size=4 [01:58:22]MH_SAM_APDU [01:58:22]CAPDU: 80 13 01 00 [01:58:22]Write to MH i2c: E2 08 00 62 17 80 13 01 00 00 00 00 00 F6 [01:58:22]Write i2c OK [01:58:22]MH_I2C_Read... [01:58:22]OFD Sender: No OFD packet to send [01:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:58:22]Read from MH i2c: E2 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 0E 00 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 0E 00 62 17 00 09 00 01 78 9C EF 65 00 00 00 00 90 00 6A [01:58:22]RAPDU: 09 00 01 78 9C EF 65 00 00 00 00 90 00 [01:58:22]wFMCommunicate OK [01:58:22]SAM_PROTO_GetShiftState done [01:58:22]FM_GetShiftState done [01:58:22]req_shift_opened done [01:58:22]requested_item shift.open_date is exist - process it [01:58:22]req_shift_open_date [01:58:22]req_shift_open_date done [01:58:22]produce_requested_data done [01:58:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95081,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976} [01:58:22]process_action_free close_receipt [01:58:22]json_value_free [01:58:22]json_value_free done [01:58:22]process_json_proto returns [01:58:22]Send response to host [01:58:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95081,"shift.num":327,"shift.opened":1,"shift.open_date":1710201976}}} [01:58:22]free response buf [01:58:22]execute_script done [01:58:22]execute_script returns [01:58:22]free content buf [01:58:22]Sock 8.Close socket [01:58:22]Sock 8.Thread stoped [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send